/* Typography */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');
/* Global layout */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--body);
  background: var(--white);
  font-family: 'DM Sans',Arial,sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
}
.container {
  width: min(1180px,calc(100% - 44px));
  margin-inline: auto;
}
.topbar {
  background: var(--forest);
  color: var(--on-dark);
  font-size: 13px;
  letter-spacing: .01em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}
.topbar strong {
  color: var(--lime);
  font-weight: 800;
}
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper-alt) 94%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--forest) 9%, transparent);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand {
  display: flex;
  align-items: center;
  width: 286px;
  flex: 0 0 auto;
}
/* Logotipo en línea: sus colores siguen palette.css. */
.brand {
  gap: 11px;
}
.brand-symbol {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
}
.brand-symbol-bg {
  fill: var(--lime);
}
.brand-symbol-wave {
  fill: none;
  stroke: var(--forest);
  stroke-width: 4.5;
  stroke-linecap: round;
}
.brand-symbol-heat, .brand-symbol-spark {
  fill: var(--forest);
}
.brand-wording {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.brand-title {
  color: var(--forest);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-tagline {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.25;
  white-space: nowrap;
}
.footer-brand {
  filter: none;
}
.footer .brand-title {
  color: var(--on-dark);
}
.footer .brand-tagline {
  color: var(--footer-muted);
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 21px;
  color: var(--forest-soft);
  font-size: 14px;
  font-weight: 700;
}
.navlinks a {
  transition: color .2s;
}
.navlinks a:hover,.navlinks a[aria-current=page] {
  color: var(--leaf);
}
.nav-cta {
  background: var(--lime);
  color: var(--forest);
  border-radius: 999px;
  padding: 11px 17px;
  font-weight: 800;
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 9px 12px;
}
.hero,.page-hero {
  background: var(--paper);
  overflow: hidden;
}
.hero-grid {
  min-height: 565px;
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  align-items: center;
  gap: 54px;
  padding: 58px 0 68px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 12px;
  font-weight: 800;
  color: var(--leaf);
}
.eyebrow:before {
  content: "";
  width: 25px;
  height: 3px;
  background: var(--lime-deep);
  border-radius: 2px;
}
h1,h2,h3 {
  font-family: Fraunces,Georgia,serif;
  line-height: 1.13;
  letter-spacing: -.035em;
}
h1 {
  font-size: clamp(40px,5vw,65px);
  margin: 20px 0 20px;
  color: var(--forest);
  max-width: 740px;
  font-weight: 600;
}
h1 em {
  font-style: italic;
  color: var(--leaf);
}
.hero-copy {
  color: var(--muted);
  font-size: 18px;
  max-width: 590px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 21px;
  font-weight: 800;
  transition: transform .2s,background .2s;
  color: var(--forest);
}
.button:hover {
  transform: translateY(-2px);
}
.button-primary {
  background: var(--lime);
}
.button-primary:hover,.nav-cta:hover {
  background: var(--lime-hover);
}
.button-outline {
  border: 1px solid var(--line-soft);
  color: var(--forest);
  background: transparent;
}
.hero-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}
.note-mark {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--leaf);
}
.hero-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--paper-alt);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-photo-home {
  height: 435px;
  border-radius: 170px 24px 24px 24px;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-home img {
  object-position: 65% center;
}
.hero-photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 36px);
  padding: 11px 15px;
  border: 1px solid color-mix(in srgb, var(--white) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--forest) 88%, transparent);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.caption-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
}
.photo-stamp {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 89px;
  height: 89px;
  border: 1px solid color-mix(in srgb, var(--white) 70%, transparent);
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .08em;
  transform: rotate(8deg);
}
.page-hero-grid {
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr .85fr;
  align-items: center;
  gap: 56px;
  padding: 48px 0 58px;
}
.page-hero-copy {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(37px,4.6vw,57px);
  max-width: 700px;
  margin: 15px 0;
}
.page-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 680px;
  margin: 0;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.crumb a {
  color: var(--forest-soft);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.page-hero-photo {
  height: 340px;
  border-radius: 24px 135px 24px 24px;
}
.page-hero-photo img {
  object-position: center;
}
.proofbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.proofbar .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  color: var(--forest-soft);
  font-size: 14px;
  font-weight: 700;
}
.proofbar span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.proofbar b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--leaf);
  font-size: 14px;
}
.section {
  padding: 88px 0;
}
.section-soft {
  background: var(--paper);
}
.section-dark {
  background: var(--forest);
  color: var(--on-dark);
}
.section-head {
  max-width: 710px;
  margin-bottom: 40px;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.section h2 {
  font-size: clamp(31px,4vw,46px);
  margin: 13px 0 16px;
  color: var(--forest);
  font-weight: 600;
}
.section-dark h2 {
  color: var(--on-dark);
}
.section p.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}
.section-dark p.lead {
  color: var(--on-dark-muted);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 26px color-mix(in srgb, var(--forest) 5%, transparent);
}
.card h3 {
  font-size: 22px;
  margin: 18px 0 9px;
  color: var(--forest);
}
.card p {
  color: var(--muted);
  margin: 0;
}
.iconbox {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--mist);
  border-radius: 17px;
  font-size: 20px;
  font-weight: 800;
}
.text-link {
  display: inline-flex;
  margin-top: 19px;
  color: var(--leaf);
  font-weight: 800;
}
.text-link:after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--lime-deep);
  margin: auto 0 auto 9px;
}
.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.brand-pill {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--forest-soft);
  font-weight: 700;
  font-size: 14px;
}
.brand-pill:hover {
  border-color: var(--lime-deep);
  background: var(--paper-alt);
}
.faq {
  max-width: 860px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--forest);
}
.faq summary:after {
  content: "+";
  color: var(--leaf);
  font-size: 23px;
  line-height: 1;
}
.faq details[open] summary:after {
  content: "−";
}
.faq details p {
  color: var(--muted);
  margin: 15px 40px 0 0;
}
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--on-dark);
  border-radius: 30px;
  padding: 44px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.cta-band:after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: 15%;
  top: -180px;
  border: 1px solid color-mix(in srgb, var(--lime) 40%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 30px color-mix(in srgb, var(--lime) 5%, transparent),0 0 0 60px color-mix(in srgb, var(--lime) 3%, transparent);
}
.cta-band>* {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  font-size: 31px;
  margin: 0 0 8px;
  color: var(--white);
}
.cta-band p {
  margin: 0;
  color: var(--on-dark-muted);
}
.prose {
  max-width: 850px;
}
.prose h2 {
  margin-top: 42px;
}
.prose p {
  color: var(--muted);
}
.zone-wrap {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
}
.zone-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 25px;
}
.zone-card h3 {
  font-size: 21px;
  margin: 0 0 12px;
  color: var(--forest);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: var(--mist);
  color: var(--forest-soft);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 600;
}
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.contact-card {
  border-radius: 24px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 28px;
}
.contact-card .button {
  margin-top: 17px;
}
.footer {
  background: var(--forest-deep);
  color: var(--on-dark);
  padding: 55px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 40px;
}
.footer-brand {
  width: 280px;
  margin-bottom: 19px;
}
.footer p,.footer li {
  color: var(--footer-muted);
}
.footer h3 {
  font-family: 'DM Sans',Arial,sans-serif;
  font-size: 15px;
  color: var(--lime);
  letter-spacing: .02em;
  margin: 4px 0 14px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
  font-size: 14px;
}
.footer-bottom {
  border-top: 1px solid var(--forest-line);
  margin-top: 35px;
  padding-top: 18px;
  font-size: 13px;
  color: var(--footer-muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.floating-contact {
  position: fixed;
  z-index: 25;
  right: 18px;
  left: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.float-action {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--forest);
  box-shadow: 0 9px 25px color-mix(in srgb, var(--forest) 24%, transparent);
  font-size: 20px;
  font-weight: 900;
  animation: contact-heartbeat 1.8s ease-in-out infinite;
  will-change: transform,box-shadow;
  pointer-events: auto;
}
.float-action img {
  display: block;
  width: 29px;
  height: 29px;
}
.float-wa {
  background: var(--whatsapp);
  color: #fff;
}
.float-call {
  background: var(--lime);
  animation-delay: .9s;
}
@keyframes contact-heartbeat {
  0%,100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 color-mix(in srgb,var(--lime) 36%,transparent),0 9px 25px color-mix(in srgb,var(--forest) 24%,transparent);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 9px color-mix(in srgb,var(--lime) 0%,transparent),0 9px 25px color-mix(in srgb,var(--forest) 24%,transparent);
  }
}
.float-wa:focus-visible,.float-call:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.notice {
  font-size: 13px;
  color: var(--muted);
}
.brand-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 18px;
}
.service-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 28px;
}
.service-step {
  padding: 20px;
  border-left: 3px solid var(--lime-deep);
  background: var(--mist);
  border-radius: 0 14px 14px 0;
}
.service-step b {
  display: block;
  margin-bottom: 6px;
  color: var(--forest);
}
.service-step span {
  color: var(--muted);
  font-size: 14px;
}
.visit-note {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: 13px;
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb,var(--paper) 68%,var(--white));
}
.visit-note-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--leaf);
  font-size: 15px;
  font-weight: 800;
}
.visit-note .eyebrow {
  font-size: 10px;
  letter-spacing: .12em;
}
.visit-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.visit-note strong {
  color: var(--forest);
  font-weight: 700;
}
.notfound {
  text-align: center;
  padding: 100px 0;
}
.notfound h1 {
  color: var(--forest);
}
@media(max-width:980px) {
  .navlinks {
    gap: 13px;
    font-size: 13px;
  }
  .brand {
    width: 240px;
  }
  .nav-cta {
    display: none;
  }
  .hero-grid {
    gap: 30px;
  }
  .grid-3 {
    grid-template-columns: repeat(2,1fr);
  }
  .page-hero-grid {
    gap: 30px;
  }
}
@media(max-width:760px) {
  .container {
    width: min(100% - 32px,600px);
  }
  .topbar .container {
    justify-content: center;
    text-align: center;
  }
  .topbar .container span:last-child {
    display: none;
  }
  .nav {
    min-height: 72px;
  }
  .brand {
    width: 230px;
  }
  .menu-toggle {
    display: block;
  }
  .navlinks {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper-alt);
    padding: 15px 22px 22px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    box-shadow: 0 15px 25px color-mix(in srgb, var(--forest) 10%, transparent);
  }
  .navlinks.open {
    display: flex;
  }
  .navlinks a {
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .hero-grid,.page-hero-grid {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 48px 0 55px;
    gap: 30px;
  }
  .hero h1,.page-hero h1 {
    font-size: clamp(34px,9vw,43px);
    line-height: 1.12;
  }
  .hero,.page-hero {
    position: relative;
    isolation: isolate;
  }
  .hero::before,.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
      linear-gradient(115deg,
        color-mix(in srgb,var(--paper) 90%,transparent) 0%,
        color-mix(in srgb,var(--paper) 84%,transparent) 62%,
        color-mix(in srgb,var(--paper) 78%,transparent) 100%),
      var(--hero-mobile-image);
    background-position: center;
    background-size: cover;
    pointer-events: none;
  }
  .hero-home { --hero-mobile-image: url('/assets/hero-piscina.webp'); }
  .page-hero-reparacion { --hero-mobile-image: url('/assets/hero-reparacion.webp'); }
  .page-hero-mantenimiento { --hero-mobile-image: url('/assets/hero-mantenimiento.webp'); }
  .page-hero-servicios,.page-hero-marcas,.page-hero-cobertura { --hero-mobile-image: url('/assets/hero-piscina.webp'); }
  .page-hero-nosotros,.page-hero-contacto { --hero-mobile-image: url('/assets/hero-reparacion.webp'); }
  .hero-grid,.page-hero-grid {
    position: relative;
    z-index: 1;
  }
  .hero-copy {
    font-size: 17px;
  }
  .hero-photo-home {
    height: 360px;
    border-radius: 105px 20px 20px 20px;
  }
  .page-hero-photo {
    height: 300px;
    border-radius: 20px 100px 20px 20px;
  }
  .photo-stamp {
    width: 76px;
    height: 76px;
    font-size: 10px;
  }
  .proofbar .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 12px;
  }
  .section {
    padding: 66px 0;
  }
  .grid-3,.grid-2,.zone-wrap,.contact-panel {
    grid-template-columns: 1fr;
  }
  .cta-band {
    display: block;
    padding: 32px 27px;
  }
  .cta-band .button {
    margin-top: 22px;
  }
  .service-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-grid>div:first-child {
    grid-column: 1/-1;
  }
  .footer-bottom {
    display: block;
  }
  .footer-bottom span {
    display: block;
    margin-top: 8px;
  }
}
@media(max-width:420px) {
  .brand {
    width: 211px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-photo-home {
    height: 290px;
    border-radius: 84px 18px 18px 18px;
  }
  .page-hero-photo {
    height: 270px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid>div:first-child {
    grid-column: auto;
  }
}
@media(max-width:760px) {
  .floating-contact {
    right: 16px;
    left: 16px;
    bottom: max(16px,env(safe-area-inset-bottom));
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
  }
  .float-action { pointer-events: auto; }
  .visit-note {
    grid-template-columns: 32px 1fr;
    gap: 11px;
    padding: 16px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .float-action {
    animation: none;
    will-change: auto;
  }
}
/* Ajustes responsive del logotipo. */
@media(max-width:760px) {
  .brand-symbol {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }
  .brand-title {
    font-size: 14px;
  }
  .brand-tagline {
    font-size: 8px;
  }
}
@media(max-width:420px) {
  .brand-symbol {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
  .brand-title {
    font-size: 12px;
  }
  .brand-tagline {
    font-size: 7px;
    letter-spacing: .12em;
  }
}
