:root {
  --ink: #241a1c;
  --wine: #74233f;
  --wine-dark: #4a1427;
  --rose: #b75b73;
  --cream: #fbf7f2;
  --paper: #fffdf9;
  --peach: #f1d1bd;
  --line: rgba(36, 26, 28, .14);
  --muted: #75686a;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { max-width: 1500px; margin: 0 auto; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.skip-link { position: fixed; top: .8rem; left: .8rem; z-index: 100; transform: translateY(-180%); background: var(--paper); padding: .7rem 1rem; border-radius: 2rem; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; gap: 1rem; padding: 2rem; background: rgba(251,247,242,.96); text-align: center; }
.app-overlay h2 { max-width: 520px; font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: 1; }
.app-overlay p { max-width: 420px; margin: 0 auto; color: var(--muted); }
.app-overlay .button { margin: 0 auto; border: 0; cursor: pointer; }
.app-banner { position: fixed; left: 1rem; right: 1rem; z-index: 180; display: flex; align-items: center; justify-content: center; gap: 1rem; max-width: 780px; margin: 0 auto; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); box-shadow: 0 18px 60px rgba(36,26,28,.14); }
.app-banner p { margin: 0; color: var(--ink); font-size: .92rem; }
.offline-banner { bottom: 1rem; }
.update-banner { top: 5.8rem; }
.banner-close { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--wine); cursor: pointer; }
.app-toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 190; padding: .85rem 1rem; border-radius: .5rem; background: var(--wine); color: white; box-shadow: 0 18px 60px rgba(36,26,28,.18); font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 50; min-height: 78px; padding: 1rem clamp(1.25rem, 4vw, 4.5rem); display: flex; align-items: center; justify-content: space-between; background: rgba(251,247,242,.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; font-size: 1.1rem; text-decoration: none; letter-spacing: -.02em; }
.brand em { color: var(--wine); font-family: var(--serif); font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wine); color: var(--cream); font-family: var(--serif); font-style: italic; }
.main-nav { display: flex; gap: clamp(1.2rem, 3vw, 2.75rem); }
.main-nav a { position: relative; text-decoration: none; color: #57494c; font-size: .92rem; font-weight: 600; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.3rem; height: 1px; background: var(--wine); transition: right .25s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; border-radius: 2rem; padding: .5rem .85rem; }

.hero { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1.02fr .98fr; }
.hero-copy { padding: clamp(4.5rem, 9vw, 9rem) clamp(1.5rem, 7vw, 7.5rem); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 1.15rem; color: var(--wine); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero h1, h2 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.045em; line-height: .96; }
.hero h1 { max-width: 720px; font-size: clamp(4.1rem, 7.4vw, 8.3rem); }
h1 em, h2 em { color: var(--wine); font-weight: 600; }
.hero-lead { max-width: 620px; margin: 2rem 0 0; color: #5d4f52; font-size: clamp(1.05rem, 1.4vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 50px; padding: .75rem 1.2rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .92rem; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--wine); color: white; }
.button.primary:hover { background: var(--wine-dark); }
.button.quiet { border: 1px solid var(--line); }
.hero-note { display: flex; align-items: center; gap: .8rem; margin-top: 2.8rem; color: var(--muted); font-size: .82rem; }
.avatars { display: flex; }
.avatars i { display: grid; place-items: center; width: 31px; height: 31px; margin-left: -7px; border: 2px solid var(--cream); border-radius: 50%; background: var(--peach); color: var(--wine-dark); font-family: var(--serif); font-weight: 600; }
.avatars i:first-child { margin-left: 0; background: #d99ba4; }
.avatars i:last-child { background: #e7b475; }
.hero-visual { position: relative; min-height: 650px; margin: 1.3rem 1.3rem 1.3rem 0; overflow: hidden; border-radius: 1.1rem; background: var(--wine-dark); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(32,13,19,.62)); pointer-events: none; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.76) contrast(1.04); }
.hero-visual figcaption { position: absolute; z-index: 2; left: 2rem; right: 2rem; bottom: 1.5rem; display: flex; justify-content: space-between; color: white; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

.section { padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 7vw, 7.5rem); }
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 9vw, 10rem); border-top: 1px solid var(--line); }
.section-heading h2 { font-size: clamp(3.3rem, 5.5vw, 6.6rem); }
.section-heading.compact h2 { font-size: clamp(3rem, 5vw, 5.8rem); }
.story-copy { max-width: 760px; }
.large-copy { margin-top: 0; font-family: var(--serif); font-size: clamp(1.45rem, 2.1vw, 2.15rem); line-height: 1.42; letter-spacing: -.02em; }
.story-copy > p:not(.large-copy) { max-width: 650px; color: var(--muted); }
.story-principles { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.story-principles span { border: 1px solid var(--line); border-radius: 99px; padding: .55rem .9rem; font-size: .8rem; font-weight: 600; }

.directory { background: var(--paper); }
.directory-top { display: grid; grid-template-columns: 1fr .62fr; gap: 4rem; align-items: end; }
.directory-top > p { max-width: 460px; margin: 0 0 .4rem; color: var(--muted); font-size: 1.08rem; }
.directory-tools { display: flex; justify-content: space-between; gap: 1rem; margin: 3.5rem 0 2rem; }
.search-box { flex: 0 1 460px; display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid var(--ink); }
.search-box span { font-size: 1.5rem; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; padding: .85rem 0; font-size: 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; }
.filter { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: .62rem .9rem; color: var(--muted); cursor: pointer; }
.filter:hover, .filter.active { border-color: var(--wine); background: var(--wine); color: white; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 315px; background-color: white; padding: 1.6rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease; }
.service-card:hover { background: #fbf1ec; }
.service-card[hidden] { display: none; }
.card-number { align-self: flex-end; color: #aa9fa1; font-size: .72rem; }
.card-kicker { margin: 1.3rem 0 .35rem; color: var(--wine); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.service-card h3 { margin: 0; font-family: var(--serif); font-size: 1.85rem; line-height: 1.15; }
.service-card > p:not(.card-kicker) { color: var(--muted); overflow-wrap: anywhere; }
.description-link { color: var(--wine); font-weight: 700; text-underline-offset: 3px; }
.card-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: auto; }
.card-links a, .guide-list a, .text-link { color: var(--wine); font-size: .82rem; font-weight: 700; text-underline-offset: 4px; }
.show-all { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 2rem auto 0; border: 0; background: transparent; color: var(--wine); font-weight: 700; cursor: pointer; }
.no-results { padding: 3rem 0; text-align: center; color: var(--muted); }
.directory-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 2rem 0 0; }
.directory-privacy, .directory-meta, .section-note { max-width: 620px; color: var(--muted); font-size: .9rem; }
.directory-privacy { margin: 1.5rem auto 0; text-align: center; }
.directory-privacy a, footer a { color: inherit; font-weight: 700; text-underline-offset: 4px; }
.directory-meta { margin: .75rem auto 0; text-align: center; }
.directory-page { min-height: calc(100vh - 78px); }
.directory-page h1 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 5vw, 5.8rem); font-weight: 600; letter-spacing: -.045em; line-height: .96; }
.directory-full { margin-top: 3rem; }
.directory-group { margin-top: 3.5rem; }
.directory-group:first-child { margin-top: 0; }
.directory-group-title { margin: 0 0 1rem; color: var(--wine); font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.2rem); font-weight: 600; line-height: 1.05; }

