/* --- 1. CONFIGURACIÓN DE VARIABLES UI (Guía de Marca) --- */
:root {
    --azul-marino: #0A2F4B;
    --dorado: #C09B4D;
    --plata: #BDBDBD;
    --azul-horizonte: #1A6FA5;
    --azul-claro: #56A3D9;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-main: #334155;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. RESET Y TIPOGRAFÍA BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif; /* Texto de cuerpo */
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Encabezados oficiales */
    color: var(--azul-marino);
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 3. HEADER & NAVEGACIÓN UI/UX --- */
.site-header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(10, 47, 75, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--dorado);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 60px; /* Aumentamos de 42px a 55px para darle mayor presencia */
    width: auto;   /* Mantiene la proporción original de la imagen sin deformarla */
    display: block;
    transition: var(--transition);
}

.logo img:hover {
    opacity: 0.9;
}
.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--azul-marino);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    position: relative;
}

/* Efecto hover elegante UX (línea inferior animada) */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--dorado);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--azul-horizonte);
}

/* Botón destacado dentro del menú estilo UI primario (#1A6FA5) */
.btn-nav-action {
    background-color: var(--azul-horizonte);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(26, 111, 165, 0.25);
}

.btn-nav-action::after {
    display: none !important; /* Quitamos la línea inferior en botones */
}

.btn-nav-action:hover {
    background-color: var(--azul-marino) !important;
    transform: translateY(-2px);
}

/* Botón hamburguesa oculto en desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--azul-marino);
    cursor: pointer;
}

/* --- 4. FOOTER UI/UX --- */
.site-footer {
    background-color: var(--azul-marino);
    color: var(--white);
    margin-top: auto;
    padding: 4rem 0 0 0;
    border-top: 4px solid var(--dorado);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3, .footer-col h4 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.brand-highlight {
    color: var(--dorado);
}

.footer-col p {
    color: var(--plata);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--plata);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--dorado);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--dorado);
    color: var(--azul-marino);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1.2rem 0;
    color: var(--plata);
    font-size: 0.85rem;
}

/* --- 5. MEDIA QUERIES (RESPONSIVIDAD UX MÓVIL) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .nav-menu.active {
        max-height: 350px;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 2rem;
        gap: 1rem;
    }

    .nav-menu a {
        width: 100%;
        padding: 0.5rem 0;
    }

    .btn-nav-action {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
/* --- ESTILOS DE LA SECCIÓN HERO --- */
.hero-section {
    background: linear-gradient(135deg, var(--azul-marino) 0%, #0c3d63 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-section .badge {
    background-color: var(--dorado);
    color: var(--azul-marino);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.2rem;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    color: var(--white);
    line-height: 1.2;
}

.hero-section h1 span {
    color: var(--dorado);
}

.hero-section p {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- BOTONES PERSONALIZADOS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--azul-horizonte);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 111, 165, 0.3);
}

.btn-primary:hover {
    background-color: var(--azul-claro);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--dorado);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--dorado);
    color: var(--azul-marino);
    transform: translateY(-2px);
}

/* --- SECCIÓN DE SERVICIOS Y CARDS --- */
.features-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.3rem;
    color: var(--azul-marino);
    margin-bottom: 0.8rem;
}

.section-header p {
    color: #64748b;
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(10, 47, 75, 0.05);
    transition: var(--transition);
    border-top: 4px solid var(--azul-horizonte);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(10, 47, 75, 0.1);
    border-top-color: var(--dorado);
}

.icon-wrapper {
    font-size: 2.5rem;
    color: var(--azul-horizonte);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--azul-marino);
}

.feature-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
}

/* --- SECCIÓN DE CERTIFICACIONES --- */
.certifications-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.cert-card {
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.cert-card:hover {
    border-color: var(--dorado);
    transform: translateY(-3px);
}

.cert-card i {
    font-size: 2.5rem;
    color: var(--dorado);
    margin-bottom: 1rem;
}

.cert-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--azul-marino);
}

.cert-card p {
    font-size: 0.9rem;
    color: #64748b;
}

/* --- ESTILOS DE LA PÁGINA DE SERVICIOS --- */
.services-hero-section {
    padding: 5rem 0 3rem 0;
    background-color: var(--white);
}

.services-hero-section .badge {
    background-color: #e0f2fe;
    color: var(--azul-horizonte);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
}

.services-hero-section h1 {
    font-size: 2.7rem;
    color: var(--azul-marino);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.services-hero-section h1 span {
    color: var(--azul-horizonte);
}

.services-hero-section p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Cuadrícula de Servicios */
.services-grid-section {
    padding: 3rem 0 6rem 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(10, 47, 75, 0.03);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--azul-horizonte);
    box-shadow: 0 10px 30px rgba(10, 47, 75, 0.08);
    transform: translateY(-4px);
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.service-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #cbd5e1;
}

