/* ============================================
   ESENCIA ARCANA - Premium Mystical Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #0a0a1a;
    --secondary: #d4a853;
    --accent: #7c3aed;
    --accent2: #a855f7;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-light: #e8e6e3;
    --text-muted: #9ca3af;
    --glow: rgba(212, 168, 83, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--secondary);
    font-weight: 400;
}

p { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; }

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

/* Animated Background */
.bg-stars {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 50%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 75% 15%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 5% 55%, rgba(212,168,83,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 35%, rgba(124,58,237,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 75%, rgba(255,255,255,0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 90%, rgba(255,255,255,0.2) 0%, transparent 100%);
    animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Header */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 18px 0;
    transition: all 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo {
    font-family: 'Cinzel Decorative', serif;
    color: var(--secondary);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 20px var(--glow);
}

nav { display: flex; gap: 8px; align-items: center; }

nav a {
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s;
}

nav a:hover { color: var(--secondary); }
nav a.active {
    color: var(--primary);
    background: var(--secondary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 600px; height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, rgba(168,85,247,0.05) 40%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 400px; height: 400px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(212, 168, 83, 0.1);
    border-radius: 50%;
    animation: spin-slow 30s linear infinite;
}

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

@keyframes spin-slow { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent2);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--secondary) 0%, #f0d78c 50%, var(--secondary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Buttons */
.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--secondary);
    color: var(--primary);
    background: var(--secondary);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.btn-main::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-main:hover::before { left: 100%; }
.btn-main:hover {
    background: transparent;
    color: var(--secondary);
    box-shadow: 0 0 30px var(--glow);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    background: transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s;
}

.btn-outline:hover {
    border-color: var(--accent2);
    color: var(--accent2);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
}

.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent2);
    text-align: center;
    margin-bottom: 15px;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 168, 83, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(212, 168, 83, 0.05);
}

.card:hover::before { opacity: 1; }

.card-icon {
    font-size: 2rem;
    width: 60px; height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(168,85,247,0.1));
    border-radius: 12px;
    margin-bottom: 25px;
    color: var(--accent2);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-light);
    font-family: 'Cinzel Decorative', serif;
}

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

/* Divider */
.divider {
    width: 60px;
    height: 1px;
    background: var(--secondary);
    margin: 80px auto;
    position: relative;
}

.divider::before {
    content: '✦';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--secondary);
    font-size: 1rem;
    background: var(--primary);
    padding: 0 15px;
}

/* Testimonials */
.testimonial-section { background: rgba(124, 58, 237, 0.03); }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 35px;
}

.testimonial-stars { color: var(--secondary); margin-bottom: 20px; letter-spacing: 4px; }
.testimonial-text { font-style: italic; margin-bottom: 20px; color: var(--text-muted); }
.testimonial-author { color: var(--secondary); font-family: 'Cinzel Decorative', serif; font-size: 0.9rem; }

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 25px 0;
}
.faq-question {
    font-family: 'Cinzel Decorative', serif;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 10px;
}
.faq-answer { color: var(--text-muted); }

/* CTA Banner */
.cta-banner {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(212,168,83,0.05));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    margin: 0 20px;
}

.cta-banner h2 { margin-bottom: 15px; }
.cta-banner p { margin-bottom: 30px; }

/* Footer */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
}

.footer-logo {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; }
.footer-links a {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: all 0.3s;
}
.footer-links a:hover { color: var(--secondary); transform: translateY(-3px); }

.footer-copy { color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 0.8rem; }

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 2000;
    width: 60px; height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    animation: bounce-wa 3s ease-in-out infinite;
}
.floating-wa:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6); }

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

