@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Share+Tech&family=Roboto+Condensed:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    border-radius: 0;
    background: #32153d;
}

::-webkit-scrollbar-thumb {
    border-radius: 0;
    background: rgba(147, 32, 121);
}

/* =========================
   PAGE LOADER
========================= */
#page-loader {
    position: fixed;
    inset: 0;
    background: #1a0026; /* ajusta a tu color */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Spinner minimal */
.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top: 3px solid #d6bfea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.colors {
    color: #d6bfea;
    background: #d7c0ea;
 
}

body {
    font-family: sans-serif;
    background: #d6bfea;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* =========================
   TIPOGRAFÍAS base
========================= */
h1,
h2,
h3,
h4,
h6 {
    font-family: "Bebas Neue", sans-serif;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

p {
    font-family: "Roboto Condensed", sans-serif;
    color: #f1f1f1;
    line-height: .6;
    font-size: 16px;
}

.hr-a {
    border: none;
    margin: 2.2rem 0;
    opacity: 0.8;
}

.hr-z {
    border: none;
    margin: 2.2rem 0;
    opacity: 0.8;
}

.hr-b {
    border: none;
    border-top: 1px solid #b66faa;
    margin: 2rem 0;
    opacity: 0.8;
}

/* =========================
   HEADER / MENU
========================= */
/* HEADER */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;

    color: #fff;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

.header {
    z-index: 9999;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo-inner {
    display: inline-block;
    transition: transform .35s ease, opacity .35s ease;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;

    opacity: 0;
    animation: logoFadeIn 0.9s ease-out forwards;
    animation-delay: 0.6s;
}

/* Hover real */
.logo a:hover .logo-inner {
    transform: scale(1.06);
    opacity: 0.75;
}



.text-center {
    text-align: center;
}

/* MENU DESKTOP */
.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-menu a {
    font-family: "Share Tech", sans-serif;
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: color .3s ease;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.6);
}

.nav-menu a:hover {
    color: #f2b6c6;
}



.nav-menu a.active {
    color: #f2b6c6;
    /* color destacado */
    transform: scale(1.05);
    /* pequeño “pop” sutil */
}

/* OCULTAR HAMBURGUESA EN DESKTOP */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    /* Mostrar hamburguesa */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
    }

    /* Menu mobile */
    .nav-menu {
        position: absolute;
        top: 64px;
        right: 16px;
        background: rgba(50, 21, 61, 0.85);
        padding: 20px;
        display: none;
        flex-direction: column;
        gap: 16px;
        border-radius: 8px;
    }

    .nav-menu.active {
        display: flex;
    }
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* VIDEO */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* CONTENEDOR DEL LOGO */
/* ==============================
   CONTENEDOR LOGO
============================== */
.header-title {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 18;
    pointer-events: none;

    display: inline-block;
    width: fit-content;
    height: fit-content;

    background: transparent;
    padding: 0;
    border-radius: 14px;

    transition:
        top 0.7s ease,
        background 0.4s ease,
        padding 0.4s ease;
}


/* ==============================
   ESTADO SCROLL (logo pequeño)
============================== */
.header-title.is-scrolled {
    top: 100px;  /* más natural que 170px */
    background: rgba(214, 191, 234, 0.75); /* rosa con transparencia */
    backdrop-filter: blur(6px); /* efecto elegante */
    padding: 6px 100%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}


/* ==============================
   LOGO
============================== */
.header-title img {
    height: 32vh; /* ligeramente más equilibrado */
    width: auto;
    max-width: 75vw;
    max-height: 60vh;
    transition: height 0.6s ease;
}


/* ↓↓↓ REDUCCIÓN REAL EN SCROLL ↓↓↓ */
.header-title.is-scrolled img {
    height: 7vh;   /* realmente pequeño */
}


/* ==============================
   FLOAT SUAVE (solo en home)
============================== */
.header-title-inner {
    animation: floatLogo 6s ease-in-out infinite;
}

.header-title.is-scrolled .header-title-inner {
    animation: none;
}


/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 768px) {

    .header-title img {
        height: 34vh;
    }

    .header-title.is-scrolled img {
        height: 8vh;
    }
}


