/*
Theme Name: tema_Reencle
Theme URI: https://reencle.mx
Author: Reencle México
Description: Landing page para Reencle México
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&display=swap');

@font-face {
    font-family: 'ZonaPro';
    src: url('fonts/ZonaPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ZonaPro';
    src: url('fonts/ZonaPro-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ZonaPro';
    src: url('fonts/ZonaPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --naranja: #E8642A;
    --beige: #F2E8D9;
    --cafe: #5C3D1E;
    --blanco: #FFFFFF;
}

html {
    width: 100%;
    min-height: 100vh;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: 'ZonaPro', sans-serif;
    background-color: var(--cafe);
}

.site-wrap {
    overflow-x: hidden;
}

/* ── HERO ───────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    height: 56.25vw;
    min-height: 100vh;
    max-height: none;
    background-color: var(--cafe);
    background-image: url('images/fondo.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.30) 45%, rgba(0,0,0,0.15) 100%);
    z-index: 2;
    pointer-events: none;
}

/* ── LOGO ───────────────────────────────────────── */
.logo {
    position: absolute;
    top: 50px;
    left: 85px;
    color: var(--blanco);
    font-family: 'ZonaPro', sans-serif;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: bold;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* ── TITULAR ────────────────────────────────────── */
.titular {
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 860px);
    text-align: center;
    z-index: 8;
    padding: 0 14px;
}

.titular .yamero {
    display: block;
    max-width: clamp(380px, 70vw, 1050px);
    height: auto;
    margin: -10vw auto 0;
    transform: translate(-4vw, 2vw);
}

.subtitulo-box {
    position: absolute;
    top: 23vw;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 9;
    background-color: var(--beige);
    border-radius: 4px;
    border: 1px solid #cdb08a;
    padding: clamp(6px, 0.55vw, 9px) clamp(20px, 2.5vw, 34px);
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    font-family: 'ZonaPro', sans-serif;
    font-size: clamp(0.95rem, 1.65vw, 1.2rem);
    font-weight: 400;
    color: var(--cafe);
    text-align: center;
    line-height: 1.45;
}

.subtitulo-box strong {
    display: block;
    font-family: 'ZonaPro', sans-serif;
    font-weight: bold;
    font-size: clamp(1.2rem, 2.3vw, 1.8rem);
}

/* ── PRODUCTO + CTA ─────────────────────────────── */
.producto-wrap {
    position: absolute;
    left: 50%;
    bottom: -1.2%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 4;
}

.producto-wrap img.producto {
    width: clamp(218px, 33vw, 372px);
    display: block;
    filter: drop-shadow(0 16px 32px rgba(0,0,0,0.35));
}

/* ── CTA STICKER ──────────────────────────────────── */

/* ============================================================
   ENFOQUE A — SVG feTurbulence (comentado para comparar)
   ============================================================

.cta-circulo {
    appearance: none; -webkit-appearance: none;
    border: none; background: transparent;
    position: absolute; right: 10px; bottom: 130px;
    width: clamp(100px, 12vw, 145px); height: clamp(100px, 12vw, 145px);
    display: flex; align-items: center; justify-content: center;
    text-align: center; cursor: pointer; z-index: 20; overflow: visible;
    rotate: -8deg;
    animation: sticker-float 3.8s ease-in-out infinite;
    transition: rotate .35s cubic-bezier(.34,1.56,.64,1),
                scale  .35s cubic-bezier(.34,1.56,.64,1),
                translate .35s cubic-bezier(.34,1.56,.64,1);
}
.cta-bg {
    position: absolute; inset: -12px; border-radius: 50%;
    background: linear-gradient(145deg, #D07030 0%, #C06420 100%);
    filter: url(#sticker-warp)
            drop-shadow(0 5px 18px rgba(130,48,4,.52))
            drop-shadow(0 2px 5px rgba(0,0,0,.20));
    z-index: 0; transition: filter .35s ease;
}
.cta-texto { position: relative; z-index: 1; display: flex;
    flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
.cta-circulo:hover { rotate: -4deg; scale: 1.1; translate: 0 -5px; animation-play-state: paused; }
.cta-circulo:hover .cta-bg {
    filter: url(#sticker-warp)
            drop-shadow(0 10px 28px rgba(130,48,4,.62))
            drop-shadow(0 4px 8px rgba(0,0,0,.24));
}
.cta-quiero {
    font-family: 'ZonaPro', sans-serif;
    font-size: clamp(.60rem,1.0vw,.76rem); font-weight: normal; font-style: italic;
    color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.25); line-height: 1.2;
}
.cta-compostar {
    font-family: 'ZonaPro', sans-serif;
    font-size: clamp(.82rem,1.45vw,1.02rem); font-weight: bold;
    color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.28); line-height: 1.2;
}

   ============================================================
   FIN ENFOQUE A
   ============================================================ */


/* ============================================================
   ENFOQUE B — imagen PNG real (activo)
   El PNG ya tiene forma pintada + texto integrado.
   drop-shadow sigue los bordes transparentes del PNG.
   ============================================================ */

