/* 1. FUENTES */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

/* 2. VARIABLES (Solo colores de marca) */
:root {
    --P1: #F39C12;    /* Naranja */
    --P2: #001F4F;    /* Azul TCY */
    --P3: #FFFFFF;    /* Blanco */
    --S1: #475569;    /* Gris Texto */
    --S2: #14C055;    /* Verde WhatsApp */
}

/* 3. RESET & BASES */
html {
    box-sizing: border-box;
    font-size: 62.5%; 
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: "Manrope", sans-serif;
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--S1);
    margin: 0;
}
button, input, textarea {
    font-family: "Manrope", sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--P3);
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 4. TIPOGRAFÍA RESPONSIVA */
h1, h2, h3 {
    margin: 0;
    line-height: 1.05;
}

h1 {
    font-size: clamp(4.8rem, 11vw, 7.2rem);
    font-weight: 400;
}

h2 {
    color: var(--P2);
    font-weight: 800;
}

/* EXCEPCIONES DE H2 */
@media (max-width: 590px) {
    .contador .contador_titulo {
        font-size: clamp(2.8rem, 6vw, 3.6rem);
    }
    .noticias .noticias_titulo {
        font-size: clamp(2.7rem, 6vw, 3.6rem);
    }
}


p {
    margin: 0;
}

/* El estilo de la palabra naranja con subrayado de tu Figma */
.resaltado {
    color: var(--P1);
    display: inline-block;
    position: relative;
    font-weight: 800;
}
.resaltado::after {
    content: "";
    display: block;
    width: 100%;
    height: 6px; 
    background-color: var(--P1);
    margin-top: -5px;
}

/* 5. LAYOUT DIRECTO */
.contenedor {
    max-width: 125rem; /* Valor directo */
    width: 90%;
    margin: 0 auto;
}

.spacing {
    margin-top: 9rem; /* Valor directo */
}
/* CELULAR */
@media (max-width: 495px) {
    .spacing {
        margin-top: 8rem;
    }
}

/* Grid para servicios (3 col) */
.grid-3 {
    display: grid;
    gap: 3rem;
}
@media (min-width: 900px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* 6. BOTONES & OVERLAY */
.boton {
    border: none;
    cursor: pointer;
    display: inline-block;
    color: var(--P3);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.4rem;
    transition: all .2s ease;
}
.boton:hover {
    transform: translateY(-2px);
}
.boton--n { background-color: var(--P1); }
.boton--n:hover { background-color: #e1900f; }

.boton--v { background-color: var(--S2); }
.boton--v:hover { background-color: #10a84a; }

/* Fondo azul transparente para los Heros */
.overlay {
    background: linear-gradient(to right, rgba(0, 31, 79, 0.9), rgba(0, 31, 79, 0.7));
    padding: 10rem 0;
    text-align: center;
}

.hero-main-wrapper {
    background-image: url('../media/bg_1.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

/* El degradado azul ahora vive aquí para cubrir Header y Hero por igual */
.hero-main-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0, 31, 79, 0.9), rgba(0, 31, 79, 0.5));
    z-index: 1;
}

.header {
    position: relative;
    width: 100%;
    z-index: 10;
    padding: 2.8rem 0;
    background: transparent;
}

.header_burger {
    display: none;
    cursor: pointer;
}

.header_contenedor {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.header_contenedor .header_logo {
    color: var(--P3);
    font-weight: 800;
    font-size: 2.6rem;
    letter-spacing: -1px;
}

/* Navegación Principal */
.header .header_nav ul {
    display: flex;
    gap: 3rem;
}

.header .header_nav a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 16px;
    letter-spacing: 1.2px;
    position: relative;
    transition: color .2s linear;
}

.header .header_nav a.activo,
.header .header_nav a:hover {
    color: var(--P3);
}

/* Indicador de página activa */
.header .header_nav a.activo::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--P1);
    position: absolute;
    bottom: -6px;
}

/* Servicios - Flecha y Rotación */
.header .header_nav a.rotate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.header .header_nav a.rotate svg {
    transform: rotateZ(0deg);
    transition: transform .2s linear;
}

