/* ===========================================
   ARCANO HOLÍSTICO - DESIGN SYSTEM
   Diseño Premium Espiritual/Holístico
   =========================================== */

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
    /* ===== Color Palette ===== */
    --color-bg-base: #FAF6F0;
    --color-text-primary: #2D2D2D;
    --color-highlight: #F3E3C3;
    --color-accent: #5E3B78;
    --color-btn-light: #F3E3C3;
    --color-logo-bg: #000000;

    /* Brand Manual Specific Colors */
    --color-text-on-highlight: #7A5A27;
    --color-text-on-accent: #FFFFFF;
    --color-neutral-medium: #8B8B8B;
    --color-accent-soft: #E8D5B7;

    /* Gold Gradient Colors */
    --color-gold-light: #D4AF37;
    --color-gold-dark: #B8860B;

    /* Extended palette for gradients and effects */
    --color-orange-soft: #FFB380;
    --color-salmon-soft: #FFA799;
    --color-white: #FFFFFF;
    --color-shadow: rgba(45, 45, 45, 0.1);
    --color-overlay: rgba(94, 59, 120, 0.05);

    /* ===== Typography ===== */
    --font-heading: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-body: 'Inter', 'Lato', 'Open Sans', sans-serif;

    /* Font Sizes - Fluid Typography */
    --fs-hero: clamp(2.5rem, 5vw, 4rem);
    --fs-h1: clamp(2rem, 4vw, 3rem);
    --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
    --fs-h3: clamp(1.5rem, 3vw, 2rem);
    --fs-h4: clamp(1.25rem, 2.5vw, 1.75rem);
    --fs-body: clamp(1rem, 2vw, 1.125rem);
    --fs-small: clamp(0.875rem, 1.5vw, 1rem);

    /* Font Weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* ===== Spacing System ===== */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* ===== Layout ===== */
    --container-max: 1200px;
    --container-padding: 1.5rem;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    /* ===== Transitions ===== */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* ===== Shadows ===== */
    --shadow-sm: 0 2px 8px var(--color-shadow);
    --shadow-md: 0 4px 16px var(--color-shadow);
    --shadow-lg: 0 8px 32px rgba(45, 45, 45, 0.15);

    /* ===== Gradients ===== */
    --gradient-gold: linear-gradient(135deg, #F3E3C3 0%, #D4AF37 50%, #B8860B 100%);
    --gradient-highlight: linear-gradient(135deg, var(--color-highlight) 0%, var(--color-orange-soft) 100%);
    --gradient-accent: linear-gradient(180deg, #5E3B78 0%, #7B4B9E 50%, #4A2D5E 100%);
}

/* ========== RESET & BASE STYLES ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
    font-size: var(--fs-h4);
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--color-gold-dark);
    text-decoration: underline;
}

/* ========== CONTAINER & LAYOUT ========== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.section {
    padding: var(--space-3xl) 0;
}

.section-alt {
    background-color: var(--color-white);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    text-align: center;
    text-decoration: none;
    border: none;
    font-weight: var(--fw-light);
    margin-bottom: var(--space-xl);
    color: var(--color-text-primary);
    opacity: 0.9;
}

/* ========== GRID SYSTEM ========== */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ========== UTILITIES ========== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.accent-text {
    color: var(--color-accent);
}

.gold-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* ========== WHATSAPP FLOATING BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--color-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
    text-decoration: none;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--color-text-primary);
    color: var(--color-bg-base);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer a {
    color: var(--color-btn-light);
}

.footer a:hover {
    color: var(--color-gold-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer-section h4 {
    color: var(--color-gold-light);
    margin-bottom: var(--space-md);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(250, 246, 240, 0.2);
    font-size: var(--fs-small);
}

/* ========== CAROUSEL / SLIDER ========== */
.carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
}

.carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: var(--space-lg);
}

.carousel-item {
    min-width: 100%;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .carousel-item {
        min-width: calc(50% - var(--space-lg) / 2);
    }
}

@media (min-width: 1024px) {
    .carousel-item {
        min-width: calc(33.333% - var(--space-lg) * 2 / 3);
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-accent);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    line-height: 1;
    padding: 0;
}

.carousel-btn:hover:not(:disabled) {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-highlight);
    border: 2px solid var(--color-accent);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.carousel-indicator:hover {
    background-color: var(--color-btn-light);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background-color: var(--color-accent);
    width: 32px;
    border-radius: 6px;
}

/* ========== RESPONSIVE - MOBILE FIRST ========== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--color-bg-base);
        width: 100%;
        text-align: center;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-md);
        padding: var(--space-lg) 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        min-height: 60vh;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* ========== PRINT STYLES ========== */
@media print {

    .navbar,
    .whatsapp-float,
    .btn {
        display: none;
    }
}

/* ========== BOTÓN COFRE ARCANO ========== */
.btn-cofre-arcano {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.9rem 2.4rem;
    background-color: #5E3B78;
    color: #FFFFFF;
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cofre-arcano:hover {
    background-color: #4A2D63;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}