/* ============================================================
   Restaupark — Landing Málaga
   Variables de marca
   ============================================================ */
:root {
  --color-primary: #53c8ec;
  --color-primary-dark: #35a9cd;
  --color-text: #565960;
  --color-link: #156f92;
  --color-cta: #187193;
  --color-cta-hover: #145d78;
  --color-dark: #263246;
  --color-gray: #868990;
  --color-white: #ffffff;
  --color-bg-alt: #f2f2f2;
  --color-border: #e2e5e9;
  --color-success-bg: #eafaf0;
  --color-success-text: #1f8a4c;
  --color-error: #d64545;

  --font-heading: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-pill: 999px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 2px 10px rgba(38, 50, 70, 0.08);
  --shadow-md: 0 10px 30px rgba(38, 50, 70, 0.12);

  --header-topbar-h: 40px;
  --header-mainbar-h: 84px;
}

/* ============================================================
   Reset básico
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-topbar-h) + var(--header-mainbar-h) + 10px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  color: var(--color-text);
}

button {
  font-family: inherit;
  cursor: pointer;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 10px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ============================================================
   Botones
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-cta);
  color: var(--color-white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-cta-hover);
}

.btn--light {
  background: #eeeeee;
  color: #333333;
  border-color: #dddddd;
  border-radius: 3px;
  font-weight: 700;
}

.btn--light:hover,
.btn--light:focus-visible {
  background: #ffffff;
  border-color: #cccccc;
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline-white:hover,
.btn--outline-white:focus-visible {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--whatsapp {
  background: #25d366;
  color: var(--color-white);
  margin-top: 20px;
}

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  background: #1da851;
}

.btn--block {
  width: 100%;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-white);
}

.topbar {
  background: var(--color-bg-alt);
  height: var(--header-topbar-h);
  font-size: 0.82rem;
  color: var(--color-gray);
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar__contact {
  display: flex;
  gap: 22px;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-gray);
  transition: color 0.2s ease;
}

.topbar__link .icon {
  color: var(--color-primary);
}

.topbar__link:hover,
.topbar__link:focus-visible {
  color: var(--color-dark);
}

.topbar__social {
  display: flex;
  gap: 14px;
}

.topbar__social a {
  color: var(--color-primary);
  display: inline-flex;
  transition: color 0.2s ease;
}

.topbar__social a:hover,
.topbar__social a:focus-visible {
  color: var(--color-dark);
}

.mainbar {
  height: var(--header-mainbar-h);
  background: var(--color-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled .mainbar {
  box-shadow: var(--shadow-sm);
}

.mainbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mainbar__logo img {
  height: 58px;
  width: auto;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav__list > li {
  position: relative;
}

.main-nav__list > li > a,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-white);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav__list > li > a:hover,
.main-nav__list > li > a:focus-visible,
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
  color: var(--color-dark);
  background: rgba(255, 255, 255, 0.18);
}

.icon--caret {
  width: 1em;
  height: 1em;
  transition: transform 0.2s ease;
}

.has-dropdown.is-open .icon--caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}

.has-dropdown.is-open .dropdown-menu,
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--color-dark);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus-visible {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-white);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding-top: 110px;
}

.hero__inner {
  padding-bottom: 90px;
  text-align: center;
  max-width: 860px;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin-bottom: 20px;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  max-width: 700px;
  margin: 0 auto 32px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.trust-strip {
  background: rgba(38, 50, 70, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  justify-content: center;
  padding: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.trust-item .icon {
  color: var(--color-primary);
  width: 1.3em;
  height: 1.3em;
}

.trust-item__seal {
  height: 30px;
  width: auto;
  background: var(--color-white);
  border-radius: 4px;
  padding: 2px 4px;
}

/* ============================================================
   Secciones genéricas
   ============================================================ */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__head {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.section__head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section__lead {
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Visible por defecto: si JS no llega a ejecutarse (deshabilitado, error,
   fallo de red en script.js), el contenido debe verse igualmente. La
   animación de aparición SOLO se activa si script.js llega a marcar
   <html class="js-anim"> (ver snippet inline en el <head>). */
.reveal {
  opacity: 1;
  transform: none;
}

.js-anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-anim .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Cards genéricas (por qué / certificaciones)
   ============================================================ */
.cards-grid {
  display: grid;
  gap: 28px;
}

.cards-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(83, 200, 236, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--color-primary-dark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.94rem;
  margin-bottom: 0;
}

.badge-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
}

.badge-card > .icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.badge-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.badge-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.badge-card--eu {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-card__seal {
  height: 60px;
  width: auto;
  margin-bottom: 14px;
}

.badge-card__legal {
  font-size: 0.82rem;
  margin-bottom: 0;
}

/* ============================================================
   Productos
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__img img {
  transform: scale(1.05);
}

.product-card__body {
  padding: 26px;
}

.product-card__body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-card__body p {
  font-size: 0.95rem;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-link);
  font-size: 0.92rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.product-card__link .icon {
  transition: transform 0.2s ease;
}

.product-card__link:hover,
.product-card__link:focus-visible {
  color: var(--color-dark);
}

.product-card__link:hover .icon,
.product-card__link:focus-visible .icon {
  transform: translateX(4px);
}

/* ============================================================
   Para quién (chips)
   ============================================================ */
.chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.chip .icon {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ============================================================
   Proceso (cómo trabajamos)
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.process-step {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 34px 24px 26px;
  border: 1px solid var(--color-border);
}

.process-step__num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--color-primary);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 14px;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ============================================================
   Cobertura Málaga
   ============================================================ */
.towns-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.towns-grid li {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.towns-grid li:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.towns-note {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================================
   Contacto
   ============================================================ */
.section--contact .section__head {
  max-width: 800px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-dark);
  background: var(--color-white);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(83, 200, 236, 0.2);
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--color-error);
}

.form-error {
  font-size: 0.8rem;
  color: var(--color-error);
  min-height: 1em;
}

.form-field--checkbox {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 10px;
}

.form-field--checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.form-field--checkbox label {
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--color-text);
  flex: 1;
}

.form-field--checkbox.has-error .form-error {
  flex-basis: 100%;
}

/* [hidden] debe seguir ganando: solo aplicamos flex cuando el elemento
   NO está oculto, para no pisar la regla nativa [hidden]{display:none}. */
.form-success:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-success .icon {
  color: var(--color-success-text);
  width: 1.3em;
  height: 1.3em;
}

.contact-info {
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
}

.contact-info h3 {
  color: var(--color-white);
  font-size: 1.15rem;
}

.contact-info__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 6px;
}

