/* ==========================================================================
   ESTILOS GENERALES Y Apple UI Clean Theme
   ========================================================================== */

:root {
    --bg-main: #FBFBFD;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --apple-blue: #0071E3;
    --apple-blue-hover: #0077ED;
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.08);
    --radius-large: 22px;
    --radius-button: 980px;
    
    /* Curva de animación ultra fluida */
    --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s var(--ease-fluid), color 0.4s var(--ease-fluid);
}

body {
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -.022em;
    background-color: var(--bg-main);
    color: var(--text-primary);
}

.container { max-width: 1024px; margin: 0 auto; padding: 0 22px; }

/* Indicador de Clic */
.click-hint {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--apple-blue);
    margin-bottom: 12px;
    user-select: none;
    cursor: pointer;
    text-align: center;
}

/* Header & Nav */
.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    height: 52px;
    display: flex;
    align-items: center;
    transition: background 0.4s var(--ease-fluid), border-color 0.4s var(--ease-fluid);
}

.nav-container { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); text-decoration: none; transition: transform 0.3s var(--ease-fluid); }
.logo:hover { transform: scale(1.03); }
.logo span { color: var(--apple-blue); }

.nav-menu { display: flex; align-items: center; gap: 12px; }

/* EFECTO DE RESALTO FLUIDO EN EL MENÚ SUPERIOR */
.nav-menu a:not(.btn-nav) {
    color: var(--text-primary);
    opacity: 0.75;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s var(--ease-fluid);
    font-weight: 500;
}

.nav-menu a:not(.btn-nav):hover {
    opacity: 1;
    color: var(--apple-blue);
    background: rgba(0, 113, 227, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.06);
}

.nav-menu a:not(.btn-nav):active {
    transform: translateY(0) scale(0.97);
}

.btn-nav {
    background: var(--apple-blue);
    color: #FFFFFF !important;
    padding: 7px 16px !important;
    border-radius: var(--radius-button);
    font-size: 0.8rem !important;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
    transition: all 0.3s var(--ease-fluid) !important;
}

.btn-nav:hover {
    background: var(--apple-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.4);
}

.btn-nav:active {
    transform: translateY(0) scale(0.96);
}

/* INTERRUPTOR DE PARED ULTRA FLUIDO */
.wall-switch {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    margin: 0 6px;
    transition: transform 0.3s var(--ease-fluid);
}

.wall-switch:hover {
    transform: scale(1.08);
}

.wall-switch:active {
    transform: scale(0.95);
}

.switch-plate {
    width: 28px;
    height: 36px;
    background: linear-gradient(145deg, #ffffff, #e2e2e7);
    border-radius: 6px;
    padding: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-fluid);
}

.switch-button {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #ededf2 100%);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transform: perspective(80px) rotateX(14deg);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 3px;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s var(--ease-fluid), box-shadow 0.35s var(--ease-fluid);
}

.switch-indicator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #c7c7cc;
    transition: all 0.4s var(--ease-fluid);
}

