/* ==========================================================================
   BRUJAS DEL LLANO - STYLESHEET
   Aesthetics: Deep Space Black, Mystical Purple, Cosmic Indigo, Glowing Gold
   Style: Glassmorphic App Experience (Netflix / Spotify Inspired)
   ========================================================================== */

/* --- CSS Variables / Design Tokens --- */
:root {
    --bg-deep-space: #06030c;
    --bg-mystic-dark: #0f0920;
    --bg-glass-card: rgba(22, 12, 40, 0.55);
    --bg-glass-card-hover: rgba(35, 19, 64, 0.75);
    --border-glass: 1px solid rgba(212, 175, 55, 0.15);
    --border-glass-glow: 1px solid rgba(212, 175, 55, 0.4);
    
    --color-gold: #e5b83b;
    --color-gold-glow: rgba(229, 184, 59, 0.4);
    --color-gold-dark: #b58d20;
    --color-purple-cosmic: #8b5cf6;
    --color-purple-deep: #4c1d95;
    --color-blue-deep: #1e1b4b;
    --color-text-light: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-whatsapp: #25d366;
    --color-whatsapp-hover: #20ba5a;

    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-decorative: 'Cinzel Decorative', Cambria, Georgia, serif;

    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --shadow-gold-glow: 0 0 15px rgba(229, 184, 59, 0.25);
    --shadow-purple-glow: 0 0 20px rgba(139, 92, 246, 0.2);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Crystal Ball / Orb Variables */
    --orb-glow-color-1: rgba(139, 92, 246, 0.35);
    --orb-glow-color-2: rgba(139, 92, 246, 0.25);
    --orb-border-color: rgba(255, 255, 255, 0.08);
    --nebula-color-1: rgba(168, 85, 247, 0.5);
    --nebula-color-2: rgba(236, 72, 153, 0.25);
}

/* --- Base & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
    background-color: var(--bg-deep-space);
    overflow-x: hidden;
    width: 100%;
}

#app {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-light);
    background: radial-gradient(circle at 50% 50%, var(--bg-mystic-dark) 0%, var(--bg-deep-space) 100%);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
    border: none;
}

button {
    cursor: pointer;
    background: none;
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep-space);
}
::-webkit-scrollbar-thumb {
    background: var(--color-purple-deep);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-purple-cosmic);
}

/* --- Typographical Utilities --- */
.font-playfair {
    font-family: var(--font-serif);
}

.text-glow {
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(229, 184, 59, 0.6), 0 0 20px rgba(229, 184, 59, 0.2);
}

.sub-title {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-purple-cosmic);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-title-wrap {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    padding: 0 1.5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.center-btn {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* --- Common Components (Buttons, Glass Cards, Modals) --- */
.glass {
    background: var(--bg-glass-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(229, 184, 59, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 184, 59, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.shadow-glow {
    box-shadow: 0 0 15px var(--color-gold-glow);
}

.icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================================================
   PRELOADER STYLING
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-deep-space);
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Star field generator */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1.5px 1.5px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 10px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 150px 120px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 200px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 250px 200px, #fff, rgba(0,0,0,0));
    background-size: 300px 300px;
    opacity: 0.6;
    animation: stars-twinkle 4s infinite linear;
}

/* Animated Moon */
.preloader-background .moon {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, #fffef0 0%, #ffd97d 60%, #c4992b 100%);
    border-radius: 50%;
    box-shadow: 0 0 50px 20px rgba(255, 230, 140, 0.4);
    animation: moon-pulse 5s infinite ease-in-out;
}

.fog {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(15, 9, 32, 0.8) 0%, rgba(15, 9, 32, 0) 100%);
    filter: blur(20px);
    opacity: 0.7;
}

.witch-flight-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.witch-svg {
    position: absolute;
    width: 110px;
    height: 110px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    filter: drop-shadow(0 0 15px var(--color-gold));
    animation: witch-summon-flight 5.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* NEW PREMIUM INTERACTIVE ALCHEMICAL CIRCLE STYLING */
.preloader-interactive-container {
    position: relative;
    width: 280px;
    height: 280px;
    z-index: 2;
    margin-top: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
}

@media (min-width: 768px) {
    .preloader-interactive-container {
        width: 320px;
        height: 320px;
        transform: scale(1);
    }
}

.alchemical-wheel {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.25));
}

.ring-outer {
    transform-origin: 150px 150px;
    animation: spin-ccw 30s linear infinite;
}

.ring-middle {
    transform-origin: 150px 150px;
    animation: spin-cw 22s linear infinite;
}

.self-drawing-star {
    stroke-dasharray: 820;
    stroke-dashoffset: 820;
    animation: draw-star 4.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.portal-bg-aura {
    transform-origin: 150px 150px;
    animation: aura-pulse 3s infinite ease-in-out;
}

.portal-core {
    transform-origin: 150px 150px;
    animation: core-pulse 4s infinite ease-in-out;
}

.mystic-glyph {
    font-family: 'Cinzel Decorative', serif;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(212, 175, 55, 0.6);
}

.preloader-text-container {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-top: 2rem;
    max-width: 90%;
}

.preloader-reveal-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-text-light);
    opacity: 0;
    animation: fade-in-out-text 5.5s forwards;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .preloader-reveal-text {
        font-size: 1.6rem;
    }
}

.preloader-progress-bar {
    width: 220px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto 1.5rem auto;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--color-purple-cosmic), var(--color-gold));
    animation: fill-loader 4.5s ease-in-out forwards;
}

.skip-btn {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
    background: rgba(255,255,255,0.02);
}
.skip-btn:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    background: rgba(229,184,59,0.05);
}

