/* GLOBAL */
/* 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);
    background-color: #F9F9F9;
    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, 6rem);
    font-weight: 400;
}

h2 {
    color: var(--P2);
    font-weight: 800;
    font-size: clamp(3.4rem, 5vw, 4.4rem);
}

/* LAPTO */
@media (max-width: 1134px) {
    h2 {
        font-size: clamp(3.4rem, 6vw, 4rem);
    }
}
/* PRE - CELULAR */
@media (max-width: 590px) {
    h2 {
        font-size: clamp(3rem, 6vw, 3.4rem);
    }
}


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_9.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
    min-height: 614px;

    display: flex;
    flex-direction: column;
}

.hero-main-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    
    background: linear-gradient(90deg, rgba(0, 47, 119, 0.7) 0%, rgba(0, 31, 79, 0) 100%), rgba(6, 45, 106, 0.5);
    mix-blend-mode: multiply;
    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;
}

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

    margin-top: -9.8rem;
}

.hero_texto .hero_titulo {
    color: var(--P3);
    letter-spacing: -1.6px;
    text-transform: uppercase;
    font-weight: bold;
}

.hero_texto .hero_titulo span:nth-child(1) {
    color: var(--P1);
    font-weight: 800;
}
.hero_texto .hero_titulo span:nth-child(2) {
    color: var(--P1);
    line-height: 1.2;
    display: block;    
}

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


/* 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, 11vw, 5.2rem);
    }

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

}

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

@media (max-width: 650px) {
    .hero_texto .hero_titulo {
        text-wrap: nowrap;
        font-size: clamp(4.2rem, 8vw, 5.2rem);
    }

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

/* 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, 10.5vw, 5.2rem);
    }
    
    .hero_texto .hero_parrafo {
        font-size: 1.65rem;
    }
}


/* ==========================================================================
    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;
    }
}


/* BLOG */


/* --- TARJETA DESTACADA --- */

.destacado {
    margin-top: -10rem;
    position: relative;
    z-index: 999;
}

.tarjeta-destacada {
    min-height: 43rem;

    background-color: #ffffff;
    border-radius: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.tarjeta-destacada__imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
}

.tarjeta-destacada__info {
    padding: 4.8rem;
    display: flex;
    flex-direction: column;
}

.tarjeta-destacada__tag {
    color: var(--P1);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1.2px;
    margin-bottom: 2rem;
}

.tarjeta-destacada__titulo {
    color: var(--P2);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.tarjeta-destacada__extracto {
    color: #40484F;
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 4rem;
}

.tarjeta-destacada__pie {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boton-leer {
    background-color: var(--P2);
    color: #ffffff;
    padding: 1.2rem 3.2rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: none;
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: .8rem;
}

.tiempo-lectura {
    color: #707880;
    font-weight: 500;
    font-size: 1.4rem;
}


/* --- RESPONSIVO --- */

@media (max-width: 1134px) {
    .tarjeta-destacada__info { padding: 4rem; }
}

@media (max-width: 900px) {
    .tarjeta-destacada {
        grid-template-columns: 1fr;
    }
    .tarjeta-destacada__imagen {
        height: 300px;
    }
    .destacado {
        position: relative;
        bottom: 0;
        margin-top: -10rem;
        transform: translateX(0);
        left: 0;
    }
}

@media (max-width: 675px) {
    .tarjeta-destacada__titulo {
        font-size: 2.8rem;
    }

    .tarjeta-destacada__extracto {
        font-size: 1.55rem;
    }

    .tarjeta-destacada__info {
        padding: 3.5rem;
    }
}

@media (max-width: 625px) {
    .tarjeta-destacada__titulo {
        font-size: 2.7rem;
    }

    .tarjeta-destacada__extracto {
        font-size: 1.5rem;
    }

    .tarjeta-destacada__info {
        padding: 3.2rem;
    }
}

@media (max-width: 495px) {
    .tarjeta-destacada__titulo {
        font-size: 2.6rem;
    }

    .tarjeta-destacada__info {
        padding: 3rem;
    }

    .boton-leer {
        font-size: 1.5rem;
        padding: 1rem 3rem;
    }

    .tiempo-lectura {
        font-size: 1.3rem;
    }
}


/* ARTICULOS - SECCION */


/* --- ENCABEZADO --- */
.articulos__encabezado {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4.8rem;
}

.articulos__titulo-seccion {
    font-size: 3rem;
    color: var(--P2);
}

.articulos__linea {
    width: 96px;
    height: 6px;
    background-color: var(--P1);
    margin-top: 1.4rem;
    border-radius: 12px;
}

.articulos__navegacion {
    display: flex;
    gap: 1.5rem;
}

.btn-flecha {
    width: 25.5px;
    height: 30px;
    border-radius: 12px;
    border: 1px solid #C0C7D1;
    background: #fff;
    cursor: pointer;
}

/* --- GRID --- */
.articulos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.6rem;
}

/* --- TARJETA DE ARTÍCULO --- */
.post-card {
    background-color: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-8px);
}

