/* ===== Aquofix — estilos ===== */

:root {
  --navy: #0a2e4d;
  --navy-oscuro: #071f35;
  --azul: #1789c9;
  --aqua: #2bb8d9;
  --naranja: #ff7a2f;
  --naranja-oscuro: #f06414;
  --whatsapp: #25d366;
  --texto: #2b3a49;
  --texto-suave: #5e6f80;
  --crema: #fdfbf8;
  --crema-alt: #f7f2ea;
  --borde: #e8e2d8;
  --radio: 18px;
  --sombra: 0 10px 30px rgba(10, 46, 77, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Detalles de marca: selección de texto y barra de scroll */
::selection { background: var(--azul); color: #fff; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #eef4f9; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--azul), var(--navy));
  border-radius: 99px;
  border: 3px solid #eef4f9;
}

html { scroll-behavior: smooth; }

/* Seguro anti-desborde horizontal en móvil (no rompe la cabecera fija) */
body { overflow-x: clip; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--texto);
  background: var(--crema);
  line-height: 1.65;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: 'Outfit', 'Inter', sans-serif;
  line-height: 1.15;
  color: var(--navy);
}

h2 { font-size: 2.3rem; text-align: center; font-weight: 800; }

h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--aqua), var(--naranja));
  margin: 16px auto 0;
}

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

section { scroll-margin-top: 76px; }

/* ===== Cabecera ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 46, 77, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.logo { margin-right: auto; }

/* ===== Selector de idioma ===== */
.idiomas {
  display: flex;
  gap: 4px;
  background: rgba(10, 46, 77, 0.06);
  border: 1px solid rgba(10, 46, 77, 0.1);
  border-radius: 999px;
  padding: 3px;
}

.idioma {
  border: 0;
  background: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--texto-suave);
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.idioma:hover { color: var(--navy); }

