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

:root {
  --blue: #060386;
  --blue-dark: #04026b;
  --blue-light: rgba(6, 3, 134, 0.08);
  --blue-mid: rgba(6, 3, 134, 0.15);
  --bg: #ffffff;
  --bg2: #f4f5fb;
  --bg3: #ecedf8;
  --text: #111111;
  --muted: #666666;
  --light: #999999;
  --border: rgba(6, 3, 134, 0.1);
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5vw;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  height: 36px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--blue);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: var(--blue-dark);
}
.wpp-logo {
  height: 14px;
  width: auto;
  color: var(--bg);
}

/* HERO */
.hero {
  min-height: max-content;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 100px 5vw 10vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #fff 45%, #ecedf8 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -10%;
  width: 55%;
  height: 100%;
  background: radial-gradient(
    ellipse 70% 80% at 60% 40%,
    rgba(6, 3, 134, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 3, 134, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 3, 134, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-eyebrow {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--blue);
}
h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(64px, 13vw, 150px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  color: var(--text);
}
h1 em {
  color: var(--blue);
  font-style: normal;
}
.hero-sub {
  position: relative;
  z-index: 1;
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition:
    background 0.2s,
    transform 0.15s;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--blue-mid);
  color: var(--blue);
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.btn-ghost:hover {
  background: var(--blue-light);
}
.hero-stats {
  position: absolute;
  right: 5vw;
  bottom: 10vh;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: right;
}
.stat-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  color: var(--blue);
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  color: var(--light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
  animation: bounce 2s ease infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* SECCIONES */
section {
  padding: 100px 5vw;
}
.section-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1;
  margin-bottom: 56px;
}
h2 .dim {
  color: #ccc;
}

/* SERVICIOS */
.services-intro {
  max-width: 560px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: -36px;
  margin-bottom: 56px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4px;
}
.service-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 34px;
  cursor: default;
}
/* Foto de fondo placeholder (gradiente que simula una foto oscura) */
.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.ppf-card {
  background-image: url("../images/ppf.webp");
  background-position: center;
}
.ceramicos-card {
  background-image: url("../images/encerados.webp");
  background-position: center;
}
.polarizados-card {
  background-image: url("../images/polarizados.webp");
  background-position: center;
}
.interiores-card {
  background-image: url("../images/interiores.webp");
  background-position: center;
}
.lavados-card {
  background-image: url("../images/lavados.webp");
  background-position: center;
}
.marine-detailing-card {
  background-image: url("../images/marine_detailing.webp");
  background-position: center;
}
.service-card:hover .service-card-bg {
  transform: scale(1.06);
}
/* Overlay azul oscuro */
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4, 2, 107, 0.65) 0%,
    rgba(6, 3, 134, 0.45) 50%,
    rgba(6, 3, 134, 0.05) 100%
  );
  transition: background 0.4s ease;
}
.service-card:hover .service-card-overlay {
  background: linear-gradient(
    to top,
    rgba(4, 2, 107, 0.88) 0%,
    rgba(6, 3, 134, 0.72) 50%,
    rgba(6, 3, 134, 0.65) 100%
  );
}
/* Contenido sobre el overlay */
.service-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-icon {
  font-size: 28px;
  margin-bottom: 4px;
}
.service-tag {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.service-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 34px;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
}
.service-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.4s ease;
  opacity: 0;
}
.service-card:hover .service-desc {
  max-height: 120px;
  opacity: 1;
}
.service-highlight {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  border-left: 2px solid rgba(255, 255, 255, 0.4);
  padding-left: 10px;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease 0.05s,
    opacity 0.4s ease 0.05s;
  opacity: 0;
}
.service-card:hover .service-highlight {
  max-height: 60px;
  opacity: 1;
}
.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 10px;
  border-radius: 2px;
  align-self: flex-start;
}
.service-badge.mobile {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
}

/* MÁS SERVICIOS DESPLEGABLE */
.more-services-wrap {
  margin-top: 20px;
}
.more-services-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  background: none;
  border: 1px solid var(--border);
  color: var(--blue);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 2px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.more-services-btn:hover {
  background: var(--blue-light);
  border-color: var(--blue);
}
.more-services-arrow {
  transition: transform 0.35s ease;
  flex-shrink: 0;
}
.more-services-btn[aria-expanded="true"] .more-services-arrow {
  transform: rotate(180deg);
}
.more-services-panel {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s ease,
    opacity 0.4s ease;
  opacity: 0;
}
.more-services-panel.open {
  max-height: max-content;
  opacity: 1;
}
.more-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 20px;
}
.more-service-item {
  background: var(--bg2);
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s;
}
.more-service-item:hover {
  background: #ecedf8;
}
.more-service-icon {
  font-size: 24px;
}
.more-service-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.more-service-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.more-service-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--light);
  padding: 3px 9px;
  border-radius: 2px;
}
.more-service-badge.mobile-badge {
  border-color: rgba(6, 3, 134, 0.25);
  color: var(--blue);
}
.more-service-cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(6, 3, 134, 0.3);
  transition: border-color 0.2s;
}
.more-service-cta:hover {
  border-color: var(--blue);
}

