/* 
   COAJE - ATLANTIC COMMAND THEME 
   Version: 1.0.0
   Author: Special Ops Frontend Architect
*/

:root {
    /* Color Palette */
    --navy-900: #0F172A;
    /* Main Background */
    --navy-800: #1E293B;
    /* Cards/Sections */
    --navy-700: #334155;
    /* Boarders/Hovers */
    --gold-500: #D97706;
    /* Primary Accent */
    --gold-400: #F59E0B;
    /* Hover Accent */
    --gold-glow: rgba(217, 119, 6, 0.4);
    --light-100: #F8FAFC;
    /* Texts */
    --light-300: #CBD5E1;
    /* Secondary Text */
    --light-400: #94A3B8;
    /* Muted Text */
    --alert-success: #10B981;

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 8rem;
    /* 128px */

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Roboto', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows & Effects */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 15px var(--gold-glow);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--navy-900);
    color: var(--light-100);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--light-100);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-gold {
    color: var(--gold-500);
}

.text-muted {
    color: var(--light-400);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--gold-500);
    color: white;
    border-color: var(--gold-500);
}

.btn-primary:hover {
    background-color: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--gold-500);
    color: var(--gold-500);
}

.btn-outline:hover {
    background-color: var(--gold-500);
    color: white;
}

/* SCROLL REVEAL (JS Hook) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* SECTION HEADERS "Atlantic Standard" */
.section-header-pro {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.section-header-pro::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-color: var(--gold-500);
    margin-right: var(--spacing-sm);
    flex-shrink: 0;
}

.section-header-pro h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: var(--spacing-sm);
    white-space: nowrap;
}

.section-header-pro::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-500) 0%, rgba(217, 119, 6, 0) 100%);
}

.pro-lead-text {
    font-size: 1.15rem;
    color: var(--light-400);
    border-left: 3px solid var(--navy-700);
    padding-left: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
}

/* HEADER & NAV */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height var(--transition-smooth);
}

header.scrolled .nav-container {
    height: 60px;
}

/* LOGO OFFICIAL UPDATE */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    /* Mantiene el tamaño */
    width: auto;
    object-fit: contain;

    /* --- EL ARREGLO DE CONTRASTE --- */
    background-color: #FFFFFF;
    /* Fondo blanco puro */
    padding: 6px;
    /* Espacio para que el logo respire */
    border-radius: 8px;
    /* Bordes redondeados suaves */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Sombra suave */

    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--light-100);
    /* Adjusted to match theme (white/light on dark header) instead of fixed #0F172A which might be invisible on dark header */
    letter-spacing: -0.5px;
}

.logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-500);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Mobile Adjustment for Logo */
@media (max-width: 768px) {
    .logo-img {
        height: 45px;
        padding: 4px;
        /* Un poco menos de padding en móvil */
    }

    .logo-main {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.65rem;
    }
}

nav ul {
    display: flex;
    gap: var(--spacing-md);
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--light-300);
    position: relative;
    padding: 0.5rem 0;
}

nav a:hover,
nav a.active {
    color: var(--gold-500);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-500);
    transition: width var(--transition-fast);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.5rem 1rem;
    background-color: #2563EB;
    /* Solid Blue per generic button request, but theme says Gold? Sticking to Navy/Blue for contact as listed in "Header" section of requirements */
    color: white !important;
    /* Force white text */
    border-radius: 2px;
}

.nav-cta:hover {
    background-color: #1d4ed8;
    color: white !important;
}

.nav-cta::after {
    display: none;
    /* No underline for button */
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--light-100);
    cursor: pointer;
}

/* FOOTER */
footer {
    background-color: var(--navy-800);
    border-top: 1px solid var(--navy-700);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.footer-col h4 {
    color: var(--gold-500);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--light-400);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--light-100);
}

.copyright {
    text-align: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--navy-700);
    color: var(--light-400);
    font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--spacing-sm);
        /* Ensure padding on mobile */
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--navy-900);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        transform: translateY(-100%);
        transition: transform var(--transition-smooth);
        z-index: 999;
        border-bottom: 1px solid var(--navy-700);
    }

    header.scrolled nav ul {
        top: 60px;
    }

    nav.active ul {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .section-header-pro {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header-pro::after {
        width: 100%;
        margin-top: var(--spacing-xs);
    }

    .section-header-pro h2 {
        font-size: 1.25rem;
    }

    .pro-lead-text {
        font-size: 1rem;
    }
}

/* --- TARJETA DE MISIÓN DESTACADA (Rediseño) --- */
.mission-card {
    display: flex;
    background-color: var(--light-100);
    border-radius: 8px;
    /* Bordes un poco más suaves */
    overflow: hidden;
    /* Borde y Glow Dorado para destacar */
    border: 2px solid #D97706;
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.15);
    margin-bottom: var(--spacing-xl);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Efecto rebote suave */
}