.idioma.activo {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 3px 10px rgba(10, 46, 77, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--navy);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.logo-text strong { color: var(--azul); }

.logo-wordmark { height: 30px; width: auto; }

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

.nav a {
  text-decoration: none;
  color: var(--texto);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav a:hover { color: var(--azul); }

/* ===== Botones ===== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.3px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Destello que recorre el botón al pasar el ratón */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn:hover::after { left: 130%; }

.btn:hover { transform: translateY(-3px); filter: brightness(1.06); }

.btn:active { transform: translateY(0); filter: brightness(0.96); }

.btn-primary {
  background: linear-gradient(135deg, var(--naranja) 0%, var(--naranja-oscuro) 100%);
  color: #fff;
  box-shadow:
    0 10px 26px rgba(240, 100, 20, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  box-shadow:
    0 16px 34px rgba(240, 100, 20, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #2bd96e 0%, #1ba94e 100%);
  color: #fff;
  box-shadow:
    0 10px 26px rgba(37, 211, 102, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-whatsapp:hover {
  box-shadow:
    0 16px 34px rgba(37, 211, 102, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-header {
  background: linear-gradient(135deg, var(--naranja) 0%, var(--naranja-oscuro) 100%);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-header svg { width: 16px; height: 16px; }

/* El WhatsApp del menú solo aparece dentro del menú móvil */
.menu-wa { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-oscuro);
  color: #fff;
  padding: 110px 0 150px;
}

/* Foto de fondo con zoom cinematográfico lento */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('images/portada.jpg') center 35% / cover no-repeat;
  animation: kenburns 26s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, rgba(7, 31, 53, 0.95) 0%, rgba(7, 31, 53, 0.85) 45%, rgba(10, 46, 77, 0.55) 100%);
}

.hero > * { position: relative; z-index: 2; }

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

/* Entrada escalonada al cargar la página */
.hero-kicker, .hero h1, .hero-sub, .hero-cta, .escudo {
  animation-name: entrada;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
  animation-fill-mode: both;
}

.hero-kicker { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.22s; }
.hero-sub { animation-delay: 0.34s; }
.hero-cta { animation-delay: 0.48s; }

@keyframes entrada {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-kicker, .hero h1, .hero-sub, .hero-cta, .escudo,
  .isla-flotante, .whatsapp-float, .bajar { animation: none !important; }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 640px) 1fr;
  gap: 48px;
  align-items: center;
}

/* ===== Escudo 3D de garantía ===== */
.escudo {
  justify-self: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  border-radius: 30px;
  padding: 38px 36px 32px;
  max-width: 270px;
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation:
    entrada 0.8s 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both,
    flotar 5.5s 1.5s ease-in-out infinite;
}

.escudo-svg {
  width: 118px;
  height: 138px;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 18px 26px rgba(13, 93, 146, 0.65));
}

.escudo-texto strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1.5px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.escudo-texto span {
  display: block;
  margin-top: 6px;
  color: #bfe2f3;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}

/* ===== Sección "Dónde trabajamos": isla punteada ===== */
.section-zona {
  background: linear-gradient(150deg, var(--navy-oscuro) 0%, var(--navy) 55%, #0e4068 100%);
  overflow: hidden;
}

.zona-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.zona-mapa svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.4));
  animation: flotarIsla 7s ease-in-out infinite;
}

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

.pin-onda {
  fill: none;
  stroke: #ff8a3d;
  stroke-width: 2;
  transform-origin: 88px 115px;
  animation: onda 2.2s ease-out infinite;
}

@keyframes onda {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.section-zona h2 {
  color: #fff;
  text-align: left;
}

.section-zona h2::after { margin-left: 0; }

.section-zona .section-kicker { text-align: left; }

.zona-p {
  color: #b9cfdf;
  font-size: 1.12rem;
  margin: 18px 0 28px;
  max-width: 440px;
}

.hero-kicker {
  display: inline-block;
  background: rgba(43, 184, 217, 0.18);
  border: 1px solid rgba(43, 184, 217, 0.45);
  color: #9adef0;
  padding: 7px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}

.hero .accent {
  background: linear-gradient(90deg, #2bb8d9, #8fdcff, #2bb8d9);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brillo 5s linear infinite;
}

@keyframes brillo {
  to { background-position: 200% center; }
}

.hero-sub {
  font-size: 1.2rem;
  color: #d4e4f0;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }

.hero-note {
  color: #9fc3da;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Flecha animada de "baja a descubrir" */
.bajar {
  position: absolute;
  bottom: 108px;
  left: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: rebotar 2.2s ease-in-out infinite;
}

.bajar svg { width: 22px; height: 22px; }

@keyframes rebotar {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 9px); }
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.hero-wave svg { width: 100%; height: 90px; display: block; }

/* ===== Burbujas del hero ===== */
.burbujas { position: absolute; inset: 0; pointer-events: none; }

.burbujas span {
  position: absolute;
  bottom: -70px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(43, 184, 217, 0.10);
  animation: subir linear infinite;
}

.burbujas span:nth-child(1) { left: 6%;  width: 26px; height: 26px; animation-duration: 12s; }
.burbujas span:nth-child(2) { left: 18%; width: 14px; height: 14px; animation-duration: 9s;  animation-delay: 2s; }
.burbujas span:nth-child(3) { left: 34%; width: 38px; height: 38px; animation-duration: 15s; animation-delay: 4s; }
.burbujas span:nth-child(4) { left: 55%; width: 18px; height: 18px; animation-duration: 10s; animation-delay: 1s; }
.burbujas span:nth-child(5) { left: 70%; width: 30px; height: 30px; animation-duration: 13s; animation-delay: 5s; }
.burbujas span:nth-child(6) { left: 84%; width: 16px; height: 16px; animation-duration: 9s;  animation-delay: 3s; }
.burbujas span:nth-child(7) { left: 93%; width: 24px; height: 24px; animation-duration: 14s; animation-delay: 6s; }

@keyframes subir {
  to { transform: translateY(-115vh); opacity: 0; }
}

/* ===== Franja de confianza ===== */
.stats {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 28px 32px;
  margin-top: -56px;
  position: relative;
  z-index: 5;
}

.stat { display: flex; gap: 14px; align-items: center; }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.stat-icon svg { width: 24px; height: 24px; }

.stat strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.25;
}

.stat span:not(.stat-icon) { color: var(--texto-suave); font-size: 0.88rem; }

/* ===== Secciones ===== */
.section { padding: 90px 0; }

.section-kicker {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--naranja-oscuro);
  margin-bottom: 10px;
}

.section-kicker.light { color: var(--aqua); }

.section-sub {
  text-align: center;
  color: var(--texto-suave);
  max-width: 620px;
  margin: 16px auto 52px;
  font-size: 1.1rem;
}

.section-alt {
  background: linear-gradient(180deg, #eef6fb 0%, #e3f0f8 100%);
}

/* ===== Tarjetas de servicios ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 36px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 3px 14px rgba(10, 46, 77, 0.05);
}

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

.card-featured {
  border-top: 4px solid var(--naranja);
}

.card-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg { width: 30px; height: 30px; }

.icon-blue { background: linear-gradient(135deg, #1789c9, #0d5d92); color: #fff; }
.icon-orange { background: linear-gradient(135deg, #ff8a3d, #f06414); color: #fff; }
.icon-teal { background: linear-gradient(135deg, #2bb8d9, #168aa8); color: #fff; }

.card h3 { margin-bottom: 10px; font-size: 1.3rem; font-weight: 700; }
.card p { color: var(--texto-suave); font-size: 0.98rem; }

/* ===== Particulares y empresas ===== */
.audiencias {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 26px;
}

.audiencia {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(135deg, #f3f9fd 0%, #fdfbf8 100%);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 28px 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.audiencia-icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.audiencia-icon svg { width: 27px; height: 27px; }

.audiencia h3 { font-size: 1.2rem; margin-bottom: 6px; }
.audiencia p { color: var(--texto-suave); font-size: 0.96rem; }

/* ===== Trabajos: antes y después ===== */
.works {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
  max-width: 760px;
  margin: 0 auto;
}

.work {
  background: #fff;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(10, 46, 77, 0.12);
  transition: transform 0.18s ease;
}

.work:hover { transform: translateY(-4px); }

.work-single { position: relative; overflow: hidden; }

.work-single img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.work:hover .work-single img { transform: scale(1.04); }

.tag {
  position: absolute;
  bottom: 14px;
  background: rgba(7, 31, 53, 0.88);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.tag-antes { left: 14px; }
.tag-despues { left: calc(50% + 14px); background: var(--naranja-oscuro); }
.tag-instalacion { left: 14px; background: linear-gradient(135deg, var(--aqua), var(--azul)); }

.work-caption {
  padding: 18px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  text-align: center;
}

/* ===== Cómo trabajamos ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}

/* Línea que conecta los pasos */
.steps::before {
  content: '';
  position: absolute;
  top: 54px;
  left: 5%;
  right: 5%;
  border-top: 2px dashed rgba(23, 137, 201, 0.4);
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 30px 24px;
  box-shadow: 0 3px 14px rgba(10, 46, 77, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.step:hover { transform: translateY(-5px); box-shadow: var(--sombra); }

.step-num {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--azul));
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(23, 137, 201, 0.35);
}

.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--texto-suave); font-size: 0.94rem; }

/* ===== Animación de aparición ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: none; }

/* ===== Por qué Aquofix ===== */
.section-dark {
  background: linear-gradient(150deg, var(--navy-oscuro) 0%, var(--navy) 55%, #0e4068 100%);
}

.section-dark h2 { color: #fff; }

/* Rótulo gigante de marca al fondo */
#nosotros { position: relative; overflow: hidden; }

#nosotros::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 1000px);
  height: 150px;
  background: url('images/wordmark.png') center / contain no-repeat;
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
  opacity: 0.06;
  pointer-events: none;
}

#nosotros .container { position: relative; }

.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.reason {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 28px 30px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.reason:hover {
  transform: translateY(-5px);
  border-color: rgba(43, 184, 217, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(43, 184, 217, 0.12);
}

.reason-num {
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.reason-icon {
  background: linear-gradient(135deg, var(--aqua), var(--azul));
  border-radius: 14px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 137, 201, 0.45);
}

.reason-icon svg { width: 26px; height: 26px; }

.reason h3 { font-size: 1.15rem; margin-bottom: 5px; color: #fff; }
.reason p { color: #b9cfdf; font-size: 0.96rem; }


/* ===== Preguntas frecuentes ===== */
.faq-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 96px;
}

#faq .section-kicker,
#faq h2 { text-align: left; }

#faq h2::after { margin-left: 0; }

#faq .section-sub {
  text-align: left;
  margin: 16px 0 30px;
  max-width: none;
}

.faq-cta {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 28px;
  box-shadow: 0 3px 14px rgba(10, 46, 77, 0.06);
}

.faq-cta strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  color: var(--navy);
}

.faq-cta p {
  color: var(--texto-suave);
  font-size: 0.95rem;
  margin: 8px 0 20px;
}

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(10, 46, 77, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq details[open] {
  border-color: rgba(23, 137, 201, 0.4);
  box-shadow: var(--sombra);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  transition: color 0.2s ease;
}

.faq details[open] summary { color: var(--azul); }

.faq summary::-webkit-details-marker { display: none; }

.faq-mas {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(240, 100, 20, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--naranja-oscuro);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.faq details[open] .faq-mas {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--naranja), var(--naranja-oscuro));
  color: #fff;
}

.faq details > p {
  padding: 0 60px 22px 24px;
  color: var(--texto-suave);
}

.faq details[open] > p { animation: aparecerFaq 0.35s ease; }

@keyframes aparecerFaq {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ===== Pide tu presupuesto ===== */
.section-presupuesto {
  background: linear-gradient(150deg, #0e4068 0%, var(--navy) 50%, var(--navy-oscuro) 100%);
}

.presu {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 38px 36px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
}

.presu fieldset {
  border: 0;
  margin-bottom: 28px;
}

.presu legend,
.presu-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 16px;
}

.presu-num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--aqua), var(--azul));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 5px 12px rgba(23, 137, 201, 0.4);
}

.presu-label span span { font-weight: 500; font-size: 0.88rem; color: #9fc3da; }

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #dfeefb;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip svg { width: 26px; height: 26px; opacity: 0.9; }

.chip:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.chip.activo {
  border-color: var(--naranja);
  background: rgba(255, 122, 47, 0.16);
  color: #fff;
  box-shadow: 0 12px 26px rgba(240, 100, 20, 0.28);
}

.chip.activo svg { color: #ffb27e; opacity: 1; }

.chip.activo::after {
  content: '✓';
  position: absolute;
  top: 7px;
  right: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--naranja);
}

.presu textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #fff;
  resize: vertical;
  margin-bottom: 26px;
  transition: border-color 0.15s ease;
}

.presu textarea::placeholder { color: rgba(255, 255, 255, 0.45); }

.presu textarea:focus {
  outline: none;
  border-color: var(--aqua);
}

.presu-enviar {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  min-width: 280px;
}

.presu-nota {
  text-align: center;
  color: #9fc3da;
  font-size: 0.88rem;
  margin-top: 16px;
}

/* ===== Contacto ===== */
.section-contact { background: var(--crema); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 34px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 3px 14px rgba(10, 46, 77, 0.06);
}

.contact-card:hover { transform: translateY(-5px); box-shadow: var(--sombra); }

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: #fff;
}

.contact-icon svg { width: 27px; height: 27px; }

.contact-tel .contact-icon { background: linear-gradient(135deg, var(--naranja), var(--naranja-oscuro)); }
.contact-wa .contact-icon { background: var(--whatsapp); }
.contact-mail .contact-icon { background: linear-gradient(135deg, var(--azul), #0d5d92); }

.contact-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  color: var(--texto-suave);
  font-weight: 700;
}

.contact-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

/* ===== Pie ===== */
.footer { background: #fff; border-top: 1px solid var(--borde); }

.footer-brand {
  text-align: center;
  padding: 44px 20px 36px;
  color: var(--texto-suave);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-logo {
  height: 130px;
  width: auto;
  margin: 0 auto 10px;
}

.footer-bar {
  background: var(--navy-oscuro);
  color: #8fb0c7;
  font-size: 0.88rem;
  padding: 16px 0;
  text-align: center;
}

/* ===== WhatsApp flotante ===== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  z-index: 60;
  animation: pulso 2.4s infinite;
  transition: transform 0.15s ease;
}

.whatsapp-float svg { width: 32px; height: 32px; }

.whatsapp-float:hover { transform: scale(1.1); }

@keyframes pulso {
  0% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Enlace "saltar al contenido" (accesibilidad) ===== */
.saltar {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 12px 22px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
  text-decoration: none;
}

.saltar:focus { left: 0; }

/* ===== Imágenes mantienen su proporción mientras cargan ===== */
.work-single img { height: auto; }
.footer-logo { height: 130px; width: auto; }

/* ===== Barra de progreso de lectura ===== */
.progreso {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--aqua), var(--naranja));
  border-radius: 0 99px 99px 0;
  z-index: 100;
}

/* ===== Manchas de color difuminadas (profundidad) ===== */
#servicios, #proceso, #faq { position: relative; overflow: hidden; }

#servicios::before {
  content: '';
  position: absolute;
  top: -130px;
  right: -130px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 184, 217, 0.18), transparent 70%);
  pointer-events: none;
}

#servicios::after {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -160px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 47, 0.12), transparent 70%);
  pointer-events: none;
}

#proceso::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 47, 0.13), transparent 70%);
  pointer-events: none;
}

#faq::after {
  content: '';
  position: absolute;
  bottom: -140px;
  right: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 184, 217, 0.16), transparent 70%);
  pointer-events: none;
}