/* Animations for Preloader */
@keyframes stars-twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes moon-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 45px 15px rgba(255, 230, 140, 0.35); }
    50% { transform: scale(1.04); box-shadow: 0 0 65px 25px rgba(255, 230, 140, 0.55); }
}

@keyframes spin-cw {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-ccw {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes draw-star {
    0% { stroke-dashoffset: 820; opacity: 0; }
    15% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0.8; }
}

@keyframes aura-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 0.95; filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6)); }
}

@keyframes core-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes witch-summon-flight {
    0% {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    12% {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(1.1) rotate(-180deg);
        opacity: 1;
        filter: drop-shadow(0 0 25px var(--color-gold));
    }
    28% {
        left: 42%;
        top: 40%;
        transform: translate(-50%, -50%) scale(1.05) rotate(-360deg);
    }
    42% {
        left: 35%;
        top: 58%;
        transform: translate(-50%, -50%) scale(0.95) rotate(-280deg);
    }
    60% {
        left: 65%;
        top: 62%;
        transform: translate(-50%, -50%) scale(1.05) rotate(-180deg);
    }
    80% {
        left: 90%;
        top: 48%;
        transform: translate(-50%, -50%) scale(1.2) rotate(-120deg);
        opacity: 1;
    }
    100% {
        left: 120%;
        top: 25%;
        transform: translate(-50%, -50%) scale(1.4) rotate(-90deg);
        opacity: 0;
    }
}

@keyframes fade-in-out-text {
    0% { opacity: 0; transform: translateY(10px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fill-loader {
    0% { width: 0%; }
    100% { width: 100%; }
}


/* ==========================================================================
   APP HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 3, 12, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--border-glass);
    height: 70px;
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.logo {
    font-family: var(--font-decorative);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.logo-accent {
    text-shadow: none;
}

.logo-img {
    height: 54px; /* Enlarged from 42px for better readability */
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 0.4rem 0.2rem;
    position: relative;
    transition: var(--transition-smooth);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--color-gold);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}
.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

.admin-lock-btn {
    color: var(--color-text-muted);
    opacity: 0.6;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}
.admin-lock-btn:hover {
    color: var(--color-gold);
    opacity: 1;
}

.header-ctas {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-whatsapp-header {
    background-color: var(--color-whatsapp);
    color: #fff;
    padding: 0.45rem 1.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: var(--transition-smooth);
    border-radius: 50px;
    white-space: nowrap;
}
.btn-whatsapp-header:hover {
    background-color: var(--color-whatsapp-hover);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
}

/* Mobile Phone Badge in Header */
.header-phone-mobile {
    display: none;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none; /* Hidden on desktop */
}

/* Urgency Ticker */
.urgency-ticker {
    background: linear-gradient(90deg, #1f1235 0%, #3b145d 50%, #1f1235 100%);
    border-bottom: 1px solid rgba(229, 184, 59, 0.2);
    text-align: center;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    position: fixed;
    top: 70px;
    width: 100%;
    z-index: 999;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.warning-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #ef4444;
    animation: pulse-dot 1.5s infinite;
}

.urgency-timer {
    background-color: rgba(229, 184, 59, 0.15);
    border: 1px solid rgba(229, 184, 59, 0.3);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    color: var(--color-gold);
    font-weight: 700;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}


/* ==========================================================================
   SPA VIEWS & ROUTING SYSTEM
   ========================================================================== */
.content-container {
    margin-top: 105px; /* Offset for header + ticker */
    min-height: calc(100vh - 105px - 300px); /* Fill space above footer */
    padding: 2rem 0;
}

.spa-view {
    display: none; /* Hidden by default */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.spa-view.active {
    display: block; /* Shown when active */
    animation: fade-in-view 0.5s ease forwards;
}

@keyframes fade-in-view {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-header {
    text-align: center;
    max-width: 800px;
    margin: 1.5rem auto 3.5rem auto;
}

.view-title {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.view-intro {
    color: var(--color-text-muted);
    font-size: 1.15rem;
}


/* ==========================================================================
   VIEW: HOME
   ========================================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    padding: 2.5rem 0 4.5rem 0;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 5%;
    right: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(6, 3, 12, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-tag {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-purple-cosmic);
    display: inline-block;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.25rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.25rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.urgency-counter-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1rem;
    border-radius: 12px;
    max-width: 450px;
}

.counter-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, var(--color-purple-cosmic), var(--color-gold));
    border-radius: 10px;
    transition: width 2s ease;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.hero-image-wrapper {
    position: relative;
    max-width: 430px;
    width: 100%;
}

.witch-glowing-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: var(--border-glass);
    box-shadow: var(--shadow-premium), 0 0 30px rgba(139, 92, 246, 0.15);
    background-color: var(--bg-mystic-dark);
    width: 100%;
}

.hero-main-image {
    width: 100%;
    display: block;
    object-fit: cover;
    mix-blend-mode: lighten;
    opacity: 0.95;
}

.sphere-glow {
    position: absolute;
    bottom: 30%;
    left: 43%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(229,184,59,0.7) 40%, rgba(139,92,246,0) 80%);
    border-radius: 50%;
    box-shadow: 0 0 35px 15px rgba(229, 184, 59, 0.6);
    pointer-events: none;
    animation: orb-pulsate 3s infinite ease-in-out;
}

.floating-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: rgba(6, 3, 12, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(229, 184, 59, 0.35);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-premium);
    z-index: 5;
}

.star-rating {
    color: var(--color-gold);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
}

@keyframes orb-pulsate {
    0%, 100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 30px 10px rgba(229, 184, 59, 0.5); }
    50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 45px 20px rgba(229, 184, 59, 0.8); }
}

/* Oráculo AI Chat Widget */
.oraculo-section {
    padding: 4rem 0;
}

.crystal-ball-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
}

/* 3D Rotating Rings wrapper */
.crystal-ball-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 580px) {
    .crystal-ball-wrapper {
        max-width: 290px;
    }
}

/* Magical Rotating Runic Rings in Background */
.crystal-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(229, 184, 59, 0.25);
    pointer-events: none;
}

.crystal-ring.ring-1 {
    width: 104%;
    height: 104%;
    border: 1px dashed rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.05);
    animation: rotate-clockwise 40s linear infinite;
}

.crystal-ring.ring-2 {
    width: 92%;
    height: 92%;
    border: 1px solid rgba(229, 184, 59, 0.15);
    border-style: double;
    animation: rotate-counter 25s linear infinite;
}

/* Speed up background rings on hover to feel charged with energy */
.crystal-ball-wrapper:hover .crystal-ring.ring-1 {
    animation: rotate-clockwise 12s linear infinite;
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.2);
}
.crystal-ball-wrapper:hover .crystal-ring.ring-2 {
    animation: rotate-counter 8s linear infinite;
    border-color: rgba(229, 184, 59, 0.4);
}

@keyframes rotate-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-counter {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* The Main Crystal Ball Sphere */
.crystal-ball {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 120%, rgba(33, 13, 61, 0.85) 0%, rgba(13, 7, 28, 0.95) 80%);
    border: 2px solid var(--orb-border-color);
    box-shadow: 
        inset 0 0 40px var(--orb-glow-color-1),
        inset 0 0 80px rgba(0, 0, 0, 0.8),
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 45px var(--orb-glow-color-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.5s ease;
    cursor: pointer;
}

/* Subtle mouse hover scaling and glow amplification */
.crystal-ball:hover {
    box-shadow: 
        inset 0 0 55px var(--orb-glow-color-1),
        inset 0 0 90px rgba(0, 0, 0, 0.85),
        0 20px 45px rgba(0, 0, 0, 0.7),
        0 0 55px var(--orb-glow-color-1);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Crystal ball state transitions (Thinking, success, etc) */
.crystal-ball.thinking {
    box-shadow: 
        inset 0 0 60px rgba(139, 92, 246, 0.5),
        inset 0 0 100px rgba(229, 184, 59, 0.2),
        0 15px 45px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(139, 92, 246, 0.55),
        0 0 100px rgba(229, 184, 59, 0.25);
    border-color: rgba(229, 184, 59, 0.45);
}

.crystal-ball.success {
    box-shadow: 
        inset 0 0 60px rgba(16, 185, 129, 0.5),
        inset 0 0 100px rgba(16, 185, 129, 0.2),
        0 15px 45px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(16, 185, 129, 0.55);
    border-color: rgba(16, 185, 129, 0.45);
}

/* Glowing Nebula Core inside the Sphere */
.nebula-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--nebula-color-1) 0%, var(--nebula-color-2) 45%, rgba(139, 92, 246, 0) 70%);
    filter: blur(15px);
    pointer-events: none;
    z-index: 1;
    animation: nebula-drift 12s infinite ease-in-out alternate;
}

.crystal-ball.thinking .nebula-glow {
    background: radial-gradient(circle, rgba(229, 184, 59, 0.6) 0%, rgba(168, 85, 247, 0.4) 40%, rgba(139, 92, 246, 0) 70%);
    animation: nebula-drift 3s infinite ease-in-out alternate, pulse-glowing 1.5s infinite ease-in-out;
}

@keyframes nebula-drift {
    0% { transform: translate(-10px, -15px) scale(0.95); }
    100% { transform: translate(15px, 10px) scale(1.15); }
}

@keyframes pulse-glowing {
    0%, 100% { filter: blur(15px) opacity(0.7); }
    50% { filter: blur(10px) opacity(1); }
}

/* Interactive energy ripple on click/touch */
.crystal-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: crystal-ripple-anim 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    z-index: 2;
}