/* ==============================
   FLOAT KEYFRAME
============================== */
@keyframes floatLogo {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}


/* =========================
   SCROLL INDICATOR
========================= */

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

    font-size: 11px;
    letter-spacing: 2px;
    color: #8f57c1;
}

/* Mouse */
.hero-scroll .mouse {
    width: 22px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 14px;
    position: relative;
}

/* Wheel */
.hero-scroll .mouse::after {
    content: "";
    width: 4px;
    height: 6px;
    background: #fff;
    border-radius: 2px;

    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);

    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
}

/* IMÁGENES SUPERIORES */
.sinopsis-images {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    margin-top: 40px;
margin-bottom: 30px;
}

.sinopsis-images img {
    width: 220px;
    height: auto;
}

.sinopsis-images .img-center {
    width: 273px;
    /* +15% */
    text-align: center;
}

/* SINOPSIS TEXTO */
.sinopsis-text {
    max-width: 820px;
    margin: 0 auto 80px;
    text-align: justify;
}

.sinopsis-text p {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 16px;
    opacity: 0.92;
    font-weight: 600;
    color: #2b0758;
}

/* FICHA TÉCNICA */
.ficha-block {
    max-width: 820px;
    margin: 0 auto 100px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .sinopsis-images {
        flex-direction: column;
        align-items: center;
        /* 👈 ESTA ES LA CLAVE */
        gap: 24px;
    }

    .sinopsis-images img,
    .sinopsis-images .img-center {
        width: 70%;
        max-width: 300px;
    }
}



.sec-sinopsis {
    position: relative;
    padding: 120px 8vw 100px;
    color: #2b0758;
    overflow: hidden;
}

/* Fondo con overlay morado */
.sinopsis-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(244, 198, 226, 0.55), rgba(91, 28, 77, 0.75)),
        url("../images/sinopsis.jpg") center / cover no-repeat;
    z-index: -1;
}

/* 2 columnas */
.sinopsis-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto 80px;
}

.sec-sinopsis h2 {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-size: 48px;
    color: #2b0758;
}

/* Texto */
.text-block p {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 12px;
    font-weight: 600;
}

.nota {
    margin-top: 24px;
    font-size: 13px;
    opacity: 0.75;
}



.sec-stills {
    position: relative;
    width: 100%;
    overflow: hidden;
    text-align: center;
    background: #d6bfea;
}

/* Track horizontal */
.stills-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;

}
.sec-stills h3 {
    position: absolute;
    left: -9999px;
}
.stills-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
}

.stills-track::-webkit-scrollbar {
    display: none;
}

/* Imágenes pegadas */
.stills-track img {
    height: 320px;
    width: auto;
    flex-shrink: 0;
    object-fit: cover;
}

/* Flechas */
.stills-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    background: rgba(50, 21, 61, 0.2);
    border: none;
    color: #fff;
    font-size: 48px;
    width: 56px;
    height: 56px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    backdrop-filter: blur(6px);
    transition: background 0.3s ease, transform 0.2s ease;
}

.stills-arrow:hover {
    background: rgba(142, 41, 120, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.stills-arrow.left {
    left: 10px;
}

.stills-arrow.right {
    right: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    .stills-track img {
        height: 220px;
    }

    .stills-arrow {
        display: none;
    }
}

/* Ficha técnica */


.sec-ficha {
    position: relative;
    min-height: 100vh;
    background:
        url("../images/ft-1.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;

}

/* Overlay suave para legibilidad */
.ficha-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(50, 21, 61, 0.85) 55%,
        rgba(50, 21, 61, 0.95) 100%);
    z-index: 1;
}

.ficha-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 104px auto;
    padding: 120px 32px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

/* Columna derecha */
.ficha-content {
    grid-column: 2 / 3;
    text-align: left;
}

/* Título */
.ficha-content h2 {
    font-size: 36px;
    letter-spacing: 3px;
    color: #fff;
margin-bottom: 32px;

}

/* Lista */
.ficha-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 420px;
}

.ficha-list li {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 6px;
    color: #f1e6ef;
}

