/* Estilos Premium para Repatriaciones La Paz */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #064e3b;
    --primary-light: #0a6c52;
    --primary-dark: #032e22;
    --secondary: #c5a059;
    --accent: #fdfcf8;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --white: #ffffff;
    --bg-light: #fdfcf8;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 20px 40px rgba(6, 78, 59, 0.08);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

h1,
h2,
h3,
h4,
.font-display {
    font-family: 'Playfair Display', serif;
}

/* ========================================
   GLASSMORPHISM UTILITIES
   ======================================== */
.glass-effect {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(6, 78, 59, 0.08);
    box-shadow: 0 8px 32px rgba(6, 78, 59, 0.06);
}

/* ========================================
   ANIMATIONS — General
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ ACCORDION
   ======================================== */
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    border-top-width: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top-width: 1px;
}

.faq-item .chevron {
    transition: transform 0.3s ease;
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}

/* ========================================
   PULSE RING (Map markers, etc.)
   ======================================== */
@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    background: #d97706;
    animation: pulseRing 2s ease-out infinite;
}

/* ========================================
   HERO — Islamic Symbol Animation
   ======================================== */
@keyframes symbolGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(197, 160, 89, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 50px rgba(197, 160, 89, 0.7));
    }
}

@keyframes symbolFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes symbolRotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes geometricPulse {

    0%,
    100% {
        opacity: 0.04;
        transform: scale(1);
    }

    50% {
        opacity: 0.08;
        transform: scale(1.02);
    }
}

.hero-symbol {
    animation: symbolFloat 5s ease-in-out infinite, symbolGlow 4s ease-in-out infinite;
}

.hero-geometric-ring {
    animation: symbolRotateSlow 60s linear infinite;
}

.hero-geometric-pulse {
    animation: geometricPulse 6s ease-in-out infinite;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    border: 3px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ========================================
   TEXT SELECTION
   ======================================== */
::selection {
    background: var(--secondary);
    color: var(--primary-dark);
}

/* ========================================
   HERO SECTION SPECIFICS
   ======================================== */
.hero-gradient {
    background: linear-gradient(to right, rgba(3, 46, 34, 0.95), rgba(3, 46, 34, 0.7), transparent);
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary) 0%, #e2c08d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Islamic geometric background pattern */
.islamic-pattern-bg {
    background-image:
        linear-gradient(30deg, rgba(197, 160, 89, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(197, 160, 89, 0.04) 87.5%),
        linear-gradient(150deg, rgba(197, 160, 89, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(197, 160, 89, 0.04) 87.5%),
        linear-gradient(30deg, rgba(197, 160, 89, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(197, 160, 89, 0.04) 87.5%),
        linear-gradient(150deg, rgba(197, 160, 89, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(197, 160, 89, 0.04) 87.5%),
        linear-gradient(60deg, rgba(197, 160, 89, 0.06) 25%, transparent 25.5%, transparent 75%, rgba(197, 160, 89, 0.06) 75%),
        linear-gradient(60deg, rgba(197, 160, 89, 0.06) 25%, transparent 25.5%, transparent 75%, rgba(197, 160, 89, 0.06) 75%);
    background-size: 40px 70px;
    background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
}

/* ========================================
   RESPONSIVE FIXES & HERO BUTTONS
   ======================================== */
.hero-height {
    min-height: 100vh;
}

@media (max-width: 768px) {
    .hero-symbol svg {
        width: 100px;
        height: 100px;
    }

    .hero-height {
        height: auto;
        padding-bottom: 80px;
    }

    /* Fix buttons overlapping */
    .flex.flex-col.sm\:flex-row.gap-6.mt-16 {
        margin-top: 2rem !important;
        gap: 1rem !important;
    }
}

/* ========================================
   LANGUAGE SELECTOR
   ======================================== */
.language-selector {
    position: relative;
}

.lang-dropdown {
    animation: langDropIn 0.2s ease-out;
}

@keyframes langDropIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-dropdown a:hover {
    background: rgba(6, 78, 59, 0.06);
    color: var(--primary);
}

.lang-dropdown a.lang-active {
    background: rgba(6, 78, 59, 0.08);
    color: var(--primary);
}

.lang-dropdown a.lang-active::after {
    content: '✓';
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--primary);
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 46, 34, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 400px);
    height: 100%;
    background: #fff;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    flex-shrink: 0;
}

.mobile-menu-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-menu-links {
    flex: 1;
    padding: 0.5rem 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background: rgba(6, 78, 59, 0.04);
    color: var(--primary);
    border-left-color: var(--secondary);
}

.mobile-menu-link .material-symbols-outlined {
    font-size: 1.4rem;
    color: var(--primary);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.mobile-menu-link:hover .material-symbols-outlined,
.mobile-menu-link:active .material-symbols-outlined {
    opacity: 1;
}

.mobile-menu-cta {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid rgba(6, 78, 59, 0.08);
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-cta-call {
    background: var(--primary);
    color: #fff;
}

.mobile-cta-call:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(6, 78, 59, 0.3);
}

.mobile-cta-whatsapp {
    background: #25D366;
    color: #fff;
}

.mobile-cta-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.mobile-cta-btn .material-symbols-outlined,
.mobile-cta-btn .fab {
    font-size: 1.25rem;
}

.mobile-menu-footer {
    padding: 1rem 1.5rem;
    flex-shrink: 0;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ========================================
   RTL SUPPORT
   ======================================== */
[dir="rtl"] body {
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
}

[dir="rtl"] .text-left {
    text-align: right;
}

[dir="rtl"] .text-right {
    text-align: left;
}

[dir="rtl"] .ml-auto {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .mr-auto {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .flex-row-reverse-rtl {
    flex-direction: row-reverse;
}