.card-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0 0; }
.card-meta span { font-size: .72rem; padding: .1rem .5rem; border-radius: 99px; background: var(--cream); color: var(--muted); }

/* Dense full directory page overrides */
.directory-page { min-height: auto; }
.directory-page.section { padding-top: 2.5rem; }
.directory-page .directory-top { display: block; margin-bottom: 1.25rem; }
.directory-page .directory-top > p { max-width: none; margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }
.directory-page h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); }

.directory-page .directory-toolbar {
  position: sticky;
  top: 78px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: var(--paper);
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}
.directory-page .directory-toolbar-search { display: flex; align-items: center; gap: .75rem; }
.directory-page .search-box {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: .6rem .8rem;
}
.directory-page .search-box input { padding: 0; }
.directory-page .directory-clear {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: .5rem 1rem;
  background: transparent;
  color: var(--wine);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.directory-page .directory-clear:hover { border-color: var(--wine); }
.directory-page .directory-count { margin: 0; color: var(--muted); font-size: .82rem; }
.directory-page .filters { justify-content: flex-start; }
.directory-page .filter { padding: .4rem .75rem; font-size: .85rem; }

.directory-page .directory-full { margin-top: 1.5rem; }

.directory-favorites { margin-top: 1.5rem; padding: 1rem 1.1rem 1.1rem; border-radius: .8rem; background: #f8ebe6; }
.directory-favorites .directory-group-title { margin-bottom: .8rem; }

.directory-section-title {
  margin: 2.5rem 0 0;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.directory-page .directory-full .service-card.is-favorite .card-kicker::before { content: "★ "; color: var(--rose); }

.directory-page .directory-group { margin-top: 2rem; }
.directory-page .directory-group:first-child { margin-top: 0; }
.directory-page .directory-group-title {
  margin: 0 0 1rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  color: var(--wine);
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}
.directory-page .directory-group-count { color: var(--muted); font-size: .85rem; font-weight: 600; }

.directory-page .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: .75rem;
  border: 0;
}
.directory-page .service-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-height: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--paper);
}
.directory-page .card-kicker { margin: 0; font-size: .7rem; }
.directory-page .service-card h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.directory-page .service-card > p:not(.card-kicker) { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.directory-page .card-links { margin-top: .5rem; gap: .4rem; }
.directory-page .card-links a {
  padding: .3rem .7rem;
  border: 1px solid var(--wine);
  border-radius: 99px;
  font-size: .78rem;
  text-decoration: none;
}

.directory-page .directory-bottom { margin-top: 2rem; display: flex; flex-direction: column; gap: .35rem; }
.directory-page .directory-privacy,
.directory-page .directory-meta {
  margin: 0;
  max-width: none;
  text-align: left;
  font-size: .8rem;
}

.newcomer { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(4rem, 10vw, 11rem); background: var(--wine-dark); color: white; }
.newcomer-intro { align-self: start; position: sticky; top: 120px; }
.eyebrow.light { color: var(--peach); }
.newcomer h2 { font-size: clamp(3.4rem, 5.6vw, 6.3rem); }
.newcomer h2 em { color: var(--peach); }
.newcomer-intro > p:not(.eyebrow) { max-width: 470px; color: #d9c7cc; }
.text-link.light { display: inline-block; margin-top: 1.2rem; color: var(--peach); }
.guide-list details { border-top: 1px solid rgba(255,255,255,.2); }
.guide-list details:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.guide-list summary { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.4rem 0; list-style: none; cursor: pointer; font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.7rem); }
.guide-list summary::-webkit-details-marker { display: none; }
.guide-list summary span { color: var(--peach); font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; }
.guide-list details div { padding: 0 0 1.8rem 4rem; color: #d9c7cc; }
.guide-list details div p { margin-top: 0; }
.guide-list a { color: var(--peach); }

.favorites { background: #f0dfd2; }
.favorite-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-top: 3.5rem; }
.favorite-card { grid-column: span 4; min-height: 440px; position: relative; display: flex; align-items: flex-end; overflow: hidden; border-radius: .8rem; background: var(--wine); color: white; text-decoration: none; }
.favorite-card.feature { grid-column: span 8; }
.favorite-card:not(.feature)::before { content: "L"; position: absolute; right: -1.1rem; top: -4.8rem; color: rgba(255,255,255,.12); font-family: var(--serif); font-size: 19rem; font-style: italic; line-height: 1; transform: rotate(8deg); }
.favorite-rose { background: #a74e68; }
.favorite-green { background: #315c50; }
.favorite-ochre { background: #ad6d2b; }
.favorite-plum { background: #5b365d; }
.favorite-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.favorite-card:hover img { transform: scale(1.035); }
.favorite-card::after { content: ""; position: absolute; inset: 28% 0 0; background: linear-gradient(transparent, rgba(31,12,19,.88)); }
.favorite-content { position: relative; z-index: 2; display: flex; flex-direction: column; width: 100%; padding: 1.6rem; }
.favorite-content small { color: #f2d8c8; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.favorite-content strong { margin: .35rem 0; font-family: var(--serif); font-size: clamp(1.6rem, 2.5vw, 2.7rem); line-height: 1.1; }
.favorite-content > span { font-size: .84rem; }

.closing { padding: clamp(6rem, 13vw, 13rem) 1.5rem; text-align: center; background: var(--wine); color: white; }
.closing h2 { font-size: clamp(3.4rem, 7vw, 7.8rem); }
.closing h2 em { color: var(--peach); }
.closing > p:not(.eyebrow) { max-width: 520px; margin: 1.5rem auto; color: #ecdde1; }
.button.pale { margin-top: .7rem; background: var(--peach); color: var(--wine-dark); }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.light-button { color: white; border-color: rgba(255,255,255,.35); }

footer { min-height: 130px; padding: 2rem clamp(1.5rem, 7vw, 7.5rem); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; background: var(--wine-dark); color: #c9b8bd; font-size: .75rem; }
.footer-brand { color: white; justify-self: start; }
.footer-copy { text-align: center; }
.footer-copy p { margin: .25rem 0; }
footer p:last-child { justify-self: end; text-align: right; }

:focus-visible { outline: 3px solid #e3a987; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: auto; padding-top: 6rem; padding-bottom: 4rem; }
  .hero-visual { height: 72vh; min-height: 520px; margin: 0 1.25rem 1.25rem; }
  .story, .directory-top, .newcomer { grid-template-columns: 1fr; }
  .story { gap: 3.5rem; }
  .directory-top { gap: 1.5rem; }
  .directory-tools { align-items: stretch; flex-direction: column; }
  .search-box { flex-basis: auto; }
  .filters { justify-content: flex-start; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .newcomer { gap: 4rem; }
  .newcomer-intro { position: static; }
  .favorite-card, .favorite-card.feature { grid-column: span 6; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer p, footer p:last-child { justify-self: start; margin: 0; }
}

@media (max-width: 720px) {
  .site-header { min-height: 68px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 68px; display: none; flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.2rem; background: var(--cream); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 0; }
  .hero { min-height: auto; }
  .hero-copy { padding: 4rem 1.25rem 3.5rem; }
  .hero h1 { font-size: clamp(3.6rem, 17vw, 5.8rem); }
  .hero-visual { height: 65vh; min-height: 430px; }
  .section { padding: 5rem 1.25rem; }
  .section-heading h2, .section-heading.compact h2, .newcomer h2 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 285px; }
  /* Las categorias se reparten en varias lineas en vez de deslizarse de
     lado: en un movil el carrusel escondia las categorias del final. */
  .filters { flex-wrap: wrap; overflow-x: visible; gap: .45rem; }
  .filter { flex: 0 1 auto; padding: .5rem .75rem; font-size: .82rem; }
  /* Favoritos apilados a una columna en vez de carrusel horizontal.
     grid-column: auto anula los span 6/span 8 heredados, que en una
     rejilla de una sola columna crearian columnas implicitas. */
  .favorite-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-left: 0; margin-right: 0; padding: 0; }
  .favorite-card, .favorite-card.feature { grid-column: auto; min-height: 340px; }
  .guide-list details div { padding-left: 0; }
  .closing { padding-inline: 1.25rem; }
  .directory-page .directory-toolbar { top: 68px; }
  .directory-page .directory-toolbar-search { flex-wrap: wrap; }
  .directory-page .service-grid { grid-template-columns: 1fr; }
}
