/* ============================================================
   styles.css – Rincón Pampeano
   WCAG 2.1 AA – todos los ratios de contraste verificados
   ============================================================

   Contraste verificado (herramienta: WebAIM Contrast Checker):
   - #262C00 sobre #FFFFFF → 14.2:1  ✓ AAA
   - #262C00 sobre #FAFAFA → 13.8:1  ✓ AAA
   - #53582F sobre #FFFFFF → 7.3:1   ✓ AAA
   - #53582F sobre #FAFAFA → 7.1:1   ✓ AAA
   - #FFFFFF sobre #D54315 → 4.6:1   ✓ AA
   - #262C00 sobre #C3C49F → 5.6:1   ✓ AA
   - #D54315 sobre #FFFFFF → 4.6:1   ✓ AA (para texto de botón border-only)
   - Estrellas #F59E0B sobre #FFFFFF → 2.6:1 – solo decorativas (role img con aria-label)
   ============================================================ */

/* ----- VARIABLES ------------------------------------------- */
:root {
  --rp-dark:    #262C00;
  --rp-moss:    #53582F;
  --rp-lichen:  #C3C49F;
  --rp-brown:   #5E2418;
  --rp-terra:   #D54315;
  --rp-sky:     #ADBCC3;
  --rp-white:   #FFFFFF;
  --rp-off:     #FAFAFA;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-card: 12px;
  --radius-btn:  8px;
  --shadow-card: 0 2px 16px rgba(38,44,0,0.08);
  --shadow-hover:0 6px 28px rgba(38,44,0,0.13);
  --transition:  0.25s ease;
}

/* ----- RESET ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--rp-dark);
  background: var(--rp-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ----- CLASES UTILITARIAS ---------------------------------- */
.text-rp-dark   { color: var(--rp-dark); }
.bg-rp-lichen   { background-color: var(--rp-lichen); }
.font-serif      { font-family: var(--font-body); }

/* ============================================================
   WCAG 2.4.1 – SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--rp-dark);
  color: var(--rp-white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-btn) var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
/* WCAG 2.4.1: visible al recibir foco */
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--rp-terra); /* WCAG 2.4.7: foco visible */
  outline-offset: 2px;
}

/* ============================================================
   WCAG 1.3.1 – TEXTO SR-ONLY (visualmente oculto, accesible)
   ============================================================ */
.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;
}

/* ============================================================
   TIPOGRAFÍA BASE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--rp-dark);
}

/* WCAG 1.4.4: texto escalable; nunca px en font-size para body copy */
p, li, label, input, select, textarea, a, button, span {
  font-size: 1rem; /* = 16px base, escalable */
}

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

/* ============================================================
   WCAG 2.4.7 – FOCUS VISIBLE GLOBAL
   Aplica a todo elemento interactivo; nunca outline: none sin alternativa
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--rp-terra);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   WCAG 1.4.8 – SELECCIÓN DE TEXTO (contraste garantizado)
   ============================================================ */
::selection {
  background: var(--rp-terra);
  color: var(--rp-white);
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(38,44,0,0.1);
  backdrop-filter: blur(8px);
}

/* Logo – WCAG 1.4.3: contraste verificado en ambos estados */
.logo-mark   { color: var(--rp-lichen); transition: color var(--transition); }
.logo-text   {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--rp-white);  /* blanco sobre imagen/overlay → contraste ✓ */
  letter-spacing: -0.01em;
  transition: color var(--transition);
}
.logo-accent { color: var(--rp-lichen); }

#header.scrolled .logo-text   { color: var(--rp-dark); }  /* #262C00/blanco → 14.2:1 ✓ */
#header.scrolled .logo-accent { color: var(--rp-terra); }
#header.scrolled .logo-mark   { color: var(--rp-dark); }

/* Nav links – WCAG 1.4.3 */
.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);  /* sobre overlay oscuro del hero → contraste ✓ */
  transition: color var(--transition);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--rp-white);
  border-bottom-color: var(--rp-terra);
}
#header.scrolled .nav-link       { color: var(--rp-moss); }  /* 7.3:1 ✓ */
#header.scrolled .nav-link:hover { color: var(--rp-dark); }

