/* Alaquàs Viu · landing "próximamente" · HTML + CSS a mano, sin dependencias */
@font-face { font-family: "Avenir"; src: url("../fonts/Avenir-Book.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir"; src: url("../fonts/Avenir-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir"; src: url("../fonts/Avenir-Heavy.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }

:root {
  --ink: #2e3638;
  --muted: #5b6568;
  --bg: #eef0ef;            /* mismo gris que el fondo del logo horizontal */
  --white: #ffffff;
  --line: #d3d8d7;
  --sage: #89b6b0;          /* turquesa del castillo */
  --teal: #256c6a;          /* turquesa oscuro, para texto */
  --red: #fa2b00;           /* corazón (solo decoración) */
  --red-text: #c42300;      /* rojo con contraste para texto */
  --f-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --f-ui: "Avenir", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --gutter: 24px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 900px) { :root { --gutter: 48px; } }

*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-ui); color: var(--ink); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; left: -9999px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Cabecera */
.site-header { background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand img { width: clamp(150px, 24vw, 200px); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* Hero */
.hero { position: relative; background: var(--bg); overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; animation: drift 20s ease-in-out infinite alternate; }
.hero::before { width: 520px; height: 520px; right: -140px; top: -120px; background: radial-gradient(circle, rgba(137,182,176,.45), rgba(137,182,176,0) 70%); }
.hero::after { width: 420px; height: 420px; left: -160px; bottom: -180px; background: radial-gradient(circle, rgba(250,43,0,.12), rgba(250,43,0,0) 70%); animation-delay: -8s; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr .8fr; } }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--teal); }
.hero h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.6rem, 6.4vw, 4.9rem); line-height: 1.04; letter-spacing: -0.025em; margin: 14px 0 24px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 33em; color: var(--muted); }
.fade-in { animation: fade .9s var(--ease) both; }
.d1 { animation-delay: .45s; } .d2 { animation-delay: .65s; } .d3 { animation-delay: .85s; }

/* Cuenta atrás */
.countdown { margin-top: 40px; }
.countdown-label { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-bottom: 14px; }
.countdown-label strong { color: var(--ink); font-weight: 700; }
.countdown-grid { display: flex; align-items: stretch; flex-wrap: wrap; }
.countdown-grid[hidden] { display: none; }
.countdown-grid div { padding-inline: clamp(14px, 3vw, 28px); border-left: 1px solid #c3cac9; text-align: left; }
.countdown-grid div:first-child { padding-left: 0; border-left: 0; }
.countdown-grid b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.countdown-grid span { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .25s, color .25s, transform .25s var(--ease); }
.btn:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.hero .btn { margin-top: 36px; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Castillo del logo */
.mark { position: relative; width: min(280px, 62%); margin-inline: auto; aspect-ratio: 262 / 405; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 28px 28px rgba(46,54,56,.16)); }
.mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark .heart { transform-origin: 50% 85%; animation: beat 1.6s ease-in-out infinite; }

/* Barra de comercios */
.tags { background: var(--white); border-bottom: 1px solid var(--line); }
.tags ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; padding-block: 22px; font-family: var(--f-display); font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); }
.tags li + li::before { content: "·"; margin-inline: 16px; color: var(--sage); font-weight: 700; }

/* Novedades */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 40rem; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.02em; margin-top: 12px; }
.section-head h2 em { font-style: normal; color: var(--teal); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.points { display: grid; gap: 0; border-top: 1px solid var(--ink); }
@media (min-width: 800px) { .points { grid-template-columns: repeat(3, 1fr); } .point + .point { border-left: 1px solid var(--line); } }
.point { padding: 32px 0; border-bottom: 1px solid var(--line); transition: background .35s; }
@media (min-width: 800px) { .point { padding: 40px 36px 48px; border-bottom: 0; } .point:first-child { padding-left: 0; } .point:last-child { padding-right: 0; } }
.point .n { font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--red-text); }
.point h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.7rem; line-height: 1.15; letter-spacing: -0.01em; margin: 18px 0 12px; }
.point p { color: var(--muted); }

