:root {
  /* Paleta real de clearpoolandgardenservice.com (Divi) */
  --mar: #244c5a;       /* teal 900 - profundo */
  --mar-2: #285f76;     /* teal 800 */
  --agua: #30A8C0;      /* teal 500 - marca */
  --agua-2: #46a9c3;    /* teal 400 - claro */
  --arena: #e9f2f4;     /* tinta teal claro */
  --olivo: #25D366;     /* verde WhatsApp */
  --sol: #46a9c3;       /* teal claro (resaltado) */
  --agua-hero: #6ad0e6; /* turquesa claro, legible sobre la foto del hero */
  --espuma: #f5f9fa;    /* blanco frío */
  --tinta: #2d2d2d;
  --muted: #666666;
  --line: rgba(36, 76, 90, 0.14);

  --display: "Montserrat", system-ui, sans-serif;
  --body: "Open Sans", system-ui, sans-serif;

  --maxw: 1120px;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(12, 59, 74, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--tinta);
  background: var(--espuma);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--mar);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
}
.skip-link:focus { left: 16px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--agua);
  margin: 0 0 14px;
}
/* Sobre la foto va casi blanco: es texto pequeno y el turquesa de marca
   se confundia con el agua del fondo. */
.eyebrow-light { color: rgba(255, 255, 255, 0.94); }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn:focus-visible { outline: 3px solid var(--sol); outline-offset: 2px; }

.btn-sol { background: var(--agua); color: #ffffff; }
.btn-sol:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(48, 168, 192, 0.9); }

.btn-dark { background: var(--mar); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Solo se usa sobre la foto del hero: el velo oscuro y el borde mas marcado
   lo separan del agua, que es clara y muy texturada. */
.btn-ghost { background: rgba(12, 38, 48, 0.30); color: #fff; border-color: rgba(255, 255, 255, 0.65); }
.btn-ghost:hover { background: rgba(12, 38, 48, 0.48); border-color: #fff; }

.btn-whatsapp { background: #25D366; color: #06341a; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(37, 211, 102, 0.9); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 249, 250, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--mar);
  margin-right: auto;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.nav { display: flex; gap: 26px; }
.nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--tinta);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--agua);
  transition: width 0.2s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { width: 100%; }

.header-cta { padding: 10px 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--espuma);
  padding: clamp(64px, 12vw, 128px) 0 0;
}
.hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -25%;
  height: 150%;
  /* La 1a linea es el respaldo para navegadores sin image-set().
     Generadas desde fondo2.jpg (el original de 4096px se conserva sin usar). */
  background-image: url("fondo2-web.jpg?v=2");
  background-image: image-set(
    url("fondo2-web.avif?v=2") type("image/avif"),
    url("fondo2-web.jpg?v=2") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 47, 58, 0.32) 0%, rgba(18, 47, 58, 0.52) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  /* 980px (antes 760) para que el H1 largo entre en dos lineas en escritorio
     cortando por "...jardines / en Javea...", que es el corte natural. */
  max-width: 980px;
  /* Sin capas sobre la foto: la legibilidad se apoya solo en la sombra de las
     propias letras, que se hereda a todo el texto del hero. */
  text-shadow: 0 1px 2px rgba(8, 30, 38, 0.62), 0 2px 10px rgba(8, 30, 38, 0.45);
}
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  /* El titular paso de 23 a 62 caracteres: baja el tamano y sube el interlineado,
     que a 0.98 se amontonaba al ocupar varias lineas. */
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0 0 20px;
}
.hero-title .hl {
  color: var(--agua-hero);
  position: relative;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  /* El texto de apoyo tambien es mas largo que el anterior. */
  max-width: 620px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--agua-hero);
}
.hero-facts span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.88); }

/* La ola queda pegada al borde inferior del hero: el relleno del path se
   extiende por debajo del viewBox, así que solo se mueve la cresta. */