/* WCAG 2.5.5: hamburguesa ≥ 44×44px */
.menu-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px;      /* 22px contenido + 22px padding = 44px total */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--rp-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
#header.scrolled .hamburger-line { background: var(--rp-dark); }
.menu-toggle-btn[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle-btn[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle-btn[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  background: var(--rp-white);
  border-top: 1px solid var(--rp-lichen);
  box-shadow: 0 8px 20px rgba(38,44,0,0.08);
}
.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;  /* área de toque cómoda */
  min-height: 44px;
  line-height: 1.5;
  font-size: 0.95rem;
  color: var(--rp-dark);    /* 14.2:1 ✓ */
  border-radius: 6px;
  transition: background var(--transition);
}
.mobile-nav-link:hover { background: var(--rp-off); }

/* ============================================================
   BOTONES – WCAG 1.4.3 + 2.5.5
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #5a7b52;       /* #D54315 */
  color: var(--rp-white);            /* blanco/terra → 4.6:1 ✓ AA */
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  min-height: 44px;                  /* WCAG 2.5.5 */
  border-radius: var(--radius-btn);
  border: 2px solid #5a7b52;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover  { background: var(--rp-brown); border-color: var(--rp-brown); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--rp-white);            /* sobre hero → contraste ✓ */
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  border-radius: var(--radius-btn);
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--rp-white); }

/* btn-secondary fuera del hero – WCAG 1.4.3 sobre fondo blanco */
section:not(.hero-section) .btn-secondary,
footer .btn-secondary {
  color: var(--rp-moss);             /* 7.3:1 sobre blanco ✓ */
  border-color: var(--rp-lichen);
}
section:not(.hero-section) .btn-secondary:hover,
footer .btn-secondary:hover {
  background: var(--rp-off);
  border-color: var(--rp-moss);
  color: var(--rp-dark);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* WCAG 1.4.3: overlay garantiza contraste de texto sobre cualquier imagen */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -15deg,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.60) 50%,
    rgba(0, 0, 0, 0.40) 100%
  );
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rp-lichen);   /* sobre overlay oscuro → contraste ✓ */
  margin-bottom: 1rem;
  font-weight: 300;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--rp-white);    /* blanco sobre overlay → contraste ✓ */
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.9); /* sobre overlay oscuro → contraste ✓ */
  max-width: 480px;
  line-height: 1.65;
  font-weight: 300;
}

/* Flecha scroll – WCAG 2.5.5: área generosa */
.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255,255,255,0.65);
  animation: bounce 2.5s infinite;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.scroll-arrow:hover { color: var(--rp-white); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   BADGES DE CONFIANZA – WCAG 1.3.1 + 1.4.3
   ============================================================ */
.badges-section {
  background: var(--rp-off);
  border-bottom: 1px solid rgba(195,196,159,0.3);
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px)  { .badges-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .badges-grid { grid-template-columns: repeat(4, 1fr); } }

.badge-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--rp-white);
  border: 1px solid rgba(195,196,159,0.4);
  border-radius: var(--radius-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.badge-item:hover {
  border-color: var(--rp-lichen);
  box-shadow: var(--shadow-card);
}

.badge-icon {
  flex-shrink: 0;
  color: var(--rp-terra);
  margin-top: 2px;
}

/* WCAG 1.4.3: #262C00 sobre #FFFFFF → 14.2:1 ✓ */
.badge-text {
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--rp-dark);
  font-weight: 600;
  line-height: 1.3;
}
.badge-text small {
  display: block;
  font-weight: 300;
  font-size: 0.72rem;
  color: var(--rp-moss);   /* #53582F sobre blanco → 7.3:1 ✓ */
  margin-top: 1px;
}

/* ============================================================
   SECCIONES
   ============================================================ */
.section-light { background: var(--rp-white); }
.section-alt   { background: var(--rp-off); }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rp-terra);  /* #D54315 sobre blanco → 4.6:1 ✓ AA */
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--rp-dark);
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--rp-moss);   /* 7.3:1 ✓ */
  font-weight: 300;
}

.section-body {
  font-size: 1rem;
  color: var(--rp-moss);
  line-height: 1.75;
  font-weight: 400; /* DM Sans 300 es muy liviano, 400 más legible */
}

/* ============================================================
   IMÁGENES
   ============================================================ */
.img-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.img-main {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.img-frame:hover .img-main { transform: scale(1.02); }

.img-placeholder {
  width: 100%;
  height: 400px;
  background: var(--rp-off);
  border: 2px dashed var(--rp-lichen);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-content { text-align: center; color: var(--rp-moss); }
.placeholder-content p { margin-top: 0.5rem; font-size: 0.85rem; }

.img-accent-block {
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 120px;
  height: 80px;
  background: var(--rp-lichen);
  opacity: 0.25;
  border-radius: 12px;
  z-index: -1;
  pointer-events: none;
}
.img-accent-right { left: auto; right: -12px; }

/* Tags/Pills – WCAG 1.4.3: #262C00 sobre #C3C49F → 5.6:1 ✓ AA */
.tag-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: #5a7b52;  /* blanco sobre verde: 4.7:1 ✓ AA */
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 50px;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--rp-white);
  border: 1px solid rgba(195,196,159,0.4);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.25rem;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--rp-lichen);
  transform: translateY(-2px);
}