/* Country selector cards */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.country-card {
    text-align: center;
    padding: 50px 30px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.5s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.country-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.country-flag { font-size: 4rem; margin-bottom: 20px; display: block; }
.country-card h3 { color: var(--text-light); font-size: 1.4rem; margin-bottom: 10px; }
.country-card p { color: var(--text-muted); font-size: 0.95rem; }

/* SEO Content Block */
.seo-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.seo-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.seo-content strong {
    color: var(--secondary);
    font-weight: 600;
}

/* About Me Section */
.about-me {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-photo {
    position: relative;
}

.about-photo img {
    width: 100%;
    border-radius: 20px;
    border: 2px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    object-fit: cover;
    aspect-ratio: 3/4;
}

.about-photo::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 24px;
    border: 1px solid rgba(212, 168, 83, 0.15);
    pointer-events: none;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-text .about-signature {
    font-family: 'Cinzel Decorative', serif;
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 25px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .nav-container { flex-direction: column; gap: 15px; }
    nav { flex-wrap: wrap; justify-content: center; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .cards-grid { grid-template-columns: 1fr; }
    .country-grid { grid-template-columns: 1fr; }
    .about-me { grid-template-columns: 1fr; text-align: center; }
    .about-photo { max-width: 260px; margin: 0 auto; }
}

/* ============================================
   BLOG & ARTICLE STYLES
   ============================================ */

/* Blog article wrapper */
.blog-article {
    padding-top: 140px;
    padding-bottom: 60px;
}

.blog-article .container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Back link */
.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent2);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    margin-bottom: 2rem;
}
.blog-back:hover { color: var(--secondary); }

/* Article header / meta */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(212, 168, 83, 0.15);
}

.blog-header h1 {
    font-size: 2.6rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.blog-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.blog-meta i { margin-right: 6px; color: var(--accent2); }

/* Article body */
.blog-body {
    text-align: left;
}

.blog-body p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    text-align: justify;
}

.blog-body strong {
    color: var(--secondary);
    font-weight: 600;
}

/* Headings inside articles */
.blog-body h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.6rem;
    color: var(--text-light);
    margin-top: 3.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(212, 168, 83, 0.2);
    line-height: 1.4;
}

.blog-body h3 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.25rem;
    color: var(--secondary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Lists */
.blog-body ul,
.blog-body ol {
    margin: 0.5rem 0 2rem 1.5rem;
    padding-left: 1rem;
}

.blog-body ul {
    list-style-type: disc;
}

.blog-body ol {
    list-style-type: decimal;
}

.blog-body li {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-left: 0.4rem;
}

.blog-body li::marker {
    color: var(--secondary);
    font-size: 1.1rem;
}

.blog-body li strong {
    color: var(--secondary);
}

/* Highlight / callout box */
.blog-callout {
    margin: 2.5rem 0;
    padding: 1.5rem 1.8rem;
    background: rgba(124, 58, 237, 0.08);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
}

.blog-callout strong {
    color: var(--secondary);
}

/* Table styling for blog */
.blog-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.blog-body thead tr {
    background: rgba(212, 168, 83, 0.1);
}

.blog-body th {
    padding: 1rem;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-body td {
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    line-height: 1.6;
}

.blog-body tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.blog-body td strong {
    color: var(--text-light);
}

/* Article footer CTA */
.blog-cta {
    margin-top: 3.5rem;
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(212,168,83,0.05));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.blog-cta p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: center;
}

.blog-cta strong {
    color: var(--secondary);
}

/* Article bottom nav */
.blog-bottom-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-bottom-nav a {
    color: var(--accent2);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}
.blog-bottom-nav a:hover { color: var(--secondary); }

/* Responsive blog */
@media (max-width: 768px) {
    .blog-article { padding-top: 110px; }
    .blog-header h1 { font-size: 1.8rem; }
    .blog-body h2 { font-size: 1.35rem; margin-top: 2.5rem; }
    .blog-body h3 { font-size: 1.1rem; margin-top: 2rem; }
    .blog-body p { font-size: 1.1rem; }
    .blog-body li { font-size: 1.05rem; }
    .blog-body ul, .blog-body ol { margin-left: 0.8rem; padding-left: 0.8rem; }
    .blog-body table { font-size: 0.8rem; }
    .blog-body th, .blog-body td { padding: 0.6rem; }
    .blog-bottom-nav { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Blog index cards */
.blog-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.blog-card-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 1rem;
    color: var(--accent2);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.blog-card:hover .blog-card-link {
    color: var(--secondary);
}
