/* 
 * Karioka - Estilo Premium Vanilla CSS
 * Rediseño místico-vibrante con Glassmorphism y Oro Metálico
 */

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

/* === VARIABLES === */
:root {
    /* Paleta Oficial de Karina Ocampo */
    --brand-purple: #4a154b;
    --brand-purple-rgb: 74, 21, 75;
    --brand-purple-dark: #2c092d;
    --brand-gold: #d4af37;
    --brand-gold-rgb: 212, 175, 55;
    --brand-cream: #e8e5d6;
    --brand-cream-rgb: 232, 229, 214;
    --brand-charcoal: #2c2c2c;
    --brand-charcoal-rgb: 44, 44, 44;

    /* Gradientes */
    --bg-metallic-gold: linear-gradient(135deg, #d4af37 0%, #fff2b2 25%, #c5a030 50%, #9e7f22 75%, #d4af37 100%);
    --bg-mystic-purple: linear-gradient(135deg, #4a154b 0%, #2c092d 60%, #150016 100%);
    --bg-gold-glow: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
    --bg-glass-card: rgba(44, 44, 44, 0.45);
    --bg-glass-light: rgba(232, 229, 214, 0.08);

    /* Sombras y Luces */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.45);
    --shadow-2xl: 0 32px 64px rgba(74, 21, 75, 0.3);
    --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.35);

    /* Bordes y Esquinas */
    --radius-sm: 0.375rem;
    --radius: 0.75rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 2rem;
    --radius-3xl: 2.75rem;
    --radius-full: 9999px;

    /* Transiciones */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* === REST & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--brand-purple-dark);
    background-image: var(--bg-mystic-purple);
    color: var(--brand-cream);
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* === FONTS & TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.font-sans {
    font-family: 'Outfit', sans-serif;
}

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.5rem; }
.text-5xl { font-size: 3.5rem; }
.text-6xl { font-size: 4.5rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.08em; }
.tracking-widest { letter-spacing: 0.16em; }

.leading-tight { line-height: 1.2; }
.leading-relaxed { line-height: 1.75; }

.text-white { color: white; }
.text-brand-purple { color: var(--brand-purple); }
.text-brand-cream { color: var(--brand-cream); }
.text-brand-gold { color: var(--brand-gold); }
.text-brand-charcoal { color: var(--brand-charcoal); }

.drop-shadow-md { text-shadow: 0 4px 10px rgba(0,0,0,0.4); }
.drop-shadow-lg { text-shadow: 0 8px 24px rgba(0,0,0,0.6); }

/* === GLASSMORPHISM === */
.glass-card {
    background: rgba(var(--brand-purple-rgb), 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(var(--brand-gold-rgb), 0.2);
    box-shadow: var(--shadow-md), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(var(--brand-gold-rgb), 0.45);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(var(--brand-gold-rgb), 0.1);
    transform: translateY(-4px);
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.glass-card-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--brand-gold-rgb), 0.3);
}

.glass-modal {
    background: rgba(21, 0, 22, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 2px solid rgba(var(--brand-gold-rgb), 0.35);
    box-shadow: var(--shadow-xl), var(--shadow-gold);
    border-radius: var(--radius-2xl);
}

.glass-input {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 2px solid rgba(var(--brand-cream-rgb), 0.15) !important;
    color: var(--brand-cream) !important;
    backdrop-filter: blur(8px);
    border-radius: var(--radius) !important;
    transition: var(--transition-fast) !important;
}

.glass-input:focus {
    border-color: var(--brand-gold) !important;
    box-shadow: 0 0 12px rgba(var(--brand-gold-rgb), 0.3) !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

/* === BACKDROP SECTION OVERLAYS === */
.section-bg-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

.section-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(var(--brand-purple-rgb), 0.92) 0%, 
        rgba(21, 0, 22, 0.85) 50%, 
        rgba(var(--brand-purple-rgb), 0.94) 100%
    );
    z-index: -1;
}

/* === SHIMMER EFFECT === */
@keyframes shimmer-sweep {
    0% { transform: translate(-50%, -50%) rotate(25deg) translateY(-100%); }
    100% { transform: translate(-50%, -50%) rotate(25deg) translateY(100%); }
}

.shimmer-button {
    position: relative;
    overflow: hidden;
}

.shimmer-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 100px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: translate(-50%, -50%) rotate(25deg) translateY(-120px);
    transition: transform 0.8s ease;
}

.shimmer-button:hover::after {
    transform: translate(-50%, -50%) rotate(25deg) translateY(120px);
}

/* === BACKDROP BLUR & LAYOUT === */
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(35px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float-btn {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.04); }
}

.animate-fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fade-in-scale { animation: fadeInScale 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-slide-in-left { animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-float { animation: float-btn 2.5s ease-in-out infinite; }

/* Delay classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

.hero-animate { opacity: 0; animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards; }
.hero-animate-delay { opacity: 0; animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards; }
.card-animate { opacity: 0; animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.section-title-animate { opacity: 0; animation: slideInLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* === RESET & LAYOUT UTILITIES === */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* === FLEX & GRID === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* === HOVER & INTERACTION === */
.hover-lift {
    transition: var(--transition);
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), 0 8px 30px rgba(var(--brand-gold-rgb), 0.15);
}

.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom:hover img {
    transform: scale(1.06);
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--brand-purple-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--brand-gold) 0%, var(--brand-purple) 100%);
    border: 2px solid var(--brand-purple-dark);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-cream);
}