@keyframes crystal-ripple-anim {
    to {
        transform: translate(-50%, -50%) scale(6);
        opacity: 0;
    }
}

/* Internal Swirling Mystic Clouds */
.mystic-cloud {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(6, 3, 12, 0) 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 1;
}

.mystic-cloud.cloud-1 {
    top: -50px;
    left: -50px;
    animation: cloud-spin-cw 35s linear infinite;
}

.mystic-cloud.cloud-2 {
    bottom: -50px;
    right: -50px;
    animation: cloud-spin-ccw 25s linear infinite;
}

@keyframes cloud-spin-cw {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes cloud-spin-ccw {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Glass Surface Reflection Glare */
.crystal-glare {
    position: absolute;
    top: 5%;
    left: 10%;
    width: 80%;
    height: 25%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50% / 100% 100% 0 0;
    pointer-events: none;
    z-index: 4;
}

/* Floating Internal Chat Panel */
.crystal-chat-panel {
    position: relative;
    z-index: 3;
    width: 82%;
    height: 82%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 1.5rem;
    box-sizing: border-box;
}

/* Chat Messages inside the sphere */
.crystal-chat-panel .chat-body {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 2.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    scroll-behavior: smooth;
    box-sizing: border-box;
}

/* Hide scrollbar within the crystal panel to keep it clean */
.crystal-chat-panel .chat-body::-webkit-scrollbar {
    width: 3px;
}
.crystal-chat-panel .chat-body::-webkit-scrollbar-thumb {
    background: rgba(229, 184, 59, 0.2);
    border-radius: 20px;
}

.crystal-chat-panel .message {
    max-width: 90%;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: pop-message 0.3s ease-out forwards;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.crystal-chat-panel .message.system-msg {
    align-self: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(229, 184, 59, 0.15);
    color: var(--color-gold);
    font-size: 0.78rem;
    text-align: center;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.crystal-chat-panel .message.bot-msg {
    align-self: flex-start;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-top-left-radius: 2px;
}

.crystal-chat-panel .message.user-msg {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(22, 12, 40, 0.7) 0%, rgba(30, 17, 58, 0.85) 100%);
    border: 1px solid rgba(229, 184, 59, 0.3);
    border-top-right-radius: 2px;
}

/* Chat CTA button styles inside the sphere */
.crystal-chat-panel .chat-cta-block {
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.crystal-chat-panel .chat-cta-block p {
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.crystal-chat-panel .chat-cta-block .btn {
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
    width: 100%;
}

/* Typing Simulator customized for sphere */
.crystal-chat-panel .typing-loader {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0.15rem 0;
}
.crystal-chat-panel .typing-loader span {
    width: 5px;
    height: 5px;
    background-color: var(--color-gold);
    border-radius: 50%;
    display: inline-block;
    animation: typing-wave 1.2s infinite ease-in-out;
}
.crystal-chat-panel .typing-loader span:nth-child(2) { animation-delay: 0.2s; }
.crystal-chat-panel .typing-loader span:nth-child(3) { animation-delay: 0.4s; }

/* Control section below the Crystal Ball */
.crystal-controls {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.crystal-controls .chat-suggestions {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
    background: transparent;
    border-top: none;
}

.crystal-controls .chat-suggest-btn {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--color-text-light);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.crystal-controls .chat-suggest-btn:hover {
    background: rgba(229, 184, 59, 0.12);
    border-color: var(--color-gold);
    transform: translateY(-1px);
}

.crystal-controls .chat-input-form {
    display: flex;
    background: rgba(22, 12, 40, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.crystal-controls .chat-input-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 16px; /* iOS Safari auto-zoom prevention */
    color: #fff;
    outline: none;
}

.crystal-controls .chat-input-form input:focus {
    border: none;
    background: transparent;
}

.crystal-controls .chat-send-btn {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(229, 184, 59, 0.25);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.crystal-controls .chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(229, 184, 59, 0.4);
}

.crystal-controls .chat-send-btn .icon-svg {
    width: 15px;
    height: 15px;
    fill: #000;
    margin-left: 2px;
}

@keyframes pop-message {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes typing-wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Services Grid in Home */
.services-preview-section {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.service-card {
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-5px);
    background: var(--bg-glass-card-hover);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-gold-glow), var(--shadow-premium);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 4px 10px rgba(139,92,246,0.2));
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-card-footer {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gold);
    cursor: pointer;
}

/* Testimonials Carousel */
.testimonials-section {
    padding: 4rem 0;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 1rem 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.testimonial-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background: var(--color-gold);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--color-gold);
}

.rating-stars {
    color: var(--color-gold);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
    color: rgba(255,255,255,0.9);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 1rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Lead Form Section */
.lead-form-section {
    max-width: 750px;
    margin: 4rem auto;
    padding: 3rem;
    position: relative;
    border: 1px solid rgba(229, 184, 59, 0.25);
    box-shadow: 0 0 30px rgba(229,184,59,0.05), var(--shadow-premium);
}

.lead-form-section h2 {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.lead-form-section p {
    color: var(--color-text-muted);
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.form-group input, .form-group select, .form-group textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 16px; /* iOS Safari auto-zoom prevention */
    color: #fff;
    transition: var(--transition-smooth);
    width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--color-gold);
    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 10px rgba(229,184,59,0.15);
}

.form-group select option {
    background-color: var(--bg-mystic-dark);
    color: #fff;
}

.btn-submit-form {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #000;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1.05rem;
    margin-top: 0.5rem;
}
.btn-submit-form:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(229, 184, 59, 0.4);
}

.confidential-seal {
    font-size: 0.75rem !important;
    color: var(--color-text-muted) !important;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0 !important;
}

/* FAQ Accordion Styling */
.faq-section {
    padding: 4rem 0;
}

.faq-accordion-wrap {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

.faq-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.faq-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.accordion-arrow {
    font-size: 0.75rem;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    border-top: 1px solid transparent;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.faq-item.open .accordion-arrow {
    transform: rotate(180deg);
}


/* ==========================================================================
   VIEW: SERVICIOS
   ========================================================================== */
.services-full-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 1rem 3rem 0;
}

.service-detail-row {
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.service-detail-info {
    position: relative;
    z-index: 2;
}

.service-badge {
    background: rgba(229, 184, 59, 0.15);
    border: 1px solid rgba(229, 184, 59, 0.35);
    color: var(--color-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.service-detail-info h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.service-detail-info p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    max-width: 750px;
}

.service-points {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.service-points li {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.service-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-actions-row .btn-whatsapp {
    padding: 0.75rem 1.5rem;
}

.service-detail-icon-bg {
    font-size: 12rem;
    opacity: 0.04;
    user-select: none;
    pointer-events: none;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-serif);
    z-index: 1;
}


/* ==========================================================================
   VIEW: DIAGNÓSTICO (LANDING DE LEADS)
   ========================================================================== */
.landing-lead-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    padding: 2rem 1rem 5rem 1rem;
}

.landing-lead-header h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.landing-lead-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.highlight-badge {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    border: none !important;
    color: #fff !important;
}

.landing-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.landing-lead-form-box {
    padding: 3rem;
    border: 1px solid rgba(229, 184, 59, 0.2);
}

.landing-lead-form-box h3 {
    font-size: 1.45rem;
    margin-bottom: 0.4rem;
    text-align: center;
}

.landing-lead-form-box p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 1.75rem;
}


/* ==========================================================================
   VIEW: BLOG ESOTÉRICO
   ========================================================================== */
.blog-search-bar {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
}

.blog-search-bar input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    color: #fff;
    transition: var(--transition-smooth);
}
.blog-search-bar input:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(229, 184, 59, 0.15);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 2rem;
    padding: 0 1rem 4rem 1rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
}

.blog-card-img {
    height: 180px;
    background: linear-gradient(135deg, var(--color-purple-deep) 0%, var(--bg-mystic-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.blog-card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    color: var(--color-text-light);
}

.blog-card-content p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gold);
}

/* Article Reader Mode */
#blog-article-reader {
    background: rgba(15, 9, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem;
    max-width: 850px;
    margin: 0 auto;
}

.back-to-blog-btn {
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}
.back-to-blog-btn:hover {
    text-decoration: underline;
}

.article-content-wrapper .article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.article-tag {
    color: var(--color-gold);
    font-weight: 700;
}

.article-date {
    color: var(--color-text-muted);
}

.article-main-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.25;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.9);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-gold);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-cta-box {
    margin-top: 3.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(229, 184, 59, 0.3);
    border-radius: 12px;
    text-align: center;
}

.article-cta-box h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
}

.article-cta-box p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.article-cta-box .cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}


/* ==========================================================================
   VIEW: ADMIN DASHBOARD
   ========================================================================== */
.admin-card-centered {
    max-width: 480px;
    margin: 5rem auto;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-card-centered h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.admin-card-centered p {
    color: var(--color-text-muted);
    text-align: center;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.error-text {
    color: #ef4444;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Dashboard Panel Layout */
#admin-dashboard-panel {
    animation: fade-in-view 0.5s ease forwards;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-glass);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.dashboard-header p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    padding: 1.5rem;
    border-radius: 12px;
}

.metric-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.metric-card .metric-val {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    display: block;
    margin-bottom: 0.25rem;
}

.metric-card p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.dashboard-split-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
}

.dashboard-block {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.dashboard-block h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.dashboard-block p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.block-header h2 {
    margin-bottom: 0;
}

.leads-filter-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.leads-filter-row input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Leads Table Styles */
.table-container {
    overflow-x: auto;
    width: 100%;
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.leads-table th, .leads-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leads-table th {
    background: rgba(0,0,0,0.3);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.leads-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.leads-table .lead-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-delete-lead {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: var(--transition-smooth);
}
.btn-delete-lead:hover {
    background: rgba(239, 68, 68, 0.3);
}

.empty-table-msg {
    text-align: center;
    color: var(--color-text-muted);
    padding: 3rem !important;
}

.form-tip {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-purple-cosmic);
}

.form-group-checkbox label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}


/* ==========================================================================
   TRUST BADGES & PREMIUM FOOTER
   ========================================================================== */
.trust-badges-section {
    padding: 3.5rem 0;
    background: rgba(6, 3, 12, 0.5);
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    text-align: center;
}

.trust-title {
    font-size: 1.45rem;
    margin-bottom: 1.75rem;
    color: rgba(255,255,255,0.9);
}

.badges-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.payment-logo {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
}

.premium-footer {
    background: #040208;
    border-top: var(--border-glass);
    padding: 5rem 1.5rem 2rem 1.5rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-family: var(--font-decorative);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-phrase {
    font-style: italic;
    color: var(--color-gold);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-links h4, .footer-services h4, .footer-contact h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-links ul li, .footer-services ul li {
    margin-bottom: 0.75rem;
}

.footer-links a, .footer-services a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.footer-links a:hover, .footer-services a:hover {
    color: var(--color-gold);
    padding-left: 4px;
}

.footer-contact p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.footer-badges {
    margin-top: 1rem;
}

.badge-age {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--color-text-muted);
}
.footer-legal a:hover {
    color: var(--color-gold);
}


/* ==========================================================================
   FLOATING CONVERSION WIDGETS & MODALS
   ========================================================================== */

/* Floating WhatsApp Button */
.floating-whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4), 0 0 0 0 rgba(37, 211, 102, 0.5);
    transition: var(--transition-smooth);
    animation: pulse-wa-glow 2s infinite;
}
.floating-whatsapp-widget:hover {
    transform: scale(1.08);
}
.floating-whatsapp-widget .icon-svg {
    width: 32px;
    height: 32px;
}

@keyframes pulse-wa-glow {
    0% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.4), 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* live popups conversion toast */
.notification-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(229, 184, 59, 0.25);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6), var(--shadow-gold-glow);
    max-width: 380px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    transform: translateY(150px);
    opacity: 0;
}

