/* Frutería Floristería Noáin — demostración preparada por Kairos Intelligence Agency.
   Paleta del logo (fondo azul marino y hojas naranja, amarilla, crema y verdes) y del toldo azul.
   Tipografía: Encode Sans Semi Condensed para títulos (próxima a la letra del logo) y Figtree para texto. */
:root {
  --navy: #1D2B4F;
  --navy-2: #2B3C69;
  --orange: #F2992E;
  --yellow: #F5C54B;
  --cream: #F6E7C1;
  --leaf: #3F6B3A;
  --leaf-2: #8DB04A;
  --white: #FFFFFF;
  --mist: #F1F3F7;
  --line: #DCE1EB;
  --text: #1D2B4F;
  --muted: #4E5A74;       /* 6,9:1 sobre blanco */
  --wa: #25D366;
  --display: "Encode Sans Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(242,153,46,.25); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; font-feature-settings: "kern", "liga"; }
img, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
section[id] { scroll-margin-top: 88px; }
svg { display: block; }

.demo-band { margin: 0; padding: 6px var(--gutter); background: var(--cream); color: var(--navy); font-size: .8rem; text-align: center; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 8px; border: 2px solid transparent; font: 600 1.02rem/1 var(--body); text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--orange { background: var(--orange); color: var(--navy); }   /* 6,1:1 */
.btn--orange:hover { background: #F7AE52; }
.btn--line { border-color: var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--wa { background: var(--wa); color: #08361C; }                /* 7:1 */
.btn--wa:hover { background: #3DDC7A; }

/* Cabecera = toldo */
.awning { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; }
.awning::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: radial-gradient(circle at 12px 0, var(--navy) 11.5px, transparent 12px) 0 0 / 24px 12px repeat-x; }
.awning__in { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.logo { display: flex; align-items: center; gap: 4px; text-decoration: none; color: #fff; }
.logo__mark { width: 52px; height: 52px; flex: none; }
.logo__text { display: grid; font-family: var(--display); font-weight: 500; font-size: 1.32rem; line-height: .98; letter-spacing: -.005em; }
.logo__text small { font-size: .62em; font-weight: 500; letter-spacing: .16em; color: #C9D2E6; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 12px; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: .98rem; color: #E6EAF3; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav .nav__go { margin-left: 8px; background: var(--orange); color: var(--navy); font-weight: 600; padding: 10px 16px; }
.nav .nav__go:hover { background: #F7AE52; color: var(--navy); }
.menu-btn { display: none; }

/* Inicio */
.hero { padding-top: 12px; }
.hero__doors { display: grid; grid-template-columns: 58fr 42fr; height: clamp(300px, 62vh, 600px); }
.door { position: relative; overflow: hidden; display: block; color: #fff; text-decoration: none; background: var(--navy-2); }
.door img { width: 100%; height: 100%; object-fit: cover; }
.door--flower img { object-position: 50% 60%; }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29,43,79,.6), transparent 45%); pointer-events: none; }
.door__label { position: absolute; z-index: 1; left: clamp(14px, 3vw, 32px); bottom: clamp(14px, 3vw, 28px); font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1; padding-bottom: 6px; border-bottom: 3px solid var(--orange); }
.door:hover .door__label { border-color: var(--yellow); }
.ilus { position: absolute; z-index: 1; right: 10px; top: 10px; padding: 3px 8px; border-radius: 4px; background: rgba(255,255,255,.88); color: var(--navy); font-size: .72rem; font-weight: 600; }
.hero__text { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px 56px; align-items: end; padding-top: clamp(28px, 4vw, 48px); padding-bottom: var(--section); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 700; letter-spacing: -.025em; line-height: .98; color: var(--navy); }
.hero__lead { margin: 0 0 22px; color: var(--muted); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__where { margin: 18px 0 0; font-size: .95rem; color: var(--muted); }
.hero__where a { color: var(--navy); font-weight: 600; }
.hero__status { margin: 2px 0 0; font-size: .95rem; color: var(--muted); }
.is-open-now { color: var(--leaf); font-weight: 600; }

/* Efecto protagonista: las dos fotos de la portada se descubren al cargar */
@media (prefers-reduced-motion: no-preference) {
  .door img { animation: reveal 1.2s cubic-bezier(.2,.7,.2,1) both; transform-origin: 50% 70%; }
  .door--flower img { animation-delay: .18s; }
  @keyframes reveal { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }
}

/* Secciones */
.sec { padding: var(--section) 0; }
.sec--mist { background: var(--mist); }
.sec__head, .season__head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 56px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.sec__head h2, .season h2, .visit h2 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.sec__head p, .season__head p { margin: 0; color: var(--muted); max-width: 52ch; }

.frame { position: relative; overflow: hidden; border-radius: 10px; background: var(--line); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* Frutería */
.produce { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.produce__item { margin: 0; }
.produce__item .frame { aspect-ratio: 4 / 5; }
.hero__where a, .visit__review a, .facts a, .foot a, .shop__note a { display: inline-block; padding: 4px 0; }
.produce figcaption { padding-top: 12px; color: var(--muted); }
.produce figcaption b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--navy); }

/* Floristería: galería por categorías */
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat .frame { aspect-ratio: 1; background: #fff; }
.cat h3 { margin-top: 14px; font-size: 1.35rem; color: var(--navy); }
.cat p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.cats__cta { margin: clamp(28px, 4vw, 40px) 0 0; }

/* En temporada */
.season h2 { display: flex; flex-direction: column; gap: 6px; }
.season__kicker { font-size: .42em; font-weight: 600; letter-spacing: 0; color: var(--leaf); }
.season__group { font-size: 1.35rem; color: var(--navy); margin: 0 0 16px; display: flex; align-items: center; gap: 14px; }
.season__group::after { content: ""; flex: 1; height: 2px; background: var(--orange); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tiles--flowers { grid-template-columns: repeat(4, 1fr); }
.tile { display: grid; align-content: start; }
.tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--line); margin-bottom: 12px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--cream); }
.tiles--flowers .tile img { aspect-ratio: 4 / 3; border-radius: 10px; box-shadow: none; }
.tile b { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.1; }
.tile span { color: var(--muted); font-size: .92rem; line-height: 1.4; margin-top: 2px; }
.season__more { margin: 22px 0 clamp(40px, 5vw, 56px); color: var(--muted); }
.season__more b { color: var(--navy); }

/* La tienda */
.shop { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; align-items: stretch; }
.shop__photo { margin: 0; }
.shop__photo .frame { height: 100%; min-height: 300px; }
.shop__note { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 26px; border-radius: 10px; background: var(--navy); color: #DCE2EE; }
.shop__note p { margin: 0; }
.shop__rating { font-family: var(--display); font-size: 1.3rem; color: #fff; }
.shop__rating b { display: block; font-size: 3.6rem; line-height: 1; color: var(--yellow); }
.shop__note a { color: #fff; font-weight: 600; }

/* Visítanos */
.visit__in { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.facts { margin: 24px 0 20px; display: grid; gap: 14px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }
.facts a { color: var(--navy); font-weight: 600; }
.hours { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; width: 110px; }
.hours td { color: var(--muted); }
.hours tr.is-today { background: var(--cream); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--navy); font-weight: 600; }
.visit__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__review { margin: 20px 0 0; }
.visit__review a { color: var(--navy); font-weight: 600; }
.map { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.map iframe { width: 100%; height: 560px; border: 0; }

/* Pie */
.foot { background: var(--navy); color: #DCE2EE; padding: 40px 0 120px; font-size: .95rem; }
.foot a { color: #fff; }
.foot p { margin: 0; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.foot__brand { display: flex; align-items: center; gap: 10px; }
.foot__name { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: #fff; margin-bottom: 4px !important; }
.foot__small { font-size: .85rem; display: grid; gap: 4px; }

/* Contacto rápido: abajo a la derecha */
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px; text-decoration: none; font-weight: 600; box-shadow: 0 10px 24px -10px rgba(29,43,79,.6); }
.fab svg { width: 24px; height: 24px; flex: none; }
.fab__wa { width: 52px; background: var(--wa); color: #fff; }
.fab__wa svg { width: 28px; height: 28px; }
.fab__call { padding: 0 20px 0 16px; background: var(--navy); color: #fff; font-variant-numeric: tabular-nums; border: 2px solid rgba(255,255,255,.85); }
.fab__call svg { color: var(--orange); }
.fab__label { display: none; }
.fab a:hover { filter: brightness(1.08); }

/* Tablet */
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: transparent; color: #fff; font: 600 .98rem var(--body); cursor: pointer; }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
  .menu-btn__bars::before { top: -6px; } .menu-btn__bars::after { top: 6px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 22px; background: var(--navy); flex-direction: column; align-items: stretch; gap: 2px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav .nav__go { margin: 12px 0 0; text-align: center; border-bottom: 0; }
  .hero__text, .sec__head, .season__head, .visit__in { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles--flowers { grid-template-columns: repeat(2, 1fr); }
  .shop { grid-template-columns: 1fr 1fr; }
  .shop__photo--wide { grid-column: span 2; }
  .map iframe { height: 380px; }
}

/* Móvil */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .awning__in { min-height: 66px; }
  .logo__mark { width: 42px; height: 42px; }
  .logo__text { font-size: 1.1rem; }
  .hero__doors { height: 34vh; min-height: 220px; max-height: 300px; }
  .ilus { top: 8px; right: 8px; font-size: .66rem; }
  .hero__text { padding-top: 20px; gap: 14px; }
  .hero h1 { font-size: 2.55rem; }
  .hero__lead { margin-bottom: 18px; }
  .hero__cta .btn { flex: 1 1 0; padding: 0 12px; }
  .produce { grid-template-columns: 1fr; gap: 24px; }
  .produce__item .frame { aspect-ratio: 16 / 11; }
  .cats { gap: 14px; }
  .cat h3 { font-size: 1.15rem; margin-top: 10px; }
  .cat p { font-size: .88rem; }
  .cats__cta .btn { width: 100%; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 20px 12px; }
  .tiles--flowers { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .tile img { margin-bottom: 10px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cream); }
  .tile b { font-size: 1.05rem; }
  .tile span { font-size: .82rem; }
  .season__group { font-size: 1.2rem; }
  .shop { grid-template-columns: 1fr; }
  .shop__photo--wide { grid-column: auto; }
  .shop__photo .frame { min-height: 0; aspect-ratio: 4 / 3; }
  .facts div { grid-template-columns: 92px 1fr; }
  .hours th { width: 92px; }
  .hours th, .hours td { padding: 8px 6px; font-size: .95rem; }
  .visit__cta .btn { flex: 1 1 0; }
  .map iframe { height: 300px; }
  .foot { padding-bottom: 160px; }
  .fab { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
}
@media (min-width: 641px) { .fab__label { display: inline; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
