/* ------------ FONTS ------------ */

@font-face {
	font-family: barlowsemicondensed-light;
	src: url(../fonts/barlowsemicondensed-light.woff2) format('woff2');
	font-display: swap;
}

@font-face {
	font-family: barlowsemicondensed-regular;
	src: url(../fonts/barlowsemicondensed-regular.woff2) format('woff2');
	font-display: swap;
}

@font-face {
	font-family: barlowsemicondensed-medium;
	src: url(../fonts/barlowsemicondensed-medium.woff2) format('woff2');
	font-display: swap;
}

@font-face {
	font-family: Coastal-Rough;
	src: url(../fonts/coastal-rough.woff2) format('woff2');
	font-display: swap;
}

body{
	background-color: #fff;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

header{
	background-color: #5141fa;
	width: 100%;
}

footer{
	background-color: #5141fa;
	width: 100%;
}

div#contenedor{
	align-items: center;
	display: flex;
	justify-content: space-between;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

div#logotipoHeader{
	display: flex;
	align-items: center;
}

div#menuHeader{
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

/* Botón de Hamburguesa para Móvil (Oculto en Escritorio) */
.btn-hamburguesa {
	display: none;
	background: none;
	border: none;
	color: #ffffff;
	font-size: 28px;
	cursor: pointer;
	padding: 5px;
	line-height: 1;
}

/* ------------ CLASS ------------ */

div.stagePrincipal{
	background-color: #170326;
	min-height: 500px;
	width: 100%;
}

div.frases{
	background-color: #ff5906;
	width: 100%;
}

div.queEs{
	min-height: 650px;
	width: 100%;
}

div.identifica{
	background-color: #5141fa;
	min-height: 850px;
	width: 100%;
}

div.roto{
	background-color: #170326;
    background-image: url('../img/fondoRoto.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
	position: relative;
    width: 100%;
    min-height: 440px;
}

.borde-papel-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url('../img/rotoTop.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 3;
}

.borde-papel-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url('../img/rotoBottom.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 3;
}

/* ------------ CONTENEDORES ------------ */

div#contenedorHeader{
	align-items: center;
	display: flex;
	min-height: 140px;
	justify-content: space-between;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0 24px;
	position: relative;
}

div#contenedorFooter{
	align-items: center;
	display: flex;
	min-height: 100px;
	justify-content: center;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0 24px;
}

div#contenedorFrases{
	align-items: center;
	display: flex;
	height: 80px;
	justify-content: center;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0 24px;
}

div#contenedorQueEs{
	align-items: flex-end;
	display: flex;
	min-height: 650px;
	justify-content: space-between;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0 24px;
}

div#contenedorQuieresDenunciar{
	align-items: flex-start;
	display: flex;
	justify-content: space-between;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0 24px;
}

div#contenedorRoto{
	align-items: center;
	display: flex;
	flex-direction: column;
	min-height: 440px;
    justify-content: center;
    margin: 0 auto;
	max-width: 500px;
	width: 100%;
	box-sizing: border-box;
	padding: 0 24px;
}

div#contenedorDondeDenunciar{
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0 24px;
}

div#contenedor2Columnas{
	align-items: flex-start;
	display: flex;
	justify-content: space-between;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

div#contenedor3Columnas{
	align-items: flex-start;
	display: flex;
	justify-content: center;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

div#contenedorDenunciaYRecuerda{
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0 24px;
}

/* ------------ COLUMNAS ------------ */

div#cIzq{
	margin-bottom: 40px;
	width: 48%;
	box-sizing: border-box;
}

div#cDer{
	width: 48%;
	box-sizing: border-box;
}

div#bannerRoto{
	height: 440px;
}

/* ------------ MARGINS ------------ */

div#m-120{ margin: 120px 0; }
div#m-80{ margin: 80px 0; }
div#m-60{ margin: 60px 0; }
div#m-40{ margin: 40px 0; }
div#m-30{ margin: 30px 0; }
div#m-20{ margin: 20px 0; }
div#m-10{ margin: 10px 0; }

/* ------------ PADDINGS ------------ */

div#p-120{ padding: 120px 0; }
div#p-80{ padding: 80px 0; }
div#p-60{ padding: 60px 0; }
div#p-40{ padding: 40px 0; }
div#p-30{ padding: 30px 0; }
div#p-20{ padding: 20px 0; }
div#p-10{ padding: 10px 0; }