/* ===== Visor de fotos a pantalla completa ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 18, 30, 0.93);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  animation: aparecer 0.25s ease;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  cursor: zoom-out;
}

.lightbox-cerrar {
  position: absolute;
  top: 14px;
  right: 22px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}

@keyframes aparecer {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Sombra de la cabecera al hacer scroll ===== */
.header.con-sombra { box-shadow: 0 10px 28px rgba(10, 46, 77, 0.14); }

/* ===== Accesibilidad con teclado ===== */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== Menú móvil (botón de tres rayas) ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.burger span {
  width: 24px;
  height: 3px;
  background: var(--navy);
  border-radius: 99px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.abierto span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.abierto span:nth-child(2) { opacity: 0; }
.burger.abierto span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Barra fija de contacto en móvil ===== */
.mobile-bar { display: none; }

/* ===== Móvil ===== */
@media (max-width: 820px) {
  .hero { padding: 76px 0 116px; }
  .hero h1 { font-size: 1.95rem; letter-spacing: 0; overflow-wrap: break-word; }
  .hero-sub { font-size: 1.05rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { min-width: 0; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .bajar { display: none; }
  .steps::before { display: none; }
  .escudo { padding: 30px 28px 26px; max-width: 240px; }
  .escudo-svg { width: 96px; height: 112px; }
  .escudo-texto strong { font-size: 1.7rem; }
  .zona-inner { grid-template-columns: 1fr; gap: 36px; }
  .faq-inner { grid-template-columns: 1fr; gap: 8px; }
  .faq-intro { position: static; margin-bottom: 26px; }
  #faq .section-kicker, #faq h2 { text-align: center; }
  #faq h2::after { margin-left: auto; }
  #faq .section-sub { text-align: center; margin: 14px auto 28px; }
  .faq-cta { text-align: center; }
  .zona-mapa svg { max-width: 320px; }
  .section-zona h2, .section-zona .section-kicker { text-align: center; }
  .section-zona h2::after { margin-left: auto; }
  .zona-texto { text-align: center; }
  .zona-p { margin-left: auto; margin-right: auto; }
  h2 { font-size: 1.8rem; }
  .cards, .contact-grid, .reasons, .steps, .stats, .audiencias { grid-template-columns: 1fr; }
  .stats { margin-top: -42px; padding: 22px 24px; }
  .nav a:not(.btn-header) { display: none; }
  .presu { padding: 28px 22px; }
  .idioma { padding: 5px 7px; font-size: 0.72rem; }
  .logo-wordmark { height: 18px; }
  .header-inner { gap: 10px; }
  /* Fuera el botón de teléfono de la cabecera en móvil */
  .btn-header { display: none; }
  .idiomas { display: none; }
  .section { padding: 60px 0; }
  .footer-logo { height: 100px; }

  .burger { display: flex; position: relative; z-index: 60; }

  /* Cabecera transparente con el menú abierto */
  .header.menu-open {
    background: transparent;
    backdrop-filter: none;
    border-color: transparent;
    z-index: 60;
  }
  .header.menu-open .logo { position: relative; z-index: 60; }
  .header.menu-open .logo-wordmark { filter: brightness(0) invert(1); }
  .header.menu-open .burger span { background: #fff; }

  body.sin-scroll { overflow: hidden; }

  /* Menú a pantalla completa con el azul de la marca */
  .nav.open {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: linear-gradient(160deg, var(--navy-oscuro) 0%, var(--navy) 60%, #0e4068 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 80px 24px 40px;
    animation: menuAparece 0.3s ease;
  }

  @keyframes menuAparece {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .nav.open a:not(.btn-header) {
    display: block;
    width: 100%;
    max-width: 340px;
    text-align: center;
    padding: 18px 4px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav.open a:not(.btn-header)::after { display: none; }

  .nav.open .idiomas {
    display: flex;
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .nav.open .idioma { color: #cfe3f2; }
  .nav.open .idioma.activo { background: #fff; color: var(--navy); }

  body { padding-bottom: 56px; }
  .whatsapp-float { display: none; }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  }

  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
  }

  .mobile-bar a svg { width: 19px; height: 19px; }

  .mb-tel { background: linear-gradient(135deg, var(--naranja), var(--naranja-oscuro)); }
  .mb-wa { background: var(--whatsapp); }
}

/* ============================================
   PASE PREMIUM: lenguaje visual unificado
   (el mismo tratamiento del formulario,
   aplicado a toda la web)
   ============================================ */

/* Todas las tarjetas reaccionan igual: se elevan,
   el borde se enciende y aparece un halo de marca */
.card:hover,
.audiencia:hover,
.step:hover,
.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 137, 201, 0.45);
  box-shadow:
    0 18px 40px rgba(10, 46, 77, 0.16),
    0 0 0 1px rgba(23, 137, 201, 0.10);
}

.work:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 48px rgba(10, 46, 77, 0.2),
    0 0 0 1px rgba(23, 137, 201, 0.12);
}

/* Halo de color bajo todos los medallones de iconos */
.icon-blue { box-shadow: 0 8px 18px rgba(23, 137, 201, 0.4); }
.icon-orange { box-shadow: 0 8px 18px rgba(240, 100, 20, 0.4); }
.icon-teal { box-shadow: 0 8px 18px rgba(43, 184, 217, 0.4); }
.contact-card .contact-icon { box-shadow: 0 10px 22px rgba(10, 46, 77, 0.28); }

/* Los iconos saludan al pasar el ratón */
.card-icon,
.audiencia-icon,
.stat-icon,
.contact-icon,
.reason-icon {
  transition: transform 0.18s ease;
}

.card:hover .card-icon,
.audiencia:hover .audiencia-icon,
.stat:hover .stat-icon,
.contact-card:hover .contact-icon,
.reason:hover .reason-icon {
  transform: scale(1.08) rotate(-3deg);
}

/* Filo degradado de marca en la franja de confianza */
.stats {
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--aqua), var(--azul), var(--naranja));
}

/* Pie de foto de los trabajos, separado con un filo fino */
.work-caption { border-top: 1px solid var(--borde); }

/* Filo degradado también en el arranque del pie de página */
.footer {
  border-top: 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--aqua), var(--azul), var(--naranja));
}

/* ============================================
   EXPERIENCIA: apertura, cinta y foco de luz
   ============================================ */

/* Apertura de cortina al entrar */
.splash {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: linear-gradient(160deg, var(--navy-oscuro) 0%, var(--navy) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: transform 0.7s cubic-bezier(0.7, 0, 0.3, 1);
}

.splash.fuera { transform: translateY(-100%); }

.splash-gota {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 10px 24px rgba(43, 184, 217, 0.5));
  animation: caerGota 0.8s cubic-bezier(0.45, 0, 1, 1) both;
}

@keyframes caerGota {
  from { opacity: 0; transform: translateY(-120px); }
  60% { opacity: 1; }
  to { opacity: 1; transform: translateY(0); }
}

.splash-onda {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(43, 184, 217, 0.6);
  border-radius: 50%;
  opacity: 0;
  animation: ondaSplash 1s ease-out 0.75s both;
}

@keyframes ondaSplash {
  from { opacity: 1; transform: scale(0.5); }
  to { opacity: 0; transform: scale(14); }
}

/* Las letras AQUOFIX se llenan de luz como un líquido */
.splash-palabra {
  position: relative;
  animation: entrada 0.4s ease 0.5s both;
}

.splash-palabra img {
  height: 44px;
  width: auto;
  display: block;
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
}

.palabra-fondo { opacity: 0.14; }

.palabra-llena {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
  animation: llenar 1.25s cubic-bezier(0.3, 0.1, 0.3, 1) 0.7s forwards;
  filter: invert(1) hue-rotate(180deg) drop-shadow(0 0 20px rgba(63, 198, 228, 0.5));
}

@keyframes llenar {
  to { clip-path: inset(0 0 0 0); }
}

/* Destello final recorriendo las letras ya llenas */
.splash-palabra::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: skewX(-20deg) translateX(-140%);
  mix-blend-mode: screen;
  animation: brilloPalabra 0.55s ease-in 1.95s forwards;
}