.notification-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-purple-deep) 0%, var(--bg-mystic-dark) 100%);
    border: 1px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.toast-content p {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 0 0.15rem 0;
    line-height: 1.35;
}

.toast-content .toast-time {
    font-size: 0.7rem;
    color: var(--color-gold);
    font-weight: 600;
}

.toast-close-btn {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1;
    align-self: flex-start;
    margin-left: auto;
}
.toast-close-btn:hover {
    color: var(--color-gold);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 3, 12, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 520px;
    width: 90%;
    padding: 3rem;
    position: relative;
    border: var(--border-glass-glow);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}
.modal-close-btn:hover {
    color: var(--color-gold);
}

.modal-content h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Legal modals content */
.legal-content {
    max-width: 750px !important;
    max-height: 80vh;
    overflow-y: auto;
    padding: 3rem 2.5rem !important;
    border: var(--border-glass);
}

.legal-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-gold);
}

.legal-content p {
    text-align: left;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.hidden {
    display: none !important;
}


/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS / MOBILE APP EXPERIENCE)
   ========================================================================== */

/* Tablet viewports */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .urgency-counter-box {
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-detail-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail-icon-bg {
        top: auto;
        bottom: 10px;
        transform: none;
        right: 10px;
        font-size: 9rem;
    }
    
    .landing-lead-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .dashboard-split-layout {
        grid-template-columns: 1fr;
    }
    
    /* Adapt header layout for tablet screens to prevent wrapping */
    .desktop-nav {
        gap: 0.65rem;
    }
    .nav-link {
        font-size: 0.8rem;
    }
    .btn-whatsapp-header {
        padding: 0.35rem 0.85rem;
        font-size: 0.85rem;
    }
}