.contact-info__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-info__list .icon {
  color: var(--color-primary);
  margin-top: 3px;
}

.contact-info__list a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.contact-info__list a:hover,
.contact-info__list a:focus-visible {
  color: var(--color-primary);
}

/* ============================================================
   Footer — replica la estructura real (footer-widgets + colophon
   de restaupark.com): 4 columnas, títulos con línea decorativa,
   bloque FEDER a todo el ancho debajo, barra final del mismo azul.
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr 0.95fr;
  gap: 36px;
  padding-bottom: 50px;
}

.footer-col h3 {
  position: relative;
  color: var(--color-white);
  font-size: 1.15rem;
  font-weight: 600;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--color-white);
}

.footer-logo {
  height: 42px;
  width: auto;
  margin-bottom: 18px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}

.footer-link {
  display: inline-block;
  font-weight: 400;
  text-decoration: none;
  color: var(--color-white);
  margin-top: 6px;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
}

.footer-contact .icon {
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.92);
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--color-dark);
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.footer-form input,
.footer-form textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1px solid #cccccc;
  border-radius: 2px;
  background: #ffffff;
  color: #333333;
  width: 100%;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: #7a7d84;
}

.footer-form input:focus,
.footer-form textarea:focus {
  outline: none;
  border-color: var(--color-dark);
}

.footer-form textarea {
  resize: vertical;
  min-height: 70px;
}

.footer-form .form-field--checkbox label {
  color: rgba(255, 255, 255, 0.92);
}

.footer-form .form-error {
  color: #fff3b0;
}

.form-success--footer {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
}

.form-success--footer .icon {
  display: none;
}

.footer-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  line-height: 0;
}

/* Bloque FEDER/UE — a todo el ancho, DEBAJO de las 4 columnas,
   sobre el mismo fondo azul (así es en restaupark.com real: no vive
   dentro de una columna, es un bloque aparte). */