@keyframes brilloPalabra {
  to { transform: skewX(-20deg) translateX(140%); }
}

/* Cinta de servicios en movimiento continuo */
.cinta {
  overflow: hidden;
  padding: 46px 0 8px;
}

.cinta-pista {
  display: flex;
  white-space: nowrap;
  animation: rodar 32s linear infinite;
}

.cinta-pista span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 1px;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(23, 137, 201, 0.4);
}

@keyframes rodar {
  to { transform: translateX(-50%); }
}

/* Foco de luz que sigue al ratón en secciones oscuras */
#nosotros, #presupuesto, #zona { position: relative; }

#nosotros::after,
#presupuesto::after,
#zona::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    440px at var(--mx, 50%) var(--my, 40%),
    rgba(43, 184, 217, 0.10),
    transparent 70%
  );
}

#nosotros::after { z-index: 0; }

@media (prefers-reduced-motion: reduce) {
  .splash, .cinta-pista { animation: none !important; }
  .hero-wave animate { display: none; }
}

/* ============================================
   CABECERA VIVA Y APERTURA MEJORADA
   ============================================ */

/* La cabecera se compacta al hacer scroll */
.header-inner { transition: height 0.25s ease; }
.logo-img { transition: height 0.25s ease; }
.logo-wordmark { transition: height 0.25s ease; }

