/* ============================================================
   CARNE CAMPERA — v4.0 — Smooth Intro + Living Orbital Menu
   ============================================================ */

:root {
    --bg: #231B15;
    --bg-rgb: 35, 27, 21;
    --cuero: #E8B888;
    --cuero-dark: #7A5A3E;
    --crema: #FFF8EE;
    --dorado: #F5E6C0;
    --font-serif: 'Playfair Display', 'Georgia', serif;
    --font-sans: 'Montserrat', 'Arial', sans-serif;
    --logo-size: clamp(120px, 26vmin, 190px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--crema);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

/* Grain */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}

/* ============================================================
   STAGE
   ============================================================ */
.stage {
    position: fixed;
    inset: 0;
    z-index: 10;
    transition: opacity 0.5s ease;
}

/* ============================================================
   LOGO-ORBIT WRAPPER — centered anchor, zero-size
   ============================================================ */
.logo-orbit-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
}

/* ============================================================
   LOGO HUB — uses ONLY transform for all size changes
   Fixed CSS width/height, scale() does the rest.
   ============================================================ */
.logo-hub {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--logo-size);
    height: var(--logo-size);
    /* Center it on the 0,0 anchor */
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
    cursor: pointer;
    z-index: 20;
    will-change: transform, opacity;
    /* Single transition for the entire intro+shrink */
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 1s ease;
}

.logo-hub svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 40px rgba(232,184,136,0.08));
    transition: filter 0.4s ease;
}

.logo-hub:hover svg {
    filter: drop-shadow(0 0 60px rgba(232,184,136,0.2))
            drop-shadow(0 0 100px rgba(232,184,136,0.06));
}

/* Phase 1: fade in at large scale */
.logo-hub.phase-show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.8);
}

/* Phase 2: shrink to menu size */
.logo-hub.phase-shrink {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.5s ease;
}

/* Phase 3: settled — same as shrink but allow hover effects */
.logo-hub.phase-ready {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

/* Pulse ring when ready */
.logo-hub.phase-ready::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(232,184,136,0.2);
    opacity: 0;
    animation: pulseRing 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0; }
    50% { transform: scale(1.08); opacity: 0.6; }
}

.logo-hub.phase-ready:hover::before {
    animation: pulseRing 1.5s ease-in-out infinite;
}

/* ============================================================
   INTRO TAGLINE
   ============================================================ */
/* The tagline sits below the large logo (scale 1.8 × logo-size ÷ 2 + gap) */
.intro-tagline {
    position: absolute;
    top: 0;
    left: 0;
    /* Push below the large-scale logo: half of (logo-size × 1.8) + some gap */
    transform: translate(-50%, calc(var(--logo-size) * 0.95 + 10px));
    white-space: nowrap;
    font-family: var(--font-serif);
    font-size: clamp(0.85rem, 2vw, 1.2rem);
    font-style: italic;
    color: var(--dorado);
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    text-align: center;
    z-index: 15;
}

.intro-tagline.visible { opacity: 0.8; }
.intro-tagline.hidden { opacity: 0; transition: opacity 0.6s ease; }

/* ============================================================
   HOOK TEXT
   ============================================================ */
