/* ==========================================================================
   Aquasol — hoja de estilos única. Sin dependencias, sin compilar.
   Todo lo decorativo es CSS y SVG: no hay una sola imagen.
   ========================================================================== */

:root {
  /* Identidad */
  --agua: #0b4f6c;
  --agua-hondo: #083a50;
  --profundidad: #0d2b33;
  --cloro: #2ec4b6;
  --cloro-claro: #6fe0d4;
  --cloro-tinta: #16776e;
  --espuma: #f5fafa;
  --sol: #f2a541;

  --tinta: #0d2b33;
  --tinta-2: #3a5a64;
  --tinta-3: #4a6c76;
  --tinta-4: #64828b;

  --borde: #dce8ea;
  --borde-suave: #eaf2f3;

  --titulo: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --cuerpo: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Elevación en tres niveles: reposo, tarjeta, flotante */
  --sombra-1: 0 1px 2px rgb(11 79 108 / .05), 0 4px 12px -6px rgb(11 79 108 / .12);
  --sombra-2: 0 2px 4px rgb(11 79 108 / .05), 0 14px 34px -14px rgb(11 79 108 / .28);
  --sombra-3: 0 4px 8px rgb(11 79 108 / .06), 0 30px 66px -22px rgb(11 79 108 / .42);

  --suave: cubic-bezier(.22, 1, .36, 1);
  --ancho: 72rem;
  --radio: 1.25rem;
  --radio-lg: 1.75rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--espuma);
  color: var(--tinta);
  font-family: var(--cuerpo);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--titulo); line-height: 1.12; margin: 0; }
a { color: var(--cloro-tinta); }

:focus-visible { outline: 3px solid var(--cloro); outline-offset: 3px; border-radius: 6px; }

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.saltar { position: absolute; left: -9999px; }
.saltar:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--cloro); color: #06302c;
  padding: .75rem 1.25rem; border-radius: .75rem; font-weight: 600;
}

/* ============================================================ encabezado */

.encabezado {
  position: sticky; top: 0; z-index: 50;
  background: rgb(245 250 250 / .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgb(220 232 234 / .8);
}
.encabezado .contenedor {
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.5rem; flex-wrap: wrap;
}

.marca {
  display: flex; align-items: center; gap: .625rem;
  font-family: var(--titulo); font-weight: 700; font-size: 1.3125rem;
  color: var(--agua); text-decoration: none; letter-spacing: -.02em;
}
.marca svg { width: 2rem; height: 2rem; }

.navegacion { display: flex; align-items: center; gap: .125rem; margin-left: auto; flex-wrap: wrap; }
.navegacion a {
  position: relative;
  color: var(--tinta-2); text-decoration: none;
  font-size: .9375rem; font-weight: 500;
  padding: .5rem .875rem; border-radius: .625rem;
  transition: color .2s var(--suave), background-color .2s var(--suave);
}
.navegacion a::after {
  content: ""; position: absolute; left: .875rem; right: .875rem; bottom: .3125rem;
  height: 2px; border-radius: 2px; background: var(--cloro);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--suave);
}
.navegacion a:hover { color: var(--agua); }
.navegacion a:hover::after { transform: scaleX(1); }

/* ================================================================ botones */

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8125rem 1.5rem; border-radius: .9375rem;
  font-family: var(--cuerpo); font-size: .9375rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .22s var(--suave), box-shadow .22s var(--suave),
              background-color .22s var(--suave), border-color .22s var(--suave);
}
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(0); }
.boton svg { width: 1.125rem; height: 1.125rem; flex: none; }

.boton-wa {
  background: linear-gradient(135deg, #2ce06e 0%, #25d366 100%);
  color: #05301a;
  box-shadow: 0 8px 22px -10px rgb(37 211 102 / .9);
}
.boton-wa:hover { box-shadow: 0 14px 32px -12px rgb(37 211 102 / 1); }

.boton-claro {
  background: #fff; color: var(--agua);
  border-color: var(--borde); box-shadow: var(--sombra-2);
}
.boton-claro:hover { border-color: var(--cloro); box-shadow: var(--sombra-3); }

.boton-vidrio {
  background: rgb(255 255 255 / .08);
  color: #fff;
  border-color: rgb(255 255 255 / .28);
  backdrop-filter: blur(6px);
}
.boton-vidrio:hover { background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .5); }

/* ================================================================ portada */

.portada {
  position: relative; isolation: isolate;
  background:
    radial-gradient(620px 320px at 10% 4%, rgb(46 196 182 / .2), transparent 62%),
    radial-gradient(460px 280px at 94% 82%, rgb(46 196 182 / .11), transparent 60%),
    linear-gradient(158deg, #0e5c7c 0%, var(--agua-hondo) 52%, var(--profundidad) 100%);
  color: #fff;
  padding-top: clamp(3rem, 8vw, 5.5rem);
  overflow: hidden;
}

/* Trama sutil de líneas: sugiere andariveles sin dibujarlos literalmente */
.portada::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(
    100deg,
    rgb(255 255 255 / .028) 0 1px,
    transparent 1px 104px
  );
  mask-image: linear-gradient(to bottom, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 85%);
}