.header.con-sombra .header-inner { height: 58px; }
.header.con-sombra .logo-wordmark { height: 24px; }

/* Subrayado animado y sección activa en el menú */
.nav a:not(.btn-header) {
  position: relative;
  padding: 4px 0;
}

.nav a:not(.btn-header)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2.5px;
  width: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--aqua), var(--naranja));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:not(.btn-header):hover::after,
.nav a.activo::after { transform: scaleX(1); }

.nav a.activo { color: var(--azul); }

/* La línea bajo los títulos brilla en bucle */
h2::after {
  background: linear-gradient(90deg, var(--aqua), var(--naranja), var(--aqua));
  background-size: 200% auto;
  animation: brillo 4s linear infinite;
}

/* ===== Apertura mejorada ===== */

/* La gota cae con física: se estira al caer y rebota al aterrizar */
.splash-gota {
  animation: caerGota 0.95s cubic-bezier(0.45, 0, 0.6, 1) both;
}

@keyframes caerGota {
  0% { opacity: 0; transform: translateY(-150px) scaleY(1.25) scaleX(0.85); }
  60% { opacity: 1; transform: translateY(0) scaleY(1.2) scaleX(0.88); }
  74% { transform: translateY(0) scaleY(0.82) scaleX(1.18); }
  88% { transform: translateY(0) scaleY(1.06) scaleX(0.96); }
  100% { transform: translateY(0) scale(1); }
}