/* ------------ WIDTH ------------ */

div#w-800{
	max-width: 800px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

div#w-250{
	width: 30%;
	margin: 0 1.5%;
	box-sizing: border-box;
}

/* ------------ IMÁGENES ------------ */

img#logotipoHeader{
	height: 80px;
	width: auto;
	max-width: 100%;
}

img#region{
	height: 80px;
	margin-left: 25px;
	width: auto;
	max-width: 100%;
}

img#telefono{
	display: block;
	height: auto;
	max-height: 585px;
	margin: 0 auto;
	padding: 0;
	max-width: 100%;
}

img#bannerFiscalia{
	display: block;
	height: auto;
	max-width: 100%;
	margin: 0 auto;
}

img#bannerDLG1{
	display: block;
	height: auto;
	max-width: 900px;
	width: 100%;
	margin: 0 auto;
}

img#bannerDLG2{
	display: block;
	height: auto;
	max-width: 800px;
	width: 100%;
	margin: 0 auto;
}

img#logosGob{
	display: block;
	height: auto;
	max-width: 800px;
	width: 100%;
	margin: 0 auto;
}

img#slogan{
	display: block;
	height: auto;
	max-width: 400px;
	width: 100%;
	margin: 0 auto;
}

img#iconMenu{
	height: 22px;
	width: 22px;
}

img#tarjeta{
	height: auto;
	max-width: 400px;
	width: 100%;
}

img#bigIcon{
	height: 120px;
	width: 120px;
	display: block;
	margin: 0 auto;
}

/* ------------ TEXTOS ------------ */

h1{
	color: #df024f;
	font-family: "Coastal-Rough";
	font-size: 60px;
	letter-spacing: -0.025em;
	line-height: 50px;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
}

h2{
	color: #5141fa;
	font-family: "barlowsemicondensed-regular";
	font-size: 30px;
	letter-spacing: -0.05em;
	line-height: 35px;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
}

h3{
	color: #ff5906;
	font-family: "barlowsemicondensed-medium";
	font-size: 40px;
	letter-spacing: -0.05em;
	line-height: 35px;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
}

h4{
	color: #413944;
	font-family: "barlowsemicondensed-medium";
	font-size: 22.5px;
	letter-spacing: -0.05em;
	line-height: 26.25px;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
}

h5{
	color: #5141fa;
	font-family: "barlowsemicondensed-medium";
	font-size: 20px;
	letter-spacing: -0.05em;
	line-height: 24px;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
}

p{
	color: #413944;
	font-family: "barlowsemicondensed-light";
	font-size: 17.5px;
	letter-spacing: -0.05em;
	line-height: 26.25px;
	margin: 0;
	padding: 0;
	text-align: justify;
}

p#frases{
	color: #fff;
	font-family: "barlowsemicondensed-regular";
	font-size: 30px;
	letter-spacing: -0.05em;
	margin: 0;
	opacity: 1;
	padding: 0;
	text-transform: uppercase;
    transition: opacity 0.5s ease-in-out;
	text-align: center;
}

p#frases.oculto {
    opacity: 0;
}

a{
	color: #5141fa;
	font-family: "barlowsemicondensed-light";
	font-size: 17.5px;
	letter-spacing: -0.05em;
	line-height: 26.25px;
	margin: 0;
	padding: 0;
	text-decoration: underline;
}

a#linkMenu{
	color: #fff;
	font-family: "barlowsemicondensed-light";
	font-size: 20px;
	letter-spacing: -0.05em;
	margin-left: 5px;
	margin-right: 5px;
	padding: 10px;
	text-decoration: none;
	text-transform: uppercase;
}

a#linkMenu:hover{
	background-color: #df024f;
	color: #fff;
	font-family: "barlowsemicondensed-light";
	font-size: 20px;
	letter-spacing: -0.05em;
	margin-left: 5px;
	margin-right: 5px;
	padding: 10px;
	text-decoration: none;
	text-transform: uppercase;
}

br{
	margin-bottom: 8.75px;
}

/* ==========================================
   1. ESTILOS GENERALES DEL CARRUSEL
   ========================================== */
        
.carrusel-contenedor {
    position: relative;
    max-width: 1500px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #170326;
}

