/* ==========================================
   GLOBAL STYLES
   ========================================== */

/* Fuentes personalizadas */
@font-face {
    font-family: 'Adelia';
    src: url('../assets/fonts/adelia.woff2') format('woff2'),
         url('../assets/fonts/adelia.woff') format('woff'),
         url('../assets/fonts/adelia.ttf') format('truetype'),
         url('../assets/fonts/adelia.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colores base - se sobrescriben dinámicamente */
    --primary-color: #D4AF37;
    --secondary-color: #FFF0F5;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #FFFFFF;
    --bg-dark: #1a1a1a;
    
    /* Tipografías */
    --font-heading: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Montserrat', sans-serif;
    
    /* Espaciado */
    --section-padding: 80px 20px;
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   LOADING SCREEN
   ========================================== */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
    color: white;
}

.loader i {
    font-size: 3rem;
    animation: heartbeat 1.5s infinite;
}

.loader p {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 300;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

/* ==========================================
   ERROR PAGE
   ========================================== */

#error-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.error-container {
    text-align: center;
    color: white;
    padding: 40px;
}

.error-container i {
    font-size: 5rem;
    margin-bottom: 20px;
}

.error-container h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.error-container p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.script-font {
    font-family: var(--font-script);
    font-weight: 400;
}

.heading-xl {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.heading-lg {
    font-size: clamp(2rem, 4vw, 3rem);
}

.heading-md {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.heading-sm {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* ==========================================
   SECTIONS
   ========================================== */

section {
    padding: var(--section-padding);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 20px auto;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* ==========================================
   UTILITIES
   ========================================== */

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.hidden {
    display: none !important;
}


