/* =================================================================
   RESET & VARIABLES GLOBALES
   ================================================================= */
*{
  box-sizing: border-box;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: var(--fondo);
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-x: none;
}

:root{
  --primario:   #1F2937;
  --secundario: #F97316;
  --fondo:      #F9FAFB;
}

input, textarea, button {
  font-size: 16px;
  font-family: Inter, sans-serif;
}

/* =================================================================
   HEADER (fijo arriba)
   ================================================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  z-index: 1000;
  overflow: hidden;
  will-change: padding, transform;
  transition:
    padding .5s cubic-bezier(.22,.61,.36,1),
    box-shadow .5s cubic-bezier(.22,.61,.36,1),
    transform .5s cubic-bezier(.22,.61,.36,1);
}

header.shrink {
  padding: 12px 32px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

/* ── Logo ── */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primario);
  flex-shrink: 0;
}

.logo-container img     { width: 160px; }
.logo-container strong  { font-size: 25px; }

.logo-container img,
.logo-container strong,
nav,
nav a,
.whatsapp-btn,
.whatsapp-btn img {
  transition: all .5s cubic-bezier(.22,.61,.36,1);
}

header.shrink .logo-container img    { width: 125px; }
header.shrink .logo-container strong { font-size: 18px; }

/* ── Nav ── */
nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--primario);
  font-weight: 600;
  font-size: 20px;
}

header.shrink nav a { font-size: 16px; }

/* ── Botón WhatsApp ── */
.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: white;
  padding: 16px 30px;
  border-radius: 45px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.whatsapp-btn img {
  width: 40px;
  height: 40px;
}

header.shrink .whatsapp-btn {
  padding: 12px 22px;
  font-size: 16px;
  border-radius: 32px;
}

header.shrink .whatsapp-btn img {
  width: 26px;
  height: 26px;
}

/* =================================================================
   HERO / CARRUSEL
   ================================================================= */
.hero {
  margin-top: 110px;
  height: 70vh;
  height: 70svh;
  position: relative;
  overflow: hidden;
  width: 100%;
  transform: translateZ(0);
}

.slider {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 1s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  backface-visibility: hidden;
  will-change: transform;
}

.slide.active {
  animation: kenburnsOut 5s ease forwards;
}

@keyframes kenburnsOut {
  from { transform: scale(1.25); }
  to   { transform: scale(1); }
}

@media (max-width: 1024px) {
  .slide,
  .slide.active {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  z-index: 3;
}

.hero-content h1 {
  font-family: Poppins;
  font-size: clamp(26px, 5vw, 48px);
}

.hero-content p {
  font-size: clamp(15px, 2.5vw, 20px);
}

/* =================================================================
   SECCIONES GENERALES
   ================================================================= */
section {
  padding: 80px 20px;
  scroll-margin-top: 120px;
}

h2 {
  font-family: Poppins;
  font-size: clamp(26px, 4vw, 44px);
  text-align: center;
  margin-bottom: 50px;
}

/* =================================================================
   SERVICIOS
   ================================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.service-card {
  position: relative;
  background: white;
  padding: 42px 32px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.188);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 6px;
  background: var(--secundario);
  border-radius: 20px 20px 0 0;
}

.service-card h3 {
  font-family: Poppins;
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--primario);
}

.service-card p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #4B5563;
}

/* =================================================================
   GALERÍA
   ================================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: transform .4s ease, box-shadow .4s ease;
}

/* ══════════════════════════════════════════════════════════════════
   HOVER SOLO EN DISPOSITIVOS CON CURSOR (PC)
   En móviles/tablets táctiles no se aplica el hover
   ══════════════════════════════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
  .gallery img:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
  }
}

/* =================================================================
   MODAL GALERÍA
   
   Estructura:
     .modal
       .modal-close          ← X esquina superior derecha
       .modal-content        ← contenedor de imagen + flechas
         .modal-arrow.prev   ← flecha izquierda
         img#modal-img
         .modal-arrow.next   ← flecha derecha
       .modal-counter        ← contador "x / total"
   ================================================================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal.active { display: flex; }

/* contenedor de imagen + flechas */
.modal-content {
  position: relative;
  max-width: 85vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform .35s ease, opacity .3s ease;
  -webkit-user-drag: none;
  user-select: none;
  touch-action: pan-x pan-y;
}

.modal-content img.zoom {
  transform: scale(1.6);
  cursor: zoom-out;
}

/* animación de entrada de imagen */
.modal-content img.fade-in {
  animation: modalFadeIn .3s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* botón cerrar — respecto a .modal (pantalla completa) */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: background .25s ease, transform .2s ease;
}

.modal-close:hover { 
  background: rgba(255,255,255,.25); 
  transform: scale(1.1);
}

/* ══════════════════════════════════════════════════════════════════
   FLECHAS DE NAVEGACIÓN
   ══════════════════════════════════════════════════════════════════ */
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background .25s ease, transform .2s ease, opacity .3s ease;
  user-select: none;
  -webkit-user-select: none;
}

