/*
Theme Name: Gretta — Teaser
Theme URI: https://gretta.mx
Author: Studio
Author URI: https://gretta.mx
Description: Landing de expectativa para la apertura de Gretta. DM Sans, cajas festoneadas, cupón con captura de correo, sopa de letras interactiva y fondos sólidos que ciclan en la paleta de la marca.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gretta-teaser
*/

:root{
  --butter:#f8e89e;
  --olivo:#836e0c;
  --mora:#ad99c7;
  --title-ls:-0.02em;
  --body-ls:-0.04em;
  --maxw:1060px;
  --fork:auto;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--butter);color:var(--olivo);
  font-family:'DM Sans',system-ui,sans-serif;font-weight:300;letter-spacing:var(--body-ls);
  line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:hidden;cursor:var(--fork);
}
input{cursor:text}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 1.6rem}
.t{font-weight:400;letter-spacing:var(--title-ls);line-height:1.02}
.label{font-weight:500;letter-spacing:var(--body-ls);font-size:.82rem}

.scallop{position:relative;border-radius:20px;overflow:visible;
  --box-bg:#836e0c;--box-fg:#f8e89e;--box-accent:#ad99c7;
  background:var(--box-bg);color:var(--box-fg)}
.scallop > *:not(.scallop-svg){position:relative;z-index:1}
.scallop-svg{position:absolute;z-index:0;pointer-events:none;fill:var(--box-bg)}

.hero{padding:2.4rem 0 3rem}
.hero-card{min-height:min(64vh,560px);padding:clamp(1.8rem,4vw,3rem);
  display:flex;flex-direction:column;justify-content:space-between;
  opacity:0;animation:fadeUp .9s ease .15s forwards}
.hero-top{display:flex;justify-content:flex-end}
.hero-top .label{text-align:right;line-height:1.3;max-width:170px}
.hero-top .label span{font-weight:300;opacity:.85}
.headline{display:flex;flex-direction:column;align-items:flex-start;gap:.04em;margin-top:auto}
.headline span{display:block;line-height:.9}
.headline .l1{font-size:clamp(1.5rem,3.6vw,2.4rem);transform:rotate(-3deg);transform-origin:left;margin-left:.60em;margin-bottom:-.40em}
.headline .l2{font-size:clamp(2.8rem,10.5vw,6.4rem);transform:rotate(1.6deg);transform-origin:left;margin-left:.45em}
.headline .l3{font-size:clamp(2.8rem,10.5vw,6.4rem);transform:rotate(-1.4deg);transform-origin:left;margin-left:1em}
.headline em{font-style:normal;color:var(--box-accent)}

.section{padding:2.6rem 0}
.section-head{text-align:center;margin-bottom:1.8rem}
.section-head .label{display:block;opacity:.85;margin-bottom:.4rem}
.section-head h2{font-size:clamp(1.7rem,5vw,2.7rem)}

.coupon-stage{display:flex;justify-content:center}
.coupon{width:100%;max-width:680px;display:grid;grid-template-columns:1.05fr 1fr;
  opacity:0;animation:fadeUp .8s ease forwards}
.coupon-left{padding:2.2rem 2rem;display:flex;flex-direction:column;justify-content:center;gap:.9rem;
  border-right:2px dashed rgba(248,232,158,.45)}
.cup-icon{width:42px;height:42px}
.coupon-left .tag{font-weight:500;font-size:.72rem;opacity:.8}
.coupon-left h3{font-size:1.8rem}
.coupon-left p{font-size:.9rem;opacity:.9}
.coupon-right{padding:2.2rem 2rem;display:flex;flex-direction:column;justify-content:center}
.coupon-right .label{margin-bottom:.7rem}
.coupon-right input{width:100%;padding:.85rem 1.3rem;border:1.5px solid var(--box-fg);border-radius:999px;
  font-family:inherit;font-size:1rem;font-weight:300;letter-spacing:var(--body-ls);
  color:var(--box-fg);background:transparent;margin-bottom:.9rem;outline:none}