.portada-grilla {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .portada-grilla { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
}

.portada-texto { max-width: 34rem; }

.antetitulo {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cloro-claro);
  background: rgb(46 196 182 / .12);
  border: 1px solid rgb(46 196 182 / .3);
  padding: .4375rem .875rem; border-radius: 999px;
  margin-bottom: 1.5rem;
}
.antetitulo::before {
  content: ""; width: .4375rem; height: .4375rem; border-radius: 50%;
  background: var(--cloro); box-shadow: 0 0 0 0 rgb(46 196 182 / .7);
  animation: latido 3.6s ease-out infinite;
}
@keyframes latido {
  0%   { box-shadow: 0 0 0 0 rgb(46 196 182 / .65); }
  70%  { box-shadow: 0 0 0 .375rem rgb(46 196 182 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(46 196 182 / 0); }
}

.portada h1 {
  font-size: clamp(3.75rem, 13vw, 7.5rem);
  font-weight: 700; letter-spacing: -.045em;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #cfeeea 62%, #8fdcd2 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.bajada {
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  line-height: 1.6;
  color: rgb(255 255 255 / .84);
  max-width: 32rem; margin: 0 0 2.25rem;
}

.acciones { display: flex; flex-wrap: wrap; gap: .875rem; }

/* ------------------------------------------------- composición de agua */

.portada-arte {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 15rem;
  margin-inline: auto;
  width: 100%;
  opacity: .85;
}
@media (max-width: 61.99rem) {
  .portada-arte { max-width: 11rem; opacity: .7; }
}

.arte-svg { width: 100%; height: 100%; overflow: visible; }

/* Anillos concéntricos que se expanden como una onda en el agua */
.anillo {
  transform-origin: 130px 130px;
  animation: expandir 9s cubic-bezier(.3, .1, .2, 1) infinite;
  opacity: 0;
}
.anillo-2 { animation-delay: 3s; }
.anillo-3 { animation-delay: 6s; }
@keyframes expandir {
  0%   { transform: scale(.4); opacity: 0; }
  18%  { opacity: .3; }
  100% { transform: scale(1.1); opacity: 0; }
}

/* La superficie del agua dentro del disco, desplazándose muy lento */
.onda-int { animation: correr 26s linear infinite; }
.onda-int-2 { animation: correr 38s linear infinite reverse; }
@keyframes correr {
  from { transform: translateX(0); }
  to   { transform: translateX(-260px); }
}

/* Reflejos de luz sobre el agua */
.caustica { animation: brillar 11s ease-in-out infinite; transform-origin: center; }
.caustica-2 { animation-delay: -5.5s; }
@keyframes brillar {
  0%, 100% { opacity: .07; transform: translateY(0) scaleX(1); }
  50%      { opacity: .2; transform: translateY(-4px) scaleX(1.04); }
}

/* Burbujas que suben */
.burbuja { animation: subir 16s ease-in infinite; opacity: 0; }
.b2 { animation-duration: 21s; animation-delay: -4s; }
.b3 { animation-duration: 13s; animation-delay: -9s; }
.b4 { animation-duration: 24s; animation-delay: -14s; }
.b5 { animation-duration: 18s; animation-delay: -2s; }
@keyframes subir {
  0%   { transform: translateY(28px) scale(.6); opacity: 0; }
  15%  { opacity: .7; }
  85%  { opacity: .5; }
  100% { transform: translateY(-190px) scale(1.05); opacity: 0; }
}

/* Disco flotando apenas */
.disco-flota { animation: flotar 14s ease-in-out infinite; transform-origin: center; }
@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* ---------------------------------------------------- separadores de ola */

.ola { display: block; width: 100%; height: clamp(1.5rem, 3vw, 2.5rem); }
.ola-portada { margin-top: clamp(3rem, 7vw, 5rem); }

/* ============================================================== secciones */

.seccion { position: relative; padding-block: clamp(4rem, 9vw, 6.5rem); }
.seccion-blanca { background: #fff; }
.seccion-espuma { background: var(--espuma); }

.encabezado-seccion { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.etiqueta-seccion {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cloro-tinta); margin-bottom: .875rem;
}

.titulo-seccion {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--agua); letter-spacing: -.03em; margin-bottom: 1rem;
}

.encabezado-seccion p { color: var(--tinta-2); font-size: 1.0625rem; margin: 0; }

/* ============================================================== nosotros */

.nosotros-grilla {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
}
@media (min-width: 60rem) {
  .nosotros-grilla { grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr); }
}