.modal-arrow:hover { 
  background: rgba(255,255,255,.3); 
  transform: translateY(-50%) scale(1.1);
}

.modal-arrow:active {
  transform: translateY(-50%) scale(.95);
}

/* ocultar flechas cuando no corresponde */
.modal-arrow.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* posición de flechas en DESKTOP — fuera de la imagen */
.modal-arrow.prev { left:  -70px; }
.modal-arrow.next { right: -70px; }

/* ══════════════════════════════════════════════════════════════════
   CONTADOR DE FOTOS
   Posición: abajo a la derecha (como pediste)
   ══════════════════════════════════════════════════════════════════ */
.modal-counter {
  position: absolute;
  bottom: 24px;
  right: 28px;
  z-index: 10;
  color: rgba(255,255,255,.9);
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  background: rgba(0,0,0,.45);
  padding: 8px 18px;
  border-radius: 25px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════════════
   MODAL — TABLETS (max 900px)
   Flechas dentro/sobre la imagen
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .modal-content {
    max-width: 94vw;
    max-height: 75vh;
  }
  .modal-content img { max-height: 75vh; }

  .modal-arrow { 
    width: 44px; 
    height: 44px; 
    font-size: 20px; 
    background: rgba(0,0,0,.5); 
  }
  .modal-arrow:hover { background: rgba(0,0,0,.65); }
  
  /* flechas sobre la imagen */
  .modal-arrow.prev { left:  12px; }
  .modal-arrow.next { right: 12px; }

  .modal-counter {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   MODAL — MÓVILES (max 600px)
   Flechas más pequeñas, swipe habilitado via JS
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .modal-content {
    max-width: 96vw;
    max-height: 70vh;
  }
  
  .modal-content img { 
    max-height: 70vh; 
    border-radius: 8px;
  }
  
  .modal-content img.zoom { transform: scale(1.4); }

  .modal-arrow { 
    width: 40px; 
    height: 40px; 
    font-size: 18px;
    background: rgba(0,0,0,.55);
  }
  .modal-arrow.prev { left:  8px; }
  .modal-arrow.next { right: 8px; }

  .modal-close { 
    top: 16px; 
    right: 16px; 
    width: 42px; 
    height: 42px; 
    font-size: 24px; 
  }
  
  .modal-counter { 
    bottom: 16px; 
    font-size: 13px;
    padding: 6px 14px;
  }
}

/* =================================================================
   CONTACTO
   ================================================================= */
.contacto-wrapper {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contacto-info {
  background: #F3F8FF;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.contacto-titulo {
  font-family: Poppins;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 18px;
}

.contacto-texto {
  font-size: 16px;
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 22px;
}

.contacto-datos p   { font-size: 17px; margin-bottom: 14px; }
.contacto-datos span { font-weight: 600; }
.contacto-datos a    { text-decoration: none; color: var(--primario); }

.contact-box {
  background: white;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-family: Inter;
}

.contact-box input:focus,
.contact-box textarea:focus {
  outline: none;
  border-color: var(--secundario);
}

.contact-box textarea { min-height: 120px; }

.contact-box button {
  width: 100%;
  padding: 18px;
  border: none;
  background: var(--secundario);
  color: white;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.contact-box button:hover { background: #ea580c; }


/* =================================================================
   FOOTER
   ================================================================= */
footer {
  background: var(--primario);
  color: white;
  text-align: center;
  padding: 30px;
}

.footer {
  background: var(--primario);
  padding: 22px 30px;
}

.footer-inner {
  max-width: 100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer-copy {
  grid-column: 2;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

.footer-legal {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-legal a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: .85;
  transition: opacity .25s ease;
}

.footer-legal a:hover { opacity: 1; text-decoration: underline; }
.footer-legal span    { color: #fff; opacity: .6; }

/* =================================================================
   BACK TO TOP
   ================================================================= */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 56px;
  background: var(--secundario);
  color: white;
  border: none;
  border-radius: 70px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: .4s ease;
  z-index: 3000;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =================================================================
   BOTÓN VOLVER
   ================================================================= */
.btn-volver {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 24px;
  background: var(--primario);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background .3s;
}

.btn-volver:hover { background: #111827; }

/* =================================================================
   MENSAJES DEL FORMULARIO
   ================================================================= */
.msg {
  display: none;
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  animation: slideFade .6s ease forwards;
}

.msg-ok    { background: #e6f9f0; color: #0f7a4a; border: 1px solid #0f7a4a; }
.msg-error { background: #fdecea; color: #b00020; border: 1px solid #b00020; }

@keyframes slideFade {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =================================================================
   LOADER DEL BOTÓN ENVIAR
   ================================================================= */
#btnEnviar { position: relative; }

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

#btnEnviar.loading .btn-text   { display: none; }
#btnEnviar.loading .btn-loader { display: inline-block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =================================================================
   TOAST
   ================================================================= */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  min-width: 280px;
  max-width: 90%;
  padding: 16px 24px;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  box-shadow: 0 15px 40px rgba(0,0,0,.25);
  transition: opacity .6s ease, transform .6s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { background: linear-gradient(135deg, #0f7a4a, #16a34a); }
.toast.error   { background: linear-gradient(135deg, #b00020, #dc2626); }

/* =================================================================
   RESEÑAS WALLAPOP
   ================================================================= */

#resenas {
  background: #F9FAFB;
  padding: 80px 20px;
}

.resenas-subtitulo {
  text-align: center;
  font-size: 16px;
  color: #5F6368;
  margin-top: -30px;
  margin-bottom: 50px;
}

.resenas-subtitulo a {
  color: var(--secundario);
  text-decoration: none;
  font-weight: 600;
  transition: color .3s ease;
}

.resenas-subtitulo a:hover {
  color: #ea580c;
  text-decoration: underline;
}

/* ── Contenedor principal ── */
.resenas-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 70px;
}

/* ── Slider ── */
.resenas-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0 20px 0;
  -webkit-overflow-scrolling: touch;
}

.resenas-slider::-webkit-scrollbar {
  display: none;
}

/* ── Card estilo Google ── */
.resena-card {
  min-width: 280px;
  max-width: 280px;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  transition: box-shadow .3s ease, transform .3s ease;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.resena-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,.15), 0 2px 4px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

/* ── Estrellas (arriba) ── */
.resena-stars {
  font-size: 16px;
  color: #FBBC04;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* ── Texto de reseña ── */
.resena-text {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #3C4043 !important;
  margin: 0 0 8px 0 !important;
  flex: 1 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

/* Cuando está expandido */
.resena-text.expanded {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}

/* ── Botón "Leer más" ── */
.resena-readmore {
  background: none;
  border: none;
  color: #1967D2;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  text-align: left;
  font-family: Inter, sans-serif;
  transition: color .2s ease;
}

.resena-readmore:hover {
  color: #1557b0;
  text-decoration: underline;
}

/* ── Footer (avatar + nombre abajo) ── */
.resena-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #E8EAED;
}

/* ── Avatar circular gris ── */
.resena-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E8EAED;
  flex-shrink: 0;
  position: relative;
}

/* Inicial dentro del avatar */
.resena-avatar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%235F6368' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.resena-info {
  flex: 1;
  min-width: 0;
}

.resena-name {
  font-size: 14px;
  font-weight: 500;
  color: #3C4043;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resena-time {
  font-size: 12px;
  color: #5F6368;
  margin: 0;
}

/* ── Flechas de navegación ── */
.resena-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  color: #5F6368;
  font-size: 18px;
  cursor: pointer;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resena-arrow:hover {
  background: #F8F9FA;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  color: #202124;
}

.resena-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.resena-arrow.prev { left: 6px; }
.resena-arrow.next { right: 6px; }

/* ── Responsive — Tablets ── */
@media (max-width: 900px) {
  .resenas-container {
    padding: 0 60px;
  }

  .resena-card {
    min-width: 260px;
    max-width: 260px;
  }

  .resena-arrow {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}

/* ── Responsive — Móviles ── */
@media (max-width: 768px) {
  #resenas {
    padding: 60px 16px;
  }

  .resenas-container {
    padding: 0 10px;
  }

  .resena-card {
    min-width: 270px;
    max-width: 270px;
    padding: 18px;
  }

  /* Ocultar flechas en móvil */
  .resena-arrow {
    display: none;
  }

  .resenas-subtitulo {
    font-size: 14px;
    margin-bottom: 35px;
  }
}

/* ── Móviles pequeños ── */
@media (max-width: 480px) {
  .resena-card {
    min-width: 250px;
    max-width: 250px;
  }

  .resena-text {
    font-size: 13px;
  }
}

/* =================================================================
   RESPONSIVE — TABLETS (max 900px)
   ================================================================= */
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}

/* =================================================================
   RESPONSIVE — MÓVILES (max 768px)
   ================================================================= */
@media (max-width: 768px) {

  /* ── HEADER: columna vertical centrada ── */
  header {
    flex-direction: column;
    align-items: center;
    padding: 14px 18px;
    transition:
      transform .4s cubic-bezier(.22,.61,.36,1),
      box-shadow .4s cubic-bezier(.22,.61,.36,1);
  }

  header.shrink {
    padding: 14px 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    transform: none;
  }

  /* ── Logo ── */
  .logo-container {
    transition:
      max-height .4s cubic-bezier(.22,.61,.36,1),
      opacity .3s ease,
      margin .4s cubic-bezier(.22,.61,.36,1);
    max-height: 60px;
    opacity: 1;
    overflow: hidden;
  }

  .logo-container img    { width: 120px; }
  .logo-container strong { font-size: 18px; white-space: nowrap; }

  header.shrink .logo-container {
    max-height: 0;
    opacity: 0;
    margin: 0;
  }

  header.shrink .logo-container img    { width: 120px; }
  header.shrink .logo-container strong { font-size: 18px; }

  /* ── Nav ── */
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    transition:
      max-height .4s cubic-bezier(.22,.61,.36,1),
      opacity .3s ease,
      margin .4s cubic-bezier(.22,.61,.36,1);
    max-height: 80px;
    opacity: 1;
    overflow: hidden;
  }

  nav a {
    margin: 0 10px;
    font-size: 14px;
  }

  header.shrink nav {
    max-height: 0;
    opacity: 0;
    margin: 0;
  }

  header.shrink nav a { font-size: 14px; }

  /* ── WhatsApp ── */
  .whatsapp-btn {
    margin-top: 12px;
    min-height: 44px;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 30px;
    gap: 8px;
    transition:
      margin .4s cubic-bezier(.22,.61,.36,1),
      padding .3s ease,
      transform .3s ease;
  }

  .whatsapp-btn img {
    width: 22px;
    height: 22px;
  }

  header.shrink .whatsapp-btn {
    margin-top: 0;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 30px;
  }

  header.shrink .whatsapp-btn img {
    width: 22px;
    height: 22px;
  }

  /* ── Secciones ── */
  section { padding: 60px 16px; }

  h2 { font-size: 30px; margin-bottom: 35px; }

  /* ── Servicios ── */
  .services { grid-template-columns: 1fr; gap: 22px; }
  .service-card { padding: 32px 22px; }

  /* ── Galería ── */
  .gallery img { height: 200px; }

  /* ── Contacto ── */
  .contacto-wrapper { grid-template-columns: 1fr; gap: 30px; }
  .contacto-info,
  .contact-box { padding: 28px; }

  /* ── Back to top ── */
  #backToTop {
    right: 20px;
    bottom: 80px;
    padding: 16px 18px;
    font-size: 14px;
    z-index: 2000;
  }

  /* ── Toast en móvil ── */
  .toast {
    left: 16px;
    right: 16px;
    transform: translateY(20px);
  }
  .toast.show {
    transform: translateY(0);
  }

  /* ── Footer legal ── */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
  .footer-copy  { grid-column: 1; }
  .footer-legal {
    grid-column: 1;
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =================================================================
   RESPONSIVE — MÓVILES PEQUEÑOS (max 480px)
   ================================================================= */
@media (max-width: 480px) {

  .hero { height: 45vh; height: 45svh; }

  .hero-content h1 { font-size: 26px; }
  .hero-content p  { font-size: 15px; }

  h2 { font-size: 26px; }

  .logo-container strong { font-size: 14px; white-space: nowrap; }

  nav a { font-size: 12px; margin: 0 8px; }

  .whatsapp-btn {
    font-size: 13px;
    padding: 8px 16px;
    min-height: 44px;
  }

  .gallery img { height: 180px; }

  .contact-box input,
  .contact-box textarea { padding: 14px; font-size: 15px; }

  .contact-box button { padding: 16px; font-size: 16px; }

  footer { padding: 22px 15px; font-size: 14px; }
}

/* =================================================================
   RESPONSIVE — (max 600px)
   ================================================================= */
@media (max-width: 600px) {
  .hero { height: 60vh; height: 60svh; }
  .hero-content h1 { font-size: 32px; }
  .services { grid-template-columns: 1fr; }
}
