/* =========================================================
   Tienda "Próximamente", aviso de vista previa y botón flotante
   "Comprar en línea" — ver inc/tienda-proximamente.php
   ========================================================= */

/* ─── Pantalla de próximamente ───────────────────────────── */
.tprox__hero {
    background: #DCEBF7 url(../img/tienda-hero-bg.webp) center / cover no-repeat;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 20px 72px;
    position: relative;
    isolation: isolate;
}

.tprox__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 52%,
        rgba(253, 253, 252, 0.55) 0%,
        rgba(253, 253, 252, 0.25) 60%,
        rgba(253, 253, 252, 0) 90%);
    z-index: -1;
}

.tprox__card {
    width: 100%;
    max-width: 560px;
    text-align: center;
    background: rgba(253, 253, 252, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 40px 32px 36px;
    box-shadow: 0 30px 70px -30px rgba(20, 35, 28, 0.45);
}

/* La bolsa es también el acceso secreto (doble clic / doble toque): sin pistas visuales de que se puede pulsar */
.tprox__bolsa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #2D6A4F;
    color: #ffffff;
    margin-bottom: 18px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.tprox__bolsa svg {
    width: 30px;
    height: 30px;
}

.tprox__label {
    display: block;
    font-family: var(--font-base);
    font-size: 12px;
    font-weight: 600;
    color: #2D6A4F;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tprox__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 44px;
    line-height: 1.1;
    color: #14231C;
    margin: 0 0 14px;
}

@media (min-width: 768px) {
    .tprox__title { font-size: 58px; }
}

.tprox__text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(20, 35, 28, 0.75);
    max-width: 440px;
    margin: 0 auto 26px;
}

.tprox__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tprox__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 100px;
    background: #2D6A4F;
    color: #ffffff;
    font-family: var(--font-base);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.tprox__btn:hover,
.tprox__btn:focus-visible {
    background: #1F4D39;
    color: #ffffff;
}

.tprox__btn--ghost {
    background: transparent;
    color: #2D6A4F;
    box-shadow: inset 0 0 0 1.5px #2D6A4F;
}

/* Campo del código (oculto hasta el doble clic) */
.tprox__acceso {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(20, 35, 28, 0.1);
}

.tprox__acceso[hidden] { display: none; }

.tprox__input {
    flex: 1 1 180px;
    max-width: 240px;
    padding: 11px 16px;
    border: 1.5px solid rgba(20, 35, 28, 0.2);
    border-radius: 100px;
    background: #ffffff;
    font-family: var(--font-base);
    font-size: 15px;
}

.tprox__input:focus {
    outline: none;
    border-color: #2D6A4F;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.18);
}

.tprox__entrar {
    padding: 11px 22px;
    border: 0;
    border-radius: 100px;
    background: #14231C;
    color: #ffffff;
    font-family: var(--font-base);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
}

.tprox__error {
    flex-basis: 100%;
    margin: 4px 0 0;
    font-size: 14px;
    color: #B3261E;
}

@media (max-width: 600px) {
    .tprox__hero { padding: 104px 16px 56px; }
    .tprox__card { padding: 32px 20px 28px; border-radius: 20px; }
    .tprox__btn { flex: 1 1 120px; padding: 12px 14px; font-size: 14px; }
}

/* ─── Aviso de vista previa (solo quien entró con el código) ── */
.tprox-aviso {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 150; /* debajo del header (200) y su menú */
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    padding: 10px 16px;
    border-radius: 100px;
    background: #14231C;
    color: #ffffff;
    font-family: var(--font-base);
    font-size: 13px;
    line-height: 1.35;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45);
}

.tprox-aviso__punto {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F4B400;
}

.tprox-aviso__salir {
    color: #9FE0BF;
    font-weight: 600;
    text-decoration: underline;
}

.tprox-aviso__salir:hover { color: #ffffff; }

/* ─── Botón flotante "Comprar en línea" (/avadia/ y /aqvam/) ── */
.tienda-flotante {
    --tf-color: #2D6A4F;
    --tf-hover: #1F4D39;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 150;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px 14px 18px;
    border-radius: 100px;
    background: var(--tf-color);
    color: #ffffff;
    font-family: var(--font-base);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 34px -12px rgba(20, 35, 28, 0.6);
    transition: background 0.2s ease, transform 0.2s ease;
}

.tienda-flotante--avadia { --tf-color: #008C3D; --tf-hover: #003B3A; }
.tienda-flotante--aqvam  { --tf-color: #1B2E6B; --tf-hover: #2C7BC0; }

.tienda-flotante:hover,
.tienda-flotante:focus-visible {
    background: var(--tf-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.tienda-flotante__icono {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .tienda-flotante {
        right: 14px;
        bottom: 14px;
        padding: 12px 18px 12px 14px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tienda-flotante { transition: none; }
    .tienda-flotante:hover { transform: none; }
}
