/* ============================================================
   LingoGen.pro — Base styles (paleta azul lingo + crema/papel)
   ============================================================ */

:root {
    /* Colors */
    --c-bg:        #F6F4EE;
    --c-bg-alt:    #ECE7DA;
    --c-bg-dark:   #102236;
    --c-ink:       #102236;
    --c-ink-2:     #3C5067;
    --c-ink-dim:   #7B8B9E;
    --c-line:      #DDD7C5;
    --c-accent:    #2E6AA6;
    --c-accent-2:  #5089C5;
    --c-warm:      #E08C5A;
    --c-on-dark:   #F6F2E7;
    --c-success:   #3E8E5A;
    --c-danger:    #C44C3D;

    /* Typography */
    --ff-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ff-serif:   'Fraunces', 'Georgia', serif;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    /* Radii */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(16, 34, 54, 0.06);
    --shadow-md: 0 4px 16px rgba(16, 34, 54, 0.08);
    --shadow-lg: 0 12px 36px rgba(16, 34, 54, 0.12);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: var(--ff-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
    color: var(--c-accent);
    text-decoration: none;
}
a:hover { color: var(--c-accent-2); }

button {
    font-family: inherit;
    cursor: pointer;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}
@media (max-width: 640px) {
    .container { padding: 0 var(--space-4); }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 22px;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    background: transparent;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    color: var(--c-ink);
    transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--c-accent);
    color: var(--c-on-dark);
}
.btn--primary:hover { background: var(--c-accent-2); color: var(--c-on-dark); }

.btn--ghost {
    background: transparent;
    border-color: var(--c-line);
    color: var(--c-ink);
}
.btn--ghost:hover { background: var(--c-bg-alt); }

.btn--warm {
    background: var(--c-warm);
    color: var(--c-on-dark);
}

.btn--sm { padding: 8px 14px; font-size: 13px; }

/* ============================================================
   Site header
   ============================================================ */
.site-header {
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
    gap: var(--space-5);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--c-ink);
    font-family: var(--ff-serif);
    font-weight: 600;
    font-size: 20px;
}
.brand:hover { color: var(--c-accent); }
.brand__mark {
    width: 32px;
    height: 32px;
}

.nav--desktop {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    flex: 1;
    margin-left: var(--space-5);
}
.nav__link {
    color: var(--c-ink-2);
    font-weight: 500;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.nav__link:hover { color: var(--c-accent); }
.nav__link.is-active {
    color: var(--c-ink);
    border-bottom-color: var(--c-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* ============================================================
   Language pair selector — distintivo de LingoGen
   ============================================================ */
.lang-pair {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 10px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
}
.lang-pair__group {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    cursor: pointer;
}
.lang-pair__small {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-ink-dim);
    line-height: 1;
}
.lang-pair__select {
    border: 0;
    background: transparent;
    color: var(--c-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    line-height: 1.2;
    -webkit-appearance: none;
    appearance: none;
}
.lang-pair__select:focus { outline: 2px solid var(--c-accent-2); outline-offset: 2px; border-radius: 4px; }
.lang-pair__arrow {
    color: var(--c-ink-dim);
    font-weight: 600;
    margin: 0 2px;
}

@media (max-width: 900px) {
    .lang-pair__small { display: none; }
    .lang-pair { padding: 4px 8px; }
}
@media (max-width: 540px) {
    .lang-pair__select { font-size: 12px; }
}

/* ============================================================
   User pill / hamburger
   ============================================================ */
.user-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 12px;
    background: var(--c-bg-alt);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}
.user-pill__logout {
    color: var(--c-ink-dim);
    font-size: 12px;
}

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-ink);
    margin: 0 auto;
    border-radius: 2px;
}

.nav--mobile {
    display: none;
    flex-direction: column;
    background: var(--c-bg);
    border-top: 1px solid var(--c-line);
    padding: var(--space-4);
    gap: var(--space-3);
}
.nav--mobile .nav__link { font-size: 16px; padding: 8px 0; }

@media (max-width: 880px) {
    .nav--desktop { display: none; }
    .hamburger { display: flex; }
    .nav--mobile[hidden] { display: none; }
    .nav--mobile:not([hidden]) { display: flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    padding: var(--space-9) 0 var(--space-8);
    text-align: left;
}
.hero__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-accent);
    display: inline-block;
    margin-bottom: var(--space-4);
}
.hero__title {
    font-family: var(--ff-serif);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-5);
}
.hero__title span { display: block; }
.hero__subtitle {
    font-size: 19px;
    color: var(--c-ink-2);
    max-width: 620px;
    margin: 0 0 var(--space-6);
}
.hero__actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* ============================================================
   Sections / cards
   ============================================================ */
.section {
    padding: var(--space-8) 0;
}
.section--alt {
    background: var(--c-bg-alt);
}
.section__head {
    max-width: 720px;
    margin-bottom: var(--space-7);
}
.section__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-accent);
    display: block;
    margin-bottom: var(--space-3);
}
.section__title {
    font-family: var(--ff-serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 var(--space-3);
}
.section__subtitle {
    font-size: 17px;
    color: var(--c-ink-2);
    max-width: 620px;
    margin: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}

.card {
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    padding: var(--space-5);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    text-decoration: none;
    color: inherit;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-accent-2);
}
.card__tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-accent);
}
.card__title {
    font-family: var(--ff-serif);
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}
.card__desc {
    font-size: 15px;
    color: var(--c-ink-2);
    margin: 0;
}
.card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--c-bg-alt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--c-bg-dark);
    color: var(--c-on-dark);
    padding: var(--space-8) 0 var(--space-5);
    margin-top: var(--space-9);
}
.site-footer .brand,
.site-footer .brand:hover { color: var(--c-on-dark); }
.site-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-6);
}
.site-footer__tagline {
    color: var(--c-on-dark);
    opacity: 0.85;
    margin: var(--space-3) 0;
    max-width: 360px;
}
.site-footer__meta {
    color: var(--c-on-dark);
    opacity: 0.6;
    font-size: 13px;
    margin: 0;
}
.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.site-footer__links a {
    color: var(--c-on-dark);
    opacity: 0.8;
    font-size: 14px;
}
.site-footer__links a:hover { opacity: 1; }
.site-footer__bottom {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(246, 242, 231, 0.1);
    color: var(--c-on-dark);
    opacity: 0.5;
}
@media (max-width: 640px) {
    .site-footer__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.muted { color: var(--c-ink-dim); }
.serif { font-family: var(--ff-serif); }