/* Doble onda al aterrizar */
.splash-onda { animation: ondaSplash 1.1s ease-out 0.8s both; }
.splash-onda2 { animation: ondaSplash 1.1s ease-out 1.05s both; }

/* Burbujas subiendo de fondo */
.splash-burbujas { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.splash-burbujas span {
  position: absolute;
  bottom: -50px;
  border-radius: 50%;
  border: 1.5px solid rgba(43, 184, 217, 0.25);
  background: rgba(43, 184, 217, 0.07);
  animation: subir linear infinite;
}

.splash-burbujas span:nth-child(1) { left: 12%; width: 22px; height: 22px; animation-duration: 5s; }
.splash-burbujas span:nth-child(2) { left: 30%; width: 12px; height: 12px; animation-duration: 4s; animation-delay: 0.6s; }
.splash-burbujas span:nth-child(3) { left: 55%; width: 28px; height: 28px; animation-duration: 6s; animation-delay: 0.3s; }
.splash-burbujas span:nth-child(4) { left: 74%; width: 14px; height: 14px; animation-duration: 4.5s; animation-delay: 1s; }
.splash-burbujas span:nth-child(5) { left: 88%; width: 20px; height: 20px; animation-duration: 5.5s; animation-delay: 0.2s; }

/* Barra de progreso bajo la marca */
.splash-barra {
  width: 150px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  animation: entrada 0.4s ease 0.9s both;
}

.splash-barra i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--aqua), var(--naranja));
  animation: cargar 1.25s cubic-bezier(0.3, 0.1, 0.3, 1) 0.7s forwards;
}

