/* ============================================================
   home.css — Secret Maps | Rediseño completo
   Paleta: bg-1 #1f4037 · bg-2 #99f2c8 · accent #f9d423
   ============================================================ */

/* ─── UTILITARIOS GENERALES ─────────────────────────────── */
body {
    overflow-x: hidden;
}

/* btn extra grande para hero */
.btn-xl {
    padding: 15px 30px;
    font-size: 16px;
    letter-spacing: .3px;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero-area {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0 120px;
}

/* manchas de color decorativas */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: .35;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: #f9d423;
    top: -160px;
    right: -180px;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: #99f2c8;
    bottom: -120px;
    left: -140px;
}

.hero-center {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero-badge {
    display: inline-block;
    background: rgba(249, 212, 35, .18);
    border: 1px solid rgba(249, 212, 35, .45);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(48px, 7vw, 92px);
    line-height: 1.02;
    letter-spacing: -.5px;
    font-weight: 900;
    margin: 0;
}

.hero-title em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, .82);
    line-height: 1.55;
    max-width: 56ch;
    margin: 0;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(31, 64, 55, .5));
    pointer-events: none;
}

/* ─── STATS ──────────────────────────────────────────────── */
.stats-strip {
    background: rgba(0, 0, 0, .22);
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 22px 0;
}

.stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
    gap: 2px;
}

.stat-item strong {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    color: var(--accent);
}

.stat-item span {
    font-size: 12px;
    color: rgba(255, 255, 255, .65);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600;
}

.stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, .15);
}

/* ─── SECCIÓN CATEGORÍAS ─────────────────────────────────── */
.section-categories {
    padding: clamp(60px, 7vw, 96px) 0;
}

.section-eyebrow {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-heading {
    text-align: center;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 900;
    margin: 0 0 44px 0;
    letter-spacing: -.2px;
    line-height: 1.1;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.cat-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
    cursor: pointer;
}

.cat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .18);
    border-color: rgba(249, 212, 35, .5);
}

.cat-emoji {
    font-size: 32px;
    line-height: 1;
}

.cat-card h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
}

.cat-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    margin: 0;
    line-height: 1.4;
}

.section-cta {
    margin-top: 36px;
    text-align: center;
}

/* ─── SECCIÓN CÓMO FUNCIONA ──────────────────────────────── */
.section-how {
    padding: clamp(60px, 7vw, 96px) 0;
    background: rgba(0, 0, 0, .15);
}

.how-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.how-step {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
    padding: 36px 24px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .18s ease;
}

.how-step:hover {
    transform: translateY(-3px);
}

.how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-text);
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 16px;
}

.how-step h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.how-step p {
    font-size: 14px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.5;
}

.how-arrow {
    align-self: center;
    font-size: 28px;
    color: var(--accent);
    font-weight: 900;
    padding: 0 12px;
    opacity: .7;
    flex-shrink: 0;
}

/* ─── FEATURES BENTO ─────────────────────────────────────── */
.section-features {
    padding: clamp(60px, 7vw, 96px) 0;
}

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

/* colocar "Sistema de valoración" en la derecha */
.bento-card:last-child {
    grid-column: 3;
}

.bento-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .18s ease, background .18s ease;
}

.bento-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .16);
}

.bento-wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.bento-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}

.bento-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.bento-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.5;
    margin: 0;
}

/* ─── CTA FINAL ──────────────────────────────────────────── */
.section-cta-final {
    padding: clamp(60px, 7vw, 96px) 0;
    position: relative;
    overflow: hidden;
}

.section-cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(249, 212, 35, .07);
    border-top: 1px solid rgba(249, 212, 35, .2);
    border-bottom: 1px solid rgba(249, 212, 35, .2);
    pointer-events: none;
}

.cta-final-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-final-title {
    font-size: clamp(30px, 4.5vw, 54px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.3px;
    margin: 0;
}

.cta-final-sub {
    font-size: 17px;
    color: rgba(255, 255, 255, .8);
    max-width: 52ch;
    line-height: 1.55;
    margin: 0;
}

.cta-final-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
    background: rgba(0, 0, 0, .28);
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    padding: 56px 0 40px;
    align-items: start;
}

.footer-logo {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #fff;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    line-height: 1.55;
    max-width: 32ch;
}

.footer-nav {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 110px;
}

.footer-col h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    transition: color .15s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 16px 0;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, .45);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — mobile-first breakpoints
   1200 · 980 · 768 · 600 · 480 · 360
   ═══════════════════════════════════════════════════════════ */

