/* ==========================================================================
   JELODA - Barbería & Grooming (p/barberia/dom/index.css)
   Diseño Premium Dark Glassmorphism, Bento Cards & Responsive Devices
   Clean Code — 100% Separación de Estilos
   ========================================================================== */

/* ── Base layout (shared) ── */
.product-page-wrapper {
    padding-top: 160px !important;
    padding-bottom: 120px !important;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}
.relative-z { position: relative; z-index: 2; }

.product-bg-wave {
    position: absolute; top: 5%; right: -250px; width: 800px; height: auto;
    opacity: 0.3; z-index: 1; pointer-events: none;
    animation: floatSlow 15s infinite ease-in-out;
}
.product-bg-wave img { width: 100%; height: auto; }

.deco-shapes .shape {
    position: absolute; opacity: 0.5;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.4));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.deco-shapes .shape:hover { opacity: 0.8; transform: scale(1.15) rotate(5deg); }
.shape-hexa    { top: 15%; left: 6%; width: 110px; animation: floatSlow 9s infinite ease-in-out; }
.shape-diamond { bottom: 25%; right: 5%; width: 130px; animation: floatSlow 8s infinite ease-in-out 1.5s; }

/* ── Badge premium ── */
.badge-premium, .badge-barber-premium {
    float: none !important;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.05) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    color: #60a5fa !important;
    padding: 6px 16px !important; border-radius: 50px !important;
    font-size: 0.75rem !important; font-weight: 700 !important;
    text-transform: uppercase !important; letter-spacing: 1.5px !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.badge-premium i, .badge-barber-premium i {
    font-size: 14px !important;
    margin-right: 6px;
    line-height: 1 !important;
}
.badge-premium:hover, .badge-barber-premium:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0.1) 100%) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2) !important;
}

.product-hero-title, .barberia-hero-title {
    font-weight: 900 !important;
    font-size: 3.2rem !important;
    line-height: 1.15 !important;
    letter-spacing: -1px;
    color: #ffffff !important;
}

/* ── Botones Premium ── */
.btn-premium {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 0 2.2rem !important;
    height: 52px !important;
    line-height: 52px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    font-size: 1rem !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-block;
}
.btn-premium:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.6) !important;
    background-color: #1d4ed8 !important;
}

/* ── Hero Stats ── */
.hero-stats-wrapper {
    margin-top: 2rem;
}
.stat-item-premium {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.2rem 1rem;
    backdrop-filter: blur(10px);
}
.stat-number-premium {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #60a5fa;
    line-height: 1.1;
}
.stat-label-premium {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 600;
}

/* ── Bento Cards y Showcase ── */
.barber-showcase-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.2rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.barber-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.barber-showcase-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.barber-showcase-lead {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-feature-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}

/* ── Listas de Características ── */
.barber-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}
.barber-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}
.barber-feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
}
.barber-feature-item strong {
    display: block;
    color: #f8fafc;
    font-size: 0.95rem;
}
.barber-feature-item span {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.4;
}

.barber-live-ticker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #34d399;
}

.barber-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: barberPulseEffect 2s infinite;
}