@keyframes cargar {
  to { width: 100%; }
}

/* Ola que cuelga del borde inferior al levantarse la cortina */
.splash-cola {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 70px;
  width: 100%;
}

/* ===== Cabecera a todo lo ancho: logo al borde izquierdo ===== */
.header-inner {
  max-width: none;
  padding: 0 30px;
}

@media (max-width: 820px) {
  .header-inner { padding: 0 16px; }
}

/* ============================================
   COMPACTAR PARA MÓVIL / iPHONE (≤560px)
   Reduce tamaños y espacios en toda la web
   ============================================ */
@media (max-width: 560px) {
  /* Portada */
  .hero { padding: 54px 0 60px; }
  .hero-kicker { font-size: 0.8rem; padding: 6px 14px; margin-bottom: 14px; }
  .hero h1 { font-size: 1.62rem; line-height: 1.15; margin-bottom: 13px; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 20px; }
  .hero-inner { gap: 22px; }
  .hero-cta { gap: 10px; margin-bottom: 14px; }
  .btn { padding: 13px 22px; font-size: 0.95rem; }

  /* Escudo de garantía: más pequeño */
  .escudo { padding: 20px 20px 16px; max-width: 200px; border-radius: 20px; }
  .escudo-svg { width: 64px; height: 76px; margin-bottom: 9px; }
  .escudo-texto strong { font-size: 1.35rem; }
  .escudo-texto span { font-size: 0.78rem; }

  /* Secciones y títulos */
  .section { padding: 40px 0; }
  h2 { font-size: 1.5rem; }
  h2::after { height: 4px; width: 50px; margin-top: 11px; }
  .section-kicker { font-size: 0.72rem; letter-spacing: 2px; margin-bottom: 7px; }
  .section-sub { font-size: 0.95rem; margin: 11px auto 26px; }

  /* Franja de confianza */
  .stats { padding: 15px 16px; gap: 13px; margin-top: -32px; border-radius: 14px; }
  .stat { gap: 11px; }
  .stat-icon { width: 40px; height: 40px; border-radius: 11px; }
  .stat-icon svg { width: 20px; height: 20px; }
  .stat strong { font-size: 0.96rem; }
  .stat span:not(.stat-icon) { font-size: 0.82rem; }

  /* Cinta de servicios */
  .cinta { padding: 28px 0 2px; }
  .cinta-pista span { font-size: 1.1rem; }

  /* Tarjetas de servicios */
  .cards { gap: 13px; }
  .card { padding: 22px 20px; }
  .card-icon { width: 50px; height: 50px; border-radius: 14px; margin-bottom: 13px; }
  .card-icon svg { width: 26px; height: 26px; }
  .card h3 { font-size: 1.12rem; }
  .card p { font-size: 0.92rem; }

  /* Particulares y empresas */
  .audiencias { gap: 13px; margin-top: 14px; }
  .audiencia { padding: 18px 18px; gap: 14px; }
  .audiencia-icon { width: 48px; height: 48px; }
  .audiencia h3 { font-size: 1.1rem; }

  /* Trabajos */
  .works { gap: 20px; }
  .work-caption { padding: 13px 16px; font-size: 0.93rem; }

  /* Isla / zona */
  .section-zona { }
  .zona-inner { gap: 22px; }
  .zona-mapa svg { max-width: 230px; }
  .zona-p { font-size: 0.98rem; margin: 14px auto 22px; }

  /* Por qué confiar */
  .reasons { gap: 13px; margin-top: 28px; }
  .reason { padding: 18px 20px; gap: 14px; border-radius: 14px; }
  .reason-icon { width: 46px; height: 46px; }
  .reason h3 { font-size: 1.08rem; }
  .reason p { font-size: 0.92rem; }
  .reason-num { font-size: 1.7rem; top: 14px; right: 18px; }

  /* Cómo trabajamos */
  .steps { gap: 13px; }
  .step { padding: 20px 20px; }
  .step-num { width: 42px; height: 42px; font-size: 1.1rem; margin-bottom: 12px; }
  .step h3 { font-size: 1.05rem; }

  /* Presupuesto */
  .presu { padding: 22px 16px; border-radius: 18px; }
  .presu legend, .presu-label { font-size: 1rem; margin-bottom: 13px; }
  .chips { gap: 9px; }
  .chip { padding: 13px 6px 11px; font-size: 0.83rem; gap: 8px; }
  .chip svg { width: 22px; height: 22px; }
  .presu textarea { padding: 13px; margin-bottom: 20px; }

  /* Preguntas frecuentes */
  .faq-cta { padding: 22px; }
  .faq-cta strong { font-size: 1.1rem; }
  .faq summary { padding: 15px 16px; font-size: 0.96rem; gap: 12px; }
  .faq-mas { width: 28px; height: 28px; font-size: 1.15rem; }
  .faq details > p { padding: 0 16px 18px; font-size: 0.92rem; }

  /* Contacto */
  .contact-grid { gap: 13px; }
  .contact-card { padding: 24px 18px; }
  .contact-icon { width: 52px; height: 52px; }
  .contact-value { font-size: 1.12rem; }

  /* Pie */
  .footer-brand { padding: 30px 20px 24px; }
  .footer-logo { height: 78px; }
  .footer-bar { font-size: 0.82rem; }

  /* Pantalla de carga: marca un poco más pequeña */
  .splash-palabra img { height: 34px; }
  .splash-gota { width: 50px; height: 50px; }
}