.waterline { position: relative; display: block; line-height: 0; margin-top: 56px; margin-bottom: -1px; }
.waterline svg { width: 100%; height: 70px; display: block; }
.waterline svg path {
  fill: var(--espuma);
  transform-box: view-box;
  transform-origin: center;
  will-change: transform;
  animation: waveBob 4.5s ease-in-out infinite alternate;
}
@keyframes waveBob {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 110px) 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-lead a { color: var(--agua); font-weight: 600; text-underline-offset: 3px; }
.section-lead a:hover { color: var(--mar); }

/* ---------- Services ---------- */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(48, 168, 192, 0.12);
  color: var(--agua);
  margin-bottom: 18px;
}
.service-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0 0 10px;
}
.service-card p { margin: 0 0 16px; color: var(--muted); font-size: 0.96rem; }
.service-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--agua);
  font-size: 0.92rem;
}
.service-link:hover { color: var(--mar); }
/* Extiende el area clicable a toda la tarjeta manteniendo un unico enlace,
   que es lo que anuncia el lector de pantalla. */
.service-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.service-card:focus-within { box-shadow: var(--shadow); }
.service-link:focus-visible { outline: none; }
.service-card:has(.service-link:focus-visible) { outline: 3px solid var(--agua); outline-offset: 3px; }
/* Enlace de las tarjetas que llevan a una pagina propia, no al formulario. */
.service-link-page { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Quote band ---------- */
.quote-band {
  /* Esta seccion no lleva la clase .section, asi que necesita su propio
     relleno vertical. Algo mas ajustado que una seccion normal: es una
     banda de llamada a la accion, no un bloque de contenido. */
  padding: clamp(56px, 8vw, 88px) 0;
  background: var(--arena);
  background-image:
    radial-gradient(circle at 12% 20%, rgba(48, 168, 192, 0.20), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(70, 169, 195, 0.24), transparent 46%);
}
.quote-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.quote-copy { max-width: 640px; }
.quote-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 14px;
}
.quote-text { margin: 0; color: var(--tinta); font-size: 1.05rem; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
/* :not(.eyebrow) evita pisar el color y el margen del rotulo de seccion,
   que tambien es un <p> y perderia contra este selector por especificidad. */
.about-copy p:not(.eyebrow) { color: var(--muted); margin: 0 0 16px; }
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.stat {
  background: var(--mar);
  color: var(--espuma);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--sol);
}
.stat-label { font-size: 0.92rem; color: rgba(248, 245, 239, 0.8); }

/* ---------- Zone ---------- */
.zone {
  background: var(--espuma);
  background-image: radial-gradient(circle at 88% 12%, rgba(48, 168, 192, 0.16), transparent 46%);
}
.zone-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.zone-places { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.zone-place {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.zone-place:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.zone-pin {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(48, 168, 192, 0.12);
  color: var(--agua);
}
.zone-place h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0 0 5px;
  color: var(--mar);
}
.zone-place p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.zone-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.zone-map svg { width: 100%; height: auto; display: block; }
.zone-map-label {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  fill: var(--mar);
}

.zone-more { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.zone-more-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--mar);
  margin: 0 0 16px;
}
.zone-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.zone-chips li {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--mar);
}
.zone-chips li:nth-child(odd) { background: rgba(48, 168, 192, 0.1); }
.zone-note { margin: 18px 0 0; font-size: 0.98rem; color: var(--muted); }
.zone-note a { color: var(--agua); font-weight: 600; text-underline-offset: 3px; }
.zone-note a:hover { color: var(--mar); }

