/* ============================================================
   Viaja con Chapitos - Hoja de estilos principal
   ------------------------------------------------------------
   Contiene TODOS los estilos del sitio (todas las p�ginas usan
   este mismo archivo para mantener una apariencia coherente).
   Est� organizado por secciones para facilitar la lectura.
   ============================================================ */

/* -------- 1) Fuentes: se importan desde Google Fonts -------- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Poppins:wght@500;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* -------- 2) Variables de color y tokens de dise�o ---------- */
:root {
  --brand: #1f6feb;
  --brand-dark: #0b3d91;
  --warm: #f39c12;
  --warm-soft: #fdecd0;
  --bg: #f7fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #4b5563;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(15, 61, 145, 0.08);
}

/* -------- 3) Reset ligero y estilos base -------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #f8fbff 0%, #eef4ff 55%, #f7fafc 100%);
  line-height: 1.65;
}
.page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
button,
input,
select,
textarea {
  font: inherit;
}

/* T�tulos con la tipograf�a de marca */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
}

/* Contenedor centrado reutilizable */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------- 4) Barra de navegaci�n (aparece en todas las p�ginas) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(226,232,240,0.9);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-family: 'Poppins';
  font-size: 1.15rem;
}
.brand .logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14);
}
.brand span b {
  color: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.language-switcher {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 18px;
  position: relative;
}

.language-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.language-picker {
  position: relative;
}

.language-picker__button {
  min-width: 152px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.language-picker__button:focus-visible {
  outline: 2px solid rgba(31, 111, 235, 0.28);
  outline-offset: 2px;
  border-color: #1f6feb;
}

.language-picker__flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.language-picker__label {
  line-height: 1;
}

.language-picker__caret {
  margin-left: auto;
  font-size: 0.85rem;
  color: #64748b;
}

.language-picker__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
  padding: 6px;
  min-width: 176px;
  display: none;
  z-index: 70;
}

.language-picker.is-open .language-picker__menu {
  display: grid;
  gap: 4px;
}

.language-picker__item {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 7px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
}

.language-picker__item:hover,
.language-picker__item.is-active {
  background: #eff6ff;
}
.nav-links a {
  font-weight: 500;
  color: #374151;
  transition: color 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  transform: translateY(-1px);
}
.nav-links a.active {
  border-bottom: 2px solid var(--brand);
  padding-bottom: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 18px 40px rgba(31,111,235,0.12);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  background: var(--brand-dark);
  box-shadow: 0 20px 50px rgba(31,111,235,0.18);
}
.btn-warm {
  background: var(--warm);
  color: #1f2a37;
}
.btn-warm:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 50px rgba(243,156,18,0.18);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}
.btn-outline:hover {
  transform: translateY(-2px) scale(1.01);
  background: rgba(31,111,235,0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  cursor: pointer;
}

/* -------- 5) Hero (banner principal de la página de inicio) -- */
/* -------- 5) Hero (banner principal de la página de inicio) -- */
.hero {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  background-color: #e6e9ee; 
  background-image: url('../Fotos Cati Chapita/Banner@2x.webp');
  background-position: center -65px;
  background-size: cover; 
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  z-index: 1;
}
.hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 40px rgba(0,0,0,0.32);
}
.hero p {
  max-width: 680px;
  margin: 20px auto 30px;
  opacity: 0.96;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 10px 24px rgba(0,0,0,0.28);
  font-size: 1.05rem;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta .btn {
  min-width: 145px;
}

@media (max-width: 860px) {
  .hero {
    min-height: 520px;
    background-position: center top;
  }
  .hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
  }
  .hero p {
    max-width: 90%;
    margin: 16px auto 24px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 520px;
    background-size: 110% auto; 
    background-position: center 10px; 
  }

  .hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-top: 10px;
  }

  .hero p {
    font-size: 0.92rem;
    margin: 12px auto 20px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 520px;
    background-size: contain; 
    background-position: center top; 
    background-color: #ffffff; 
  }
  .hero::before {
    background: rgba(15, 23, 42, 0.25); 
  }
  .hero h1 {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    margin-top: 15px;
  }

  .hero p {
    font-size: 0.88rem;
    padding: 0 10px;
  }
}

/* -------- 6) Secciones gen�ricas ---------------------------- */
.section {
  padding: 72px 0;
}
.section-alt {
  background: #eef4ff;
}
.eyebrow {
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 8px 0 12px;
}
.section-lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
}
.text-center {
  text-align: center;
}

