/* ============================================================
   STYLE.CSS — Fundacion visual del sitio
   Design tokens, reset, tipografia y componentes globales
   ============================================================ */

/* --- Google Fonts: Inter (cuerpo) + Fraunces (títulos) + JetBrains Mono (detalles) --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

/* --- Design tokens --------------------------------------------------- */
:root {
    /* Superficies (Tonos cálidos en lugar de azulados) */
    --bg-primary: #0F0E0C; /* Negro cálido */
    --bg-secondary: #181613;
    --card-bg: #1C1A17;

    /* Texto */
    --text-primary: #EDEAE5; /* Blanco roto */
    --text-secondary: #918B82; /* Gris cálido */

    /* Acento (Naranja terracota - cámbialo si prefieres otro) */
    --primary: #E5693A;
    --primary-light: #F08155;
    --primary-glow: rgba(229, 105, 58, 0.15);

    /* Bordes */
    --border: #2A2724;
    --border-hover: #44403A;

    /* Tipografia */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Fraunces', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Espaciado */
    --section-padding: 120px;
    --section-padding-mobile: 64px;

    /* Bordes redondeados (Menos redondeados = más serio/editorial) */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* --- Reset ------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

button {
    font-family: var(--font-main);
    cursor: pointer;
}

/* Foco visible para accesibilidad de teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}

/* Respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Tipografia general ------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif); /* ¡Añadimos Serif! */
    font-weight: 400; /* Ligero y elegante */
    margin: 0;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-secondary);
    margin: 0;
}

/* --- Layout: sistema de secciones -------------------------------------- */
.section {
    padding: var(--section-padding) 24px;
    max-width: 1160px;
    margin: 0 auto;
}

.section-dark {
    background-color: var(--bg-primary);
}

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

.section-inner {
    max-width: 1160px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--primary-light);
    margin-bottom: 14px;
    text-transform: none; /* Quitamos las mayúsculas */
    letter-spacing: 0; /* Quitamos el espaciado exagerado */
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem); /* Más grande */
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: left;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 48px;
    text-align: left;
}

.section-header {
    margin-bottom: 48px;
}

/* --- Glass card: componente reutilizable ------------------------------ */
/* --- Flat card: componente reutilizable ------------------------------ */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.3s ease;
    /* Quitamos el backdrop-filter y las sombras */
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: none; /* Quitamos el salto hacia arriba, muy de plantilla */
}

/* --- Botones ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #0F0E0C; /* Texto oscuro sobre el botón de color */
}

.btn-primary:hover {
    background-color: var(--primary-light);
    box-shadow: none; /* Sin sombras brillantes */
    transform: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--border-hover);
    background-color: transparent;
    transform: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 13px 18px;
}

.btn-ghost:hover {
    color: var(--text-primary);
}

/* --- Utilidades ---------------------------------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 14, 12, 0.95); /* Fondo opaco, sin blur */
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo-mark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 12px var(--primary-light);
}

.logo-linkedin-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;  /* Ajusta el tamaño que desees aquí */
    height: 24px;
    border-radius: 50%; /* Mantiene el brillo perfectamente circular */
    background: transparent;
    /* Mismo efecto de sombra que tu logo-mark */
    box-shadow: 0 0 12px var(--primary-light); 
}

.logo-linkedin-glow svg {
    width: 100%;
    height: 100%;
    /* Rellena el logo con tu color primario claro */
    fill: var(--primary-light); 
}

.logo-cafecito-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;

    /* Glow propio de Cafecito */
    box-shadow: 0 0 12px #65abda;

    transition: all 0.3s ease;
}

.logo-cafecito-glow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.logo-cafecito-glow:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 8px #65abda,
        0 0 18px #65abda,
        0 0 30px rgba(74, 162, 202, 0.6);
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s ease;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 1px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
}

/* ============================================================
   LANGUAGE SWITCH
   ============================================================ */

.lang-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    width: 68px;
    height: 40px;

    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;

    background: rgba(255,255,255,.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    cursor: pointer;
    transition: all .3s ease;
    overflow: hidden;
}

.lang-switch:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 18px var(--primary-glow);
}

.lang-option {
    flex: 1;
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-secondary);
    z-index: 2;
    user-select: none;
    transition: color .3s ease;
}

.lang-thumb {
    position: absolute;
    top: 4px;
    left: 4px;

    width: 30px;
    height: 30px;

    border-radius: 50%;
    background: var(--primary);

    box-shadow: 0 4px 12px var(--primary-glow);
    transition: transform .3s ease;
}

/* Estado EN */
.lang-switch[data-lang="en"] .lang-thumb {
    transform: translateX(27.5px);
}

/* Texto activo */
.lang-switch[data-lang="es"] .es,
.lang-switch[data-lang="en"] .en {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {

    .lang-switch {
        width: 66px;
        height: 34px;
    }

    .lang-thumb {
        width: 26px;
        height: 26px;
    }

    .lang-switch[data-lang="en"] .lang-thumb {
        transform: translateX(32px);
    }

    .lang-option {
        font-size: .7rem;
    }
}