/* =============================================
   LA MANUELA MEZCAL — EN CONSTRUCCIÓN
   Single-section · Dark/Purple · Outfit font
   ============================================= */

/* --- Custom Properties --- */
:root {
    --bg: #0b0a10;
    --bg-right: #0f0d17;
    --purple: #8b3cc7;
    --purple-light: #c084fc;
    --purple-glow: rgba(139, 60, 199, 0.35);
    --text: #f2f0f7;
    --text-dim: #918da5;
    --text-muted: #5c5872;
    --border: rgba(139, 60, 199, 0.15);
    --font: 'Outfit', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* --- Ambient Glows --- */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
    z-index: 0;
}

.bg-glow--1 {
    width: 500px;
    height: 500px;
    background: var(--purple-glow);
    top: -15%;
    left: -8%;
    opacity: 0.5;
    animation: drift1 12s ease-in-out infinite alternate;
}

.bg-glow--2 {
    width: 400px;
    height: 400px;
    background: rgba(124, 58, 237, 0.2);
    bottom: -10%;
    right: 10%;
    opacity: 0.4;
    animation: drift2 15s ease-in-out infinite alternate;
}

@keyframes drift1 {
    to { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes drift2 {
    to { transform: translate(-40px, -30px) scale(1.1); }
}

/* --- Main Layout --- */
.page {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* --- LEFT SIDE --- */
.side--left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px clamp(40px, 6vw, 80px);
    position: relative;
}

.content {
    max-width: 580px;
}

/* Logo */
.logo {
    height: 143px;
    width: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 35px var(--purple-glow))
            drop-shadow(0 0 70px rgba(139, 60, 199, 0.25));
    animation: fadeIn 0.8s var(--ease) both;
}

/* Title */
.title {
    font-size: clamp(2.4rem, 4.6vw, 4rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s var(--ease) 0.15s both;
    background: linear-gradient(
        180deg,
        var(--text) 0%,
        var(--purple-light) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tagline */
.tagline {
    font-size: clamp(1.1rem, 1.76vw, 1.32rem);
    font-weight: 400;
    color: var(--text-dim);
    margin-bottom: 48px;
    line-height: 1.5;
    animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

/* Social row */
.social-row {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s var(--ease) 0.5s both;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.35s var(--ease);
}

.social-link:hover {
    color: var(--purple-light);
    border-color: var(--purple);
    background: rgba(139, 60, 199, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--purple-glow);
}

/* Buy row */
.buy-row {
    display: flex;
    gap: 12px;
    animation: fadeInUp 0.8s var(--ease) 0.55s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(139, 60, 199, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.35s var(--ease);
}

.btn:hover {
    background: var(--purple);
    border-color: var(--purple);
    box-shadow: 0 8px 32px var(--purple-glow);
    transform: translateY(-2px);
}

.btn svg {
    transition: transform 0.35s var(--ease);
}

.btn:hover svg {
    transform: translate(3px, -3px);
}

/* Legal */
.legal {
    position: absolute;
    bottom: 28px;
    left: clamp(40px, 6vw, 80px);
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.5;
    letter-spacing: 0.04em;
}

/* --- RIGHT SIDE --- */
.side--right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-right);
    border-left: 1px solid var(--border);
}

/* Subtle radial behind bottles */
.side--right::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    opacity: 0.35;
    pointer-events: none;
}

/* --- Slider --- */
.slider {
    position: relative;
    width: 100%;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --- Splash FX --- */
.splash-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.splash-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.splash-ring.animate {
    animation: splashRing 0.9s var(--ease) forwards;
}

@keyframes splashRing {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(45);
        opacity: 0;
    }
}

.splash-drop {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0;
}

.splash-drop.animate {
    animation: splashDrop 0.8s var(--ease) forwards;
}

@keyframes splashDrop {
    0% {
        opacity: 0.7;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: var(--drop-end) scale(0);
    }
}

.slide {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.88) translateY(30px);
    transition: all 0.7s var(--ease);
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.slide.exit-up {
    opacity: 0;
    transform: scale(0.88) translateY(-40px);
}

.bottle {
    max-height: clamp(340px, 55vh, 520px);
    width: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 40px var(--purple-glow));
    animation: bottleFloat 5s ease-in-out infinite;
}

@keyframes bottleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.slide-name {
    margin-top: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s var(--ease) 0.25s;
}

.slide.active .slide-name {
    opacity: 1;
    transform: translateY(0);
}

/* Dots */
.dots {
    display: flex;
    gap: 10px;
    position: absolute;
    bottom: 48px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.3;
    transition: all 0.4s var(--ease);
    cursor: pointer;
}

.dot.active {
    opacity: 1;
    background: var(--purple-light);
    box-shadow: 0 0 12px var(--purple-glow);
    transform: scale(1.25);
}

.dot:hover:not(.active) {
    opacity: 0.6;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablets */
@media (max-width: 900px) {
    body {
        overflow-y: auto;
        height: auto;
    }

    .page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .side--left {
        flex: none;
        padding: 80px 36px 48px;
        align-items: center;
        text-align: center;
    }

    .content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .title {
        font-size: clamp(2.5rem, 9vw, 4rem);
    }

    .contact-row {
        align-items: center;
    }

    .buy-row {
        justify-content: center;
    }

    .social-row {
        justify-content: center;
    }

    .side--right {
        flex: none;
        height: 60vh;
        min-height: 420px;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .legal {
        position: relative;
        bottom: auto;
        left: auto;
        text-align: center;
        margin-top: 32px;
    }
}

/* Phones */
@media (max-width: 520px) {
    .side--left {
        padding: 60px 24px 36px;
    }

    .logo {
        height: 70px;
        margin-bottom: 28px;
    }

    .title {
        font-size: 2.4rem;
    }

    .tagline {
        margin-bottom: 32px;
        font-size: 1.05rem;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.75rem;
    }

    .side--right {
        height: 50vh;
        min-height: 360px;
    }

    .bottle {
        max-height: 280px;
    }

    .dots {
        bottom: 28px;
    }
}

/* --- Entrance Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