.header .header_nav a.rotate svg path {
    transition: fill-opacity .2s linear;
}

/* ==========================================================================
   SERVICIOS - DROPDOWN (MODAL)
========================================================================== */
.header .header_item-dropdown {
    position: relative;
    padding-bottom: 1rem; /* Puente para evitar que se cierre el menú */
}

/* Efectos de Hover aplicados al LI PADRE */
.header .header_item-dropdown:hover .rotate svg {
    transform: rotateZ(180deg);
}

.header .header_item-dropdown:hover .rotate svg path {
    fill-opacity: 1;
}

/* Contenedor del Modal */
.header .header_item-dropdown .header_dropdown {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--P3);
    min-width: 25rem;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
    
    /* Estado Oculto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

/* Mostrar Modal al hacer Hover en el LI */
.header .header_item-dropdown:hover .header_dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Links internos del Modal */
.header_dropdown li {
    margin-bottom: 0; /* Controlado por el gap del contenedor */
}

.header_nav .header_dropdown a {
    color: var(--P2) !important; /* Azul TCY */
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0;
    text-transform: none;
    transition: color 0.3s ease;
}

.header_nav .header_dropdown a:hover {
    color: var(--P1) !important; /* Naranja TCY */
}

/* Botón Header */
.header_boton {
    letter-spacing: 1px;
    border-radius: 12px;
    padding: 1rem 3rem;
}

/* LAPTO */
@media (max-width: 1225px) {
    .header_burger {
        display: contents;
    }

    .header_boton {
        display: none;
    }

    .header_nav {
        padding: 0 1.5rem;
        max-height: 0;

        opacity: 0;
        visibility: hidden; 
        transition: 
            max-height 0.5s ease, 
            padding 0.5s ease, 
            opacity 0.2s ease,
            visibility 0s 0.2s;

        background: #fff;
        width: 100%;
        position: absolute;
        top: 140%;
        border-radius: 10px;
    }

    .header_nav.activo {
        opacity: 1;
        visibility: visible;
        padding: 1.5rem;
        max-height: 500px;

        transition: 
            max-height 0.5s ease, 
            padding 0.5s ease, 
            opacity .5s ease,
            visibility 0s 0s;
    }

    .header .header_nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    .header .header_nav.activo > ul > li {
        width: fit-content;
    }

    .header .header_nav .header_item-dropdown {
        padding-bottom: 0;
    }

    .header .header_nav.activo a {
        color: var(--P2);
    }

    .header .header_nav.activo a.activo,
    .header .header_nav.activo a:hover {
        color: var(--P2);
    }
}

/* ==========================================================================
   HERO
========================================================================== */

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;

    color: var(--P3);
}

.hero_contenedor {
    position: relative;
    display: grid;
    gap: 5rem;
    align-items: center;
    grid-template-columns: 1fr 1fr;
}

/* Texto del Hero */
.hero_texto {
    display: flex;
    flex-direction: column;
    gap: 3.8rem;

    margin-top: -2rem;
}

.hero_texto .hero_titulo {
    color: var(--P3);
    letter-spacing: -1.6px;
}

.hero_texto .hero_titulo span {
    display: block; /* Para que cada línea del título respire */
}

.hero_texto .hero_titulo span:nth-child(1) {
    color: var(--P1);
    font-weight: 800;
}
.hero_texto .hero_titulo span:nth-child(2) {
    font-size: clamp(3.6rem, 7.3vw, 4.8rem);
    font-weight: 700;
    line-height: 1.2;
}

.hero_texto .hero_parrafo {
    margin-top: -2px;
    font-size: 2rem;
    max-width: 55rem;
}

/* Badge "Respaldado por..." */
.hero_texto .hero_etiqueta {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    padding: 13px 24px 12px;
    border-radius: 12px;
    display: inline-flex;
    width: fit-content;
}

.hero_texto .hero_etiqueta p {
    font-size: 1.6rem;
    font-weight: bold;
}


/* ==========================================================================
   FORMULARIO HERO
========================================================================== */
.hero .hero_formulario {
    max-width: 50rem;
}