/* TRABAJOS */
#trabajos {
  background: var(--bg2);
}
.gallery-intro {
  max-width: 520px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: -36px;
  margin-bottom: 56px;
}
.iconic-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 16px;
}
.iconic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 60px;
}
.iconic-pill {
  border: 1px solid var(--border);
  background: #fff;
  padding: 7px 16px;
  border-radius: 2px;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.02em;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.iconic-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.work-gallery-panel {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s ease,
    opacity 0.4s ease;
  opacity: 0;
}
.work-gallery-panel.open {
  max-height: max-content;
  opacity: 1;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}
.gallery-item {
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item.wide {
  grid-column: span 2;
}
.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: unset;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* .gallery-item:hover img {
  transform: scale(1.04);
} */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--light);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gallery-placeholder svg {
  width: 26px;
  height: 26px;
  opacity: 0.25;
}
.gallery-cta {
  margin-top: 36px;
  text-align: center;
}
.gallery-cta p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* VIDEO */
#video-section {
  background: var(--blue);
  padding: 100px 5vw;
}
#video-section .section-label {
  color: rgba(255, 255, 255, 0.5);
}
#video-section h2 {
  color: #fff;
}
#video-section h2 .dim {
  color: rgba(255, 255, 255, 0.25);
}
.video-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  aspect-ratio: 16/9;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.video-placeholder-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.video-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.video-wrapper:hover .video-play {
  background: rgba(255, 255, 255, 0.25);
}
.video-play svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-left: 4px;
}
.video-placeholder-text p {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* POR QUÉ NOSOTROS */
#nosotros {
  background: var(--bg);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 48px;
}
.why-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.why-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 60px;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(6, 3, 134, 0.2);
  color: transparent;
}
.why-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.why-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}
.cert-banner {
  margin-top: 64px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.cert-icon {
  font-size: 36px;
}
.cert-text h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.cert-text p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* TESTIMONIOS */
#testimonios {
  background: var(--bg2);
}
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.testimonio-card {
  background: #fff;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s;
}
.testimonio-card:hover {
  box-shadow: 0 8px 32px rgba(6, 3, 134, 0.08);
}
.stars {
  color: var(--blue);
  font-size: 14px;
  letter-spacing: 2px;
}
.testimonio-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  font-style: italic;
}
.testimonio-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}
.author-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.author-service {
  font-size: 11px;
  color: var(--light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ZONA */
#zona {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.zona-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
  align-items: flex-start;
}
.zona-text {
  flex: 1 1 300px;
}
.zona-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 24px;
}
.zona-tags {
  flex: 1 1 260px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  padding-top: 8px;
}
.zona-tag {
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 2px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.zona-tag:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.zona-tag.highlight {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 500;
}

/* CTA FINAL */
#contacto {
  background: var(--blue);
  text-align: center;
  padding: 120px 5vw;
}
#contacto .section-label {
  color: rgba(255, 255, 255, 0.45);
}
#contacto h2 {
  color: #fff;
  margin-bottom: 16px;
}
#contacto h2 .dim {
  color: rgba(255, 255, 255, 0.25);
}
#contacto p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 48px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--blue);
  font-weight: 500;
  font-size: 14px;
  padding: 16px 32px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition:
    background 0.2s,
    transform 0.15s;
}
.btn-white:hover {
  background: #ecedf8;
  transform: translateY(-1px);
}
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 14px;
  padding: 16px 32px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* FOOTER */
footer {
  padding: 36px 5vw;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}
footer img {
  height: 30px;
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.footer-links a:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}
.footer-links a img {
  width: 15px;
  height: 15px;
}
.footer-copy {
  font-size: 12px;
  color: var(--light);
}

/* ANIMACIONES */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.65s ease forwards;
}
.d1 {
  animation-delay: 0.08s;
}
.d2 {
  animation-delay: 0.2s;
}
.d3 {
  animation-delay: 0.32s;
}
.d4 {
  animation-delay: 0.44s;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay {
  transition-delay: 0.12s;
}
.reveal-delay2 {
  transition-delay: 0.24s;
}

@media (max-width: 768px) {
  .hero-stats {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.wide {
    grid-column: span 1;
  }
  .gallery-item.tall {
    grid-row: span 1;
    aspect-ratio: 4/3;
  }
  .nav-link {
    display: none;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
