@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../assets/fonts/open-sans.woff2") format("woff2"); }
@font-face { font-family: "Libre Bodoni"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/libre-bodoni.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../assets/fonts/bodoni-moda.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --orange: #c96630;
  --gray: #636569;
  --nav: #6f6f6e;
  --pale: #ffffffcc;
  --paper: #fff;
  --serif: "Libre Bodoni", "Bodoni Moda", Georgia, serif;
  --display: "Bodoni Moda", "Libre Bodoni", Georgia, serif;
  --sans: "Open Sans", Arial, sans-serif;
  --wb-accent: var(--orange);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--gray); background: var(--paper); font: 15px/1.6 var(--sans); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

.skip-link {
  position: absolute; z-index: 20; top: -4rem; left: 1rem; padding: .75rem 1rem;
  background: #fff; color: #111;
}
.skip-link:focus { top: 1rem; }

/* Cabecera */
.site-header { position: relative; z-index: 1050; display: grid; grid-template-rows: 88px auto; background: #fff; }
.brand { display: inline-flex; align-items: center; justify-self: center; }
.brand img { display: block; width: 152px; height: auto; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 9px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span {
  display: block; height: 3px; width: 25px; margin: 4px auto; border-radius: 2px;
  background: var(--nav); transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: flex; align-items: center; justify-content: center; min-height: 46px; background: var(--nav); }
.site-nav a {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .5rem clamp(.75rem, 3vw, 2.7rem);
  color: #fff; text-decoration: none; font-size: 1rem; font-weight: 600; white-space: nowrap;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { background: #5d5d5c; }
.site-nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

/* Elementos comunes */
.page-banner {
  position: relative; display: grid; place-items: center; min-height: clamp(220px, 24vw, 350px);
  padding: 2rem 1rem; background: #555 center / cover no-repeat;
}
.page-banner::after { position: absolute; inset: 0; content: ""; background: #0000002e; }
.page-banner h1 {
  position: relative; z-index: 1; margin: 0; color: #fff; text-align: center;
  font: 600 clamp(2.8rem, 5.5vw, 4.4rem)/1.05 var(--serif); letter-spacing: -.04em;
}
.image-strip { height: clamp(140px, 17vw, 240px); background: #777 center / cover no-repeat; }
.page-intro { max-width: 1100px; margin: 0 auto 2rem; text-align: center; font-weight: 700; }
.orange-button, .pale-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 2.5rem;
  border: 0; border-radius: 5px; box-shadow: 0 4px 8px #00000030; text-decoration: none; font-weight: 700; cursor: pointer;
  transition: filter .2s ease;
}
.orange-button { background: var(--orange); color: #fff; }
.pale-button { width: min(100%, 800px); min-height: 70px; border-radius: 9px; background: var(--pale); color: var(--gray); font-size: clamp(17px, 2vw, 29px); }
.orange-button:hover, .orange-button:focus-visible, .pale-button:hover, .pale-button:focus-visible { filter: brightness(1.07); }
.orange-button.wide { width: min(100%, 800px); min-height: 70px; font-size: 1.45rem; }
.data-status { margin: 1rem 0; color: #8a2d20; font-weight: 600; }

/* Portada */
.hero {
  position: relative; display: grid; place-items: center; height: clamp(320px, 45.5vw, 680px);
  overflow: hidden; background: #454545 center / cover no-repeat;
}
.hero h1 {
  position: relative; margin: 0 0 clamp(2rem, 8vw, 7rem); padding: 0 1rem; color: #fff; text-align: center;
  font: 700 clamp(3.3rem, 10.4vw, 150px)/.93 var(--display); letter-spacing: -.05em; text-shadow: 0 0 10px #000000bf;
}
.hero h1 span, .join-content h2 span, .featured-catalog h2 span { display: block; }

.stats-section {
  display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
  padding: 0 clamp(1rem, 2.5vw, 2.5rem) 4rem; background: var(--orange);
}
.stats-section .join-media { margin-top: 2.5rem; }
.stats-list {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.6rem);
  width: 100%; margin-top: clamp(-7rem, -8vw, -3rem); position: relative; z-index: 1;
}
.stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; min-height: 190px;
  padding: 1.4rem .5rem; border-radius: 6px; background: #ffffffb8; box-shadow: 0 4px 10px #00000035; text-align: center;
}
.stat strong { color: #636569cc; font: 800 clamp(2rem, 4.2vw, 60px)/1 var(--serif); letter-spacing: 0; white-space: nowrap; }
.stat small { font-size: .55em; }
.stat span { font-weight: 600; font-size: clamp(.95rem, 1.46vw, 21px); line-height: 1.35; }
.join-media { width: min(100%, 800px); aspect-ratio: 16 / 9; background: #333; }
.join-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.join-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; width: 100%; text-align: center; }
.join-content h2 { margin: 0; color: #ffffffcc; font: 700 clamp(2rem, 4.9vw, 70px)/1 var(--display); letter-spacing: -.02em; }

.featured-catalog {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2rem;
  max-width: 1340px; margin: 0 auto; padding: 1.5rem 1rem 1.5rem 4%; border-bottom: 8px solid var(--orange);
}
.featured-catalog h2 { margin: 0; color: var(--gray); font: 700 clamp(35px, 4.9vw, 70px)/1 var(--display); letter-spacing: -.047em; }
.featured-catalog h2 span:first-child { color: var(--orange); }
.featured-media { display: flex; flex-direction: column; align-items: flex-end; }
.featured-media img { display: block; width: 100%; max-height: 520px; object-fit: contain; }
.featured-media .orange-button { min-width: 260px; margin-top: -2rem; padding: 1.1rem 2.75rem; border-radius: 9px; font-size: clamp(17px, 1.7vw, 24px); }

.latest-news, .news-page { max-width: 1180px; margin: 0 auto; padding: 3rem 1rem 4rem; }
.section-title { margin: 0 0 2.5rem; text-align: center; font: 700 clamp(35px, 4.2vw, 60px)/1.15 var(--display); letter-spacing: -.055em; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.catalog-card { display: flex; flex-direction: column; min-width: 0; }
.catalog-image { display: block; aspect-ratio: 1.55 / 1; overflow: hidden; background: #eee; }
.catalog-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.catalog-card:hover .catalog-image img { transform: scale(1.03); }
.catalog-card h3 { margin: 1.1rem 0 .4rem; font: 700 clamp(22px, 2.1vw, 30px)/1.25 var(--sans); letter-spacing: -.01em; }
.catalog-card h3 a { text-decoration: none; }
.catalog-card h3 a:hover { color: var(--orange); }
.catalog-card p { margin: 0; font-size: clamp(15px, 1.25vw, 18px); font-weight: 600; letter-spacing: -.04em; }
.pdf-link { color: inherit; text-decoration: none; }
.pdf-link:hover { color: var(--orange); text-decoration: underline; }
.read-more { align-self: flex-end; margin-top: auto; padding-top: 1rem; color: var(--orange); font-size: clamp(15px, 1.25vw, 18px); font-weight: 700; text-decoration: none; }
.read-more:hover { text-decoration: underline; }
.view-all { display: flex; width: fit-content; max-width: 100%; margin: 2.5rem auto 0; padding: 1.1rem 2.75rem; border-radius: 9px; font-size: clamp(17px, 1.7vw, 24px); }

/* Páginas interiores */
.about-stats { padding-bottom: 2rem; }
.about-intro { max-width: 900px; margin: 0; color: #fff; text-align: center; font-weight: 700; }
.dossier { display: flex; flex-direction: column; width: min(100%, 280px); text-decoration: none; box-shadow: 0 6px 16px #0003; }
.dossier img { display: block; width: 100%; }
.dossier span { padding: .25rem .6rem; background: #4a4a4a; color: #fff; font-size: .85rem; font-weight: 700; }
.about-join { padding: 4rem 1rem; }

.content-section { padding: 2.5rem 1rem 4rem; }
.content-section.is-orange { background: var(--orange); color: #fff; }
.content-inner { display: flex; flex-direction: column; align-items: center; gap: .25rem; max-width: 1100px; margin: 0 auto; text-align: center; }
.content-section h2 { margin: 0 0 1.5rem; font: 700 clamp(2.5rem, 4.9vw, 4.4rem)/1.05 var(--display); letter-spacing: -.02em; }
.content-section.is-orange h2 { color: #ffffffcc; }
.content-section p { margin: 0 0 1.1rem; }
.content-section .orange-button, .content-section .pale-button { margin-top: 1rem; }

.brands-page { max-width: 1150px; margin: 0 auto; padding: 3rem 1rem 5rem; }
.brand-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3.5rem 1.4rem; }
.brand-card img { display: block; width: 100%; aspect-ratio: 2.25 / 1; object-fit: contain; }
.brand-card p { margin: 1rem 0 0; font-size: .95rem; line-height: 1.5; }

.stores-page { max-width: 1210px; margin: 0 auto; padding: 2.5rem 1rem 5rem; }
.store-search {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .8rem 1rem;
  background: var(--orange); color: #222; font-weight: 700;
}
.store-search input, .store-search select { min-height: 42px; padding: .4rem .7rem; border: 1px solid #ddd; border-radius: 2px; background: #fff; }
.store-search-group { display: flex; align-items: center; gap: .6rem; }
.store-search-group.is-location { flex: 1 1 320px; }
.store-search input { flex: 1 1 auto; min-width: 0; }
.store-search button {
  min-height: 42px; padding: .4rem 2.5rem; border: 0; border-radius: 2px;
  background: #5d5f63; color: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer;
}
.store-search .my-location { padding-inline: 1rem; background: #ffffffcc; color: var(--gray); font-size: 1rem; }
.store-layout { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: .75rem; margin-top: .75rem; }
.store-panel { max-height: 560px; overflow-y: auto; padding: .75rem 1.1rem; background: #f8ece6; box-shadow: 0 3px 6px #0002; }
.store-status { margin: .5rem 0; }
.store-status:empty { display: none; }
.store-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.store { display: grid; gap: .1rem; padding: .7rem .4rem; border-bottom: 1px solid #e6d3c8; cursor: pointer; }
.store:hover, .store:focus-visible { background: #fff; outline: none; }
.store strong { color: #333; }
.store a { color: var(--orange); font-weight: 600; }
.store summary { color: var(--orange); font-weight: 600; cursor: pointer; }
.store table { margin-top: .3rem; font-size: .92rem; border-collapse: collapse; }
.store td { padding: .1rem 1rem .1rem 0; }
.store-distance { justify-self: end; font-size: .9rem; font-weight: 700; }
.store-map { min-height: 560px; background: #e5e3df; }

.contact-page .page-intro { color: #fff; }
.contact-page h2 { color: #f4e1d7; }
.contact-map { width: 100%; height: 300px; border: 0; }
.contact-details { margin-top: 1.75rem; font-size: 1.05rem; }
.contact-details a { color: #fff; font-weight: 700; text-decoration: none; }

.news-page .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; margin-top: 2.5rem; font-weight: 600; }
.pagination a { text-decoration: none; }
.pagination a:hover, .pagination [aria-current="page"] { color: var(--orange); }
.pagination .is-disabled { opacity: .55; }

.catalog-article { max-width: 830px; min-height: 60vh; margin: 0 auto; padding: 1.25rem 1rem 4rem; }
.back-to-list { display: inline-block; margin-bottom: 1rem; color: var(--orange); font-weight: 700; text-decoration: none; }
.back-to-list:hover, .back-to-list:focus-visible { text-decoration: underline; }
.catalog-article-image { display: block; width: 100%; height: 300px; object-fit: cover; }
.catalog-article-date { margin: 1.5rem 0 .5rem; font-size: .9rem; }
.catalog-article h1 { margin: 0 0 1.5rem; color: var(--orange); font: 600 clamp(2.4rem, 4vw, 3.2rem)/1.15 var(--serif); letter-spacing: -.03em; }
.catalog-article-text { font-size: 1.1rem; font-weight: 700; }
.catalog-article .pdf-link { color: var(--orange); font-size: 1.1rem; font-weight: 700; }

.join-page .content-inner, .private-page .content-inner { align-items: stretch; max-width: 850px; text-align: left; }
.benefits-list { margin: .5rem 0 2rem; padding-left: 2rem; }
.join-page .pale-button { align-self: center; }
.contact-dialog {
  width: min(560px, calc(100% - 2rem)); max-height: min(90vh, 760px); padding: clamp(1.25rem, 5vw, 2rem);
  border: 0; border-radius: 8px; color: var(--gray); box-shadow: 0 18px 60px #0005;
}
.contact-dialog::backdrop { background: #0008; }
.contact-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.contact-dialog-header h2 { margin: 0; font: 700 2.2rem/1.1 var(--serif); }
.contact-dialog-close {
  display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center;
  border: 0; border-radius: 50%; background: #f2f2f2; color: #333; cursor: pointer; font-size: 1.5rem;
}
.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid #bbb; border-radius: 3px; background: #fff; color: #222;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form-status { margin: 0; color: #27633b; font-weight: 600; }
.contact-form-status:empty { display: none; }
.contact-form-status.is-error { color: #8a2d20; }
/* Acceso privado: el formulario es del módulo modulos/acceso-clientes (color con --ac-accent). */
.private-page { --ac-accent: var(--orange); }

.legal-page { max-width: 1200px; min-height: 60vh; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.legal-page h1 { margin: 0 0 1.5rem; color: #1d1d1f; font: 500 2.2rem/1.2 var(--sans); }
.legal-text { padding-left: clamp(0rem, 3vw, 2.5rem); line-height: 1.85; }
.legal-text p, .legal-text ul { margin: 0 0 1.4rem; }
.legal-text li { margin-bottom: .6rem; }
.legal-text a { color: var(--orange); font-weight: 700; text-decoration: none; }
.legal-text a:hover, .legal-text a:focus-visible { text-decoration: underline; }
.legal-text table { width: 100%; margin: 0 0 1.4rem; border-collapse: collapse; }
.legal-text td { padding: .9rem 1rem; border: 1px solid #e5e5e5; vertical-align: top; }
.legal-text td p { margin: 0; }
.legal-text tr:first-child td { font-weight: 700; }
.legal-text ul, .legal-text ol { padding-left: 2rem; }
.legal-text li { margin-bottom: .3rem; }

/* Pie y cookies */
.site-footer { padding: .6rem 1rem; background: var(--gray); color: #fff; text-align: center; font-size: 13.5px; font-weight: 700; }
.footer-address { margin: 0 0 .5rem; }
.legal-links a { color: #fff; text-decoration: none; }
.legal-links a:hover, .legal-links a:focus-visible { text-decoration: underline; }

.cookie-panel {
  position: fixed; z-index: 1100; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 1.5rem 3rem;
  padding: 1rem clamp(1rem, 5vw, 4.5rem); background: #202020; color: #fff; font-size: 14px; line-height: 1.4;
}
.cookie-panel[hidden] { display: none; }
.cookie-panel p { flex: 1; margin: 0; }
.cookie-panel a { color: #fff; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions button {
  min-height: 38px; padding: .4rem 1.8rem; border: 1px solid var(--orange); border-radius: 20px;
  background: var(--orange); color: #fff; cursor: pointer;
}
.cookie-actions button:last-child { border-color: #fff; background: transparent; }
.cookie-settings {
  position: fixed; z-index: 1100; bottom: 1rem; left: 1rem; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: #202020; color: #fff; cursor: pointer; font-size: 1.4rem; box-shadow: 0 2px 8px #0004;
}

@media (max-width: 1000px) {
  .site-header { display: flex; align-items: center; justify-content: center; min-height: 76px; }
  .menu-toggle { position: absolute; top: 50%; right: 1rem; display: block; transform: translateY(-50%); }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: .5rem 1rem; box-shadow: 0 12px 30px #0003; }
  .site-nav.is-open { display: grid; }
  .stats-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-layout { grid-template-columns: 1fr; }
  .store-map { order: -1; min-height: 340px; }
  .store-panel { max-height: none; }
  .cookie-panel { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .stats-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 120px; }
  .featured-catalog { grid-template-columns: 1fr; padding-left: 1rem; }
  .featured-media .orange-button { margin-top: 1rem; }
  .catalog-grid, .brand-grid { grid-template-columns: 1fr; }
  .pale-button, .orange-button.wide { min-height: 56px; font-size: 1.15rem; }
  .page-banner h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .store-search { display: grid; }
  .store-search-group { justify-content: space-between; }
  .store-search-group.is-location { flex-direction: column; align-items: stretch; gap: .35rem; }
  .store-search-group.is-actions button { flex: 1 1 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
