:root {
  --color-bg: #c7c7c7;
  --color-brand: #165a71;
  --color-dark: #111111;
  --color-light: #fbfbfb;
  --color-card-text: #707070;
  --color-border: #eaeaea;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--color-bg);
  color: #1f1f1f;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #000;
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 3000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}

.brand {
  width: clamp(140px, 18vw, 220px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
  padding: 0.25rem 0.4rem;
  color: #3a3a3a;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #202020;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  background: url("../img/fundo-piscinas-scaled-1.webp") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  padding: 120px 0;
  color: #fff;
  max-width: 760px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.8vw, 2.9rem);
  line-height: 1;
  letter-spacing: -1px;
}

.hero p {
  max-width: 52ch;
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 0 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid transparent;
  padding: 0.65rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline {
  border-color: #ffffff;
  color: #ffffff;
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
}

.btn-solid {
  background: var(--color-brand);
  color: #fff;
}

.btn-solid:hover {
  filter: brightness(1.08);
}

.section {
  padding: 64px 0;
}

.section-title {
  margin: 0 0 2rem;
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-brand);
  letter-spacing: -1px;
}

.section-title.light {
  color: #fff;
}

.cards {
  display: grid;
  gap: 1rem;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
}

.dark-card {
  position: relative;
  overflow: hidden;
  border: 1px groove rgba(255, 255, 255, 0.35);
  background: url("../img/17.jpg") center / cover no-repeat;
  color: #fff;
}

.dark-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 40, 50, 0.7);
}

.dark-card > * {
  position: relative;
  z-index: 1;
}

.card-icon {
  text-align: center;
  line-height: 1;
  color: #d7e4e8;
  margin-bottom: 0.55rem;
}

