/* ===================================
   COAJE - Estilos Minimalistas
   Optimizado para velocidad
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================================
   COAJE - NATO Corporate Design System
   Diplomatic Tech - Variables Semánticas
   =================================== */

/* MODO CLARO (Light Mode) - Por defecto */
:root {
    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;

    /* Text */
    --text-main: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;

    /* Brand Colors */
    --brand-navy: #0F172A;
    --brand-blue: #004990;
    --brand-accent: #64748B;

    /* UI Elements */
    --border-color: #E2E8F0;
    --border-subtle: #F1F5F9;

    /* Interactive */
    --interactive-primary: #004990;
    --interactive-hover: #003870;
    --interactive-accent: #64748B;

    /* Special - Event Highlight */
    --event-highlight: #DC2626;

    /* Cards & Surfaces */
    --surface-card: #FFFFFF;
    --surface-elevated: #F8FAFC;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
}

/* MODO OSCURO (Dark Mode) */
@media (prefers-color-scheme: dark) {
    :root {
        /* Backgrounds - Más contraste */
        --bg-primary: #0A0E1A;
        --bg-secondary: #151B2E;
        --bg-tertiary: #1F2937;

        /* Text - Más brillante y legible */
        --text-main: #FFFFFF;
        --text-secondary: #E2E8F0;
        --text-muted: #A0AEC0;

        /* Brand Colors - Más vibrantes */
        --brand-navy: #FFFFFF;
        --brand-blue: #60A5FA;
        --brand-accent: #A5B4FC;

        /* UI Elements */
        --border-color: #2D3748;
        --border-subtle: #1A202C;

        /* Interactive - Más brillantes */
        --interactive-primary: #60A5FA;
        --interactive-hover: #93C5FD;
        --interactive-accent: #A5B4FC;

        /* Special - Event Highlight */
        --event-highlight: #F87171;

        /* Cards & Surfaces - Más contraste */
        --surface-card: #1A202C;
        --surface-elevated: #2D3748;

        /* Shadows - Más profundas */
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER
   =================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--surface-card);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo strong {
    display: block;
    font-size: 18px;
}

.logo span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--interactive-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--blue-dark);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .logo span {
        display: none;
    }
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    background: var(--interactive-primary);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--interactive-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

.btn-gold {
    background: var(--interactive-accent);
}

/* ===================================
   SECTIONS
   =================================== */

section {
    padding: 40px 20px;
}

.bg-dark {
    background: var(--bg-secondary);
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

h1 {
    font-size: clamp(36px, 5vw, 64px);
    /* Ligeramente más grande y elegante */
    margin-bottom: 20px;
    color: var(--brand-navy);
    font-weight: 700;
    letter-spacing: -0.02em;
    /* Kerning ajustado para títulos grandes */
    line-height: 1.1;
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    text-align: center;
    margin-bottom: 20px;
    color: var(--brand-navy);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.intro {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
}

.subtitle {
    font-size: 24px;
    text-align: center;
    margin: 30px 0 20px;
    color: var(--text-secondary);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Fondo sutil estilo mapa de conexiones / red diplomática */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Animaciones de entrada suave */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay para elementos en grids */
.grid-3>div:nth-child(1) {
    transition-delay: 0.1s;
}

.grid-3>div:nth-child(2) {
    transition-delay: 0.2s;
}

.grid-3>div:nth-child(3) {
    transition-delay: 0.3s;
}

.hero p {
    font-size: clamp(16px, 3vw, 22px);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   GRIDS
   =================================== */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===================================
   CARDS
   =================================== */

.card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--interactive-primary);
}

.card .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--interactive-accent);
    /* Color dorado premium */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card .icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
    /* Línea fina y elegante */
}

.card h3 {
    color: var(--interactive-accent);
}

.card p {
    color: var(--text-secondary);
}

/* ===================================
   TEAM
   =================================== */

.team-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--interactive-primary);
}

.avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--interactive-primary), var(--brand-navy));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.role {
    color: var(--interactive-accent);
    font-size: 14px;
    margin-bottom: 15px;
}

.menu-toggle span {
    width: 1.5rem;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.linkedin {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: rgba(0, 119, 181, 0.3);
    border: 1px solid #0077b5;
    border-radius: 6px;
    color: #0077b5;
    text-align: center;
    line-height: 32px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.linkedin:hover {
    background: #0077b5;
    color: var(--white);
}

/* ===================================
   EVENTS
   =================================== */

.event-featured {
    background: var(--surface-card);
    border: 2px solid var(--event-highlight);
    border-radius: 8px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
    box-shadow: var(--shadow-md);
}

.event-featured .badge {
    background: var(--event-highlight);
}

.badge {
    background: var(--interactive-accent);
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
}

.date {
    color: var(--text-secondary);
    margin: 15px 0;
}

.tag {
    color: var(--interactive-accent);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.small {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===================================
   PARTNERS
   =================================== */

.partner {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.2s;
}

.partner:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.3);
}

.partner .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.partner p {
    font-size: 14px;
    font-weight: 600;
}

/* ===================================
   FORMS
   =================================== */

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--interactive-primary);
    box-shadow: 0 0 0 3px rgba(0, 73, 144, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.msg {
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    display: none;
}

.msg.success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
    display: block;
}

.msg.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

/* ===================================
   MEMBERSHIP
   =================================== */

.membership {
    background: var(--surface-card);
    border: 2px solid var(--interactive-accent);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.membership .icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.membership h3 {
    color: var(--interactive-accent);
}

.benefits {
    list-style: none;
    text-align: left;
    margin: 20px 0;
}

.benefits li {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* ===================================
   FOOTER
   =================================== */

footer {
    background: var(--brand-navy);
    color: var(--bg-primary);
    padding: 60px 0 20px;
    margin-top: 40px;
}

footer .grid-3 {
    margin-bottom: 40px;
}

footer h4 {
    color: var(--bg-primary);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

footer a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--bg-primary);
}

footer p {
    color: var(--text-muted);
}

footer .logo strong,
footer .logo span {
    color: var(--bg-primary);
}

footer .social {
    display: flex;
    gap: 15px;
}

footer .social a {
    display: inline-block;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 14px;
}

@media (prefers-color-scheme: dark) {
    footer {
        background: #000000;
    }
}