﻿/* =========================================
   VARIABLES GLOBALES Y RESET 
   ========================================= */
:root {
    --navy: #313945;
    --gold: #c9a892;
    --cyan: #00B1EA;
    --bg: #f1f1f1;
    --txt: #1E293B;
    --green-btn: #A2BD3D;
}

body {
    background-color: var(--bg);
    margin: 0;
    font-family: poppins, sans-serif !important;
    font-style: normal;
    font-weight: 200;
    text-align: justify;
}

* {
    box-sizing: border-box;
}

details > summary {
    cursor: pointer;
}
/* =========================================
   VARIABLES GLOBALES Y RESET 
   ========================================= */

.callout {
    background: #eef8fc;
    border-left: 4px solid var(--cyan);
    padding: 16px;
    border-radius: 8px;
    margin: 15px 0;
}

/* =========================================
   ESTRUCTURA GENERAL Y ENCABEZADO
   ========================================= */
.wrap {
    max-width: 1180px;
}

.wrap-lg {
    max-width: 1520px;
    margin: auto;
}

header {
    background: var(--navy);
    color: #fff;
    padding: 14px 28px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

header .navbar-brand {
    display: inline-flex;
    align-items: center;
}

header .navbar-toggler {
    display: none;
}

header .navbar-collapse {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}

header .socialbox {
    display: flex;
    align-items: center;
}

.logo {
    font-weight: 700;
}

/* =========================================
   SECCIÓN BANNER PRINCIPAL
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--navy), #1a222b);
    color: #fff;
    padding: 150px 30px 60px;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
}

    .hero .wrap {
        position: relative;
        z-index: 2;
        /* Evita que el texto invada el espacio de la imagen */
        max-width: 60%;
    }

    .hero h1 {
        margin: 0 0 10px;
        font-size: 2.4rem;
        text-transform: none;
        letter-spacing: normal;
    }

    .hero p {
        font-size: 1rem;
        font-weight: 400;
        max-width: 700px;
        margin-bottom: 0;
    }

    /* Configuración de la imagen al 90% y centrada */
    .hero > img {
        position: absolute;
        right: 0;
        top: 50%; /* La bajamos a la mitad del contenedor */
        height: 100%; /* Ocupa el 90% del alto del banner */
        width: auto; /* Mantiene la proporción original */
        /* Mueve 50% a la derecha (para cortarla) y -50% hacia arriba (para centrarla) */
        transform: translate(47%, -50%);
        z-index: 1;
        opacity: 0.15; 
        pointer-events: none;
    }

/* =========================================
   MEDIA QUERIES (Ajustes para móviles)
   ========================================= */
@media (max-width: 900px) {
    .hero {
        padding-top: 180px;
    }

        .hero .wrap {
            max-width: 100%;
            position: relative;
            z-index: 2;
        }

        .hero > img {
            /* En móviles hereda el 90% y el centrado automático, 
           solo bajamos un poco la opacidad para priorizar lectura */
            opacity: 0.10;
        }
}

@media (max-width: 900px) {
    header .navbar {
        flex-direction: column;
        align-items: center;
    }

    header .navbar-collapse {
        display: block;
        width: 100%;
        text-align: center;
    }

    header .socialbox {
        justify-content: center;
    }

   

    .content-card-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Iconos de redes sociales 
   ========================================= */

.socialbox a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    margin-right: 15px;
    transition: opacity 0.3s ease;
}

    .socialbox a:hover {
        opacity: 0.7;
    }


/* =========================================
   GRID DE TARJETAS DE CONTENIDO
   ========================================= */
dialog {
    border: none;
    border-radius: 14px;
    width: 90%;
    margin: auto;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.44);
}