/* -------- 7) Grids (servicios, viajes, valores) ------------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid rgba(229,229,235,0.95);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 61, 145, 0.06), 0 2px 8px rgba(15, 61, 145, 0.04);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(15, 61, 145, 0.12), 0 4px 12px rgba(15, 61, 145, 0.08);
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--warm-soft);
  color: var(--warm);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.card h3 {
  margin-bottom: 6px;
}
.card p {
  color: var(--muted);
  font-size: .95rem;
}

.tour {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(229,229,235,0.95);
  box-shadow: 0 12px 30px rgba(15, 61, 145, 0.06), 0 2px 8px rgba(15, 61, 145, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.tour:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 26px 60px rgba(15, 61, 145, 0.14), 0 6px 18px rgba(15, 61, 145, 0.08);
}
.tour img {
  height: 200px;
  object-fit: cover;
}
.tour-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.tour-region {
  color: var(--warm);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
}
.tour h3 {
  font-size: 1.15rem;
}

.tour-body h3 {
  margin: 0;
  line-height: 1.25;
  min-height: 2.5em;
}

.tour-body p {
  margin: 0;
  line-height: 1.45;
  min-height: 4.4em;
}

.tour-body .gallery-trigger {
  margin-top: auto;
  width: 100%;
}
.tour .meta {
  color: var(--muted);
  font-size: .9rem;
  display: flex;
  gap: 14px;
}
.tour .price {
  margin-top: auto;
  font-family: 'Poppins';
  font-weight: 800;
  color: var(--brand);
  font-size: 1.3rem;
}
.tour .price small {
  color: var(--muted);
  font-weight: 400;
  font-size: .8rem;
}

.rating-widget {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: var(--shadow);
}
.stars {
  color: var(--warm);
  letter-spacing: 2px;
  font-size: 1.05rem;
}
.rating-widget .divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}
.rating-widget button {
  background: none;
  border: 0;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
}
.rating-widget button:hover {
  color: var(--brand-dark);
}

/* -------- 9) Modal (para "Dejar rese�a") -------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15,23,42,0.65);
  display: none;
  place-items: center;
  padding: 20px;
}
.modal:target {
  display: grid;
}
.modal-box {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 460px;
  padding: 28px;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.28);
  position: relative;
}
.modal h3 {
  margin-bottom: 6px;
}
.modal .close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 22px;
  color: var(--muted);
  font-weight: 700;
}

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

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  background: rgba(15, 23, 42, 0.92);
  padding: 24px;
  will-change: opacity, transform;
  transform: translate3d(0, 0, 0);
}
.gallery-modal.is-open {
  display: grid;
  opacity: 1;
}
.gallery-frame {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: calc(100vh - 56px);
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  contain: content;
}
.gallery-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: min(64vh, 700px);
  max-height: calc(100vh - 56px);
  padding: 58px 64px 96px;
  background: #090b12;
  will-change: transform;
  contain: layout paint style;
}
.gallery-image-area,
.lightbox-image-container {
  position: relative;
  width: 100%;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  contain: layout paint;
}
.gallery-image-area.is-loading::after,
.lightbox-image-container.is-loading::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  animation: gallerySpin 0.7s linear infinite;
  pointer-events: none;
  z-index: 2;
}
.gallery-frame img,
.lightbox-image {
  width: auto;
  height: auto;
  max-height: calc(100vh - 260px);
  max-width: min(100%, calc(100vw - 220px));
  object-fit: contain;
  background: #000;
  display: block;
  transform-origin: center center;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: zoom-in;
  user-select: none;
  touch-action: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}
.gallery-nav,
.gallery-close,
.gallery-zoom {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(10, 14, 24, 0.62);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(4px);
}
.gallery-nav {
  transition: background 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-nav,
.gallery-zoom {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  font-size: 2rem;
  display: grid;
  place-items: center;
}
.gallery-nav:hover,
.gallery-close:hover,
.gallery-zoom:hover {
  background: rgba(20, 28, 44, 0.86);
  transform: scale(1.04);
}
.gallery-nav:hover,
.gallery-nav:active {
  transform: translateY(-50%);
}
.gallery-prev {
  position: absolute;
  top: 50%;
  left: 28px;
  margin-left: 0;
  transform: translateY(-50%);
  z-index: 100020;
}
.gallery-next {
  position: absolute;
  top: 50%;
  right: 28px;
  margin-right: 0;
  transform: translateY(-50%);
  z-index: 100020;
}
.gallery-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  z-index: 100020;
  background: rgba(0, 0, 0, 0.7);
}
.gallery-counter {
  position: absolute;
  left: 50%;
  bottom: 20px;
  padding: 6px 14px;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.62);
  font-size: 0.95rem;
  border-radius: 20px;
  z-index: 100015;
  transform: translateX(-50%);
}
.gallery-zoom-controls {
  position: absolute;
  bottom: 14px;
  left: calc(50% + 54px);
  display: flex;
  gap: 10px;
  z-index: 100015;
  align-items: center;
}

@keyframes gallerySpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-height: 760px) {
  .gallery-modal {
    padding: 14px;
  }
  .gallery-frame {
    max-height: calc(100vh - 28px);
  }
  .gallery-content {
    min-height: min(62vh, 600px);
    max-height: calc(100vh - 28px);
    padding: 48px 52px 74px;
  }
  .gallery-frame img,
  .lightbox-image {
    max-height: calc(100vh - 220px);
  }
}

/* Estrellas seleccionables del formulario de rese�a */
.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
  margin-top: 6px;
}
.star-input input {
  display: none;
}
.star-input label {
  font-size: 26px;
  color: #d1d5db;
  cursor: pointer;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: var(--warm);
}