/* Mobile viewports (Mobile App Experience Optimization) */
@media (max-width: 767px) {
    body {
        padding-bottom: 75px; /* Space for Bottom Nav Bar */
    }

    .main-header {
        height: 60px;
    }
    
    .urgency-ticker {
        top: 60px;
    }
    
    .content-container {
        margin-top: 95px;
        padding-top: 1rem;
    }
    
    .desktop-nav, .header-ctas {
        display: none !important; /* Hide desktop elements */
    }
    
    .logo {
        margin: 0; /* Left align logo on mobile to make space for contact number */
    }
    
    .header-phone-mobile {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        background-color: var(--color-whatsapp);
        color: #fff;
        padding: 0.45rem 0.75rem;
        border-radius: 20px;
        font-weight: 700;
        font-size: 0.95rem;
        box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
        transition: var(--transition-smooth);
    }
    
    .header-phone-mobile:hover {
        background-color: var(--color-whatsapp-hover);
        transform: scale(1.02);
    }
    
    .header-phone-mobile svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    .logo-img {
        height: 46px; /* Enlarged mobile size */
    }

    /* Show Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(10, 5, 20, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: var(--border-glass);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.6);
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--color-text-muted);
        font-size: 0.65rem;
        font-weight: 500;
        gap: 0.25rem;
        flex: 1;
        height: 100%;
        transition: var(--transition-smooth);
    }
    
    .mobile-nav-item.active {
        color: var(--color-gold);
    }
    
    .mobile-nav-item .icon-svg {
        width: 22px;
        height: 22px;
    }
    
    /* Highlight Orb for Diagnosis button */
    .mobile-nav-item.highlight {
        position: relative;
        top: -12px;
        color: #fff;
    }
    
    .highlight-orb {
        width: 46px;
        height: 46px;
        background: linear-gradient(135deg, var(--color-purple-deep) 0%, var(--bg-mystic-dark) 100%);
        border: 2px solid var(--color-gold);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        box-shadow: 0 0 15px rgba(229,184,59,0.4);
        animation: orb-pulsate 3s infinite ease-in-out;
    }
    
    .mobile-nav-item.highlight span {
        position: absolute;
        bottom: -16px;
    }
    
    /* Floating Whatsapp adjust for bottom nav spacing */
    .floating-whatsapp-widget {
        bottom: 80px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    
    .floating-whatsapp-widget .icon-svg {
        width: 28px;
        height: 28px;
    }
    
    .notification-toast {
        bottom: 80px;
        left: 15px;
        right: 15px;
        max-width: none;
    }

    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .lead-form-section {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    #blog-article-reader {
        padding: 1.5rem;
    }
    
    .article-main-title {
        font-size: 1.85rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Space Particles Background Canvas */
#space-particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    background: transparent;
}

/* ==========================================================================
   MODO MANTENIMIENTO Y AJUSTES DE ESTADO DE ADMINISTRACIÓN
   ========================================================================== */

/* Indicadores de Estado en el Dashboard */
.status-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.status-inactive {
    background: rgba(37, 211, 102, 0.12);
    color: var(--color-whatsapp);
    border: 1px solid rgba(37, 211, 102, 0.25);
}

.status-active {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
}

/* Pantalla de Mantenimiento (Alineación Astral) */
.maintenance-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(15, 9, 32, 0.97) 0%, rgba(6, 3, 12, 0.99) 100%);
    z-index: 5000;
    padding: 1.5rem;
    overflow-y: auto;
}

