/* ==========================================================================
   INNOVADERM CHILE - DESIGN SYSTEM & ANIMATIONS ("CON MOVIMIENTO")
   Paleta Oficial: Aqua Médico (#1ECFCB) & Azul Marino Clínico (#254077)
   ========================================================================== */

:root {
    --color-aqua: #1ECFCB;
    --color-aqua-hover: #12B5B1;
    --color-aqua-dark: #009A98;
    --color-aqua-light: #E8FAF9;
    --color-aqua-glow: rgba(30, 207, 203, 0.35);

    --color-navy: #254077;
    --color-navy-dark: #172A52;
    --color-navy-light: #EEF3FA;
    --color-navy-border: #D0DCEE;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, .font-heading {
    font-family: var(--font-heading);
}

/* --- Ticker Marquee Infinito --- */
.marquee-wrapper {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 2rem;
    animation: scroll-marquee 28s linear infinite;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* --- Animaciones de Levitación y Pulso Suave --- */
@keyframes float-subtle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

.animate-float {
    animation: float-subtle 4s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-subtle 4.5s ease-in-out 1.5s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(30, 207, 203, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(30, 207, 203, 0);
    }
}

.glow-aqua-pulse {
    animation: pulse-glow 2.5s infinite;
}

/* --- Comparador Interactivo Antes / Después --- */
.ba-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
    user-select: none;
    touch-action: pan-y;
}

.ba-image-under {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-image-over {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    width: 50%;
}

.ba-image-over img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: cover;
}

.ba-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}

.ba-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: #ffffff;
    color: #254077;
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #1ECFCB;
    pointer-events: none;
}

/* --- Transiciones de Tarjetas y Botones --- */
.card-hover-effect {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(37, 64, 119, 0.12);
    border-color: rgba(30, 207, 203, 0.5);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1ECFCB;
}

/* --- Redes Sociales & Floating Widget --- */
.instagram-gradient {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-gradient-hover:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.floating-contact-btn {
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-contact-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.55);
}

.insta-card {
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.insta-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(16, 30, 56, 0.18);
}

/* --- Hero Visual & Glowing Aura Effects --- */
@keyframes laser-glow-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.laser-aura-border {
    position: relative;
    border-radius: 1.75rem;
    padding: 3px;
    background: linear-gradient(135deg, rgba(30, 207, 203, 0.8), rgba(63, 224, 220, 0.2), rgba(220, 39, 67, 0.6), rgba(30, 207, 203, 0.8));
    background-size: 300% 300%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.story-ring-pulse {
    box-shadow: 0 0 0 0 rgba(225, 48, 108, 0.7);
    animation: story-pulse 2s infinite;
}

@keyframes story-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 48, 108, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(225, 48, 108, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(225, 48, 108, 0);
    }
}