.hook-line {
    position: fixed;
    bottom: clamp(1.5rem, 5vh, 3.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    text-align: center;
    width: 90%;
    max-width: 560px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hook-line.active { opacity: 1; }

.hook-line__text {
    font-family: var(--font-serif);
    font-size: clamp(0.85rem, 2.2vw, 1.2rem);
    font-style: italic;
    color: var(--dorado);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hook-line__text.visible {
    opacity: 0.6;
    transform: translateY(0);
}

/* ============================================================
   ORBITAL RING — static container, NO rotation
   ============================================================ */
.orbit-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 15;
    pointer-events: none;
}

/* ============================================================
   ORBITAL ITEMS — each has its own gentle float animation
   ============================================================ */
.orbit-item {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-align: center;
}

/* Stagger fly-out */
.orbit-item:nth-child(1) { transition-delay: 0.00s; }
.orbit-item:nth-child(2) { transition-delay: 0.09s; }
.orbit-item:nth-child(3) { transition-delay: 0.18s; }
.orbit-item:nth-child(4) { transition-delay: 0.27s; }
.orbit-item:nth-child(5) { transition-delay: 0.36s; }

.orbit-ring.is-open .orbit-item {
    opacity: 1;
    pointer-events: auto;
}

/* ── Subtle per-item float — each item gently bobs at its own rhythm ── */
.orbit-ring.is-open .orbit-item:nth-child(1) { animation: floatA 6s ease-in-out 0.5s infinite; }
.orbit-ring.is-open .orbit-item:nth-child(2) { animation: floatB 7s ease-in-out 1.0s infinite; }
.orbit-ring.is-open .orbit-item:nth-child(3) { animation: floatA 8s ease-in-out 0.2s infinite; }
.orbit-ring.is-open .orbit-item:nth-child(4) { animation: floatB 6.5s ease-in-out 0.8s infinite; }
.orbit-ring.is-open .orbit-item:nth-child(5) { animation: floatA 7.5s ease-in-out 0.4s infinite; }

@keyframes floatA {
    0%, 100% { margin-top: 0; }
    50%      { margin-top: -6px; }
}

@keyframes floatB {
    0%, 100% { margin-top: 0; }
    50%      { margin-top: 5px; }
}

/* Inner wrapper (no counter-rotation needed anymore) */
.orbit-item-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.orbit-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(232,184,136,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cuero);
    background: rgba(35,27,21,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.4s ease, box-shadow 0.4s ease,
                transform 0.3s ease, background 0.4s ease;
}

.orbit-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--cuero);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

/* Hover / tap glow — clean, no random highlight */
.orbit-item:hover .orbit-icon,
.orbit-item:active .orbit-icon {
    border-color: var(--cuero);
    box-shadow: 0 0 18px rgba(232,184,136,0.3),
                0 0 40px rgba(232,184,136,0.08);
    transform: scale(1.1);
    background: rgba(232,184,136,0.08);
}

.orbit-item:hover .orbit-icon svg {
    stroke: var(--crema);
}

.orbit-label {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--dorado);
    opacity: 0.5;
    transition: opacity 0.4s ease, color 0.4s ease;
    white-space: nowrap;
}

.orbit-item:hover .orbit-label {
    opacity: 1;
    color: var(--crema);
}

/* ── Connecting lines ── */
.orbit-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(232,184,136,0.15) 0%, rgba(232,184,136,0) 100%);
    transform-origin: 0% 50%;
    opacity: 0;
    transition: opacity 0.6s ease 0.25s;
    pointer-events: none;
}

.orbit-ring.is-open .orbit-line {
    opacity: 1;
}

/* ============================================================
   PANELS
   ============================================================ */
.panels { position: relative; z-index: 5; }

.panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(5rem, 12vh, 8rem) clamp(1.5rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel.visible { opacity: 1; transform: translateY(0); }

.panel__inner { max-width: 960px; margin: 0 auto; width: 100%; }

.panel::before {
    content: '';
    position: absolute;
    left: clamp(0.8rem, 3vw, 2.5rem);
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(232,184,136,0.15), transparent);
}

.panel__sub {
    font-family: var(--font-sans);
    font-size: clamp(0.6rem, 1.2vw, 0.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--cuero);
    margin-bottom: 0.8rem;
}

.panel__title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--crema);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.panel__text {
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    line-height: 1.85;
    color: var(--dorado);
    max-width: 640px;
}

.panel__text p + p { margin-top: 1.2em; }
.panel__text strong { color: var(--crema); font-weight: 600; }

.panel__divider {
    width: 60px; height: 2px; background: var(--cuero);
    margin: 1.5rem 0 2rem; position: relative;
}
.panel__divider::after {
    content: '';
    position: absolute; width: 6px; height: 6px;
    background: var(--crema); border-radius: 50%;
    top: -2px; left: 27px;
}

/* Stats */
.stats-row { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; flex-wrap: wrap; }
.stat { text-align: center; flex: 1 1 120px; min-width: 100px; }
.stat__number { font-family: var(--font-serif); font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 900; color: var(--cuero); line-height: 1; }
.stat__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--dorado); margin-top: 0.4rem; opacity: 0.7; }