.mission-card:hover {
    transform: translateY(-5px) scale(1.01);
    /* Se levanta y crece un pelín */
    box-shadow: 0 15px 35px rgba(217, 119, 6, 0.3);
    /* Sombra intensa */
}

.mission-date-box {
    /* CAMBIO CLAVE: De Azul a Gradiente Dorado */
    background: linear-gradient(135deg, #D97706 0%, #92400e 100%);
    color: white;
    /* Texto blanco para máximo contraste */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    text-align: center;
    position: relative;
}

/* Pequeño detalle visual: línea divisoria sutil */
.mission-date-box::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.mission-date-day {
    font-size: 3.5rem;
    /* Más grande */
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Sombra al texto */
}

.mission-date-month {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.9);
}

/* Ajuste en Mobile para que el dorado quede arriba */
@media (max-width: 768px) {
    .mission-card {
        flex-direction: column;
    }

    .mission-date-box {
        width: 100%;
        padding: 1.5rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .mission-date-box::after {
        display: none;
    }

    .mission-date-day {
        font-size: 2.5rem;
    }
}




/* --- ECOSISTEMA DE ALIANZAS (REDISEÑO) --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns as requested */
    gap: 2rem;
    margin-bottom: 5rem;
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

.partner-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 220px;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #cbd5e1;
    transition: 0.3s;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15);
    border-color: #D97706;
}

.partner-card:hover::before {
    background: #D97706;
}

.partner-icon {
    font-size: 3.5rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-icon {
    color: #0F172A;
    transform: scale(1.1);
}

.partner-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.partner-card:hover .partner-name {
    color: #D97706;
}


/* --- TERMINAL DE CONTACTO (ELITE REDESIGN) --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5rem;
}

/* Panel de Información (Izquierda) */
.contact-info {
    background: linear-gradient(165deg, #0F172A 0%, #1E293B 100%);
    padding: 4.5rem 3.5rem;
    position: relative;
    color: #f8fafc;
}

.contact-info::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
    pointer-events: none;
}

.contact-info h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: #D97706;
    text-transform: uppercase;
    margin-bottom: 3rem;
    border-left: 3px solid #D97706;
    padding-left: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D97706;
    font-size: 1.2rem;
}

.info-content h4 {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-content p,
.info-content a {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
}

/* Panel de Formulario (Derecha) */
.contact-form-wrapper {
    padding: 4.5rem 3.5rem;
    background: #ffffff;
}

.contact-form h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-control {
    border-bottom: 2px solid #e2e8f0 !important;
    padding: 1rem 0 !important;
    font-weight: 500;
    color: #0F172A !important;
    width: 100%;
    border: none;
    outline: none;
}

.form-control:focus {
    border-bottom-color: #D97706 !important;
    background: linear-gradient(to top, rgba(217, 119, 6, 0.03), transparent) !important;
}

.btn-transmit {
    background: #0F172A;
    color: white;
    padding: 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-transmit:hover {
    background: #D97706;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3);
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* --- OPTIMIZACIÓN GLOBAL MOBILE --- */
@media (max-width: 768px) {

    /* Ajuste de Contenedores */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Títulos Atlantic Standard en Móvil */
    .pro-title {
        font-size: 1.6rem !important;
        /* Más pequeño para evitar desbordes */
        white-space: normal !important;
        /* Permitir que el título baje de línea si es largo */
    }

    .section-header-pro {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pro-line {
        width: 80px;
        /* Línea más corta en móvil */
        flex-grow: 0;
    }

    /* Textos Briefing Lead */
    .pro-lead-text {
        font-size: 1rem !important;
        padding-left: 15px;
        margin-bottom: 2.5rem;
    }

    /* Ajuste de Cards (General) */
    .board-grid,
    .partners-grid,
    .archive-grid {
        grid-template-columns: 1fr !important;
        /* Una sola columna en móvil */
        gap: 1.5rem;
    }

    /* Carrusel de Capacidades */
    .capability-card {
        min-width: 200px;
        /* Más estrechas para que fluyan mejor */
        padding: 1rem;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2.2rem !important;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero-actions .btn {
        margin-left: 0 !important;
        width: 100%;
    }

    /* Tablas de Precios (Membresía) */
    .pricing-card.featured {
        transform: none !important;
        /* Quitar escalado para evitar que choque con bordes */
        margin-top: 20px;
    }
}

/* Ajuste para pantallas muy pequeñas (iPhone SE / Mini) */
@media (max-width: 380px) {
    .pro-title {
        font-size: 1.4rem !important;
    }

    .mission-date-day {
        font-size: 2rem !important;
    }
}