.maintenance-card {
    max-width: 620px;
    width: 100%;
    padding: 3.5rem 2.5rem;
    text-align: center;
    border: var(--border-glass-glow);
    box-shadow: 0 0 45px rgba(139, 92, 246, 0.22), var(--shadow-premium);
    animation: fade-in-view 0.8s ease forwards;
}

.maintenance-orb-wrapper {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.maintenance-orb {
    font-size: 3.8rem;
    display: inline-block;
    animation: float-orb 4s infinite ease-in-out;
    filter: drop-shadow(0 0 15px var(--color-gold));
}

.maintenance-orb-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(229, 184, 59, 0.35) 0%, rgba(139, 92, 246, 0.12) 60%, transparent 100%);
    border-radius: 50%;
    filter: blur(5px);
    z-index: -1;
    animation: pulse-glow 3s infinite ease-in-out;
}

.maintenance-card h1 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.maintenance-card p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.maintenance-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 2rem auto;
    width: 80%;
    opacity: 0.5;
}

.maintenance-cta {
    font-weight: 500;
    color: var(--color-text-light) !important;
    margin-bottom: 2.5rem !important;
}

@keyframes float-orb {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.04); }
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.85; }
}

.maintenance-admin-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.maintenance-admin-link:hover {
    opacity: 1;
    color: var(--color-gold);
    text-shadow: 0 0 8px rgba(229, 184, 59, 0.5);
}

