@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Parisienne&family=Alex+Brush&display=swap');

/* --- Variables Globales --- */
:root {
    --brand-gold: #c5a028;
    --brand-blue: #00ccff;
    --brand-pink: #ff3399;
}

/* --- Estilos Base --- */
body {
    font-family: 'Montserrat', sans-serif;
    color: #2d2d2d;
    background-color: #fffdfa;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- Tipografía Personalizada --- */
.font-brand-name {
    font-family: 'Parisienne', cursive;
}

.font-serif-brand {
    font-family: 'Playfair Display', serif;
}

.font-signature {
    font-family: 'Alex Brush', cursive;
}

/* --- Utilidades Visuales de Marca --- */
.text-gradient {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback */
}

.bg-brand-gradient {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-pink) 100%);
}

.mesh-gradient-hero {
    background: radial-gradient(circle at 80% 20%, rgba(255, 51, 153, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(0, 204, 255, 0.06) 0%, transparent 40%);
}

.book-shadow {
    box-shadow: 30px 30px 60px rgba(0, 0, 0, 0.12), -5px 0 15px rgba(255, 255, 255, 0.7);
}

/* --- Animaciones --- */
@keyframes infiniteFlight {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translate(120px, -180px) rotate(20deg);
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(240px, -360px) rotate(-15deg);
        opacity: 0;
    }
}

.animate-infinite-flight {
    animation: infiniteFlight linear infinite;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

.btn-pulse {
    animation: pulse-shadow 2.5s infinite;
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 51, 153, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 51, 153, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 51, 153, 0);
    }
}

/* --- Elementos Flotantes (WhatsApp) --- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.whatsapp-pulse {
    position: absolute;
    inset: 0;
    background: #25D366;
    border-radius: 9999px;
    opacity: 0.3;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.whatsapp-bg {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 1rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    transition: all 0.3s;
}

.whatsapp-float:hover .whatsapp-bg {
    transform: scale(1.05);
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* --- Ajustes de Navegación --- */
.navbar {
    transition: all 0.5s;
}

#navbar.scrolled {
    background-color: #ffffff;
    /* Solid White for maximum contrast */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* Stronger shadow */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 61;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #c5a028, #ff3399, #00ccff);
    width: 0%;
    transition: width 0.1s;
}

#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.hidden {
    transform: translateX(100%);
    display: flex;
    /* Override display:none to handle transform */
    visibility: hidden;
}

#mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
}

/* --- Metodologia Card Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-card {
    opacity: 0;
    /* Hidden by default, animated by JS or delay */
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.step-card:nth-child(1) {
    animation-delay: 0.2s;
}

.step-card:nth-child(2) {
    animation-delay: 0.4s;
}

.step-card:nth-child(3) {
    animation-delay: 0.6s;
}

.step-card:nth-child(4) {
    animation-delay: 0.8s;
}

.hover-float {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.hover-float:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0, 204, 255, 0.3);
    /* Brand Blue Glow */
    border-color: #00ccff;
}

/* --- Animated Gradient Background --- */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.bg-gradient-animate {
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
}

/* --- Cookie Banner Animation --- */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up-enter {
    animation: slideUp 0.5s ease-out forwards;
}

/* --- Custom Styles from HTML (Refactored) --- */

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fffdfa;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-butterfly {
    animation: float 3s ease-in-out infinite;
    margin-bottom: 20px;
}

.preloader-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: #ff3399;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}