.nosotros-texto p { color: var(--tinta-2); font-size: 1.0625rem; margin: 0 0 1.125rem; }
.nosotros-texto p:last-of-type { margin-bottom: 0; }

/* Primer párrafo con un filete turquesa al costado: le da peso al bloque */
.parrafo-guia {
  border-left: 3px solid var(--cloro);
  padding-left: 1.25rem;
  font-size: 1.1875rem !important;
  color: var(--tinta) !important;
  line-height: 1.6;
}

.rasgos { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 2rem; }
.rasgo {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--borde);
  padding: .5rem .9375rem; border-radius: 999px;
  font-size: .875rem; font-weight: 500; color: var(--tinta-2);
  box-shadow: var(--sombra-1);
}
.rasgo svg { width: 1rem; height: 1rem; color: var(--cloro-tinta); flex: none; }

/* Panel decorativo: agua vista desde arriba */
.panel-agua {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 15rem;
  opacity: .9;
  border-radius: var(--radio-lg);
  overflow: hidden;
  background: linear-gradient(165deg, #12688a 0%, var(--agua) 45%, var(--agua-hondo) 100%);
  box-shadow: var(--sombra-3);
}
@media (max-width: 59.99rem) {
  .panel-agua { aspect-ratio: 16 / 9; max-height: 10rem; }
}

.panel-agua::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgb(255 255 255 / .045) 0 2px,
    transparent 2px 18%
  );
}
.panel-agua::after {
  content: ""; position: absolute; inset: -30%;
  background:
    radial-gradient(closest-side, rgb(111 224 212 / .18), transparent 70%) 20% 30% / 42% 42% no-repeat,
    radial-gradient(closest-side, rgb(111 224 212 / .13), transparent 70%) 78% 68% / 36% 36% no-repeat;
  animation: derivar 24s ease-in-out infinite alternate;
}
@keyframes derivar {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.08); }
}

.panel-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ============================================================== servicios */

.grilla-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.25rem;
}

.tarjeta {
  position: relative; isolation: isolate; overflow: hidden;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.875rem 1.75rem;
  transition: transform .3s var(--suave), box-shadow .3s var(--suave), border-color .3s var(--suave);
}
.seccion-espuma .tarjeta { background: #fff; }

/* Filete superior que se despliega al pasar el mouse */
.tarjeta::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cloro), var(--cloro-claro));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--suave);
}
/* Halo tenue desde arriba */
.tarjeta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(100% 55% at 50% 0%, rgb(46 196 182 / .06), transparent 70%);
  opacity: 0; transition: opacity .35s var(--suave);
}
.tarjeta:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-3);
  border-color: rgb(46 196 182 / .55);
}
.tarjeta:hover::before { transform: scaleX(1); }
.tarjeta:hover::after { opacity: 1; }

.icono {
  position: relative;
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgb(46 196 182 / .18), rgb(11 79 108 / .1));
  color: var(--cloro-tinta);
  margin-bottom: 1.25rem;
  transition: transform .35s var(--suave), background .35s var(--suave), color .35s var(--suave);
}
.icono::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid rgb(46 196 182 / .28);
}
.icono svg { width: 1.5rem; height: 1.5rem; }
.tarjeta:hover .icono {
  transform: translateY(-2px) rotate(-4deg);
  background: linear-gradient(145deg, var(--cloro), var(--cloro-tinta));
  color: #fff;
}

.tarjeta h3 { font-size: 1.1875rem; color: var(--agua); margin-bottom: .5rem; letter-spacing: -.01em; }
.tarjeta p { color: var(--tinta-3); font-size: .9375rem; margin: 0; }

/* =============================================================== contacto */

.grilla-contacto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1.25rem;
}

.dato-contacto {
  display: flex; gap: 1.125rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--borde);
  border-radius: var(--radio); padding: 1.625rem;
  box-shadow: var(--sombra-1);
  transition: transform .3s var(--suave), box-shadow .3s var(--suave), border-color .3s var(--suave);
}
.dato-contacto:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-2);
  border-color: rgb(46 196 182 / .5);
}
.dato-contacto .icono {
  margin-bottom: 0; width: 2.875rem; height: 2.875rem; border-radius: .875rem; flex: none;
}
.dato-contacto:hover .icono {
  transform: none;
  background: linear-gradient(145deg, var(--cloro), var(--cloro-tinta));
  color: #fff;
}
.dato-contacto h3 { font-size: .9375rem; color: var(--tinta-4); font-weight: 600; margin-bottom: .1875rem; letter-spacing: .02em; }
.dato-contacto p, .dato-contacto a {
  margin: 0; font-size: 1.0625rem; font-weight: 500;
  color: var(--agua); text-decoration: none; word-break: break-word;
}
.dato-contacto a:hover { color: var(--cloro-tinta); }