/* ==========================================================================
   SAME-SEX UNION SECTION STYLING (LGBTQ+ SERVICES)
   ========================================================================== */
.same-sex-union-section {
    position: relative;
    padding: 5rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.union-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.union-media-container {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.union-video-wrapper {
    position: relative;
    width: 80%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    border: var(--border-glass-glow);
    box-shadow: var(--shadow-premium), 0 0 30px rgba(139, 92, 246, 0.15);
    align-self: flex-start;
    margin-right: auto;
    z-index: 2;
    transition: var(--transition-smooth);
}

.union-video-wrapper:hover {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-premium), 0 0 40px rgba(229, 184, 59, 0.25);
    transform: scale(1.02);
}

.union-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(6, 3, 12, 0.75);
    border: 1px solid rgba(229, 184, 59, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-gold);
    z-index: 3;
}

.union-altar-card {
    position: absolute;
    bottom: 0px;
    right: 5%;
    width: 45%;
    border-radius: 16px;
    overflow: hidden;
    border: var(--border-glass-glow);
    box-shadow: var(--shadow-premium), 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 4;
    background: rgba(22, 12, 40, 0.85) !important;
    transition: var(--transition-smooth);
    animation: float-altar 6s infinite ease-in-out;
}

.union-altar-card:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-premium), 0 15px 40px rgba(229, 184, 59, 0.3);
}

.union-altar-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.altar-card-content {
    padding: 0.85rem 1rem;
}

.altar-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-purple-cosmic);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.2rem;
}

.altar-card-content p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.3;
    margin: 0;
}

.union-text-container {
    display: flex;
    flex-direction: column;
}

.union-title {
    font-size: 2.5rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.union-description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.union-description:last-of-type {
    margin-bottom: 2rem;
}

.union-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-left: 0;
}

.union-features li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.feature-icon {
    font-size: 1.5rem;
    line-height: 1;
    background: rgba(139, 92, 246, 0.12);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
}

.feature-text h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin: 0;
}

.union-actions {
    display: flex;
    gap: 1rem;
}

@keyframes float-altar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 992px) {
    .union-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .union-media-container {
        min-height: auto;
        margin-bottom: 1.5rem;
    }
    .union-video-wrapper {
        width: 85%;
    }
    .union-altar-card {
        width: 45%;
        bottom: -25px;
        right: 2%;
    }
    .union-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .same-sex-union-section {
        padding: 3.5rem 1rem;
    }
    .union-video-wrapper {
        width: 100%;
        margin-right: 0;
    }
    .union-altar-card {
        display: none; /* Hide overlapping card on very small mobile screens for neat layout */
    }
    .union-title {
        font-size: 1.85rem;
    }
    .union-features {
        gap: 1.25rem;
    }
    .union-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   PWA INSTALL BUTTONS STYLING
   ========================================================================== */

/* Header Install Button */
.btn-pwa-install {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #000 !important;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(229, 184, 59, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}
.btn-pwa-install:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(229, 184, 59, 0.4);
}
.btn-pwa-install .icon-svg {
    width: 16px;
    height: 16px;
    fill: #000 !important;
}

/* Floating mobile PWA widget */
.floating-pwa-widget {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(229, 184, 59, 0.4);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}
.floating-pwa-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(229, 184, 59, 0.6);
}
.pwa-icon-wrapper {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hidden state */
.btn-pwa-install.hidden, .floating-pwa-widget.hidden {
    display: none !important;
}

/* Responsive Overrides for Mobile */
@media (max-width: 768px) {
    .floating-pwa-widget {
        bottom: 85px;
        left: 20px;
        width: 52px;
        height: 52px;
    }
    .pwa-icon-wrapper {
        font-size: 1.25rem;
    }
    .btn-pwa-install {
        display: none !important; /* Hide header install button on mobile, show floating widget instead */
    }
}

/* ==========================================================================
   GALERÍA DE VIDEOS PREMIUM
   ========================================================================== */
.video-gallery-section {
    padding: 6rem 0 4rem;
    position: relative;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.video-playlist-container {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: stretch;
}

.main-video-player {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(16, 9, 32, 0.4);
    border: var(--border-glass-glow, 1px solid rgba(255, 255, 255, 0.08));
    box-shadow: var(--shadow-premium), 0 0 35px rgba(139, 92, 246, 0.1);
    transition: var(--transition-smooth);
}

.main-video-player:hover {
    border-color: rgba(229, 184, 59, 0.25);
    box-shadow: var(--shadow-premium), 0 0 45px rgba(229, 184, 59, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-info-box {
    padding: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(22, 12, 40, 0.5) 0%, rgba(10, 5, 20, 0.8) 100%);
}

.video-info-box h3 {
    font-size: 1.45rem;
    color: var(--color-gold);
    margin-bottom: 0.6rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.02em;
}

.video-info-box p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
}

.video-playlist-sidebar {
    border-radius: 24px;
    background: rgba(16, 9, 32, 0.4);
    border: var(--border-glass-glow, 1px solid rgba(255, 255, 255, 0.08));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    max-height: 580px;
}

.playlist-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(22, 12, 40, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-header h4 {
    font-size: 1.15rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.video-count {
    font-size: 0.75rem;
    background: rgba(229, 184, 59, 0.15);
    border: 1px solid rgba(229, 184, 59, 0.3);
    color: var(--color-gold);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
}

.playlist-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Custom scrollbar for playlist */
.playlist-items::-webkit-scrollbar {
    width: 6px;
}
.playlist-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}
.playlist-items::-webkit-scrollbar-thumb {
    background: rgba(229, 184, 59, 0.2);
    border-radius: 10px;
}
.playlist-items::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 184, 59, 0.4);
}

.playlist-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: var(--transition-smooth);
    align-items: center;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.playlist-item.active {
    background: rgba(229, 184, 59, 0.08);
    border-color: rgba(229, 184, 59, 0.4);
    box-shadow: 0 0 15px rgba(229, 184, 59, 0.08);
}

.playlist-thumb-wrapper {
    position: relative;
    width: 100px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.playlist-thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(229, 184, 59, 0.9);
    color: #000;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    opacity: 0.75;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    padding-left: 2px;
}

.playlist-item:hover .play-icon-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 2px 12px rgba(229, 184, 59, 0.5);
}