.ficha-list strong {
    color: #ffffff;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .ficha-container {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .ficha-content {
        grid-column: 1 / -1;
    }

    .ficha-content h2 {
        font-size: 48px;
    }
}

.sec-ficha {
    background-position: center;
}

@media (max-width: 900px) {
    .sec-ficha {
        background-position: left center;
        background-size: cover;
    }
}

.ficha-list {
    list-style: none;
    padding: 0;
}

.ficha-list li {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.85;
    font-weight: 600;
}

/* Trailer */
.trailer-block {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;

}

.trailer-info {
    margin-top: 40px;
    text-align: center;
}

.trailer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.trailer-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    opacity: 0.85;
}

.btn-cartelera {
    display: inline-block;
    padding: 12px 28px;
    background: #8e2978;
    color: #c5a8e2;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;

    transition: all 0.3s ease;

    position: relative;
    overflow: hidden;

    box-shadow: 0 4px 15px rgba(242, 150, 192, 0.5);
}


/* Glow animado */
.btn-cartelera::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 182, 200, 0.5) 0%,
        rgba(242, 150, 192, 0) 70%
    );
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s ease;
    border-radius: 50%;
    pointer-events: none;
}


/* Hover */
.btn-cartelera:hover::before {
    opacity: 1;
    transform: scale(1);
}

.btn-cartelera:hover {
    background: #c5a8e2;
    color: #8e2978;
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 6px 25px rgba(255, 182, 200, 0.7);
}


.video-wrapper {
    position: relative;
    padding-top: 56.25%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 900px) {
    .sinopsis-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}


@media (max-width: 600px) {
    .text-block p {
        font-size: 14px;
    }

    .text-block h2 {
        font-size: 30px;
    }
}


.btn-wrapper {
    margin-top: 54px;
}

/* Botón desactivado */
.btn-calendar {
    display: inline-block;
    font-family: "Share Tech", sans-serif;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 8px;
    background: #f4c6e2;
    color: #2b0758;
    position: relative;
    cursor: not-allowed;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.btn-calendar:hover {
    opacity: 0.7;
    /* No cambia al hover */
}

/* Tooltip */
.btn-calendar .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    background-color: rgba(242, 150, 192, 0.95);
    color: #fff;
    text-align: center;
    padding: 4px 8px;
    border-radius: 6px;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.btn-calendar:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* =========================
   DESCARGAS
========================= */
.sec-descargas {
    background: #521c46;
    padding: 100px 24px;
    text-align: center;
    color: #fff;
}

.sec-descargas p {
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    font-size: 18px;
}
.sec-descargas h2 {
    margin-bottom: 48px;
}

.sec-descargas h3 {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 2px;
    margin-bottom: 16px;

 margin-top: 72px;
    font-size: 48px;
    color: #c082b5;
}



/* Posters */
.posters-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.poster-card {
    position: relative;
    width: 320px;
    transition: transform .9s ease;
}

.poster-card img {
    width: 100%;
    display: block;
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Hover */
.poster-card:hover {
    transform: translateY(-6px) scale(1.01);
}

/* Indicador de descarga (novedoso) */
.download-indicator {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;
    color: #2b0758;

    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);

    opacity: 0;
    transition: opacity .3s ease;
}

.poster-card:hover .download-indicator {
    opacity: 1;
}

/* pulso sutil */
.poster-card:hover .download-indicator {
    animation: pulseDownload 1.2s infinite ease-in-out;
}

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

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================
   STILLS SLIDER
========================= */
.stills-slider {
    position: relative;
    max-width: 820px;
    height: 420px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.still {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.still.active {
    opacity: 1;
}

.download-all a {

    font-family: "Share Tech", sans-serif;
    font-size: 12px;

    display: inline-block;
    margin-top: 22px;
    padding: 10px 22px;
    background: #8e2978;
    color: #f4c6e2;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(242, 150, 192, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;

}

/* Glow animado */
.download-all a::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 182, 200, 0.5) 0%, rgba(242, 150, 192, 0) 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s ease;
    border-radius: 50%;
    pointer-events: none;
}

.download-all a:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Hover sobre el botón */
.download-all a:hover {
    background: #8e2978;
    color: #d6bfea;
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 6px 25px rgba(255, 182, 200, 0.7);
}

.download-all a .file-size {
    display: block;
    font-size: 10px;
    color: #ffccd5;
    font-weight: normal;
    margin-top: 4px;
    text-align: right;
    opacity: 0.9;
}

/* Pequeña animación tipo pulse continua */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 4px 15px rgba(242, 150, 192, 0.5);
    }

    50% {
        box-shadow: 0 6px 25px rgba(255, 182, 200, 0.7);
    }

    100% {
        box-shadow: 0 4px 15px rgba(242, 150, 192, 0.5);
    }
}

