/* ═══════════════════════════════════════════════════════════
   APARTAMENTO EL RINCÓN — Hoja de estilos principal
   Paleta: crema, tostado, verde oliva, terracota, blanco roto
   Tipografía: Cormorant Garamond (títulos) + DM Sans (cuerpo)
═══════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
  --cream:      #f5f0e8;
  --cream-dark: #ede6d6;
  --white-warm: #faf8f4;
  --brown-light:#c4a882;
  --brown:      #9a7b5a;
  --brown-dark: #6b533a;
  --olive:      #7a8c6e;
  --olive-dark: #5e6d54;
  --terracotta: #c4714a;
  --terracotta-dark: #a85a35;
  --sienna:     #b87333;
  --text-dark:  #2c2418;
  --text-mid:   #5a4a35;
  --text-light: #8a7a65;
  --shadow-sm:  0 2px 8px rgba(44,36,24,0.08);
  --shadow-md:  0 8px 32px rgba(44,36,24,0.12);
  --shadow-lg:  0 16px 48px rgba(44,36,24,0.16);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: 0.3s ease;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── TIPOGRAFÍA ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }

p { font-size: 1rem; color: var(--text-mid); }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background-color: var(--cream); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.section-title {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ─── BOTONES ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--terracotta);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,113,74,0.35);
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn-full { width: 100%; justify-content: center; }

/* ─── ANIMACIONES SCROLL ─────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── NAVEGACIÓN ─────────────────────────────────────────── */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 1.1rem 0;
}

.nav-header.scrolled {
  background: rgba(250,248,244,0.97);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 160px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition), height var(--transition);
}
.nav-logo:hover .nav-logo-img { opacity: 0.85; }

/* Logo negro: oculto en hero, visible al hacer scroll */
.nav-logo-dark {
  display: none;
}

.nav-header.scrolled .nav-logo-dark {
  display: block;
  height: 120px;
  mix-blend-mode: multiply;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-header.scrolled .nav-link { color: var(--text-mid); }
.nav-header.scrolled .nav-link:hover { color: var(--text-dark); background: var(--cream); }

.nav-cta {
  background-color: var(--terracotta) !important;
  color: #fff !important;
  padding: 0.45rem 1.1rem !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background-color: var(--terracotta-dark) !important; }

/* Hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-header.scrolled .nav-toggle span { background: var(--text-dark); }

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fallback de color mientras carga la imagen real */
  background-color: var(--brown-dark);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(44,36,24,0.55) 0%,
    rgba(44,36,24,0.35) 60%,
    rgba(44,36,24,0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 1rem;
}

.hero-title {
  color: #fff;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-title em {
  font-style: italic;
  color: var(--brown-light);
}

.hero-logo {
  width: clamp(220px, 45vw, 480px);
  height: auto;
  object-fit: contain;
  margin-bottom: 1.4rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── CARACTERÍSTICAS RÁPIDAS ────────────────────────────── */
.apt-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.apt-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  font-weight: 500;
}
.apt-feature i { color: var(--terracotta); font-size: 0.9rem; }

/* ─── GALERÍA ────────────────────────────────────────────── */
.gallery-section { display: flex; flex-direction: column; gap: 2.5rem; }

.gallery-group-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.gallery {
  display: grid;
  gap: 10px;
}

/* 2 columnas iguales */
.gallery-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 260px;
}

/* 3 columnas iguales */
.gallery-3 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px;
}

/* 4 fotos: principal grande a la izquierda + 3 pequeñas a la derecha */
.gallery-4 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 190px 190px;
}
.gallery-4 .gallery-main {
  grid-row: 1 / 3;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--cream-dark);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  background-color: var(--cream-dark);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.8rem;
  background: linear-gradient(transparent, rgba(44,36,24,0.55));
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

.gallery-zoom {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-dark);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-zoom { opacity: 1; }

/* ─── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(20,16,10,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2rem;
  color: rgba(255,255,255,0.7);
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color var(--transition);
  z-index: 3001;
}
.lightbox-close:hover { color: #fff; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  z-index: 3001;
}
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.18); color: #fff; }

.lightbox-caption {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.lightbox-counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* ─── SERVICIOS ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white-warm);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--terracotta);
}

.service-card h3 { color: var(--text-dark); font-family: var(--font-sans); font-size: 1rem; font-weight: 500; }
.service-card p  { font-size: 0.9rem; color: var(--text-light); margin-top: 0.3rem; }

/* ─── LOS PEDROCHES ──────────────────────────────────────── */
.pedroches-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.pedroches-text .section-title { text-align: left; margin-top: 0.5rem; }
.pedroches-text .section-label { text-align: left; }