.footer-eu-block {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 50px;
}

.footer-eu-block__legal {
  font-style: italic;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
}

.footer-eu-block__seal {
  display: block;
  background: var(--color-white);
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 26px;
}

.footer-eu-block__caption p {
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 8px;
  font-style: italic;
  font-size: 0.85rem;
}

.footer-eu-block__caption p:first-child {
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-bottom {
  background: var(--color-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 18px 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   Volver arriba
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-cta);
  color: var(--color-white);
  border: none;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, visibility 0s linear 0.25s;
}

/* opacity:0 + visibility:hidden (en vez de hidden/display:none) para poder
   animar la entrada/salida Y para que el botón no sea alcanzable por Tab
   mientras está oculto (visibility:hidden lo saca del orden de tabulación). */
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, visibility 0s linear 0s;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--color-cta-hover);
}

.back-to-top .icon {
  width: 1.4em;
  height: 1.4em;
}

/* ============================================================
   Responsive — tablet
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid--4,
  .chips-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Responsive — móvil / nav
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    order: -1;
  }

  .mainbar__inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px;
  }

  .mainbar {
    height: auto;
    min-height: var(--header-mainbar-h);
  }

  /* Dropdown oscuro a todo el ancho, empujando el contenido hacia abajo
     (igual que el menú real de restaupark.com en móvil) — nada de panel
     lateral ni overlay oscureciendo el resto de la página. Se anima con
     grid-template-rows 0fr → 1fr, así no hace falta medir la altura por JS. */
  .main-nav {
    order: 3;
    flex-basis: 100%;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    background: #1c1c1c;
  }

  .main-nav.is-open {
    grid-template-rows: 1fr;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    min-height: 0;
  }

  .main-nav__list > li > a,
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 22px;
    color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }

  .main-nav__list > li > a:hover,
  .main-nav__list > li > a:focus-visible,
  .dropdown-toggle:hover,
  .dropdown-toggle:focus-visible {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: transparent;
    padding: 0 0 0 20px;
    transition: none;
  }

  .dropdown-menu li a {
    color: rgba(255, 255, 255, 0.85);
  }

  .dropdown-menu li a:hover,
  .dropdown-menu li a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
  }

  .has-dropdown.is-open .dropdown-menu {
    display: block;
  }

  .has-dropdown:hover .dropdown-menu {
    display: none;
  }

  .has-dropdown.is-open:hover .dropdown-menu {
    display: block;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 60px 0;
  }

  .cards-grid--4,
  .chips-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topbar__inner {
    gap: 10px;
  }

  .topbar__contact {
    gap: 12px;
  }

  /* Se oculta VISUALMENTE el número/email largo para ahorrar espacio, pero
     el enlace conserva nombre accesible real vía aria-label (ver HTML) —
     display:none aquí solo afecta a la presentación, nunca deja el link
     sin texto para lectores de pantalla. */
  .topbar__contact span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hero {
    padding-top: 90px;
  }

  .hero__inner {
    padding-bottom: 60px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .topbar__social {
    gap: 10px;
  }

  .mainbar__logo img {
    height: 42px;
  }

  .trust-strip__inner {
    gap: 12px 20px;
    padding: 16px;
  }

  .trust-item {
    font-size: 0.82rem;
  }

  .footer-form__row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Accesibilidad: reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .js-anim .reveal,
  .js-anim .reveal.is-visible {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .btn:focus-visible,
  .card:hover,
  .product-card:hover {
    transform: none;
  }
}