.download-all a {
    animation: pulseGlow 2s infinite ease-in-out;
}



/* =========================
   SECCIÓN LIBRO
========================= */

.sec-libro {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 32px;
    color: #fff;
    overflow: hidden;

    background:
        linear-gradient(rgba(82, 28, 70, 0.7), rgba(82, 28, 70, 0.9)),
        url('../images/amelie3.jpg') center/cover no-repeat;
}

/* Inicialmente oculto */
.sec-libro .libro-text,
.sec-libro .libro-img img {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

/* Cuando se activa la sección */
.sec-libro.visible .libro-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
    /* texto primero */
}

.sec-libro.visible .libro-img img {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
    /* imagen después */
}

.libro-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

.libro-text {
    flex: 1 1 280px;
    font-family: 'Lato', sans-serif;
    line-height: 1.5;
    font-size: 18px;
}

.libro-text h2 {
    font-family: 'Bebas Neue', sans-serif;
    margin-bottom: 22px;
    font-size: 30px;
    color: #df93ce;
}

.libro-text p {
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    font-size: 18px;
}

.libro-img {
    flex: 1 1 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.libro-img img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(242, 150, 192, 0.4);
    transform: translateY(0);
    transition: transform 0.8s ease, box-shadow 0.8s ease;
}

/* Hover suave */
.libro-img img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(242, 150, 192, 0.6);
}

/* Responsive */
@media (max-width: 900px) {
    .libro-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .libro-img {
        margin-bottom: 24px;
    }
}


/* FOOTER */
footer {
    background: #32153d;
    padding: 26px;
    text-align: center;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    letter-spacing: 4px;
}

footer .social {
    margin-top: 14px;
}

.social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 20px 0;
}

.social a {
    color: #fff;
    font-size: 12px;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.social a:hover {
    transform: scale(1.2);
    color: #81a19c;
    /* color del glow o acento */
    text-shadow: 0 0 8px rgba(111, 211, 255, 0.8),
        0 0 16px rgba(111, 211, 255, 0.6);
}

footer a {
    color: #fff;
    margin: 0 6px;
    font-size: 12px;
}

footer a:hover {
    transform: scale(1.2);
    color: #81a19c;
    /* color del glow o acento */
    text-shadow: 0 0 8px rgba(111, 211, 255, 0.8),
        0 0 16px rgba(111, 211, 255, 0.6);
}

#toTop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99;

    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;

    font-size: 18px;
    cursor: pointer;

    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);

    transition: opacity .3s ease, transform .3s ease, background .3s ease;
    backdrop-filter: blur(6px);

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

#toTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}




#toTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #85527a;
    /* color base azul */
    color: #FFF;
    /* texto / icono oscuro */
    font-weight: 700;
    font-size: 14px;
    border: none;
    padding: 12px 16px;
    border-radius: 32px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 12px rgba(180, 59, 153, 0.35);
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icono dentro del botón */
#toTop i {
    font-size: 16px;
    margin-left: 0;
}

/* Hover */
#toTop:hover {
    background: #ab6f9e;
    /* azul un poco más oscuro */
    color: #314945;
    /* texto/icono cambia a blanco */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(180, 59, 153, 0.45);
}

/* Efecto onda ligera detrás del botón */
#toTop::before {
    content: "";
    position: absolute;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: rgba(111, 211, 255, 0.15);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.5s ease;
    z-index: 0;
}

#toTop:hover::before {
    transform: scale(1);
}

/* Asegurar que el icono esté por encima del efecto */
#toTop>* {
    position: relative;
    z-index: 1;
}