/* ====== D-Mell'O Studios - Capa moderna (limpia) ====== */

/* === BASE === */
html {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #2e1065 100%);
    background-attachment: fixed;
}

body { background: transparent !important; }
section, .hero { background: transparent !important; }

/* Ruido sutil */
body::after {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    z-index: 9999;
}

/* === CANVAS MÚSICA + FONDOS POR SECCIÓN === */
#musicBg {
    position: fixed; inset: 0;
    z-index: -1;
    pointer-events: none;
}

#bgScenes {
    position: fixed; inset: 0;
    z-index: -2;
    overflow: hidden;
}

.bg-scene {
    position: absolute;
    inset: -4%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease, transform 7s linear;
}

.bg-scene.active {
    opacity: 1;
    transform: scale(1);
}

.bg-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 8, 22, 0.55), rgba(8, 8, 22, 0.3) 45%, rgba(8, 8, 22, 0.6)),
        radial-gradient(70% 60% at 50% 40%, rgba(139, 92, 246, 0.12), transparent 70%);
}

/* === TARJETAS 3D + SCROLL REVEAL === */
.tilt-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    will-change: transform;
}

.tilt-card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.14), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.tilt-card:hover::before { opacity: 1; }

.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.field-reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s ease;
}

.field-reveal.field-in {
    opacity: 1;
    transform: none;
    filter: none;
}

/* === BOTONES HALO === */
.btn, .user-action-btn { position: relative; }

.btn::after, .user-action-btn::after {
    content: '';
    position: absolute; inset: -3px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300% 100%;
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s;
    animation: borderFlow 4s linear infinite;
}

.btn:hover::after, .user-action-btn:hover::after { opacity: 0.8; }

@keyframes borderFlow { to { background-position: 300% 0; } }

/* === TÍTULOS CON BRILLO === */
.section-title h2, .profile-header h1 {
    background-size: 200% auto;
    animation: shineText 5s linear infinite;
}

@keyframes shineText { to { background-position: 200% center; } }

.section-title h2 { color: #ffffff; }
.section-title p { color: rgba(255, 255, 255, 0.7); }

/* === SERVICIOS === */
.services-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem;
}

.service-card {
    padding: 1.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(139, 92, 246, 0.25);
    backdrop-filter: blur(12px);
    border-radius: 20px;
}

.service-card h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
}

.service-icon {
    width: 58px; height: 58px;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 620px) {
    .services-grid { grid-template-columns: 1fr !important; }
}

/* === LOWMHY (contenedor base — los estilos se inyectan desde lowmhy-3d.js) === */
.lowmhy {
    position: fixed;
    top: 0; left: 0;
    z-index: 1400;
    cursor: pointer;
    will-change: transform;
}

.lowmhy-bubble {
    position: fixed;
    z-index: 1401;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    padding: 8px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s;
    white-space: nowrap;
}

.lowmhy-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

/* === PANELES DE CRISTAL === */
.form-container,
.step-card,
.testimonial-card,
.login-container,
.cart-summary,
.testimonials-container,
.voice-option-item {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35) !important;
    color: #ffffff;
}

.step-card h3,
.login-container h2,
.form-container label,
.checkbox-group span,
.cart-summary h3,
.cart-item span,
.cart-total span,
.voice-option-header span,
.testimonial-card h3,
.testimonial-card p {
    color: #ffffff !important;
}

.step-card p,
.testimonials-header p,
.login-container p {
    color: rgba(255, 255, 255, 0.75) !important;
}

.form-container input,
.form-container select,
.form-container textarea,
.login-container input,
.discount-input-group input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
    color: #ffffff !important;
}

.form-container ::placeholder,
.login-container ::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-container select option {
    color: #0f172a;
    background: #ffffff;
}

.form-container input[type="date"] {
    color-scheme: dark;
}

/* === NAVBAR PÍLDORA === */
header {
    position: fixed;
    top: 0; left: 50%;
    transform: translateX(-50%);
    background: #000 !important;
    padding: 10px 28px;
    border-radius: 0 0 24px 24px;
    border-bottom: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    backdrop-filter: none;
    z-index: 1000;
}