/* ---------- Contact ---------- */
.contact { background: var(--arena); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-lead { color: var(--muted); margin: 0 0 26px; }
.contact-list-wrap { font-style: normal; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; font-weight: 500; }
/* El texto se centra dentro de los mismos 40px que ocupa el icono, asi que
   las lineas de una sola fila quedan a su altura. Las de varias lineas
   superan los 40px y siguen alineadas por arriba, como debe ser.
   De paso, el enlace gana 40px de alto de area tactil en movil. */
.contact-list li > :not(.contact-ico) {
  min-height: 40px;
  display: flex;
  align-items: center;
}
.contact-list a { text-decoration: none; font-weight: 600; color: var(--mar); }
.contact-list a:hover { color: var(--agua); }
.contact-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: #fff;
  color: var(--agua);
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--tinta); }
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--tinta);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--espuma);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--agua);
  box-shadow: 0 0 0 3px rgba(48, 168, 192, 0.2);
}
.field textarea { resize: vertical; }
.form-note { margin: 0; font-size: 0.9rem; font-weight: 500; min-height: 1.2em; }
.form-note.ok { color: var(--olivo); }
.form-note.err { color: #b23b3b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mar); color: rgba(248, 245, 239, 0.82); padding: 48px 0; }
.footer-inner { display: grid; gap: 22px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand .brand-logo-light { filter: brightness(0) invert(1); height: 46px; }
.footer-brand p { margin: 0; max-width: 320px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-heading {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.55);
  margin: 0 0 10px;
}
.footer-services ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-services a { text-decoration: none; font-weight: 500; }
.footer-services a:hover { color: #fff; }
.footer-services [aria-current="page"] { color: rgba(248, 245, 239, 0.5); }
.footer-legal { margin: 0; font-size: 0.85rem; color: rgba(248, 245, 239, 0.6); border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; }

/* ---------- CTA flotante de WhatsApp ---------- */
.whatsapp-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  place-items: center;
  background: #25D366;
  color: #06341a;
  box-shadow: 0 10px 24px -8px rgba(6, 52, 26, 0.6);
}
.whatsapp-fab:focus-visible { outline: 3px solid var(--mar); outline-offset: 3px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .waterline svg path { animation: none; }
}

/* ---------- Landings de servicio ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--mar) 0%, var(--mar-2) 100%);
  color: var(--espuma);
  padding: clamp(36px, 6vw, 64px) 0 clamp(52px, 8vw, 88px);
}
.breadcrumb { margin: 0 0 20px; font-size: 0.85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; opacity: 0.6; }
.breadcrumb a { color: rgba(255, 255, 255, 0.88); }
.breadcrumb [aria-current] { color: rgba(255, 255, 255, 0.62); }
.page-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0 0 18px;
  max-width: 900px;
}
.page-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 0 30px;
}
.section-alt { background: var(--arena); }

.prose { max-width: 760px; }
.prose p { color: var(--muted); margin: 0 0 16px; }
.prose strong { color: var(--tinta); }
.prose h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--mar);
  margin: 28px 0 10px;
}
.check-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--muted); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--agua);
  border-bottom: 2.5px solid var(--agua);
  transform: rotate(-45deg);
}
.prose-cta { margin: 26px 0 0; }
/* .prose p gana por especificidad (0,1,1) a los parrafos con clase propia
   (0,1,0) y les anula el margen superior. Estas dos reglas se lo devuelven. */
.prose .zone-note { margin: 26px 0 0; }
.prose .prose-cta { margin: 30px 0 0; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--mar);
  cursor: pointer;
  padding: 16px 32px 16px 0;
  position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2.5px solid var(--agua);
  border-bottom: 2.5px solid var(--agua);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item summary:focus-visible { outline: 3px solid var(--agua); outline-offset: 3px; }
.faq-item p { margin: 0 0 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner,
  .zone-layout,
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  /* El SVG se deforma (preserveAspectRatio="none"): al estrecharse la pantalla
     la onda se comprime en horizontal y parece mas pronunciada. Se compensa
     bajando la altura. */
  .waterline svg { height: 52px; }
}
@media (max-width: 680px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 6px; }
  .nav { order: 3; width: 100%; justify-content: center; gap: 18px; }
  .header-cta { display: none; }
  .whatsapp-fab { display: grid; }
  .service-grid { grid-template-columns: 1fr; }
  .quote-inner { flex-direction: column; align-items: flex-start; }
  .quote-inner .btn { width: 100%; justify-content: center; }
  .waterline { margin-top: 40px; }
  .waterline svg { height: 34px; }
}