/* Aviso */
.notify-wrap { padding-bottom: clamp(64px, 9vw, 112px); }
.notify { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(36px, 7vw, 88px); isolation: isolate; }
.notify::before { content: ""; position: absolute; width: 460px; height: 460px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(137,182,176,.5), rgba(137,182,176,0) 70%); z-index: -1; animation: drift 16s ease-in-out infinite alternate; }
.notify .kicker { color: #b9d6d2; }
.notify h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 14em; margin-top: 12px; }
.notify h2 em { font-style: normal; color: var(--sage); }
.notify p.sub { margin-top: 16px; color: #b9c4c3; max-width: 34em; }
.notify-form { display: grid; gap: 14px; margin-top: 32px; max-width: 560px; }
@media (min-width: 560px) { .notify-form .row { display: flex; gap: 10px; } }
.notify-form input[type=email] { flex: 1; width: 100%; padding: 15px 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; color: var(--ink); background: #fff; }
.notify-form input[type=email]:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
.notify-form .btn { margin-top: 10px; background: #fff; border-color: #fff; color: var(--ink); }
@media (min-width: 560px) { .notify-form .btn { margin-top: 0; } }
.notify-form .btn:hover { background: var(--sage); border-color: var(--sage); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #b9c4c3; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--sage); }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-footer img { width: 56px; }

/* Aparición al hacer scroll: solo CSS; si el navegador no lo soporta, se ve directamente */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(50px, 36px) scale(1.12); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes beat { 0%,100% { transform: scale(1); } 14% { transform: scale(1.1); } 28% { transform: scale(1); } 42% { transform: scale(1.07); } 56% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Formulario con nombre y mensajes */
.notify-form .field { display: grid; gap: 8px; }
.notify-form .field > label:not(.consent) { font-size: 14px; font-weight: 600; color: #fff; }
.notify-form input[type=text] { width: 100%; padding: 15px 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; color: var(--ink); background: #fff; }
.notify-form input[type=text]:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
.notify-form [aria-invalid="true"] { border-color: #ff9d8a; }
.consent a { color: #fff; }
.error { font-size: 14px; font-weight: 600; color: #ffb4a3; }
.alert { margin-top: 28px; padding: 16px 22px; border-radius: 16px; font-weight: 600; max-width: 560px; }
.alert--ok { background: rgba(137,182,176,.22); color: #fff; }
.alert--err { background: rgba(255,157,138,.18); color: #ffd3c9; margin: 0; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Política de privacidad */
.legal { background: var(--white); padding-block: clamp(48px, 8vw, 96px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; margin: 12px 0 20px; }
.legal .lead { margin-bottom: 20px; }
.legal h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 22px; margin: 8px 0; display: grid; gap: 4px; }
.legal a:not(.btn) { color: var(--teal); }
.legal .back { margin-top: 48px; }
.legal .btn { color: #fff; }
.legal .btn:hover { color: var(--ink); }

/* Foto del Castell de fondo del hero, muy suave */
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url("../img/castell.webp") 70% 40% / cover no-repeat; opacity: .5; animation: zoom 40s ease-in-out infinite alternate; }
.hero-veil { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(238,240,239,.9) 0%, rgba(238,240,239,0) 30%),
    linear-gradient(0deg, var(--bg) 0%, rgba(238,240,239,0) 38%),
    linear-gradient(90deg, var(--bg) 0%, rgba(238,240,239,.88) 45%, rgba(238,240,239,.78) 100%); }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (max-width: 899px) { .hero-veil { background: linear-gradient(180deg, rgba(238,240,239,.88), rgba(238,240,239,.92)); } }


/* Negocio: el campo aparece al marcar la casilla (solo CSS, anima grid-template-rows) */
.negocio-campo { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .4s var(--ease), opacity .4s, visibility .4s; }
.negocio-in { overflow: hidden; min-height: 0; display: grid; gap: 8px; padding: 4px 2px 2px; }
.negocio-in > label { font-size: 14px; font-weight: 600; color: #fff; }
.negocio:has(#tiene_negocio:checked) .negocio-campo { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
.negocio-campo input[type=text] { width: 100%; padding: 15px 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; color: var(--ink); background: #fff; }
.negocio-campo input:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
.notify-form > div > .btn { margin-top: 6px; }