.coupon-right input::placeholder{color:rgba(248,232,158,.55)}
.coupon-right input:focus{box-shadow:0 0 0 3px rgba(248,232,158,.25)}
.coupon-right button{width:100%;padding:.9rem 1.3rem;border:none;border-radius:999px;
  background:var(--box-fg);color:var(--box-bg);font-family:inherit;font-size:.95rem;
  font-weight:500;letter-spacing:var(--body-ls);transition:transform .15s,opacity .2s;cursor:var(--fork)}
.coupon-right button:hover{transform:translateY(-1px);opacity:.92}
.coupon-right .fine{font-size:.74rem;opacity:.8;margin-top:.9rem}
.coupon-done{padding:2.2rem 2rem;display:none;flex-direction:column;justify-content:center;gap:.5rem}
.coupon-done.show{display:flex;animation:fadeUp .5s ease}
.coupon-done .check{width:36px;height:36px}
.coupon-done h4{font-size:1.5rem}
.coupon-done p{font-size:.88rem;opacity:.9}

.sopa-panel{padding:clamp(1.4rem,3vw,2.2rem)}
.sopa-grid-area{display:grid;grid-template-columns:auto 1fr;gap:2.6rem;align-items:start}
.grid{display:grid;grid-template-columns:repeat(13,1fr);gap:3px;touch-action:none;user-select:none;
  width:min(420px,80vw);aspect-ratio:1;margin:0 auto}
.cell{display:flex;align-items:center;justify-content:center;background:var(--box-fg);color:var(--box-bg);
  border-radius:5px;font-size:clamp(.58rem,2.2vw,.9rem);font-weight:500;letter-spacing:0;
  aspect-ratio:1;transition:background .12s,color .12s,transform .12s;
  opacity:0;animation:cellIn .5s ease forwards}
.cell.sel{background:var(--box-accent);color:var(--box-bg);transform:scale(1.06);box-shadow:0 0 0 1.5px var(--box-fg)}
.cell.found{background:var(--box-bg);color:var(--box-fg);animation:none;opacity:1;box-shadow:inset 0 0 0 2px var(--box-fg)}
.wordlist .label{display:block;opacity:.8;margin-bottom:1rem}
.word{display:flex;align-items:center;gap:.6rem;padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,.18);transition:opacity .3s}
.word b{font-weight:500;letter-spacing:var(--body-ls);min-width:100px}
.word .gloss{font-size:.82rem;font-weight:300;opacity:.78}
.word.done b{text-decoration:line-through;text-decoration-thickness:1px}
.word.done{opacity:.45}
.word .dot{width:8px;height:8px;border-radius:50%;border:1.5px solid var(--box-fg);flex:none}
.word.done .dot{background:var(--box-fg)}
.sopa-counter{margin-top:1.4rem;font-size:.82rem;font-weight:500;opacity:.9}
.sopa-win{margin-top:1rem;font-size:1.4rem;opacity:0;transition:opacity .6s}
.sopa-win.show{opacity:1}

footer.site{padding:3rem 0 3.4rem;text-align:center}
footer.site .mark{font-size:clamp(1.5rem,4.5vw,2.2rem)}
footer.site .mark em{font-style:normal;color:var(--mora)}
footer.site .desc{margin-top:.7rem;font-size:.8rem;font-weight:500;opacity:.85}
footer.site .dots{display:flex;gap:.5rem;justify-content:center;margin-top:1.4rem}
footer.site .dots span{width:9px;height:9px;border-radius:50%}

@keyframes fadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@keyframes cellIn{to{opacity:1}}

@media(max-width:760px){
  .wrap{padding:0 1.1rem}
  .coupon{grid-template-columns:1fr}
  .coupon-left{border-right:none;border-bottom:2px dashed rgba(248,232,158,.45)}
  .sopa-grid-area{grid-template-columns:1fr;gap:1.8rem}
  .wordlist{order:2}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important}.hero-card,.coupon,.cell{opacity:1}}