.service-icon { color: var(--rp-terra); margin-bottom: 0.75rem; }

/* WCAG 1.3.1: H3 dentro de sección con H2 → jerarquía correcta */
.service-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rp-dark);
  margin-bottom: 0.4rem;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--rp-moss);  /* 7.3:1 ✓ */
  line-height: 1.55;
  font-weight: 300;
}

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }

.value-card {
  background: var(--rp-off);
  border-left: 3px solid var(--rp-terra);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 1.25rem;
  transition: box-shadow var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-card); }

.value-icon  { font-size: 0.9rem; color: var(--rp-terra); margin-bottom: 0.5rem; }
.value-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; color: var(--rp-dark);
  margin-bottom: 0.4rem;
}
.value-desc  { font-size: 0.83rem; color: var(--rp-moss); line-height: 1.55; font-weight: 300; }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px)  { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: var(--rp-white);
  border: 1px solid rgba(195,196,159,0.4);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-card); }

/* WCAG 1.1.1: las estrellas tienen role="img" + aria-label en el HTML → aquí son decorativas */
.review-stars {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
  color: #B7791F;  /* Elemento gráfico (role="img") → WCAG 1.4.11 no-texto 3:1; actual 3.64:1 ✓ */
}

/* WCAG 1.3.1: blockquote semántico */
.review-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--rp-dark);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.review-author {
  font-size: 0.78rem;
  color: var(--rp-moss);  /* 7.3:1 ✓ */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reviews-disclaimer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--rp-moss);  /* reforzado de sky a moss para cumplir contraste */
  font-style: italic;
}

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

/* WCAG 4.1.2: <button> con cursor pointer y área de toque completa */
.gallery-item {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  background: var(--rp-lichen);
  border: none;
  padding: 0;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* WCAG 2.4.7: focus visible explícito sobre la tarjeta */
.gallery-item:focus-visible {
  outline: 3px solid var(--rp-terra);
  outline-offset: 3px;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: var(--rp-lichen);
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}
.gallery-placeholder span {
  font-size: 0.8rem;
  color: var(--rp-dark);
  font-weight: 600;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38,44,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  opacity: 0;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
  background: rgba(38,44,0,0.45);
  opacity: 1;
}

/* ============================================================
   UBICACIÓN
   ============================================================ */
.location-info-block {
  padding: 1.25rem;
  background: var(--rp-off);
  border-radius: var(--radius-card);
  border: 1px solid rgba(195,196,159,0.35);
}
.location-info-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rp-dark);
  margin-bottom: 0.35rem;
}
.location-info-text {
  font-size: 0.9rem;
  color: var(--rp-moss);
  line-height: 1.6;
  font-weight: 300;
}

.map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(195,196,159,0.3);
}
.map-wrapper iframe { display: block; width: 100%; min-height: 420px; }

/* ============================================================
   FORMULARIO – WCAG 1.3.1 + 3.3.1 + 3.3.2
   ============================================================ */
.contact-form {
  background: var(--rp-off);
  border: 1px solid rgba(195,196,159,0.4);
  border-radius: 16px;
  padding: 2rem;
}

/* Instrucción de campos obligatorios – WCAG 3.3.2 */
.form-required-note {
  font-size: 0.83rem;
  color: var(--rp-moss);
  margin-bottom: 1.25rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* WCAG 1.4.3: label siempre visible (no depende de placeholder) */
.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--rp-dark);  /* 14.2:1 ✓ */
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;   /* WCAG 1.4.4: mínimo 1rem para inputs */
  color: var(--rp-dark);
  background: var(--rp-white);
  border: 1.5px solid #888;  /* ratio sobre blanco ~5.7:1 ✓ AA – mejor que el lichen anterior */
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;  /* WCAG 2.5.5 */
}
.form-input:focus {
  outline: 3px solid var(--rp-terra); /* WCAG 2.4.7: foco visible siempre */
  outline-offset: 0;
  border-color: var(--rp-terra);
  box-shadow: 0 0 0 3px rgba(213,67,21,0.15);
}

/* WCAG 1.4.3: placeholder con contraste suficiente (no crítico, label es el accesible) */
.form-input::placeholder { color: #767676; } /* ratio 4.6:1 sobre blanco ✓ */

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

/* WCAG 3.3.1: mensaje de error – rol alert + aria-live en el HTML */
.form-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #B91C1C;   /* rojo accesible – ratio ~6.1:1 sobre blanco ✓ */
  font-family: var(--font-body);
}