.icon-svg {
  width: 1.85rem;
  height: 1.85rem;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

.icon-social {
  width: 1.05rem;
  height: 1.05rem;
}

.card h3 {
  margin: 0.25rem 0 0.75rem;
  text-align: center;
  letter-spacing: -0.5px;
}

.card p {
  margin: 0;
  font-size: 0.96rem;
}

.card ul {
  margin: 0.5rem 0 0 1rem;
  padding: 0;
}

.products-section .section-title {
  font-family: Arial, Helvetica, sans-serif;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.product-card {
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.product-card h3 {
  margin: 1rem 1rem 0.65rem;
  color: var(--color-brand);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.product-card p {
  margin: 0 1rem 1.2rem;
  color: #505050;
  font-size: 0.95rem;
}

.carousel {
  position: relative;
  overflow: hidden;
  background: #f1f1f1;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-track img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  flex: 0 0 100%;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: center;
}

.split-content h2 {
  margin: 0 0 1rem;
  color: var(--color-brand);
  font-size: clamp(1.8rem, 3.1vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.8px;
}

.split-content p {
  margin: 0 0 0.85rem;
  color: #4e4e4e;
}

.testimonials-section .split-media .carousel-track img {
  aspect-ratio: 16 / 11;
}

.wave-section {
  position: relative;
  color: #fff;
  background: #165a71;
  overflow: hidden;
}

.wave-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/17.jpg") center / cover no-repeat;
  opacity: 0.25;
}

.wave-section .container {
  position: relative;
  z-index: 1;
}

.wave {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.wave svg {
  display: block;
  width: 100%;
  height: 62px;
}

.wave-top {
  top: 0;
  transform: translateY(-99%);
}

.wave-bottom {
  bottom: 0;
  transform: translateY(99%) rotate(180deg);
}

.wave path {
  fill: var(--color-bg);
}

.advantages-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.light-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.light-card h3 {
  color: #fff;
}

.light-card p {
  color: #e6ecef;
}

.centered {
  text-align: center;
}

.centered .btn {
  margin-top: 1rem;
}

.centered .btn.btn-solid {
  background: #0a3140;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 24px rgba(10, 49, 64, 0.35);
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.centered .btn.btn-solid:hover {
  background: #165a71;
  border-color: #165a71;
  filter: none;
}

.about-section {
  padding-bottom: 0;
}

.about-section .split {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.about-section .split-media {
  width: 100%;
  justify-self: end;
}

.about-section .split-media .carousel-track img {
  aspect-ratio: 1 / 1;
}

.banner-strip img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.social-section h2 {
  margin: 0 0 1rem;
  color: var(--color-brand);
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -1px;
}

.social-section {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.social-row a {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: #fff;
  color: #2b2b2b;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.2);
  flex: 0 0 auto;
  line-height: 0;
  overflow: hidden;
}

.social-row a::before,
.social-row a::after {
  content: none !important;
  display: none !important;
}

.social-row a:hover {
  transform: translateY(-1px);
}

.social-row a .icon-svg {
  color: currentColor;
  display: block;
  flex: 0 0 auto;
}

.social-section .social-row a {
  background: #165a71;
  color: #ffffff;
  border-color: transparent;
  box-shadow: none;
}

.social-row.small a {
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
}

.social-row.small .icon-svg {
  width: 0.95rem;
  height: 0.95rem;
}

.contact-section {
  position: relative;
  background: #f4f4f4;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-box,
.contact-details {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: var(--radius);
  padding: 1.25rem;
}

.contact-box h3,
.contact-details h3 {
  margin: 0 0 0.65rem;
  color: var(--color-brand);
  font-size: 2rem;
  letter-spacing: -1px;
}

.contact-details p {
  margin: 0 0 0.85rem;
  color: var(--color-card-text);
}

.contact-details a {
  color: var(--color-brand);
}

.map-wrap {
  margin-top: 1rem;
}

.map-wrap iframe {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  min-height: 330px;
}

.site-footer {
  position: relative;
  padding: 80px 0 64px;
  color: #fff;
  background: #000;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/17.jpg") center / cover no-repeat;
  opacity: 0.45;
}

.footer-wave path {
  fill: var(--color-bg);
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-col {
  text-align: center;
}

.footer-col h4,
.footer-col h5 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.partner-logo {
  max-width: 220px;
  margin: 0 auto 0.9rem;
}

.lock-icon {
  margin: 0;
  color: #fff;
}

.footer-col p {
  margin: 0;
  color: #cecece;
}

.footer-links {
  margin: 0.9rem 0 0;
}

.footer-links a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links a:hover {
  color: #d7e4e8;
}

.policy-page {
  padding: 48px 0 72px;
}

.policy-shell {
  width: min(920px, 92vw);
  margin: 0 auto;
}

.policy-intro {
  margin: 0 0 1.25rem;
  color: #4e4e4e;
  font-size: 1.05rem;
}

.policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.policy-card {
  background: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  margin-bottom: 1rem;
}

.policy-card h2 {
  margin: 0 0 0.6rem;
  color: var(--color-brand);
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.policy-card p {
  margin: 0;
  color: #505050;
}

.policy-small {
  margin-top: 0.55rem;
  font-size: 0.95rem;
}

.policy-card ul {
  margin: 0.6rem 0 0 1.1rem;
  color: #505050;
}

.policy-note {
  margin-top: 1rem;
  color: #505050;
}

.policy-note a {
  color: var(--color-brand);
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 430px;
  background: rgba(24, 24, 24, 0.98);
  color: #fff;
  border-radius: 8px;
  padding: 1rem;
  z-index: 4000;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.55rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    right: 4vw;
    top: 70px;
    min-width: 230px;
    background: var(--color-bg);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.45rem;
  }

  .menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    border-bottom: 0;
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
  }

  .site-nav a:hover {
    background: #f0f6f8;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .about-section .split {
    grid-template-columns: 1fr;
  }

  .about-section .split-media {
    justify-self: stretch;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 500px;
  }

  .section {
    padding: 48px 0;
  }

  .hero-content {
    text-align: center;
    padding: 90px 0;
  }

  .hero p {
    margin-inline: auto;
  }

  .services-grid,
  .products-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .social-row {
    gap: 0.45rem;
  }

  .social-section .social-row a {
    width: 36px;
    height: 36px;
  }

  .social-row.small a {
    width: 36px;
    height: 36px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    max-width: none;
  }
}