@keyframes barberPulseEffect {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ── Marcos Mac ── */
.mac-window-frame {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.mac-window-header {
    background: rgba(15, 23, 42, 0.85);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mac-window-dots {
    display: flex;
    gap: 6px;
}
.mac-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.mac-dot-red { background: #ff5f56; }
.mac-dot-yellow { background: #ffbd2e; }
.mac-dot-green { background: #27c93f; }
.mac-window-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
}
.mac-window-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Smartphone Frame ── */
.phone-mockup-wrapper {
    max-width: 340px;
    margin: 0 auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.phone-mockup-wrapper:hover {
    transform: translateY(-6px) scale(1.02);
}
.phone-device-frame {
    background: #020617;
    border: 10px solid #1e293b;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 20px rgba(59, 130, 246, 0.2);
    position: relative;
}
.phone-notch {
    width: 100px;
    height: 16px;
    background: #1e293b;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}
.phone-screen {
    overflow: hidden;
    border-radius: 30px;
    background: #ffffff;
}
.phone-screen img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Answer First Box ── */
.answer-first-box {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 14px;
    padding: 1.4rem 1.8rem;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}
.answer-first-box strong {
    color: #ffffff;
}

/* ── Tabla Comparativa ── */
.barber-comparison-table-wrapper {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
}
.barber-comparison-table {
    width: 100%;
    margin-bottom: 0;
    color: #e2e8f0;
}
.barber-comparison-table th {
    background: rgba(30, 41, 59, 0.7);
    padding: 1rem 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.barber-comparison-table td {
    padding: 1rem 1.2rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.barber-comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
.barber-val-jeloda {
    background: rgba(37, 99, 235, 0.1);
    color: #93c5fd;
    font-weight: 600;
}

/* ── FAQ ── */
.faq-item-premium {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}
.faq-question-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}
.faq-answer-text {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════
   Responsive Mobile (iPhone SE 375px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .product-page-wrapper {
        padding-top: 120px !important;
        padding-bottom: 80px !important;
    }
    .product-hero-title, .barberia-hero-title {
        font-size: 2.2rem !important;
    }
    .barber-showcase-card {
        padding: 1.8rem 1.2rem !important;
    }
}

@media (max-width: 576px) {
    .product-page-wrapper {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
    }
    .product-hero-title, .barberia-hero-title {
        font-size: clamp(1.85rem, 8vw, 2.4rem) !important;
        line-height: 1.2 !important;
    }
    .hero-section-product .btn-premium {
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }
    /* Barber Comparison Table -> Interactive Cards Transformation for Mobile */
    .barber-comparison-table-wrapper {
        overflow-x: visible !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        margin: 0 !important;
    }

    .barber-comparison-table {
        display: block !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
    }

    .barber-comparison-table thead {
        display: none !important;
    }

    .barber-comparison-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .barber-comparison-table tr {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        border-radius: 20px !important;
        padding: 18px 16px !important;
        box-sizing: border-box !important;
        background: rgba(22, 22, 28, 0.85) !important;
        border: 1px solid rgba(217, 119, 6, 0.3) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35) !important;
        margin-bottom: 0 !important;
    }

    .theme--light .barber-comparison-table tr {
        background: #ffffff !important;
        border: 1px solid rgba(217, 119, 6, 0.25) !important;
        box-shadow: 0 8px 24px rgba(217, 119, 6, 0.06) !important;
    }

    .barber-comparison-table td {
        display: block !important;
        width: 100% !important;
        padding: 8px 0 !important;
        border: none !important;
        text-align: left !important;
        box-sizing: border-box !important;
        min-width: unset !important;
    }

    /* Nombre de la característica (Card Title) */
    .barber-comparison-table td:first-child {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        color: #f59e0b !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid rgba(217, 119, 6, 0.2) !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
    }

    .theme--light .barber-comparison-table td:first-child {
        color: #d97706 !important;
        border-bottom: 1px solid rgba(217, 119, 6, 0.15) !important;
    }

    /* Sub-tarjeta destacada: Jeloda Barbería */
    .barber-comparison-table td.barber-val-jeloda {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0.04) 100%) !important;
        border: 1px solid rgba(245, 158, 11, 0.4) !important;
        border-radius: 14px !important;
        padding: 12px 14px !important;
        margin-bottom: 10px !important;
        color: #ffffff !important;
    }

    .barber-comparison-table td.barber-val-jeloda::before {
        content: "★ JELODA BARBERÍA (RECOMENDADO)";
        display: block;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.8px;
        color: #f59e0b;
        margin-bottom: 5px;
        text-transform: uppercase;
    }

    .theme--light .barber-comparison-table td.barber-val-jeloda {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
        border-color: rgba(217, 119, 6, 0.35) !important;
        color: #0f172a !important;
    }

    .theme--light .barber-comparison-table td.barber-val-jeloda::before {
        color: #d97706;
    }

    /* Competidores Tradicionales */
    .barber-comparison-table td:nth-of-type(3),
    .barber-comparison-table td:nth-of-type(4) {
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-radius: 12px !important;
        padding: 10px 12px !important;
        margin-bottom: 8px !important;
        font-size: 0.88rem !important;
        color: rgba(255, 255, 255, 0.75) !important;
    }

    .barber-comparison-table td:nth-of-type(3)::before {
        content: "BARBERAPP / AGENDAPRO:";
        display: block;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: rgba(255, 255, 255, 0.45);
        margin-bottom: 3px;
        text-transform: uppercase;
    }

    .barber-comparison-table td:nth-of-type(4)::before {
        content: "CUADERNO / EXCEL:";
        display: block;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: rgba(255, 255, 255, 0.45);
        margin-bottom: 3px;
        text-transform: uppercase;
    }

    .theme--light .barber-comparison-table td:nth-of-type(3),
    .theme--light .barber-comparison-table td:nth-of-type(4) {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        color: #475569 !important;
    }

    .theme--light .barber-comparison-table td:nth-of-type(3)::before,
    .theme--light .barber-comparison-table td:nth-of-type(4)::before {
        color: #64748b;
    }

    .barber-showcase-title {
        font-size: 1.4rem !important;
    }
}

