/* ============================================================
   Pizzería Joker - Estilos
   Paleta: crema #FFFBF5 / #FFF3E0, café #2D1810/#5D4037,
           rojo #DC2626/#B91C1C, ámbar #F59E0B
   ============================================================ */

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

:root {
    --bg-cream:    #FFFBF5;
    --bg-warm:     #FFF3E0;
    --text-dark:   #2D1810;
    --text-soft:   #5D4037;
    --text-muted:  #9CA3AF;
    --red:         #DC2626;
    --red-dark:    #B91C1C;
    --amber:       #F59E0B;
    --amber-light: #FBBF24;
    --shadow-sm:   0 2px 6px rgba(0,0,0,0.06);
    --shadow-md:   0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg:   0 18px 50px rgba(0,0,0,0.15);
    --radius:      14px;
    --radius-lg:   20px;
    --transition:  all .3s ease;
}

html, body { height: 100%; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 24px; }
.section-cream { background: var(--bg-warm); }

.section-head     { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-title    { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.section-subtitle { color: var(--text-soft); font-size: 1rem; }
.text-left        { text-align: left; }
.center-cta       { text-align: center; margin-top: 48px; }

/* ─── Botones ───────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border: none; border-radius: 10px;
    font-weight: 600; cursor: pointer; transition: var(--transition);
    text-transform: uppercase; letter-spacing: .08em; font-size: .85rem;
    font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: .75rem; letter-spacing: .04em; text-transform: none; }
.btn-lg { padding: 16px 32px; font-size: .95rem; }
.btn-block { width: 100%; }

.btn-primary       { background: var(--red);   color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-dark); }
.btn-amber         { background: var(--amber-light); color: var(--text-dark); box-shadow: var(--shadow-sm); }
.btn-amber:hover   { background: var(--amber); }
.btn-outline-white { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }
.btn-outline-red   { border: 2px solid var(--red); color: var(--red); background: transparent; }
.btn-outline-red:hover { background: var(--red); color: #fff; }

/* ─── Navbar ───────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: var(--transition);
}
.navbar.navbar-transparent { background: transparent; }
.navbar.scrolled, .navbar.navbar-solid {
    background: rgba(255, 251, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    height: 76px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 800; color: #fff; transition: var(--transition); }
.navbar.scrolled .nav-logo, .navbar-solid .nav-logo { color: var(--red); }
.logo-icon { font-size: 1.5rem; }

.nav-links { display: flex; gap: 32px; }
.nav-link {
    font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
    color: rgba(255,255,255,0.8); transition: var(--transition); padding: 8px 0;
}
.navbar.scrolled .nav-link, .navbar-solid .nav-link { color: var(--text-soft); }
.nav-link:hover, .nav-link.active { color: #fff; }
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active,
.navbar-solid .nav-link:hover, .navbar-solid .nav-link.active { color: var(--red); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-button {
    position: relative; background: transparent; border: none;
    width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem; transition: var(--transition);
}
.navbar.scrolled .cart-button, .navbar-solid .cart-button { color: var(--text-soft); }
.cart-button:hover { background: rgba(255,255,255,0.12); }
.navbar.scrolled .cart-button:hover, .navbar-solid .cart-button:hover { background: #FEE2E2; }
.cart-count {
    position: absolute; top: 4px; right: 4px;
    background: var(--red); color: #fff;
    width: 20px; height: 20px; border-radius: 50%;
    font-size: .7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.mobile-toggle {
    display: none; background: transparent; border: none; color: #fff;
    font-size: 1.6rem; cursor: pointer;
}
.navbar.scrolled .mobile-toggle, .navbar-solid .mobile-toggle { color: var(--text-soft); }
.mobile-menu { display: none; padding: 16px 24px; background: var(--bg-cream); box-shadow: var(--shadow-sm); }
.mobile-menu.open { display: block; }
.mobile-link {
    display: block; padding: 12px 16px; border-radius: 8px;
    color: var(--text-soft); font-size: .9rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
}
.mobile-link:hover { background: #FEE2E2; color: var(--red); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: inline-flex; }
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 0 24px;
}
.hero.hero-short { min-height: 60vh; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4), rgba(0,0,0,0.7)); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 720px; }
.hero-badge {
    display: inline-block; padding: 8px 24px; margin-bottom: 24px;
    border: 2px solid var(--amber-light); border-radius: 999px;
    color: var(--amber-light); font-size: .8rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .15em;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 1.1;
    color: #fff; margin-bottom: 24px;
}
.hero-subtitle {
    font-size: 1.15rem; color: rgba(255,255,255,0.9);
    margin-bottom: 36px; font-weight: 300; max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.breadcrumbs { color: rgba(255,255,255,0.7); font-size: .9rem; margin-bottom: 12px; }
.breadcrumbs span:last-child { color: #fff; }

/* ─── Categorías ─────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.cat-card { text-align: center; transition: var(--transition); }
.cat-image {
    position: relative; aspect-ratio: 1; max-width: 200px; margin: 0 auto 16px;
    border-radius: 50%; overflow: hidden;
    box-shadow: 0 0 0 4px transparent; transition: var(--transition);
}
.cat-card:hover .cat-image { box-shadow: 0 0 0 4px #FECACA; }
.cat-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover .cat-image img { transform: scale(1.1); }
.cat-name {
    font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
    transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.cat-card:hover .cat-name { color: var(--red); }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cat-color, var(--red)); display: inline-block; }

/* ─── Pizza grid ─────────────────────────────────────── */
.pizza-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .pizza-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pizza-grid { grid-template-columns: repeat(3, 1fr); } }

.pizza-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition);
    border: 2px solid transparent;
}
.pizza-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #FECACA; }
.pizza-image { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.pizza-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pizza-card:hover .pizza-image img { transform: scale(1.05); }
.pizza-badge {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 12px; border-radius: 999px;
    font-size: .7rem; font-weight: 700; color: #fff;
}
.pizza-body { padding: 24px; }
.pizza-name { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.pizza-desc {
    font-size: .9rem; color: var(--text-soft); margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ingredients { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.ing-pill { padding: 2px 10px; background: var(--bg-warm); color: var(--text-soft); font-size: .7rem; border-radius: 999px; }
.pizza-foot { display: flex; align-items: center; justify-content: space-between; }
.pizza-price { font-family: 'Pacifico', cursive; font-size: 1.5rem; font-weight: 700; color: var(--amber); }

/* ─── Filtros del menú ───────────────────────────────── */
.page-header { padding: 140px 24px 48px; text-align: center; }
.page-title { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 12px; }
.page-subtitle { color: var(--text-soft); font-size: 1.1rem; }

.filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    max-width: 1200px; margin: 0 auto 48px; padding: 0 24px;
}
.filter-pill {
    padding: 10px 24px; border-radius: 999px;
    background: var(--bg-warm); color: var(--text-soft);
    font-size: .85rem; font-weight: 500; transition: var(--transition);
}
.filter-pill:hover { background: #FEE2E2; }
.filter-pill.active { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }

.empty-state { text-align: center; padding: 80px 0; color: var(--text-soft); }
.empty-state p:first-child { font-size: 3rem; margin-bottom: 12px; }

/* ─── Proceso ────────────────────────────────────────── */
.process-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step { text-align: center; }
.process-image { position: relative; aspect-ratio: 1; max-width: 220px; margin: 0 auto 24px; border-radius: var(--radius-lg); overflow: hidden; }
.process-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.process-step:hover .process-image img { transform: scale(1.1); }
.process-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); }
.process-icon {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--red); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; box-shadow: var(--shadow-md); z-index: 1;
}
.process-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.process-desc { font-size: .9rem; color: var(--text-soft); }

/* ─── Testimonios ────────────────────────────────────── */
.testimonial-wrap { max-width: 760px; margin: 0 auto; position: relative; }
.testimonial-card {
    display: none; background: #fff; padding: 48px;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md); text-align: center;
}
.testimonial-card.active { display: block; }
.testimonial-stars { font-size: 1.5rem; margin-bottom: 24px; }
.testimonial-quote { font-size: 1.15rem; font-style: italic; color: var(--text-soft); line-height: 1.7; margin-bottom: 32px; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial-avatar {
    width: 48px; height: 48px; border-radius: 50%; background: #FEE2E2; color: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
}
.testimonial-name { font-weight: 600; }
.testimonial-role { font-size: .85rem; color: var(--text-muted); }

.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.t-btn {
    width: 40px; height: 40px; border-radius: 50%; background: #fff;
    border: none; box-shadow: var(--shadow-sm); cursor: pointer;
    font-size: 1.5rem; color: var(--text-soft); transition: var(--transition);
}
.t-btn:hover { background: #FEE2E2; }
.t-dots { display: flex; gap: 8px; }
.t-dot {
    width: 10px; height: 10px; border-radius: 50%; background: #D1D5DB; border: none;
    cursor: pointer; transition: var(--transition);
}
.t-dot.active { background: var(--red); }

/* ─── CTA Final ──────────────────────────────────────── */
.cta-final {
    position: relative; padding: 96px 24px; text-align: center;
    background: linear-gradient(to right, #991B1B, #DC2626); color: #fff; overflow: hidden;
}
.cta-pizzas { position: absolute; inset: 0; opacity: .1; font-size: 4rem; padding: 32px;
    display: flex; justify-content: space-around; align-items: center; pointer-events: none; }
.cta-content { position: relative; max-width: 640px; margin: 0 auto; }
.cta-content h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.cta-content p { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer { background: #1A1A1A; color: #fff; padding: 64px 24px 24px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 800; }
.footer-brand .logo-icon { color: var(--red); }
.footer-text { color: #9CA3AF; font-size: .9rem; line-height: 1.6; }
.footer-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.footer-list { list-style: none; }
.footer-list li { color: #9CA3AF; font-size: .9rem; margin-bottom: 12px; transition: var(--transition); }
.footer-list a:hover { color: var(--red); }
.footer-socials { display: flex; gap: 12px; margin-top: 16px; }
.footer-socials a {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; transition: var(--transition);
}
.footer-socials a:hover { background: var(--red); }
.footer-bottom { max-width: 1200px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid #333; text-align: center; color: #9CA3AF; font-size: .85rem; }

/* ─── Carrito drawer ─────────────────────────────────── */
.cart-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200;
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px;
    background: #fff; z-index: 201; transform: translateX(100%);
    transition: transform .3s ease; display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #F3F4F6; }
.cart-header h2 { font-family: 'Playfair Display', serif; font-size: 1.2rem; }
.cart-close { background: transparent; border: none; cursor: pointer; font-size: 1.2rem; padding: 8px; border-radius: 50%; }
.cart-close:hover { background: #F3F4F6; }
.cart-body { flex: 1; overflow-y: auto; padding: 24px; }
.cart-empty { text-align: center; padding: 64px 0; color: var(--text-soft); }
.cart-empty p:first-child { font-size: 3rem; margin-bottom: 12px; }
.cart-item { display: flex; gap: 16px; background: #F9FAFB; padding: 16px; border-radius: 12px; margin-bottom: 12px; }
.cart-item-img { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #F3F4F6; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-family: 'Pacifico', cursive; color: var(--amber); font-size: 1.1rem; }
.cart-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-qty button { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid #E5E7EB; cursor: pointer; font-size: .9rem; }
.cart-qty button:hover { background: #FEE2E2; }
.cart-qty .qty-num { width: 24px; text-align: center; font-weight: 500; font-size: .9rem; }
.cart-remove { margin-left: auto; background: transparent; border: none; cursor: pointer; color: #9CA3AF; font-size: 1.1rem; }
.cart-remove:hover { color: var(--red); }
.cart-footer { padding: 24px; border-top: 1px solid #F3F4F6; background: #F9FAFB; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 500; }
.cart-total-amount { font-family: 'Pacifico', cursive; font-size: 1.5rem; color: var(--amber); }

/* ─── Nosotros / Contacto ───────────────────────────── */
.two-col { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; } }
.rounded-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.prose p { color: var(--text-soft); margin-bottom: 16px; line-height: 1.7; }

.values-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card { background: #fff; padding: 40px 32px; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon { font-size: 3rem; margin-bottom: 16px; }
.value-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.value-text { color: var(--text-soft); }

.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.info-list { margin-top: 32px; }
.info-row { display: flex; gap: 16px; margin-bottom: 24px; }
.info-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: #FEE2E2; color: var(--red);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.info-row h4 { color: var(--text-dark); margin-bottom: 4px; }
.info-row p  { color: var(--text-soft); }
.map-placeholder { margin-top: 32px; background: var(--bg-warm); border-radius: var(--radius-lg); height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.map-placeholder p { color: var(--text-soft); font-size: 1.1rem; }
.map-placeholder p.muted { color: var(--text-muted); font-size: .85rem; }

/* ─── Formularios ───────────────────────────────────── */
.form-card { background: #fff; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.form-card.center { text-align: center; }
.form-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .85rem; font-weight: 500; color: var(--text-dark); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 1px solid #E5E7EB; border-radius: 10px;
    font-family: inherit; font-size: .95rem; transition: var(--transition); outline: none;
    background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--red); box-shadow: 0 0 0 3px #FEE2E2;
}
.form-group textarea { resize: vertical; }
.form-group .has-error { border-color: var(--red); }
.error-text { color: var(--red); font-size: .75rem; margin-top: 4px; display: block; }
.alert-error { background: #FEE2E2; color: var(--red-dark); padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: .9rem; }

.success-state { text-align: center; padding: 32px 0; }
.success-icon { font-size: 4rem; margin-bottom: 16px; }
.success-state h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 8px; }
.success-state p  { color: var(--text-soft); margin-bottom: 8px; }
.success-state .btn { margin-top: 16px; }

/* ─── Checkout summary ─────────────────────────────── */
.checkout-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .checkout-grid { grid-template-columns: 1fr 1fr; } }
.summary-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #F3F4F6; }
.summary-row:last-of-type { border-bottom: none; }
.summary-name { font-weight: 500; }
.summary-meta { color: var(--text-soft); font-size: .85rem; }
.summary-amount { font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; padding-top: 16px; border-top: 2px solid #E5E7EB; font-weight: 700; font-size: 1.2rem; margin-top: 12px; }
.summary-empty { padding: 24px 0; color: var(--text-soft); text-align: center; }

/* ─── Reveal animation ─────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ─── Auth & Nav user ──────────────────────────────────── */
.nav-auth-link {
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 999px;
    transition: var(--transition);
}
.navbar-transparent:not(.scrolled) .nav-auth-link { color: #fff; }
.nav-auth-link:hover { background: rgba(220, 38, 38, 0.1); color: var(--red); }

.nav-user {
    display: flex; align-items: center; gap: 10px;
    font-size: .92rem;
}
.nav-user-name { font-weight: 600; color: var(--text-dark); }
.navbar-transparent:not(.scrolled) .nav-user-name { color: #fff; }
.nav-user-logout {
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: .82rem;
    transition: var(--transition);
}
.navbar-transparent:not(.scrolled) .nav-user-logout {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.4);
}
.nav-user-logout:hover { background: var(--red); color: #fff; border-color: var(--red); }

@media (max-width: 768px) {
    .nav-user-logout { display: none; } /* en móvil queda en el menú hamburguesa */
    .nav-user-name   { font-size: .85rem; }
    .nav-auth-link   { padding: 6px 12px; font-size: .9rem; }
}

/* ─── Auth pages ───────────────────────────────────────── */
.auth-container { max-width: 480px; }
.auth-switch {
    margin-top: 18px;
    text-align: center;
    color: var(--text-soft);
    font-size: .92rem;
}
.auth-switch a { color: var(--red); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.auth-hint {
    background: var(--bg-warm);
    border-left: 3px solid var(--amber);
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: .9rem;
    color: var(--text-soft);
}
.auth-hint a { color: var(--red); font-weight: 600; }
.auth-hint a:hover { text-decoration: underline; }

.help-text {
    display: block;
    margin-top: 6px;
    font-size: .82rem;
    color: var(--text-muted);
}