.hero_formulario form {
    width: 100%;
    background-color: var(--P3);
    padding: 4rem;
    border-radius: 2rem;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero_formulario legend {
    color: var(--P2);
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: block;
    width: 100%;
}
.hero_formulario legend::after {
    content: '';
    width: 5rem;
    height: 4px;
    background-color: var(--P1);
    display: block;
}

.hero_formulario label {
    display: block;
    color: var(--S1);
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero_formulario input[type="text"],
.hero_formulario input[type="tel"] {
    width: 100%;
    padding: 1.5rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.8rem;
    background-color: #F8FAFC;
    font-size: 1.6rem;
}

.hero_formulario .hero_boton-form {
    width: 100%;
    padding: 2rem;
    margin-top: 1rem;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.hero_formulario form span {
    color: var(--S1);
    font-size: 1.3rem;
    text-align: center;
    display: block;
}

/* LAPTO */
@media (max-width: 1134px) {
    .header {
        padding: 3.4rem 0 0 0;
    }

    .hero {
        padding: 9rem 0;
    }

    /* Texto del Hero */
    .hero_texto .hero_titulo {
        text-wrap: nowrap;
        font-size: clamp(4.8rem, 9vw, 6.2rem);
    }

    .hero_texto .hero_titulo span:nth-child(2) {
        font-size: clamp(3.6rem, 5.3vw, 4rem);
    }

    .hero_texto .hero_parrafo {
        font-size: 1.8rem;
    }

    /* Badge "Respaldado por..." */
    .hero_texto .hero_etiqueta {
        gap: 1.2rem;
        padding: 11px 22px 10px;
        border-radius: 10px;
    }

    .hero_texto .hero_etiqueta p {
        font-size: 1.4rem;
    }

    /* ==========================================================================
    FORMULARIO HERO
    ========================================================================== */

    .hero_formulario form {
        padding: 3.6rem;
        border-radius: 1.8rem;
        gap: 1.8rem;
    }

    .hero_formulario legend {
        font-size: 2.2rem;
        margin-bottom: .8rem;
    }
    .hero_formulario legend::after {
        width: 4.8rem;
    }

    .hero_formulario label {
        font-size: 1.12rem;
    }

    .hero_formulario input[type="text"],
    .hero_formulario input[type="tel"] {
        padding: 1.4rem;

        border-radius: 0.8rem;

        font-size: 1.4rem;
    }

    .hero_formulario .hero_boton-form {
        padding: 1.6rem;
        margin-top: 1rem;
        font-size: 1.3rem;
        letter-spacing: .9px;
    }

    .hero_formulario form span {
        font-size: 1.2rem;
    }

}

/* TABLET */
@media (max-width: 900px) {
    .hero_contenedor {
        position: relative;
        display: grid;
        gap: 5rem;
        align-items: center;
        grid-template-columns: 1fr;
    }
}

/* CELULAR */
@media (max-width: 495px) {
    .header_contenedor .header_logo {
        font-size: 2.2rem;
    }

    .hero_texto .hero_titulo {
        text-wrap: wrap;
        font-size: clamp(4.8rem, 11vw, 6.2rem);
    }
    
    .hero_texto .hero_parrafo {
        font-size: 1.65rem;
    }

    .hero_texto .hero_etiqueta {
        gap: 1rem;
        padding: 9px 20px 8px;
    }
    .hero_texto .hero_etiqueta p {
        font-size: 1.2rem;
    }
    .hero_texto .hero_etiqueta svg {
        width: 20px;
        height: 19px;
    }

    /* ==========================================================================
    FORMULARIO HERO
    ========================================================================== */

    .hero_formulario form {
        padding: 3rem 3.2rem;
        border-radius: 1.5rem;

        gap: 1.75rem;
    }

    .hero_formulario legend {
        font-size: 2rem;
        margin-bottom: .8rem;
    }
    .hero_formulario legend::after {
        width: 4.6rem;
    }

    .hero_formulario label {
        font-size: 1.1rem;
    }

    .hero_formulario input[type="text"],
    .hero_formulario input[type="tel"] {
        padding: 1.2rem;
        font-size: 1.25rem;
    }

    .hero_formulario .hero_boton-form {
        padding: 1.4rem;
        margin-top: .6rem;
        font-size: 1.2rem;
        letter-spacing: .8px;
    }

    .hero_formulario form span {
        font-size: 1.08rem;
    }
}


/* ==========================================================================
    ESTILOS DEL FOOTER
========================================================================== */
.footer {
    background-color: var(--P2);
    color: var(--P3);
    padding: 9rem 0 4.2rem;
}

.footer_contenedor {
    gap: 4rem;
}

.footer_titulo {
    font-weight: 800;
    font-size: 2.4rem;
    letter-spacing: -1px;

    margin-bottom: 3.2rem;
}

.footer_texto {
    font-size: 1.6rem;
    line-height: 2.65rem;
    color: #d1d1d1;
    margin-bottom: 3.2rem;
}

/* Iconos Sociales */
.footer_sociales {
    display: flex;
    gap: 1.6rem;
}

.social_icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.social_icon:hover {
    background: var(--P1);
}

/* Links de Servicios */
.footer_links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer_sub-titulo {
    font-weight: bold;
    font-size: 1.6rem;
    letter-spacing: 1px;

    margin-bottom: 3.2rem;
}

.footer_links a {
    font-size: 1.4rem;
    text-transform: none;

    color: #d1d1d1;
    transition: color 0.3s;
}

.footer_links a:hover {
    color: #F39C12;
}

/* Info de Contacto */
.footer_contacto {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer_contacto li {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    color: #d1d1d1;
    font-size: 1.4rem;
}

.footer_contacto li svg {
    position: relative;
    top: 2.5px;
    
    flex-shrink: 0;
}

/* Footer Bottom */
.footer_bottom {
    margin-top: 8rem;
    padding-top: 2.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer_bottom_contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer_bottom_contenedor .copy {
    font-size: 1.2rem;
    color: #d1d1d1;
}

.legal_links a {
    font-size: 1.2rem;
    color: #d1d1d1;
    text-transform: none;

    margin-left: 2rem;
    transition: color 0.3s;
}

.legal_links a:hover {
    color: #fff;
}

/* LAPTO */
@media (max-width: 1134px) {
    .footer_texto {
        font-size: 1.5rem;
        margin-bottom: 3.1rem;
    }

    .social_icon {
        width: 39px;
        height: 39px;
        border-radius: 11px;
        font-size: 1.1rem;
    }

    .social_icon svg {
        width: 19px;
        height: 19px;
    }

    .footer_sub-titulo {
        font-size: 1.5rem;
        letter-spacing: .9px;
        margin-bottom: 3.1rem;
    }

    .footer_links a {
        font-size: 1.35rem;
    }

    .footer_contacto li {
        gap: .9rem;
        font-size: 1.35rem;
    }

    .footer_bottom_contenedor .copy {
        font-size: 1.1rem;
    }

    .legal_links a {
        font-size: 1.1rem;
        margin-left: 1.9rem;
    }
}

/* CELULAR */
@media (max-width: 495px) {
    .footer {
        background-color: var(--P2);
        color: var(--P3);
        padding: 8rem 0 3rem;
    }

    .footer_bottom_contenedor {
        flex-direction: column;
        gap: 1.2rem;
    }

    .legal_links {
        display: flex;
        gap: 1rem;
    }

    .footer_titulo {
        font-size: 2.2rem;
        letter-spacing: -1px;
        margin-bottom: 3.2rem;
    }

    .footer_texto {
        font-size: 1.4rem;
        margin-bottom: 3rem;
    }

    .social_icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .social_icon svg {
        width: 18px;
        height: 18px;
    }

    .footer_sub-titulo {
        font-size: 1.4rem;
        letter-spacing: .8px;
        margin-bottom: 3rem;
    }

    .footer_links a {
        font-size: 1.3rem;
    }

    .footer_contacto li {
        gap: .8rem;
        font-size: 1.3rem;
    }

    .footer_bottom_contenedor .copy {
        font-size: 1rem;
    }

    .legal_links a {
        font-size: 1rem;
        margin-left: 0rem;
    }
}