.cta-circulo {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    position: absolute;
    /* posicionamiento: a un lado (izquierda-del-centro) y por encima del producto */
    left: 55%;
    bottom: 29%;
    /* agrandado +3 puntos para mayor presencia */
    width:  clamp(124px, 16.5vw, 185px);
    height: clamp(124px, 16.5vw, 185px);
    /* imagen como fondo — se adapta al tamaño */
    background-image: url('images/boton.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    z-index: 20;
    overflow: visible;
    rotate: -8deg;
    /* drop-shadow sigue los bordes irregulares del PNG */
    filter:
        drop-shadow(0 5px 18px rgba(130, 48, 4, 0.50))
        drop-shadow(0 2px 5px  rgba(0, 0, 0, 0.18));
    animation: sticker-float 3.8s ease-in-out infinite;
    transition:
        rotate    0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        scale     0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        translate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter    0.35s ease;
}

/* el fondo span ya no hace nada — la imagen lo reemplaza */
.cta-bg {
    display: none;
}

/* texto HTML oculto: el PNG ya lo trae incorporado.
   aria-label en el button garantiza accesibilidad */
.cta-texto {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.cta-circulo:hover {
    rotate: -4deg;
    scale: 1.1;
    translate: 0 -5px;
    animation-play-state: paused;
    filter:
        drop-shadow(0 10px 28px rgba(130, 48, 4, 0.62))
        drop-shadow(0 4px 8px   rgba(0, 0, 0, 0.22));
}

/* Solo Y — no pisa rotate ni scale */
@keyframes sticker-float {
    0%, 100% { translate: 0   0px; }
    40%       { translate: 0  -7px; }
    75%       { translate: 0  -3px; }
}

/* .cta-quiero y .cta-compostar sin estilo — texto oculto */
.cta-quiero, .cta-compostar { display: block; }

/* ── MODAL ──────────────────────────────────────── */
/* El posicionamiento fixed y la visibilidad se controlan
   íntegramente desde JavaScript con inline !important. */
.modal-overlay {
    display: none;
}

.modal-card {
    position: relative;
    background: var(--beige);
    border-radius: 24px;
    padding: 48px 40px 40px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    animation: modal-entrada 0.28s ease;
}

@keyframes modal-entrada {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.modal-card h2 {
    font-family: 'ZonaPro', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--cafe);
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
}

.modal-card p.bajada {
    color: #7a5c3a;
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 36px;
    text-align: center;
    white-space: nowrap;
}

.modal-cerrar {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--cafe);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.modal-cerrar:hover {
    background: rgba(92, 61, 30, 0.1);
}

.form-contenedor {
    width: 100%;
    max-width: 560px;
    background: var(--blanco);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 8px 40px rgba(92,61,30,0.10);
}

/* Estilos base para Fluent Forms */
.form-contenedor .ff-el-input--label label {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    color: var(--cafe) !important;
    font-size: 0.9rem !important;
}

.form-contenedor .ff-el-form-control {
    border: 2px solid #e0d0bb !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.95rem !important;
    transition: border-color 0.2s !important;
}

.form-contenedor .ff-el-form-control:focus {
    border-color: var(--naranja) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(232,100,42,0.15) !important;
}

.form-contenedor .ff_submit_btn_wrapper .ff-btn-submit {
    background-color: var(--naranja) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 40px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: background-color 0.2s, transform 0.2s !important;
}

.form-contenedor .ff_submit_btn_wrapper .ff-btn-submit:hover {
    background-color: #cf5520 !important;
    transform: translateY(-2px) !important;
}

/* ── MENSAJE DE ÉXITO (Fluent Forms) ───────────── */
.form-contenedor .ff-message-success {
    text-align: center;
    padding: 8px 0;
    color: var(--cafe);
    font-family: 'ZonaPro', sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
}

.ff-saludo {
    font-family: 'ZonaPro', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--naranja);
    margin-bottom: 8px;
}

.ff-spam-hint {
    display: none;
    font-size: 0.85rem;
    color: #7a5c3a;
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(232, 100, 42, 0.08);
    border-radius: 8px;
}

/* ── FOOTER ─────────────────────────────────────── */
.site-footer {
    background-color: var(--cafe);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 20px;
    font-size: 0.82rem;
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
    .hero {
        min-height: 520px;
    }

    .titular {
        top: 0.6%;
        width: 94%;
    }

    .titular .yamero {
        /* tablet: casi el doble */
        max-width: clamp(520px, 82vw, 950px);
    }

    .producto-wrap img.producto {
        width: clamp(208px, 39vw, 332px);
    }

    .producto-wrap {
        bottom: -1.4%;
    }

    .cta-circulo {
        left: 56%;
        bottom: 25%;
        width: clamp(112px, 18.5vw, 156px);
        height: clamp(112px, 18.5vw, 156px);
    }
}

@media (max-width: 600px) {
    .hero {
        height: 100svh;
        min-height: 640px;
        max-height: none;
        background-size: cover;
        background-position: center top;
    }

    .logo {
        left: 16px;
        top: 14px;
    }

    /* Flex column para que yamero y subtitulo-box se apilen sin solapamiento */
    .titular {
        top: 2%;
        width: 96%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .titular .yamero {
        max-width: min(88vw, 860px);
        /* Crítico: resetear el margin negativo y el desplazamiento del CSS base */
        margin: 0 auto;
        transform: none;
    }

    /* Retirar del posicionamiento absoluto para que fluya después del yamero */
    .subtitulo-box {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        white-space: normal;
        width: min(92vw, 410px);
        padding: 10px 14px;
        text-align: center;
    }

    .subtitulo-box strong {
        font-size: clamp(1.1rem, 6vw, 1.6rem);
    }

    .producto-wrap {
        bottom: -0.6%;
    }

    .producto-wrap img.producto {
        width: min(98vw, 510px);
    }

    .cta-circulo {
        left: 53%;
        bottom: 29%;
        width: clamp(215px, 60vw, 285px);
        height: clamp(215px, 60vw, 285px);
    }

    .form-contenedor {
        padding: 28px 20px;
    }

    .modal-card {
        padding: 40px 20px 32px;
    }

    .modal-card p.bajada {
        white-space: normal;
        max-width: 24ch;
        margin-left: auto;
        margin-right: auto;
    }
}