.post-card__imagen {
    position: relative;
    height: 220px;
}

.post-card__imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--P1);
    color: var(--P3);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
}

.post-card__contenido {
    padding: 3rem;
}

.post-card__titulo {
    font-size: 2rem;
    color: var(--P2);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.post-card__extracto {
    font-size: 1.4rem;
    color: #40484F;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.post-card__link {
    color: var(--P1);
    font-weight: 700;
    text-transform: none;
    font-size: 1.4rem;
    text-decoration: none;
}

/* --- TARJETA CTA INTERNA --- */
.post-cta-card {
    background-color: var(--P2); /* Fondo Azul */
    border-radius: 30px;
    padding: 3.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--P3);
}

.post-cta-card__titulo {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.post-cta-card__desc {
    font-size: 1.4rem;
    opacity: 0.8;
    margin-bottom: 3.5rem;
    line-height: 1.5;
}

.post-cta-card__boton {
    background-color: var(--P1);
    color: var(--P3);
    padding: 1.2rem 2.4rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: none;
    transition: transform 0.3s;
}

.post-cta-card__boton:hover {
    transform: scale(1.04);
}

/* --- RESPONSIVO --- */
@media (max-width: 1134px) {
    .articulos__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .articulos__encabezado {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
}

@media (max-width: 750px) {
    .articulos__grid {
        grid-template-columns: 1fr;
    }
    .post-card__contenido {
        padding: 2.5rem;
    }
}





/* CTA - SECCION */

.cta {
    padding-bottom: 9rem;
}

.cta__bloque {
    background-color: var(--P2);
    border-radius: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

/* --- CONTENIDO IZQUIERDA --- */
.cta__contenido {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.cta__etiqueta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--P1);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1.4px;
    margin-bottom: 2.5rem;
}

.cta__titulo {
    color: var(--P3);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.cta__titulo span {
    color: var(--P1);
}

.cta__texto {
    color: #cbd5e0;
    font-size: 1.7rem;
    line-height: 1.6;
    margin-bottom: 3.5rem;
    max-width: 450px;
}

.cta__boton {
    display: inline-flex;
    gap: .8rem;
    align-items: center;
    
    padding: 1.75rem 4rem;
    border-radius: 8px;
    letter-spacing: 1px;
}

/* --- IMAGEN DERECHA --- */
.cta__imagen-caja {
    width: 100%;
    height: 100%;
    max-height: 500px;
}

.cta__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

/* ==========================================
   RESPONSIVO
   ========================================== */

/* Laptop / Tablet Horizontal */
@media (max-width: 1134px) {
    .cta__contenido {
        padding: 4rem;
    }

    .cta__titulo {
        font-size: 3.4rem;
    }
}

/* Tablet Vertical / Móvil Grande */
@media (max-width: 900px) {
    .cta__bloque {
        grid-template-columns: 1fr; /* Apilar verticalmente */
    }

    .cta__imagen-caja {
        order: -1; /* La imagen pasa arriba en móvil */
        height: 350px;
    }

    .cta__contenido {
        padding: 5rem 3rem;
        align-items: center;
        text-align: center;
    }
    
    .cta__texto {
        max-width: 100%;
    }
}

/* Móvil */
@media (max-width: 495px) {
    .cta {
        padding: 4rem 0;
    }

    .cta__bloque {
        border-radius: 20px;
    }

    .cta__titulo {
        font-size: 2.8rem;
    }

    .cta__imagen-caja {
        height: 250px;
    }

    .cta__boton {
        width: 100%;
        text-align: center;
        padding: 1.75rem 3rem;
    }
}

@media (max-width: 420px) {
    .cta__boton {
        justify-content: center;
        padding: 1.6rem 2rem;
    }
}