/* -------- 10) Formularios (contacto y rese�a) --------------- */
.form {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(76,175,80,0.35);
  background: rgba(76,175,80,0.12);
  color: #1b5e20;
  font-weight: 600;
  font-size: 0.95rem;
  animation: fadeInSlide 0.35s ease forwards;
}
.form-success.show {
  display: flex;
}
.form-success.error {
  border-color: rgba(229,57,53,0.35);
  background: rgba(229,57,53,0.12);
  color: #b71c1c;
}
.success-icon {
  min-width: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  font-weight: 700;
}
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31,111,235,0.15);
}

.recaptcha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  max-width: 320px;
}
.recaptcha .left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
}
.recaptcha input {
  width: 22px;
  height: 22px;
}
.recaptcha .logo-r {
  text-align: right;
  font-size: .65rem;
  color: var(--muted);
  line-height: 1.1;
}
.recaptcha .logo-r b {
  display: block;
  font-size: .95rem;
  color: var(--text);
  font-family: 'Poppins';
}

/* -------- 11) P�gina "Sobre nosotros" ----------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stats {
  background: var(--brand-dark);
  color: #fff;
  padding: 56px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats .num {
  font-family: 'Poppins';
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--warm);
}
.stats .lbl {
  opacity: .85;
  font-size: .9rem;
}

/* -------- 12) P�gina de contacto (info + mapa) -------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info li {
  list-style: none;
  margin: 10px 0;
  color: #374151;
}
.contact-info li b {
  color: var(--brand);
}
.map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

/* -------- 13) Pie de p�gina --------------------------------- */
.footer {
  background: var(--brand-dark);
  color: #e5edff;
  margin-top: 60px;
}
.footer .cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 56px 0 30px;
}
.footer h4 {
  color: #fff;
  margin-bottom: 12px;
}
.footer a {
  color: #cfe0ff;
}
.footer a:hover {
  color: #fff;
}
.footer .footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.footer .footer-contact-icon {
  flex: 0 0 auto;
  line-height: 1.2;
  margin-top: 0.05rem;
}
.footer .footer-contact-line a {
  overflow-wrap: anywhere;
}
.footer .copy {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 18px 0;
  text-align: center;
  font-size: .85rem;
  color: #bcd0ff;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100005;
  background: rgba(15, 23, 42, 0.97);
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
  display: grid;
  gap: 12px;
  align-items: center;
  animation: slideUp 0.4s ease;
}
.cookie-banner p {
  margin: 0;
  line-height: 1.6;
  color: #e2e8f0;
  font-size: 0.98rem;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-actions button {
  min-width: 132px;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.cookie-accept {
  background: #2563eb;
  color: #fff;
}
.cookie-reject {
  background: transparent;
  color: #cbd5e1;
  border-color: rgba(203, 213, 225, 0.35);
}
.cookie-actions button:hover {
  opacity: 0.94;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------- 14) Dise�o responsivo (m�vil y tablet) ------------ */
@media (max-width: 900px) {
  .grid-3,
  .grid-4,
  .about-grid,
  .contact-grid,
  .stats,
  .footer .cols {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .navbar {
    background: rgba(255,255,255,0.96);
    backdrop-filter: none;
  }
  .gallery-modal {
    padding: 10px;
    overflow: hidden;
  }
  .gallery-frame {
    width: min(94vw, 560px);
    max-width: 94vw;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
  }
  .gallery-content {
    min-height: min(74svh, 640px);
    padding: 56px 14px 78px;
  }
  .gallery-frame img,
  .lightbox-image {
    max-width: 100% !important;
    max-height: min(62svh, 520px) !important;
    border-radius: 8px;
  }
  .gallery-nav {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }
  .gallery-prev {
    left: 10px;
  }
  .gallery-next {
    right: 10px;
  }
  .gallery-zoom-controls {
    display: none;
  }
  .gallery-counter {
    bottom: 12px;
    font-size: 0.9rem;
    left: 50%;
  }
  .gallery-close {
    top: 8px;
    right: 8px;
  }
}
@media (max-width: 640px) {
  .nav-inner {
    justify-content: flex-start;
    gap: 10px;
  }

  .language-switcher {
    order: 2;
    margin-left: auto;
    margin-right: 8px;
  }

  .language-picker__button {
    min-width: 138px;
    font-size: 0.88rem;
  }

  .language-picker__menu {
    min-width: 164px;
  }

  .language-picker__item {
    font-size: 0.86rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 14px;
  }
  .nav-toggle {
    display: block;
    order: 3;
    margin-left: 0;
  }
  #nav-check {
    display: none;
  }
  #nav-check:checked ~ .nav-links {
    display: flex;
  }
  .grid-3,
  .grid-4,
  .about-grid,
  .contact-grid,
  .stats,
  .footer .cols {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 460px;
  }
}
@media (max-width: 600px) {
  .hero {
    min-height: 500px;
    background-position: center 25%;
  }
  .hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }
  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .hero {
    background-size: 102%;
    background-position: center 5% !important;
  }
  .gallery-modal {
    padding: 8px;
  }
  .gallery-frame {
    width: 96vw;
    max-width: 96vw;
    border-radius: 14px;
  }
  .gallery-content {
    min-height: min(70svh, 560px);
    padding: 50px 10px 66px;
  }
  .gallery-nav {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .gallery-prev {
    left: 8px;
  }
  .gallery-next {
    right: 8px;
  }
  .gallery-counter {
    bottom: 10px;
    font-size: 0.82rem;
    padding: 5px 11px;
  }
}

/* -------- 15) Widgets flotantes + utilidades de accesibilidad ---------- */
.vcf-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
  font-family: 'Inter', system-ui, sans-serif;
}
.vcf-stack > * {
  pointer-events: auto;
}
.vcf-cloud {
  position: absolute;
  right: 0;
  bottom: 8rem;
  background: transparent;
  border: none;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
  z-index: 100002;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  will-change: opacity, transform;
}
.vcf-cloud.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.vcf-cloud__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}
.vcf-cloud__list li {
  display: flex;
  margin: 0;
  padding: 0;
}
.vcf-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.1rem;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.vcf-social-link i {
  line-height: 1;
  font-size: 1.1rem;
  color: #ffffff;
}
.vcf-social-link:hover {
  transform: translateY(-1px) scale(1.03);
}
.vcf-social-link:focus-visible {
  outline: 3px solid rgba(251,191,36,0.95);
  outline-offset: 3px;
}
.vcf-social-link--whatsapp { background: #25d366; }
.vcf-social-link--instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.vcf-social-link--facebook  { background: #1877f2; }
.vcf-social-link--email     { background: #ea4335; }
.vcf-social-link--phone     { background: #0f1724; }
.vcf-contact-trigger {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.25rem;
  background: #0b1020;
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.18);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulse 4s ease-in-out infinite;
  will-change: transform;
}
.vcf-contact-trigger:hover {
  transform: translateY(-2px) scale(1.04);
  background: #111827;
}
.vcf-contact-trigger:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}
.vcf-a11y-trigger {
  width: 3.5rem;
  height: 3.5rem;
  border: 3px solid #111111;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.4rem;
  background: #2563eb;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.vcf-a11y-trigger:hover {
  transform: scale(1.06);
  background: #1d4ed8;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

@media (max-width: 480px) {
  .vcf-stack {
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .vcf-social-link {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1rem;
  }
  .vcf-contact-trigger,
  .vcf-a11y-trigger {
    width: 3.15rem;
    height: 3.15rem;
  }
  .vcf-cloud {
    right: 0;
    bottom: 7.5rem;
    z-index: 100002;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }
  .vcf-cloud__list {
    flex-direction: column;
    gap: 0.45rem;
    padding: 0;
    align-items: flex-end;
  }
}

/* Accesibilidad global y modos preferidos */
.a11y-text-lg {
  font-size: 1.15rem !important;
  line-height: 1.8 !important;
}
.a11y-high-contrast {
  background: #000 !important;
  color: #fff !important;
}
.a11y-high-contrast a,
.a11y-high-contrast button,
.a11y-high-contrast input,
.a11y-high-contrast textarea,
.a11y-high-contrast select {
  color: #fff !important;
  border-color: #fff !important;
}
.a11y-grayscale {
  filter: grayscale(100%) !important;
}
.a11y-readable-font {
  font-family: 'Open Sans', Arial, sans-serif !important;
}
.a11y-reduce-motion *,
.a11y-reduce-motion *::before,
.a11y-reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.02);
  }
}