.carrusel-pista {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carrusel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carrusel-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.carrusel-flecha:hover {
    background-color: #df024f;
    transform: translateY(-50%) scale(1.1);
}

.carrusel-flecha.izquierda {
    left: 20px;
}

.carrusel-flecha.derecha {
    right: 20px;
}

.carrusel-puntos {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.punto {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.punto.activo {
    background-color: #5141fa;
    transform: scale(1.3);
}

/* ==========================================
   CARRUSEL 3D DE IMÁGENES
   ========================================== */

.seccion-carrusel-3d {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
  box-sizing: border-box;
  text-align: center;
}

.carrusel-3d-escena {
  position: relative;
  width: 100%;
  height: 460px;
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.carrusel-3d-contenedor {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

.tarjeta-3d {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
              opacity 0.6s ease;
  user-select: none;
}

.tarjeta-3d img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.carrusel-3d-controles {
  margin-top: 15px;
}

.btn-3d {
  background-color: #5141fa;
  color: #ffffff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  margin: 0 8px;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-3d:hover {
  background-color: #df024f;
  transform: scale(1.1);
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVA OPTIMIZADA PARA MÓVILES (< 768px)
   ========================================================================== */

@media screen and (max-width: 992px) {
    div#w-250 {
        width: 100%;
        margin: 0 0 20px 0;
    }

    div#contenedor3Columnas {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 768px) {

    /* --- OCULTAR ELEMENTOS INNECESARIOS --- */
    img#region {
        display: none !important; /* Oculta la imagen SVG de región en celular */
    }

    /* --- HEADER Y MENÚ DE HAMBURGUESA --- */
    div#contenedorHeader {
        min-height: 80px;
        padding: 15px 24px;
    }

    .btn-hamburguesa {
        display: block; /* Muestra el botón blanco de tres líneas */
    }

    /* Menú emergente al presionar el botón de hamburguesa */
    div#menuHeader {
        display: none; /* Se oculta por defecto en celular */
        flex-direction: column;
        width: 100%;
        background-color: #170326;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 15px 0;
        z-index: 1000;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    /* Clase activa activada con JavaScript */
    div#menuHeader.menu-activo {
        display: flex !important;
    }

    a#linkMenu {
        font-size: 16px;
        padding: 12px 20px;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    /* --- AJUSTE DE ALTURAS EXCESIVAS Y MARGENES --- */
    div.stagePrincipal {
        min-height: 250px;
    }

    div.queEs {
        min-height: auto;
        padding: 20px 0 30px 0;
    }

    div.identifica {
        min-height: auto;
        padding: 30px 0 40px 0;
    }

    div.roto {
        min-height: 300px;
    }

    div#contenedorRoto {
        min-height: 300px;
    }

    /* --- RESTRUCTURACIÓN A 1 COLUMNA CON ESPACIO LATERAL --- */
    div#contenedorQueEs,
    div#contenedorQuieresDenunciar,
    div#contenedor2Columnas,
    div#contenedorDondeDenunciar,
    div#contenedorDenunciaYRecuerda {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    div#cIzq, 
    div#cDer {
        width: 100%;
        margin: 0 0 20px 0;
    }

    /* --- REDUCCIÓN DE MARGENES EXCESIVOS --- */
    div#m-120 { margin: 30px 0 !important; }
    div#m-80  { margin: 25px 0 !important; }
    div#m-60  { margin: 20px 0 !important; }
    div#m-40  { margin: 15px 0 !important; }
    div#m-30  { margin: 15px 0 !important; }
    div#m-20  { margin: 10px 0 !important; }

    /* --- REESCALADO DE CARRUSELES --- */
    .carrusel-contenedor {
        height: 250px;
    }

    .carrusel-3d-escena {
        height: 280px;
    }

    .tarjeta-3d,
    .tarjeta-3d img {
        width: 240px;
        height: 240px;
    }

    /* --- TIPOGRAFÍA MÓVIL Y APOSTAMIENTO --- */
    h1 {
        font-size: 34px;
        line-height: 36px;
        text-align: center;
    }

    h2 {
        font-size: 20px;
        line-height: 24px;
        text-align: center;
    }

    h3 {
        font-size: 26px;
        line-height: 28px;
        text-align: center;
    }

    h4 {
        font-size: 18px;
        line-height: 22px;
    }

    p {
        font-size: 16px;
        line-height: 24px;
    }

    p#frases {
        font-size: 16px;
        line-height: 22px;
        padding: 0 15px;
    }
}