.service-badge {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.service-icon {
    font-size: 1.4rem;
    color: var(--azul-horizonte);
    background-color: #f0fdf4;
    padding: 0.5rem;
    border-radius: 8px;
}

.service-card h3 {
    font-size: 1.35rem;
    color: var(--azul-marino);
    margin-bottom: 1.2rem;
}

.service-list {
    list-style: disc;
    padding-left: 1.2rem;
}

.service-list li {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-hero-section h1 {
        font-size: 2rem;
    }
}
/* --- ESTILOS DE LA PÁGINA DE CERTIFICACIONES --- */
.cert-hero-section {
    padding: 5rem 0 3rem 0;
    background-color: var(--white);
}

.cert-hero-section .badge {
    background-color: #fef3c7;
    color: #92400e;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
}

.cert-hero-section h1 {
    font-size: 2.7rem;
    color: var(--azul-marino);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.cert-hero-section h1 span {
    color: var(--dorado);
}

.cert-hero-section p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Cuadrícula */
.cert-grid-section {
    padding: 3rem 0 6rem 0;
    background-color: var(--white);
}

.cert-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.cert-detail-card {
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 3rem 2rem;
    transition: var(--transition);
    border-top: 4px solid var(--dorado);
}

.cert-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(10, 47, 75, 0.08);
    border-top-color: var(--azul-horizonte);
}

.cert-icon-wrapper {
    font-size: 2.5rem;
    color: var(--dorado);
    margin-bottom: 1.5rem;
}

.cert-detail-card h3 {
    font-size: 1.35rem;
    color: var(--azul-marino);
    margin-bottom: 1rem;
}

.cert-detail-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cert-benefits {
    list-style: none;
    padding: 0;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.2rem;
}

.cert-benefits li {
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cert-benefits li i {
    color: var(--azul-horizonte);
    font-size: 0.85rem;
}
/* --- ESTILOS DE LA PÁGINA DE PRODUCTOS --- */
.products-hero-section {
    padding: 5rem 0 3rem 0;
    background-color: var(--white);
}

.products-hero-section .badge {
    background-color: #e0f2fe;
    color: var(--azul-horizonte);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
}

.products-hero-section h1 {
    font-size: 2.7rem;
    color: var(--azul-marino);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.products-hero-section h1 span {
    color: var(--dorado);
}

.products-hero-section p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Cuadrícula de Productos */
.products-grid-section {
    padding: 3rem 0 6rem 0;
    background-color: var(--white);
}

.products-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    border-top: 4px solid var(--azul-horizonte);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(10, 47, 75, 0.08);
    border-top-color: var(--dorado);
}

.product-badge-status {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: #dcfce7;
    color: #166534;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.product-badge-status.status-soon {
    background-color: #f1f5f9;
    color: #475569;
}

.product-icon-wrapper {
    font-size: 2.3rem;
    color: var(--azul-horizonte);
    margin-bottom: 1.2rem;
}

.product-card h3 {
    font-size: 1.35rem;
    color: var(--azul-marino);
    margin-bottom: 0.8rem;
}

.product-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.2rem;
}

.product-features-list li {
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.product-features-list li i {
    color: var(--dorado);
    font-size: 0.85rem;
}

.product-footer {
    margin-top: auto;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
}

.btn-outline-dark {
    border: 2px solid var(--azul-marino);
    color: var(--azul-marino);
    background: transparent;
}

.btn-outline-dark:hover {
    background-color: var(--azul-marino);
    color: var(--white);
}
/* --- ESTILOS DE LA PÁGINA DE CASOS DE ÉXITO --- */
.cases-hero-section {
    padding: 5rem 0 3rem 0;
    background-color: var(--white);
}

.cases-hero-section .badge {
    background-color: #fef3c7;
    color: #92400e;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
}

.cases-hero-section h1 {
    font-size: 2.7rem;
    color: var(--azul-marino);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.cases-hero-section h1 span {
    color: var(--azul-horizonte);
}

.cases-hero-section p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Cuadrícula de Casos */
.cases-grid-section {
    padding: 3rem 0 6rem 0;
    background-color: var(--white);
}

.cases-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.case-card {
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    border-top: 4px solid var(--dorado);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(10, 47, 75, 0.08);
    border-top-color: var(--azul-horizonte);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--azul-horizonte);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-metric {
    background-color: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.case-card h3 {
    font-size: 1.35rem;
    color: var(--azul-marino);
    margin-bottom: 0.8rem;
}

.case-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.case-highlights {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.2rem;
}

.case-highlights li {
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.case-highlights li i {
    color: var(--azul-horizonte);
    font-size: 0.85rem;
}

.case-footer {
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.2rem;
}

.client-tag {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}