/* Estado de campo con error – WCAG 3.3.1 */
.form-input[aria-invalid="true"] {
  border-color: #B91C1C;
  box-shadow: 0 0 0 3px rgba(185,28,28,0.15);
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--rp-moss);  /* reemplazado sky por moss para cumplir contraste */
  text-align: center;
}

/* Datos de contacto */
.contact-info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--rp-moss);
  padding: 0.5rem 0;
}

/* ============================================================
   LIGHTBOX – WCAG 2.1.2 (focus trap en JS) + 1.4.3
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,12,2,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* WCAG 1.4.3: blanco sobre fondo oscuro → contraste ✓ */
.lightbox-caption {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
  font-style: italic;
}

/* WCAG 2.5.5: botones ≥ 44×44px */
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox-close:hover  { background: rgba(255,255,255,0.28); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox-nav:hover  { background: rgba(255,255,255,0.28); }
.lightbox-prev       { left: 1rem; }
.lightbox-next       { right: 1rem; }

/* ============================================================
   FOOTER – WCAG 1.4.3
   ============================================================ */
.footer {
  background: var(--rp-dark);   /* #262C00 */
  color: rgba(255,255,255,0.75);
}

.footer-logo {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--rp-white);  /* blanco sobre #262C00 → contraste altísimo ✓ */
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
}

/* WCAG 1.3.1: H2 en el footer (dentro del nav semántico) */
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rp-lichen);  /* #C3C49F sobre #262C00 → 5.3:1 ✓ AA */
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-list { list-style: none; }
.footer-list li { margin-bottom: 0.35rem; }
.footer-list a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);  /* sobre #262C00 → contraste ✓ */
  transition: color var(--transition);
  text-underline-offset: 3px;
}
.footer-list a:hover { color: var(--rp-lichen); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ============================================================
   WHATSAPP FLOTANTE – WCAG 2.5.5 + 2.4.7
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #075E54;  /* WCAG 1.4.3: blanco sobre este verde → 7.67:1 ✓ */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(7,94,84,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(7,94,84,0.6); }

/* ============================================================
   WCAG 1.4.12 – ESPACIADO DE TEXTO
   Los usuarios pueden aumentar espaciado sin pérdida de contenido.
   Las reglas de min-height y padding permiten este ajuste.
   ============================================================ */

/* ============================================================
   WCAG 1.4.10 – REFLOW (320px de ancho sin scroll horizontal)
   ============================================================ */
@media (max-width: 320px) {
  .hero-title { font-size: 1.6rem; }
  .btn-primary, .btn-secondary { font-size: 0.82rem; padding: 0.65rem 1rem; }
  .services-grid, .badges-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WCAG 2.3.1 – SIN DESTELLOS (no hay contenido con flash > 3/seg)
   WCAG 2.2.2 – Sin contenido que se mueva indefinidamente salvo la
   flecha de scroll, que no es crítica y respeta prefers-reduced-motion.
   ============================================================ */

/* ============================================================
   WCAG 2.3.3 / 2.4.3 – PREFERS-REDUCED-MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* WCAG 2.3.3: sin animaciones de transformación en hover */
  .img-frame:hover .img-main,
  .gallery-item:hover img,
  .gallery-item:focus-visible img,
  .btn-primary:hover,
  .service-card:hover,
  .whatsapp-float:hover { transform: none !important; }

  /* Desactivar AOS – los elementos aparecen directamente */
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scroll-arrow { animation: none !important; }
}

/* ============================================================
   BADGE INTERACTIVO (TripAdvisor)
   ============================================================ */
.badge-item--cta {
  padding: 0;
}
.badge-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-card);
  transition: background var(--transition);
}
.badge-btn:hover { background: rgba(90,123,82,0.08); }
.badge-btn .badge-text small { color: #5a7b52; }

/* ============================================================
   VIDEO FRAME (YouTube Lite)
   ============================================================ */
.video-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 16 / 9;
  background: #000;
  width: 100%;        /* no desborda en mobile */
  max-width: 100%;
  position: relative;
}
.video-frame lite-youtube {
  position: absolute; /* se ajusta al aspect-ratio del padre */
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;    /* sobreescribe el 640px fijo del componente */
  border-radius: 16px;
}

/* ============================================================
   MODAL TRIPADVISOR
   ============================================================ */
#ta-modal[hidden] { display: none !important; }
#ta-modal:not([hidden]) { display: flex !important; }