/* Modo Oscuro del Interruptor */
body.dark-mode .switch-plate {
    background: linear-gradient(145deg, #2c2c2e, #1c1c1e);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

body.dark-mode .switch-button {
    background: linear-gradient(to bottom, #2c2c2e 0%, #3a3a3c 100%);
    transform: perspective(80px) rotateX(-14deg);
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3);
    padding-bottom: 0;
    padding-top: 3px;
    align-items: flex-start;
}

body.dark-mode .switch-indicator {
    background-color: #34c759;
    box-shadow: 0 0 6px #34c759;
}

/* Hero */
.hero { padding: 80px 0 60px; text-align: center; }
.hero-grid { display: flex; flex-direction: column; align-items: center; }
.badge { font-size: 0.85rem; font-weight: 600; color: #BF4800; margin-bottom: 10px; display: block; }
.hero-text h1 { font-size: 3rem; font-weight: 600; line-height: 1.08; margin-bottom: 14px; }
.hero-text p { font-size: 1.2rem; color: var(--text-secondary); max-width: 620px; margin: 0 auto 30px; }
.hero-buttons { display: flex; justify-content: center; gap: 18px; margin-bottom: 35px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-button);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s var(--ease-fluid);
}

.btn-primary { background: var(--apple-blue); color: #FFFFFF; }
.btn-primary:hover { background: var(--apple-blue-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3); }

.btn-secondary { background: rgba(0, 0, 0, 0.05); color: var(--apple-blue); }
.btn-secondary:hover { background: rgba(0, 113, 227, 0.12); transform: translateY(-2px); }

.hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 10px; }
.stat-item strong { display: block; font-size: 2rem; font-weight: 600; }
.stat-item span { font-size: 0.85rem; color: var(--text-secondary); }

/* MOCKUP TARJETAS GOOGLE FLOTANTES */
.hero-card-container { margin-top: 20px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.card-stack-wrapper { position: relative; width: 320px; height: 380px; perspective: 1000px; cursor: pointer; }

.nfc-card {
    width: 220px; height: 340px; background: #FFFFFF; border-radius: 12px; padding: 24px 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    box-shadow: -15px 20px 30px rgba(0, 0, 0, 0.15); border: 1px solid rgba(0, 0, 0, 0.08);
    position: absolute; transition: transform 0.6s var(--ease-fluid); color: #1d1d1f; text-align: center;
}

.card-title { font-size: 0.72rem; font-weight: 600; color: #333; margin: 0; }
.card-brand { font-size: 1.3rem; font-weight: 800; margin: -4px 0 2px; color: #000; }
.stars { color: #FFB400; font-size: 1.1rem; }
.qr-text { font-size: 0.65rem; font-weight: 700; color: #333; }
.qr-placeholder img { width: 70px; height: 70px; border-radius: 4px; }

.card-back { top: 0; right: 20px; transform: rotateX(40deg) rotateZ(-28deg) translateZ(-30px); }
.card-front { top: 40px; left: 20px; transform: rotateX(40deg) rotateZ(-28deg) translateZ(30px); }

.card-stack-wrapper:hover .card-front { transform: rotateX(30deg) rotateZ(-16deg) translateZ(60px) scale(1.02); }
.card-stack-wrapper:hover .card-back { transform: rotateX(45deg) rotateZ(-34deg) translateZ(-40px); }

/* SECCIÓN PROMOCIÓN & ESTAMPILLA */
.promo-section { padding: 80px 0; background: rgba(0,0,0,0.02); border-top: 1px solid var(--border-light); }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.badge-free { display: inline-block; background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #bc1888); color: white; font-weight: 700; font-size: 0.75rem; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.promo-info h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 16px; }
.promo-desc { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 20px; }
.promo-features li { font-size: 0.95rem; margin-bottom: 10px; }

.viewer-3d-wrapper { display: flex; flex-direction: column; align-items: center; }
.nfc-sticker-container { width: 280px; height: 280px; perspective: 800px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sticker-3d-card { width: 220px; height: 220px; position: relative; transform-style: preserve-3d; animation: autoFloat 6s ease-in-out infinite alternate; transition: transform 0.4s var(--ease-fluid); }

.nfc-sticker-container:hover .sticker-3d-card { transform: scale(1.06) rotateX(20deg) rotateY(10deg); }

@keyframes autoFloat {
    0% { transform: rotateX(15deg) rotateY(-20deg); }
    100% { transform: rotateX(25deg) rotateY(20deg); }
}

.sticker-face { position: absolute; width: 100%; height: 100%; border-radius: 50%; backface-visibility: hidden; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); }
.face-front { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(5px); border: 2px solid rgba(220, 220, 220, 0.6); display: flex; align-items: center; justify-content: center; }
.nfc-chip-center { width: 14px; height: 14px; background: #2b2b2b; border-radius: 2px; position: absolute; top: 55%; left: 42%; z-index: 10; }
.nfc-dot { position: absolute; width: 12px; height: 12px; background: #b5b5b5; border-radius: 50%; }
.dot-1 { top: 38%; left: 50%; } .dot-2 { top: 33%; left: 68%; }
.nfc-coil { position: absolute; border-radius: 50%; border: 3px solid #6e6e6e; }
.coil-1 { width: 190px; height: 190px; } .coil-2 { width: 170px; height: 170px; }
.coil-3 { width: 150px; height: 150px; } .coil-4 { width: 130px; height: 130px; }
.coil-5 { width: 110px; height: 110px; }

.face-back { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #bc1888); transform: rotateY(180deg); display: flex; align-items: center; justify-content: center; }
.ig-icon-container { display: flex; flex-direction: column; align-items: center; color: white; }

/* MODALES Y RENDER 360 COMPLETO */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(12px);
    z-index: 10000; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease-fluid);
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: var(--bg-main); border-radius: 24px; padding: 32px;
    width: 90%; max-width: 700px; position: relative; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    display: flex; flex-direction: column; align-items: center;
    transform: scale(0.92); transition: transform 0.4s var(--ease-fluid);
}

.modal-overlay.active .modal-content { transform: scale(1); }

.modal-close { position: absolute; top: 16px; right: 20px; font-size: 2rem; background: none; border: none; cursor: pointer; color: var(--text-primary); opacity: 0.6; transition: opacity 0.2s; }
.modal-close:hover { opacity: 1; }
.modal-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; text-align: center; }
.modal-instruction { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 20px; text-align: center; }

.modal-3d-stage { width: 100%; height: 320px; perspective: 1000px; cursor: grab; display: flex; align-items: center; justify-content: center; }
.modal-3d-stage:active { cursor: grabbing; }

.card-3d-object {
    width: 200px; height: 300px; position: relative; transform-style: preserve-3d; transition: transform 0.05s linear;
}

.card-face {
    position: absolute; width: 100%; height: 100%; border-radius: 12px;
    background: #FFFFFF; color: #1d1d1f; padding: 20px; display: flex;
    flex-direction: column; align-items: center; justify-content: space-between;
    backface-visibility: hidden; border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); text-align: center;
}

.card-face-back {
    transform: rotateY(180deg); background: linear-gradient(135deg, #2c2c2e, #1c1c1e); color: white;
    justify-content: center;
}

.nfc-chip-back {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}

.chip-graphic {
    width: 60px; height: 60px; border-radius: 50%; border: 3px solid #0071E3;
    display: flex; align-items: center; justify-content: center; font-weight: 800; color: #0071E3;
}

.modal-footer-info { margin-top: 15px; font-size: 0.85rem; color: var(--text-secondary); text-align: center; }

/* Modal Estampilla Layout */
.modal-sticker-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; align-items: center; }
.sticker-3d-object { width: 220px; height: 220px; position: relative; transform-style: preserve-3d; transition: transform 0.05s linear; }

.sticker-info-panel h4 { font-size: 1.1rem; margin-bottom: 8px; }
.sticker-info-panel p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }
.sticker-info-panel ul { list-style: none; font-size: 0.8rem; }
.sticker-info-panel ul li { margin-bottom: 6px; }

/* Secciones, Pricing y Footer */
.how-it-works, .pricing { padding: 80px 0; text-align: center; }
.section-title { font-size: 2.2rem; font-weight: 600; }
.section-subtitle { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.step-card, .pricing-card {
    background: var(--card-bg); padding: 30px; border-radius: var(--radius-large);
    box-shadow: var(--shadow-subtle); border: 1px solid var(--border-light); text-align: left;
    transition: transform 0.3s var(--ease-fluid), box-shadow 0.3s var(--ease-fluid);
}

.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.pricing-card { max-width: 440px; margin: 0 auto; text-align: center; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.price { font-size: 3rem; font-weight: 600; margin: 15px 0 5px; }
.features-list { list-style: none; text-align: left; margin-bottom: 30px; }
.features-list li { padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; }
.btn-block { display: flex; width: 100%; }

.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; background: #25D366; width: 56px; height: 56px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); z-index: 1000;
    transition: transform 0.3s var(--ease-fluid);
}
.whatsapp-float:hover { transform: scale(1.1); }

footer { padding: 30px 0; text-align: center; font-size: 0.8rem; color: var(--text-secondary); border-top: 1px solid var(--border-light); }

/* Dark Mode */
body.dark-mode {
    --bg-main: #000000;
    --card-bg: #1C1C1E;
    --text-primary: #F5F5F7;
    --text-secondary: #86868B;
    --border-light: rgba(255, 255, 255, 0.12);
}
body.dark-mode .navbar { background: rgba(0, 0, 0, 0.8); }
body.dark-mode .modal-content { background: #1C1C1E; color: #F5F5F7; }

@media (max-width: 768px) {
    .modal-sticker-layout { grid-template-columns: 1fr; }
    .promo-grid, .steps-grid { grid-template-columns: 1fr; }
    .nav-menu { display: none; }
}/* Ajuste Adaptativo Móvil con Navegación Visibles */
@media (max-width: 768px) {
    .nav-container {
        gap: 8px;
    }

    .nav-menu {
        display: flex !important;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Oculta scrollbar en Firefox */
    }

    .nav-menu::-webkit-scrollbar {
        display: none; /* Oculta scrollbar en Chrome/Safari */
    }

    .nav-menu a:not(.btn-nav) {
        font-size: 0.78rem;
        padding: 5px 10px;
        flex-shrink: 0;
    }

    .btn-nav {
        padding: 5px 12px !important;
        font-size: 0.75rem !important;
        flex-shrink: 0;
    }

    .modal-sticker-layout { 
        grid-template-columns: 1fr; 
    }

    .promo-grid, 
    .steps-grid { 
        grid-template-columns: 1fr; 
    }
}