/* Quote */
.quote {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.8vw, 1.7rem);
    font-style: italic; color: var(--crema);
    border-left: 2px solid var(--cuero);
    padding-left: 1.5rem; margin: 2rem 0;
    max-width: 580px; line-height: 1.5;
}

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; border: 1px solid rgba(232,184,136,0.2);
    border-radius: 100px; font-size: 0.75rem; font-weight: 500;
    color: var(--crema); background: rgba(232,184,136,0.06);
    transition: border-color 0.3s ease, background 0.3s ease;
}
.badge:hover { border-color: rgba(232,184,136,0.5); background: rgba(232,184,136,0.12); }
.badge svg { width: 14px; height: 14px; stroke: var(--cuero); fill: none; stroke-width: 2.5; }

/* Cortes */
.cortes-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.cortes-tab {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.15em; padding: 0.5rem 1.2rem;
    border: 1px solid rgba(232,184,136,0.2); border-radius: 100px;
    color: var(--dorado); transition: all 0.3s ease;
}
.cortes-tab:hover, .cortes-tab.active { background: var(--cuero); color: var(--bg); border-color: var(--cuero); }

.cortes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.8rem; }

.corte-card {
    position: relative; padding: 1.2rem 1.4rem;
    border: 1px solid rgba(232,184,136,0.1); border-radius: 10px;
    background: rgba(232,184,136,0.03); overflow: hidden;
    transition: border-color 0.3s ease, transform 0.2s ease;
}
.corte-card::after {
    content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(232,184,136,0.1) 0%, transparent 70%);
    pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
    transform: translate(-50%, -50%); left: var(--mx, 50%); top: var(--my, 50%);
}
.corte-card:hover { border-color: rgba(232,184,136,0.35); transform: translateY(-2px); }
.corte-card:hover::after { opacity: 1; }

.corte-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--crema); }
.corte-desc { font-size: 0.72rem; color: var(--dorado); opacity: 0.6; margin: 0.15rem 0 0.5rem; }
.corte-price { font-family: var(--font-sans); font-size: 1.2rem; font-weight: 700; color: var(--cuero); }
.corte-unit { font-size: 0.6rem; color: var(--dorado); opacity: 0.5; }
.cortes-group { display: none; }
.cortes-group.active { display: grid; }

/* Timeline */
.timeline { position: relative; margin-top: 2rem; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--cuero), rgba(232,184,136,0.2)); }
.tl-step { position: relative; padding: 0 0 2.5rem 2rem; }
.tl-step:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -2rem; top: 0.25rem; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--cuero); background: var(--bg); z-index: 2; transition: background 0.3s ease, box-shadow 0.3s ease; }
.tl-step:hover .tl-dot { background: var(--cuero); box-shadow: 0 0 12px rgba(232,184,136,0.4); }
.tl-title { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--crema); margin-bottom: 0.25rem; }
.tl-desc { font-size: 0.85rem; color: var(--dorado); line-height: 1.6; opacity: 0.8; }

/* Contacto */
.contacto-center { text-align: center; }
.cta-whatsapp {
    display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2rem;
    padding: 0.9rem 2.2rem; font-family: var(--font-sans); font-size: 0.9rem;
    font-weight: 700; color: var(--bg); background: var(--cuero);
    border-radius: 100px; transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
}
.cta-whatsapp:hover { background: var(--dorado); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232,184,136,0.25); }
.cta-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }
.contact-note { margin-top: 1.2rem; font-size: 0.75rem; color: var(--dorado); opacity: 0.5; }

/* Back */
.back-to-logo {
    position: fixed; top: 1.5rem; left: 1.5rem; z-index: 100;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(232,184,136,0.25);
    background: rgba(35,27,21,0.85); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    color: var(--cuero); opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease, border-color 0.3s ease; cursor: pointer;
}
.back-to-logo.visible { opacity: 1; pointer-events: auto; }
.back-to-logo:hover { border-color: var(--cuero); }
.back-to-logo svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* WhatsApp */
.whatsapp-float {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
    width: 52px; height: 52px; border-radius: 50%; background: #25D366;
    color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4); transition: transform 0.2s ease;
    opacity: 0; pointer-events: none;
}
.whatsapp-float.visible { opacity: 1; pointer-events: auto; }
.whatsapp-float:hover { transform: scale(1.1); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cuero-dark); border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