header .container.navbar {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}

.logo { font-size: 1.05rem; gap: 8px; letter-spacing: 0; }
.logo i { font-size: 1.2rem; }

.nav-links { gap: 24px; }
.nav-links a { color: rgba(245, 243, 255, 0.8); font-size: 0.8rem; }
.nav-links a:hover { color: #ffffff; }

.nav-links li:last-child a {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.45);
}

.nav-links li:last-child a:hover { transform: translateY(-2px); }

@media (max-width: 768px) {
    header { left: 0; transform: none; width: 100%; border-radius: 0; padding: 10px 16px; }
}

/* === HERO === */
.hero-wrap { height: 100vh; width: 100%; padding: 16px; }

.hero {
    position: relative;
    height: 100%;
    width: 100%;
    background: transparent !important;
}

.waveform {
    position: absolute;
    top: 42%; left: 0; right: 0;
    width: 100%;
    opacity: 0.25;
    pointer-events: none;
    z-index: 10;
}

.hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0 24px 24px;
    z-index: 20;
}

.equalizer {
    position: absolute;
    bottom: 100%; left: 0; right: 0;
    height: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    opacity: 0.35;
    pointer-events: none;
}

.eq-bar {
    width: 5px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(to top, var(--accent), var(--primary-light));
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
    gap: 16px;
}

.title-col { grid-column: span 12; }
.side-col { grid-column: span 12; display: flex; flex-direction: column; gap: 20px; padding-bottom: 8px; }

@media (min-width: 1024px) {
    .title-col { grid-column: span 8; }
    .side-col { grid-column: span 4; padding-bottom: 32px; }
}

.hero-title {
    margin: 0;
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 10vw, 8.5rem);
    line-height: 0.85;
    letter-spacing: -0.03em;
    color: #F5F3FF !important;
    -webkit-text-fill-color: #F5F3FF !important;
    background: none !important;
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
}

.hero-sub {
    font-size: 0.9rem;
    line-height: 1.35;
    color: rgba(245, 243, 255, 0.7);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1) .5s, transform .8s cubic-bezier(.16,1,.3,1) .5s;
}

.cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1) .65s, transform .8s cubic-bezier(.16,1,.3,1) .65s;
}

.hero-sub.in-view, .cta-group.in-view {
    opacity: 1;
    transform: translateY(0);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 4px 4px 20px;
    text-decoration: none;
    transition: gap .2s;
}

.btn-primary:hover { gap: 14px; }

.btn-primary .icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #000;
    transition: transform .2s;
}

.btn-primary:hover .icon-circle { transform: scale(1.1); }
.btn-primary svg { width: 16px; height: 16px; color: #F5F3FF; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 11px 20px;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: transform .2s;
}

.btn-secondary:hover { transform: scale(1.03); }
.btn-secondary svg { width: 14px; height: 14px; }

/* === OPCIONES DE VOZ === */
.voice-options-list {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.voice-option-item {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.25s ease;
    box-shadow: none !important;
}

.voice-option-item:hover {
    border-color: rgba(139, 92, 246, 0.6) !important;
    background: rgba(139, 92, 246, 0.12) !important;
    transform: translateY(-2px);
}

.voice-option-item.selected {
    border-color: var(--secondary) !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.18)) !important;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.35), 0 8px 24px rgba(139, 92, 246, 0.25) !important;
}

.voice-option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 600;
}

.voice-option-header i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

.voice-option-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.voice-option-price .price {
    color: var(--primary-light);
    font-weight: 800;
    font-size: 1.05rem;
}

.voice-option-price .deposit {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}
/* ====== FONDO NÍTIDO: anula el blur/opacidad heredado de style.css ====== */
.hero,
.hero-wrap,
section,
.hero::before,
.hero::after,
section::before,
section::after {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Por si aún quedan los divs viejos en el HTML */
.hero-bg,
.hero-overlay-v {
    display: none !important;
}