/* -------------------------------------------------------- llamada final */

.llamada {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 1.25rem;
  background:
    radial-gradient(480px 210px at 90% 112%, rgb(46 196 182 / .2), transparent 62%),
    linear-gradient(135deg, #0e5c7c 0%, var(--agua-hondo) 55%, var(--profundidad) 100%);
  border-radius: var(--radio-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.75rem;
  box-shadow: var(--sombra-3);
}
.llamada-svg {
  position: absolute; right: -1.5rem; top: -1.5rem; z-index: -1;
  width: 10rem; height: 10rem; opacity: .28;
  animation: girar 60s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

.llamada h3 { font-size: clamp(1.375rem, 3.4vw, 1.875rem); margin-bottom: .5rem; letter-spacing: -.02em; }
.llamada p { margin: 0; color: rgb(255 255 255 / .8); font-size: 1rem; }

/* ==================================================================== pie */

.pie {
  position: relative;
  background: var(--profundidad);
  color: rgb(255 255 255 / .7);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .9375rem;
}
.pie .marca { color: #fff; margin-bottom: 1rem; }
.pie .marca svg { width: 1.875rem; height: 1.875rem; }

.pie-grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2.5rem; }
.pie h4 {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cloro); margin: 0 0 1rem;
}
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { margin-bottom: .625rem; }
.pie a { color: rgb(255 255 255 / .7); text-decoration: none; transition: color .2s var(--suave); }
.pie a:hover { color: #fff; }
.pie-lema { margin: 0; max-width: 20rem; color: rgb(255 255 255 / .6); }

.pie-abajo {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / .1);
  font-size: .8125rem; color: rgb(255 255 255 / .45);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}

/* ====================================================== botón flotante WA */

.wa-flotante {
  position: fixed; right: 1.125rem; bottom: 1.125rem; z-index: 60;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: linear-gradient(135deg, #2ce06e, #25d366);
  color: #05301a; display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgb(37 211 102 / .8);
  transition: transform .25s var(--suave), box-shadow .25s var(--suave);
}
.wa-flotante::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgb(37 211 102 / .55);
  animation: pulso 4.5s ease-out infinite;
}
@keyframes pulso {
  0%   { transform: scale(1); opacity: .55; }
  70%  { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}
.wa-flotante:hover { transform: scale(1.08); box-shadow: 0 14px 38px -8px rgb(37 211 102 / .95); }
.wa-flotante svg { width: 1.75rem; height: 1.75rem; position: relative; }

@media (min-width: 48rem) {
  .wa-flotante { right: 1.75rem; bottom: 1.75rem; width: 3.75rem; height: 3.75rem; }
}

/* ============================================================== celular */

@media (max-width: 36rem) {
  .contenedor { padding-inline: 1.25rem; }
  .encabezado .contenedor { min-height: 3.875rem; }
  .navegacion { width: 100%; margin-left: 0; padding-bottom: .625rem; gap: 0; }
  .navegacion a { padding: .375rem .625rem; font-size: .875rem; }
  .acciones .boton { flex: 1 1 100%; }
  .llamada { flex-direction: column; align-items: flex-start; }
  .llamada .boton { width: 100%; }
  .parrafo-guia { padding-left: 1rem; }
}

/* ============================================== movimiento reducido: off */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .anillo, .burbuja { opacity: .35; }
  .portada-arte .disco-flota { transform: none; }
}

/* ============================================= transiciones entre bloques */

.transicion { line-height: 0; }
.t-blanca { background: #fff; }
.t-espuma { background: var(--espuma); }
.transicion .ola { height: clamp(1.125rem, 2.2vw, 1.75rem); }

/* Los rasgos van sobre fondo blanco: se tiñen apenas para despegarse */
.seccion-blanca .rasgo { background: var(--espuma); }

/* Los dibujos de agua son fondo, no protagonistas */
.arte-svg { opacity: .82; }
.panel-svg { opacity: .62; }

/* Las ilustraciones de servicios necesitan algo más de aire que los íconos
   de contacto: el cuadrado crece apenas y el dibujo ocupa más superficie. */
.tarjeta .icono { width: 3.5rem; height: 3.5rem; }
.tarjeta .icono svg { width: 2.375rem; height: 2.375rem; }

/* Las cuatro tarjetas usan las ilustraciones provistas como imagen, no como
   SVG: cada una trae su propio fondo celeste, así que el cuadrado le cede el
   suyo y sólo aporta la forma redondeada. */
.tarjeta .icono-imagen,
.tarjeta:hover .icono-imagen { background: #eff8f9; overflow: hidden; }
.tarjeta .icono-imagen img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
