:root {
    --verde-whatsapp: #25D366;
    --verde-whatsapp-hover: #1ebe57;
    --acento: #5eb5b0;
    --nav-height: 64px;
    --footer-height: 26px;
    /* Baja la loción (y el panel, para que sigan alineados) para que
       quede apoyada sobre el podio del fondo en vez de flotando encima.
       Súbelo o bájalo en px si en tu pantalla no calza exacto. */
    --product-shift-y: 60px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Vista única, sin scroll */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============ BARRA SUPERIOR (igual a la de gorras) ============ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10000;
}

.nav-logo {
    color: #fff;
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 1.1rem;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a,
.back-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.back-link:hover {
    color: var(--acento);
}

/* ============ CONTENEDOR PRINCIPAL (ocupa toda la pantalla, sin scroll) ============ */
.perfume-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background-color: #000;
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('img/lociones/fondo.png');
    background-size: cover;
    background-position: center;
}

/* El "escenario" ya no es un contenedor con layout propio: cada elemento
   se centra por sí mismo tomando como referencia TODA la pantalla
   (igual que el fondo), para que nada empuje a la loción fuera del centro. */
.perfume-stage {
    display: contents;
}

/* La loción se centra exactamente en la página (igual que tu imagen de
   fondo, que también está centrada). --product-shift-y la baja un poco
   para que quede apoyada sobre el podio en vez de flotando encima. */
.product-display {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(var(--product-shift-y));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* El letrero grande queda centrado en el mismo punto, detrás de la loción */
.brand-bg {
    position: absolute; /* Para que no se superponga sobre el fondo */
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vw;
    color: rgba(255, 255, 255, 0.096);
    z-index: 1;
    pointer-events: none;
    text-align: center;
    line-height: 0.95;
    white-space: nowrap;
}

/* La altura se limita al espacio disponible (nunca provoca scroll);
   420px es el techo que pediste para pantallas grandes. */
.perfume-img {
    height: clamp(200px, 46vh, 420px);
    width: auto;
    max-width: 40vw;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(255, 255, 255, 0.801));
    transition: opacity 0.25s ease;
}

/* El panel va aparte, anclado al borde derecho — no depende del ancho
   de la loción, así que queda retirado en vez de pegado. */
.side-panel {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 9%;
    transform: translateY(calc(-50% + var(--product-shift-y)));
    width: 300px;
    max-width: 85vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.info-box {
    width: 80%;
    padding: 24px;
    background: rgba(0, 0, 0, 0.445);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    text-align: center;
    color: #fff;
}

.info-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.info-box p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 18px;
}

.explore-btn {
    background: var(--verde-whatsapp);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    width: 100%;
}

.explore-btn:hover {
    background: var(--verde-whatsapp-hover);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

.coming-soon {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-align: center;
}

.nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 10;
    pointer-events: none;
    transform: translateY(-50%);
}

.arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    pointer-events: auto;
    transition: 0.3s ease;
}

.arrow:hover {
    background: var(--acento);
    color: #111;
}



/* ============ FOOTER (franja fija y delgada, no agrega scroll) ============ */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 9997;
}

.bottom-bar p {
    font-size: 0.55rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.4;
    text-align: center;
    padding: 0 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ============ MÓVIL: imagen arriba, panel abajo, todo dentro de una pantalla ============ */
@media (max-width: 768px) {
    .site-nav {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }

    :root {
        --product-shift-y: 20px;
    }

    .brand-bg {
        font-size: 26vw;
    }

    .product-display {
        top: 40%;
    }

    .perfume-img {
        height: clamp(140px, 26vh, 220px);
        max-width: 70vw;
    }

    /* En móvil no cabe al lado: se ancla abajo, centrada, en vez de
       calcular su posición según la loción (así nunca se encima). */
    .side-panel {
        top: auto;
        right: auto;
        bottom: calc(var(--footer-height) + 3vh);
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
    }

    .info-box {
        padding: 18px;
    }

    .info-box h2 {
        font-size: 1.3rem;
    }

    .info-box p {
        font-size: 0.8rem;
        margin-bottom: 14px;
    }

    .nav-arrows {
        padding: 0 10px;
    }

    .arrow {
        width: 40px;
        height: 40px;
    }

    .float-whatsapp {
        bottom: calc(var(--footer-height) + 10px);
        right: 16px;
        padding: 10px 16px;
        font-size: 0.7rem;
    }

    .bottom-bar p {
        font-size: 0.48rem;
        letter-spacing: 0.5px;
        padding: 0 10px;
    }
}

/* Pantallas muy bajas (celulares en horizontal, laptops chiquitas):
   se reduce aún más para seguir sin scroll. */
@media (max-height: 480px) {
    .perfume-img {
        height: clamp(120px, 40vh, 200px);
    }

    .side-panel {
        gap: 8px;
    }

    .info-box {
        padding: 14px;
    }

    .info-box p {
        margin-bottom: 10px;
    }
}