/*
 * pagina-hero-texto.css
 * Page-specific styles for hero--text variant.
 * Depends on: UDLAP global styles.css (design tokens, layout, components).
 */

/* ============================================================
   FONT STACKS
   ============================================================ */
:root {
    --font-subtitle: 'Segoe UI', Segoe UI, system-ui, -apple-system, sans-serif;
    --navbar-height: 5rem;
    --hero-height: 25rem; /* 400px */
}

/* ============================================================
   HERO — TEXT VARIANT
   Replaces the banner image hero with a typographic hero.
   ============================================================ */
.hero--text {
    display: grid;
    place-items: center;
    height: var(--hero-height);
    min-height: var(--hero-height);
    margin-top: var(--navbar-height);
    padding: 1.5rem 1.5rem;
    background-color: #008888;
    text-align: center;
}

.hero-text__inner {
    max-width: 52rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

/* Title — Lexend */
.hero-text__title {
    font-family: var(--font-hero, 'Lexend', sans-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}

/* Subtitle — Segoe UI */
.hero-text__subtitle {
    font-family: var(--font-subtitle);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    max-width: 38rem;
}

/* CTA button */
.hero-text__cta {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.75rem 2rem;
    font-family: var(--font-subtitle);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    color: #0f4f4f;
    background-color: #ffffff;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color 0.45s var(--ease-in-out), color 0.45s var(--ease-in-out), border-color 0.45s var(--ease-in-out), transform 0.45s var(--ease-in-out), box-shadow 0.45s var(--ease-in-out);
}

.hero-text__cta:hover,
.hero-text__cta:focus-visible {
    background-color: #006f6f;
    color: #ffffff;
    border-color: #006f6f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 136, 0.4);
    outline: none;
}

/* ============================================================
   DARK THEME OVERRIDES
   ============================================================ */
[data-theme="dark"] .hero--text {
    background-color: #008888;
}

[data-theme="dark"] .hero-text__cta {
    color: #0f4f4f;
    background-color: #f7ffff;
}

[data-theme="dark"] .hero-text__cta:hover,
[data-theme="dark"] .hero-text__cta:focus-visible {
    background-color: #006f6f;
    color: #ffffff;
    border-color: #006f6f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 136, 0.4);
    outline: none;
}

/* ============================================================
   RESPONSIVE — Mobile-first breakpoints
   ============================================================ */

/* ≥ 480px: slightly more breathing room */
@media (min-width: 30rem) {
    .hero--text {
        padding: 1.75rem 2rem;
    }
}

/* ≥ 768px: tablet */
@media (min-width: 48rem) {
    .hero--text {
        padding: 2rem 3rem;
    }
}

