@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');


/**
 * CunAmor Design System - CSS Variables
 * @package CunAmor
 */

:root {
    /* Bloqueo estricto del "Auto Dark Mode" de navegadores y tablets móviles (Brave/Chrome) 
       para evitar que el Arena Cálida (#E8DCCB) y los fondos claros de los bloques 
       sean transformados inversamente a Café Oscuro y Gris por el software del celular. */
    color-scheme: light;

    /* Brand Colors (EXACT from user) */
    --morado-raiz: #5B2A6D;
    --arena-calida: #E8DCCB;
    --lavanda-humo: #BFA6D9;
    --marron-cacao: #7A4A37;
    --terracota-profundo: #B55A3C;
    
    /* Support Colors */
    --gris-pizarra: #333333;
    --blanco-crema: #FCF9F5;
    --blanco-puro: #FFFFFF;

    /* Legacy Map (Backward compatibility) */
    --rosa-palo: var(--lavanda-humo);
    --rosa-palo-light: var(--arena-calida);
    --amarillo-mantequilla: var(--blanco-crema);
    --terracota-suave: var(--terracota-profundo);
    --terracota-hover: var(--marron-cacao);
    --terracota-light: var(--lavanda-humo);

    /* Gradients mapped to solid colors */
    --gradient-hero: var(--arena-calida);
    --gradient-cta: var(--terracota-profundo);

    /* Typography */
    --font-headings: 'Quicksand', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --font-buttons: 'Quicksand', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;

    /* Shadows (Soft UI / Organic) */
    --shadow-soft: 0 10px 30px rgba(91, 42, 109, 0.08); /* Derived from #5B2A6D */
    --shadow-hover: 0 15px 40px rgba(91, 42, 109, 0.12);
    --shadow-card: 0 4px 15px rgba(91, 42, 109, 0.05);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom UI Elements (Wavy Photo Frame) */
.cunamor-scallop-frame {
    background: var(--lavanda-humo);
    padding: 1rem;
    border-radius: 12px;
    display: inline-block;
    position: relative;
}

/* Create the wavy edges simulation using border or mask */
.cunamor-scallop-frame::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border: 4px dashed var(--lavanda-humo);
    border-radius: 16px;
    z-index: -1;
}

.cunamor-scallop-photo {
    background-color: #4A4A4A; /* Placeholder dark gray */
    border-radius: 8px;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Utility Classes */
.text-terracota { color: var(--terracota-profundo); }
.text-morado { color: var(--morado-raiz); }
.text-cacao { color: var(--marron-cacao); }
.text-gris { color: var(--gris-pizarra); }

.bg-arena { background-color: var(--arena-calida); }
.bg-lavanda { background-color: var(--lavanda-humo); }
.bg-cream { background-color: var(--blanco-crema); }
.bg-morado { background-color: var(--morado-raiz); }

/* Solid layout blocks */
.solid-block {
    position: relative;
    z-index: 10;
}

/* SVG Waves positioning */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(99%);
    z-index: 5;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

@media (min-width: 768px) {
    .wave-divider svg { height: 120px; }
}

/* Header Logo Swap on Scroll */
.cunamor-header.is-scrolled .logo-initial { display: none !important; }
.cunamor-header:not(.is-scrolled) .logo-scrolled { display: none !important; }

/* Force exact white-space replacements */
body {
    background-color: var(--arena-calida) !important;
}
.cunamor-header {
    background-color: transparent !important;
    transition: background-color 0.3s ease !important;
}
.cunamor-header.is-scrolled {
    background-color: var(--arena-calida) !important;
}

/* Social icons and Header Buttons strictly purple */
.cunamor-social-icon, .cunamor-header__cart, .cunamor-header__login {
    color: var(--morado-raiz) !important;
    background-color: var(--arena-calida) !important;
    border-color: var(--arena-calida) !important;
}
.cunamor-social-icon:hover, .cunamor-header__cart:hover, .cunamor-header__login:hover {
    background-color: var(--morado-raiz) !important;
    color: var(--arena-calida) !important;
    border-color: var(--morado-raiz) !important;
}

/* WhatsApp Widget */
.cunamor-wa-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    font-family: var(--font-body);
}

.cunamor-wa-floating-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease;
    position: relative;
    float: right;
}

.cunamor-wa-floating-btn:hover {
    transform: scale(1.1);
}

.cunamor-wa-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #E74C3C;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.cunamor-wa-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background-color: #1E1E1D;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

.cunamor-wa-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cunamor-wa-header {
    background-color: #25D366;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.cunamor-wa-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.cunamor-wa-close {
    background: rgba(0,0,0,0.2);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.cunamor-wa-close:hover {
    background: rgba(0,0,0,0.3);
}

.cunamor-wa-body {
    padding: 1.5rem;
    background-color: #1E1E1D;
}

.cunamor-wa-bubble {
    background-color: #4A4A4B;
    color: #F0F0F0;
    padding: 1rem 1.2rem;
    border-radius: 0 15px 15px 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    max-width: 90%;
}

.cunamor-wa-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 15px solid #4A4A4B;
    border-left: 15px solid transparent;
}

.cunamor-wa-footer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    background-color: #1E1E1D;
}

.cunamor-wa-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, background-color 0.2s;
}

.cunamor-wa-btn:hover {
    background-color: #1EBE57;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* ==============================================
   Responsive Hero Video Settings 
   ============================================== */
.hero-responsive {
    min-height: 90vh;
    overflow: hidden;
    position: relative;
}
.hero-content-responsive {
    padding-top: 20vh;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    position: relative;
}

/* Tablets and Mobile Devices */
@media (max-width: 768px) {
    .hero-responsive {
        /* Se reduce dramáticamente la altura del contenedor en móviles 
           para que el browser se vea obligado a "alejar" el zoom del video (object-fit: cover) 
           y lograr mostrar un encuadre mucho más ancho de la escena */
        min-height: 50vh;
    }
    .hero-content-responsive {
        padding-top: 12vh;
    }
}