.pedroches-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
}

.pedroches-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pedroches-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-mid);
  font-weight: 400;
}
.pedroches-list i { color: var(--olive); font-size: 0.95rem; width: 16px; }

.pedroches-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 420px;
}

.pedroches-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: none;
  display: block;
}

/* ─── RESERVAS ───────────────────────────────────────────── */
.lodgify-wrapper { max-width: 800px; margin: 0 auto; }

.booking-fallback {
  background: var(--white-warm);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.booking-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--text-mid);
}
.booking-note i { color: var(--terracotta); font-size: 1.1rem; flex-shrink: 0; }

.booking-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

input, textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  border: 1.5px solid var(--cream-dark);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196,113,74,0.12);
}
textarea { resize: vertical; min-height: 100px; }
input[type="date"] { color-scheme: light; }

/* ─── OPINIONES ──────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--white-warm);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.review-stars { font-size: 1rem; letter-spacing: 0.1em; }

.review-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-dark);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--brown-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.review-author strong { display: block; font-size: 0.9rem; color: var(--text-dark); }
.review-author span   { font-size: 0.8rem; color: var(--text-light); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer { background-color: var(--text-dark); color: rgba(255,255,255,0.8); }

.footer-main { padding: 4rem 0 3rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  /* Si el logo es oscuro y no se ve bien sobre el footer negro,
     descomenta esta línea para invertirlo a blanco:
     filter: brightness(0) invert(1); */
}

.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--terracotta); color: #fff; }

.footer-contact h4,
.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 1.25rem;
}

.footer-contact ul,
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.footer-contact i { color: var(--terracotta); margin-top: 0.15rem; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: #fff; }
.footer-contact span { color: rgba(255,255,255,0.7); }

.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: #fff; }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
}
.footer-legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-legal p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.legal-btn {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  transition: color var(--transition);
}
.legal-btn:hover { color: #fff; }

/* ─── MODALES ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(44,36,24,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--white-warm);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--text-light);
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.modal-close:hover { color: var(--text-dark); background: var(--cream); }

.modal-box h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}
.modal-box p { font-size: 0.95rem; color: var(--text-mid); margin-bottom: 0.75rem; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* ─── TABLET (≤ 900px) ───────────────────────────────────── */
@media (max-width: 900px) {
  .pedroches-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pedroches-text .section-title { font-size: 2rem; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }

  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ─── MÓVIL (≤ 680px) ────────────────────────────────────── */
@media (max-width: 680px) {
  /* Nav */
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100dvh;
    width: min(300px, 80vw);
    background: var(--white-warm);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    box-shadow: -8px 0 32px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    z-index: 999;
  }
  .nav-menu.open { right: 0; }

  .nav-link {
    color: var(--text-mid);
    padding: 0.75rem 0;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 1rem;
  }
  .nav-link:hover { background: transparent; color: var(--text-dark); }
  .nav-cta { background-color: var(--terracotta) !important; margin: 1.5rem 0 0 !important; border-radius: 4px !important; padding: 0.65rem 1.5rem !important; }

  /* Hero */
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Galería */
  .gallery-2 { grid-template-rows: 200px; }
  .gallery-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px; }
  .gallery-4 .gallery-main { grid-row: 1; grid-column: 1 / -1; }

  /* Servicios */
  .services-grid { grid-template-columns: 1fr; }

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

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .footer-legal-inner { flex-direction: column; text-align: center; }
}

/* ─── MÓVIL PEQUEÑO (≤ 420px) ───────────────────────────── */
@media (max-width: 420px) {
  .gallery-2,
  .gallery-3,
  .gallery-4 { grid-template-columns: 1fr; grid-template-rows: unset; }
  .gallery-4 .gallery-main { grid-column: 1; grid-row: auto; }
  .gallery-item { height: 200px; }

  .apt-features { flex-direction: column; align-items: stretch; }
  .apt-feature { justify-content: center; }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
