/* ============================================
   RESET Y CONFIGURACIÓN GLOBAL
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Red Hat Text', sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
}


/* ============================================
   HEADER (ENCABEZADO)
   ============================================ */

#header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-left h1 { margin: 0; }

.header-right nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.header-right nav ul li { margin: 0 15px; }

.header-right nav ul li a {
    color: #fff;
    text-decoration: none;
}

.titulo a,
.pagar a {
    text-decoration: none;
    color: inherit;
}


/* ============================================
   MENÚ
   ============================================ */

.menu {
    display: flex;
    gap: 20px;
}

.menu a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

.menu-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-icon div {
    width: 30px;
    height: 4px;
    background-color: white;
}

.menu-mobile {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: #333;
    width: 200px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.menu-mobile a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: white;
}


/* ============================================
   COMPONENTES ESPECIALES
   ============================================ */

.boton {
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    cursor: pointer;
}

.page-break { page-break-before: always; }

.call-to-action {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 250px;
    font-size: 14px;
    font-weight: bold;
}

.call-to-action a {
    color: inherit;
    text-decoration: none;
}


/* ============================================
   PALETA DE COLORES
   ============================================ */

/* Sistema de colores principales */
.texto-verde-medio { color: #7fb896; }
.texto-verde-oscuro { color: #1a4d2e; }
.fondo-verde-medio { background-color: #7fb896; }
.fondo-verde-oscuro { background-color: #1a4d2e; }

.texto-azul-medio { color: #7dacd6; }
.texto-azul-oscuro { color: #1a3a52; }
.fondo-azul-medio { background-color: #7dacd6; }
.fondo-azul-oscuro { background-color: #1a3a52; }

.texto-violeta-medio { color: #b389d4; }
.texto-violeta-oscuro { color: #3d1a52; }
.fondo-violeta-medio { background-color: #b389d4; }
.fondo-violeta-oscuro { background-color: #3d1a52; }

.texto-rojo-medio { color: #d68989; }
.fondo-rojo-oscuro { background-color: #521a1a; }

.texto-amarillo-enfasis { color: #f6a411; }
.texto-rojo-enfasis { color: #f61111; }

/* Paleta V5 legacy */
.fondo-ocre { background-color: #b56918; }

.texto-blanco { color: white; }

.texto-humo { color: #F0F0F0; }
.fondo-humo { background-color: #F0F0F0; }

.texto-noche { color: #141414; }


/* ============================================
   TIPOGRAFÍA
   ============================================ */

/* Características comunes tamaños de texto */
.texto-xl,
.texto-l,
.texto-m,
.texto-s {
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
}

.texto-xl { font-size: clamp(40px, 7vw, 80px); }
.texto-l { font-size: clamp(28px, 5vw, 48px); }

.texto-m {
    font-size: clamp(20px, 3.5vw, 40px);
    line-height: 1.5;
    margin-top: 20px;
}

.texto-s {
    font-size: clamp(14px, 2.5vw, 20px);
    line-height: 1.5;
    margin-top: 20px;
}

/* Elementos de texto */
li { list-style: none; }

p {
    margin-top: 20px;
    text-align: justify;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.8;
}


/* ============================================
   IMÁGENES EMERGENTES
   ============================================ */

.img-emerg-1 {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.img-emerg-2 {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.img-emerg-1:hover .img-emerg-2 { display: block; }


/* ============================================
   TABLAS
   ============================================ */

.tabla-problemas {
    height: 40vh;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 5vh;
}

.tabla-problemas tr { height: 10vh; }
.tabla-problemas td { vertical-align: middle; font-size: clamp(14px, 2vw, 18px);}


/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */

#separa-arriba {
    padding-top: clamp(64px, 10vh, 160px);
    background-color: rgba(0, 0, 0, 1);
    color: #fff;
}

#main-content { width: 100%; }

#main-content a {
    text-decoration: none;
    color: inherit;
}


/* ============================================
   SECCIONES
   ============================================ */

#seccion-portada,
.seccion-full {
    width: 100vw;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.recuadro { width: 70vw; }
#seccion-portada { padding: 80px 50px 50px 50px; }
.seccion-full { padding: 50px; }

.seccion-2columnas {
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
    padding: 0px;
}


/* ============================================
   COLUMNAS
   ============================================ */

.columna {
    padding: 50px;
    width: 50%;
    min-height: 50vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.columna-foto,
#foto-gustavo {
    padding: 0px;
    overflow: hidden;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.image-container {
    padding: 0px;
    overflow: hidden;
    position: relative;
    width: 50%;
}


/* ============================================
   IMÁGENES EN COLUMNAS
   ============================================ */

.columna-foto img,
#foto-gustavo img,
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center;
}


/* ============================================
   BOTONES DE NAVEGACIÓN
   ============================================ */

.columna-foto,
.image-container {
    position: relative;
    overflow: visible;
}

.columna-foto button,
.image-container button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    border: none;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    transition: background 0.2s;
}

.columna-foto button:hover,
.image-container button:hover { background: rgba(0, 0, 0, 0.9); }

.columna-foto .prev,
.image-container .prev { left: 10px; }

.columna-foto .next,
.image-container .next { right: 10px; }


/* ============================================
   FOOTER
   ============================================ */

#footer {
    text-align: center;
    padding: 20px;
    width: 100%;
}

#footer a {
    text-decoration: none;
    color: inherit;
}

#footer p { text-align: center; }


/* ============================================
   RESPONSIVE
   ============================================ */

@media screen and (max-width: 800px) {
    .main-content { flex-direction: column; }

    .columna,
    .columna-foto,
    .image-container { width: 100%; }
}

@media (max-width: 768px) {
    .menu { display: none; }
    .menu-icon { display: flex; }
    .menu-mobile.active { display: block; }
}

@media (max-width: 600px) {
    .call-to-action {
        font-size: 12px;
        max-width: 200px;
        padding: 10px;
    }

    .columna-foto button,
    .image-container button {
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
}
