@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Marcellus&display=swap');

:root {
    /* Fondos Sólidos y Elegantes */
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-tertiary: #0A0A0C;

    /* Acento Primario: Púrpura Magenta */
    --primary-50: #fdf4ff;
    --primary-100: #fae8ff;
    --primary-200: #f5d0fe;
    --primary-300: #f0abfc;
    --primary-400: #e879f9;
    --primary-500: #d946ef;
    --primary-600: #c026d3;
    --primary-700: #a21caf;
    --primary-800: #86198f;
    --primary-900: #701a75;

    /* Textos */
    --text-primary: #FFFFFF;
    --text-secondary: #F5F5F7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #52525B;

    /* RGB para transparencias */
    --primary-rgb: 217, 70, 239;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    overflow-x: hidden;
    line-height: 1.5;
}

/* --- GOLDEN SACRED DIVIDERS --- */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.5) 50%, transparent 100%);
    margin: 0 auto;
    position: relative;
}

.section-divider::after {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    background: var(--bg-primary);
    padding: 0 15px;
    color: #D4AF37;
}

h1,
h2,
h3,
h4 {
    font-family: 'Marcellus', serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 34px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-400) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-400);
}

.btn-nav {
    background: transparent;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary-300);
    padding: 8px 20px;
    font-family: 'Marcellus', serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

/* --- HERO --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 60px 0 40px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 10;
}

.hero-label {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary-300);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 72px;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero-title span {
    background: linear-gradient(to right, #fff, var(--primary-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-tertiary);
    font-style: italic;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background: var(--primary-600);
    color: white;
    padding: 15px 35px;
    font-family: 'Marcellus', serif;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

.btn-primary:hover {
    background: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 35px;
    font-family: 'Marcellus', serif;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

/* --- METRICS --- */
.metrics {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metrics-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.metric-item h3 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: var(--primary-400);
    margin-bottom: 5px;
}

.metric-item p {
    font-size: 16px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* --- SECTIONS --- */
section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    color: var(--primary-400);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: 42px;
    margin-bottom: 15px;
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card-flip {
    height: 420px;
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    /* Golden Sacred Border */
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.service-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) contrast(1.1);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    text-align: center;
}

.service-card-back {
    background: var(--bg-tertiary);
    backdrop-filter: blur(10px);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- FORM SECTION --- */
.form-container {
    max-width: 850px;
    margin: 20px auto;
    background: rgba(var(--primary-rgb), 0.02);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 50px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.form-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-500), transparent);
}

.consultation-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-family: 'Marcellus', serif;
    font-size: 13px;
    color: var(--primary-300);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.form-input,
.form-select,
.form-textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    transition: all 0.4s ease;
    width: 100%;
}

.form-select option {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    background: rgba(var(--primary-rgb), 0.08);
}

.form-textarea {
    min-height: 100px;
    resize: none;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px 50px;
    font-family: 'Marcellus', serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
    display: block;
    margin: 20px auto;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
    border-color: #FFD700;
    letter-spacing: 0.3em;
}

/* --- RITUAL MESSAGE --- */
.ritual-message {
    text-align: center;
    font-style: italic;
    color: var(--primary-300);
    min-height: 24px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ritual-message.visible {
    opacity: 1;
}

/* --- PRICING --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pricing-card {
    background: var(--bg-tertiary);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card:hover {
    border-color: var(--primary-500);
    transform: translateY(-5px);
}

.pricing-card.highlight {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.1), transparent);
    border-color: var(--primary-500);
}

.plan-price {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    color: var(--primary-300);
    margin: 15px 0;
}

.pricing-card .btn-nav {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
}

/* --- AUTH MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.auth-modal {
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 50px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 1);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-400);
}

.auth-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-tab {
    padding: 10px 0;
    font-family: 'Marcellus', serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    color: var(--text-tertiary);
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--primary-400);
    border-bottom-color: var(--primary-400);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#register-form {
    display: none;
}

.user-nav {
    display: none;
    /* Shown when logged in */
    align-items: center;
    gap: 15px;
    color: var(--primary-300);
    font-size: 14px;
}

.user-nav span {
    font-weight: 500;
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-tertiary);
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
}

/* --- RESULT DISPLAY --- */
.result-display {
    display: none;
    padding: 60px 0;
    text-align: center;
    background: rgba(var(--primary-rgb), 0.05);
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.result-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-tertiary);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 40px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-img {
    width: 250px;
    height: 400px;
    object-fit: cover;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

#card-name {
    font-size: 28px;
    color: var(--primary-300);
    margin-bottom: 20px;
}

#card-desc {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- NATAL CHART DETAILS --- */
.natal-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.natal-item {
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 20px;
    text-align: left;
}

.natal-header {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: var(--primary-300);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.natal-body {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.natal-final-advice {
    font-style: italic;
    color: var(--primary-400);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

/* --- ADVERTISING / SPONSORS --- */
.sponsor-section {
    padding: 60px 0;
    background: rgba(var(--primary-rgb), 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.ad-container {
    max-width: 728px;
    min-height: 90px;
    margin: 30px auto 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(var(--primary-rgb), 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* --- NATAL CHART MARKERS --- */
.natal-markers {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.marker-item {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: var(--text-primary);
}

.marker-item span {
    color: var(--primary-400);
    margin-right: 5px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- ANIMATIONS --- */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary-500);
    border-radius: 50%;
    filter: blur(1px);
}

/* --- FOOTER --- */
.footer {
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- RESPONSIVE FIXES (ISOLATED) --- */
@media (max-width: 900px) {
    .hero-title {
        font-size: 56px;
    }

    .services-grid,
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-content {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
        padding: 20px 0 !important;
    }

    .logo {
        font-size: 30px !important;
        display: block !important;
        margin-bottom: 5px !important;
    }

    .nav-links {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 20px !important;
        width: 100% !important;
    }

    #auth-controls,
    #user-controls {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 10px !important;
    }

    .navbar {
        position: relative !important;
        background: var(--bg-secondary) !important;
        padding: 20px 0 !important;
        border-bottom: 1px solid rgba(var(--primary-rgb), 0.1) !important;
    }

    .hero {
        min-height: auto !important;
        padding: 50px 0 !important;
    }

    .hero-label {
        display: block !important;
        margin: 0 auto 20px !important;
        text-align: center !important;
    }

    .hero-title {
        font-size: 42px !important;
    }

    .hero-ctas {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }

    .btn-primary,
    .btn-secondary {
        width: 100% !important;
        max-width: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 600px) {
    .metrics-grid {
        flex-direction: column !important;
        gap: 30px !important;
        align-items: center !important;
    }

    .metric-item h3 {
        font-size: 22px !important;
    }

    .metric-item p {
        font-size: 14px !important;
    }

    .services-grid,
    .pricing-grid,
    .consultation-form,
    .form-row {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .service-card-flip {
        width: 100% !important;
        max-width: 320px !important;
        height: 400px !important;
        margin-bottom: 30px !important;
        display: block !important;
    }

    .service-card-front img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .result-card {
        padding: 25px 15px !important;
        width: 100% !important;
    }

    .card-img {
        width: 100% !important;
        max-width: 200px !important;
        height: auto !important;
        aspect-ratio: 2/3 !important;
        margin: 0 auto 20px !important;
        display: block !important;
    }

    #card-name,
    #card-desc {
        text-align: center !important;
    }
}

/* Google Translate */
#google_translate_element {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}