.playlist-item.active .play-icon-overlay {
    background: #fff;
    color: var(--color-purple-cosmic);
    opacity: 1;
}

.playlist-item-info {
    flex: 1;
    overflow: hidden;
}

.playlist-item-info h5 {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition-smooth);
}

.playlist-item.active .playlist-item-info h5 {
    color: var(--color-gold);
}

.playlist-item-info p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   SLIDER DE IMÁGENES INTERACTIVO (UX PREMIUM)
   ========================================================================== */
.image-gallery-slider {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    border: var(--border-glass-glow, 1px solid rgba(255, 255, 255, 0.08));
    box-shadow: var(--shadow-premium), 0 10px 40px rgba(0, 0, 0, 0.5);
    background: rgba(6, 3, 12, 0.8);
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
    pointer-events: none;
}

.slide-item.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
    pointer-events: auto;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, 
        rgba(6, 3, 12, 0.95) 0%, 
        rgba(6, 3, 12, 0.75) 50%, 
        rgba(6, 3, 12, 0.3) 80%, 
        rgba(6, 3, 12, 0) 100%);
    color: #fff;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateY(10px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.slide-item.active .slide-caption {
    transform: translateY(0);
}

.slide-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    align-self: flex-start;
}

.slide-caption h4 {
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    color: #fff;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(22, 12, 40, 0.65);
    border: 1px solid rgba(229, 184, 59, 0.25);
    color: var(--color-gold);
    font-size: 2.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    user-select: none;
}

.slider-nav:hover {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
    box-shadow: 0 0 20px rgba(229, 184, 59, 0.5);
}

.slider-nav.prev-btn {
    left: 20px;
    padding-right: 3px;
}

.slider-nav.next-btn {
    right: 20px;
    padding-left: 3px;
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-indicators {
    position: absolute;
    bottom: 25px;
    right: 25px;
    display: flex;
    gap: 7px;
    z-index: 10;
}

.indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.indicator-dot.active {
    width: 20px;
    border-radius: 4px;
    background: var(--color-gold);
    box-shadow: 0 0 8px rgba(229, 184, 59, 0.6);
}

/* Adaptive overrides for Same-Sex Union container */
.same-sex-union-section .union-media-container {
    padding: 0;
    min-height: 480px;
}

/* ==========================================================================
   RESPONSIVIDAD Y ADAPTABILIDAD
   ========================================================================== */
@media (max-width: 992px) {
    .video-playlist-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-playlist-sidebar {
        max-height: 380px;
    }
    
    .same-sex-union-section .union-media-container {
        min-height: 400px;
    }
    
    .image-gallery-slider {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .video-gallery-section {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
    
    .video-playlist-container {
        margin-top: 1.8rem;
    }
    
    .video-info-box {
        padding: 1.25rem;
    }
    
    .video-info-box h3 {
        font-size: 1.2rem;
    }
    
    .video-info-box p {
        font-size: 0.85rem;
    }
    
    .playlist-header {
        padding: 1.1rem 1.25rem;
    }
    
    .playlist-items {
        padding: 0.75rem;
    }
    
    .playlist-item {
        padding: 0.6rem;
        gap: 0.75rem;
    }
    
    .playlist-thumb-wrapper {
        width: 80px;
        height: 45px;
    }
    
    .playlist-item-info h5 {
        font-size: 0.88rem;
    }
    
    .playlist-item-info p {
        font-size: 0.72rem;
    }
    
    .same-sex-union-section .union-media-container {
        min-height: 350px;
    }
    
    .image-gallery-slider {
        height: 350px;
    }
    
    .slide-caption {
        padding: 2rem 1.25rem 1.5rem;
    }
    
    .slide-caption h4 {
        font-size: 1.05rem;
    }
    
    .slider-nav {
        width: 38px;
        height: 38px;
        font-size: 1.6rem;
    }
    
    .slider-nav.prev-btn {
        left: 10px;
    }
    
    .slider-nav.next-btn {
        right: 10px;
    }
}

/* Facebook Button & Social Styles */
.btn-facebook {
    background-color: #1877f2;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-facebook:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.footer-socials {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
}
.footer-socials .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-gold);
    border: var(--border-glass);
    transition: var(--transition-smooth);
}
.footer-socials .social-link:hover {
    background: var(--color-gold);
    color: #000 !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-glow);
}
.footer-socials .social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Clicks Table Styles */
.clicks-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}
.clicks-table th, .clicks-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.clicks-table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    color: var(--color-gold);
    border-bottom: 1px solid rgba(229, 184, 59, 0.2);
}
.clicks-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}