/* ============================================
   MÓVIL v2: más densidad, menos scroll (≤560px)
   ============================================ */
@media (max-width: 560px) {
  /* Secciones más juntas */
  .section { padding: 32px 0; }
  .section-sub { margin: 10px auto 20px; }

  /* Hero más bajo */
  .hero { padding: 48px 0 50px; }
  .hero-inner { gap: 16px; }
  .escudo { max-width: 180px; padding: 16px 16px 13px; }
  .escudo-svg { width: 54px; height: 64px; margin-bottom: 7px; }
  .escudo-texto strong { font-size: 1.2rem; }
  .escudo-texto span { font-size: 0.74rem; }

  /* Tarjetas de contacto MUCHO más compactas (fila: icono + texto) */
  .contact-card {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 16px;
    text-align: left;
  }
  .contact-icon { width: 42px; height: 42px; margin-bottom: 0; flex-shrink: 0; }
  .contact-icon svg { width: 19px; height: 19px; }
  .contact-label { font-size: 0.66rem; }
  .contact-value { font-size: 1rem; }

  /* Menos hueco entre tarjetas en general */
  .cards, .audiencias, .works, .reasons, .steps, .contact-grid, .faq { gap: 11px; }
  .stats { gap: 10px; padding: 14px 14px; }

  /* Pasos un poco más bajos */
  .step { padding: 16px 18px; }
  .step-num { width: 38px; height: 38px; font-size: 1rem; margin-bottom: 9px; }

  /* Animaciones de aparición más rápidas y sutiles en móvil */
  .reveal { transform: translateY(16px); transition-duration: 0.4s; }
}