/* ── ≤ 1200px: laptops pequeños ──────────────────────────── */
@media (max-width: 1200px) {
    .bento {
        grid-template-columns: 1fr 1fr;
    }

    .bento-wide {
        grid-column: span 2;
    }

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

/* ── ≤ 980px: tablets apaisadas ──────────────────────────── */
@media (max-width: 980px) {
    /* Hero */
    .hero-area {
        min-height: 80vh;
        padding: 64px 0 96px;
    }

    .hero-title {
        font-size: clamp(40px, 8vw, 68px);
    }

    /* How */
    .how-steps {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .how-arrow {
        transform: rotate(90deg);
        padding: 4px 0;
        font-size: 22px;
    }

    .how-step {
        max-width: 100%;
        width: 100%;
    }

    /* Bento */
    .bento {
        grid-template-columns: 1fr 1fr;
    }

    .bento-wide {
        grid-column: span 2;
    }

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

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0 32px;
    }

    .footer-nav {
        gap: 24px;
    }
}

/* ── ≤ 768px: tablets retrato / móviles grandes ──────────── */
@media (max-width: 768px) {
    /* Navbar: ocultar botón fantasma en móvil, solo los clave */
    .btn-ghost {
        display: none;
    }

    .navbar-inner {
        padding: 12px 0;
    }

    .navbar-logo {
        font-size: 18px;
    }

    /* Hero */
    .hero-area {
        min-height: 75vh;
        padding: 56px 0 80px;
    }

    .hero-center {
        gap: 22px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 5px 12px;
        letter-spacing: .3px;
    }

    .hero-title {
        font-size: clamp(36px, 9vw, 58px);
    }

    .hero-sub {
        font-size: clamp(14px, 3vw, 17px);
        max-width: 44ch;
    }

    .btn-xl {
        padding: 13px 24px;
        font-size: 15px;
    }

    /* Stats: 2 × 2 */
    .stats-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .stat-sep {
        display: none;
    }

    .stat-item {
        padding: 16px 20px;
        border: 1px solid rgba(255, 255, 255, .07);
    }

    /* Cat grid: 3 columnas */
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .cat-card {
        padding: 18px 14px;
        gap: 6px;
    }

    .cat-emoji {
        font-size: 26px;
    }

    .cat-card h3 {
        font-size: 13px;
    }

    .cat-card p {
        font-size: 12px;
    }

    /* Bento */
    .bento {
        grid-template-columns: 1fr;
    }

    .bento-wide {
        grid-column: span 1;
        flex-direction: row;
    }

    /* How steps */
    .how-step {
        padding: 26px 20px;
    }

    /* Section headings */
    .section-heading {
        font-size: clamp(24px, 5vw, 36px);
        margin-bottom: 32px;
    }

    /* Footer nav simplificado */
    .footer-nav {
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-col {
        min-width: calc(50% - 10px);
    }
}

/* ── ≤ 600px: móviles medianos ───────────────────────────── */
@media (max-width: 600px) {
    /* Navbar: solo logo + registrarse */
    .btn-secondary,
    .btn-danger {
        /* no ocultar pues afectaría a otras páginas; se reduce el texto */
    }

    .navbar-actions .btn-secondary:not(:last-child) {
        display: none;
    }

    /* Hero */
    .hero-area {
        min-height: 70vh;
        padding: 48px 0 72px;
    }

    .hero-title {
        font-size: clamp(32px, 10vw, 52px);
        letter-spacing: -.3px;
    }

    .hero-sub {
        font-size: 14px;
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        gap: 10px;
    }

    .hero-cta .btn-xl {
        text-align: center;
        justify-content: center;
        padding: 14px 20px;
        width: 100%;
    }

    /* Stats: 2 columnas más compactas */
    .stat-item strong {
        font-size: 22px;
    }

    .stat-item span {
        font-size: 10px;
    }

    /* Cat grid: 2 columnas */
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Bento */
    .bento-wide {
        flex-direction: column;
    }

    /* How */
    .how-step {
        padding: 22px 16px;
    }

    .how-num {
        width: 46px;
        height: 46px;
        font-size: 17px;
    }

    /* Secciones: menos padding vertical */
    .section-categories,
    .section-how,
    .section-features,
    .section-cta-final {
        padding: 48px 0;
    }

    /* CTA final */
    .cta-final-title {
        font-size: clamp(26px, 7vw, 40px);
    }

    .cta-final-sub {
        font-size: 15px;
    }

    .cta-final-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        width: 100%;
    }

    .cta-final-buttons .btn-xl {
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    /* Footer */
    .footer-inner {
        padding: 32px 0 24px;
        gap: 24px;
    }

    .footer-nav {
        gap: 16px;
    }

    .footer-col {
        min-width: calc(50% - 8px);
    }

    .footer-bottom p {
        font-size: 11px;
    }
}

/* ── ≤ 480px: móviles estándar (iPhone 12/13/14, Galaxy S) ─ */
@media (max-width: 480px) {
    /* Navbar */
    .navbar-logo {
        font-size: 16px;
    }

    .navbar-actions .btn {
        padding: 9px 14px;
        font-size: 13px;
    }

    /* Hero */
    .hero-area {
        padding: 40px 0 64px;
    }

    .hero-center {
        gap: 18px;
    }

    .hero-title {
        font-size: clamp(28px, 10vw, 44px);
    }

    .hero-badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    /* Stats */
    .stats-inner {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: 12px 10px;
    }

    .stat-item strong {
        font-size: 19px;
    }

    /* Cat cards */
    .cat-card {
        padding: 14px 10px;
    }

    .cat-emoji {
        font-size: 22px;
    }

    .cat-card h3 {
        font-size: 12px;
    }

    .cat-card p {
        display: none; /* demasiado texto en pantalla pequeña */
    }

    /* How steps */
    .how-step {
        padding: 20px 14px;
    }

    .how-step h3 {
        font-size: 16px;
    }

    /* Bento */
    .bento-card {
        padding: 20px 16px;
    }

    .bento-icon {
        font-size: 28px;
    }

    .bento-card h3 {
        font-size: 16px;
    }

    /* Footer */
    .footer-col {
        min-width: 100%;
    }

    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }
}

/* ── ≤ 360px: móviles muy pequeños (iPhone SE, Galaxy A) ─── */
@media (max-width: 360px) {
    /* Navbar: solo logo */
    .navbar-actions .btn:not(.btn-primary) {
        display: none;
    }

    .navbar-actions .btn-primary {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* Hero */
    .hero-title {
        font-size: clamp(26px, 11vw, 38px);
    }

    .hero-sub {
        font-size: 13px;
    }

    .hero-cta .btn-xl,
    .cta-final-buttons .btn-xl {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* Stats: apilar en columna */
    .stats-inner {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
    }

    /* Cat grid */
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Sección headings */
    .section-heading {
        font-size: clamp(20px, 7vw, 28px);
        margin-bottom: 24px;
    }
}
