:root {
  --bg: #0b1020;
  --bg-soft: #111a33;
  --surface: #ffffff;
  --text: #1a2238;
  --text-light: #f8fbff;
  --primary: #ff2d55;
  --primary-strong: #d81e43;
  --accent: #2dd4bf;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(9, 16, 35, 0.14);
  --icon-card: 72px;
  --icon-contact: 36px;
  --offer-glow-x: 50%;
  --offer-glow-y: 40%;
}

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

body {
  margin: 0;
  font-family: "Rubik", Arial, sans-serif;
  color: var(--text);
  background: #f4f7fb;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e8ecf2;
  box-shadow: 0 4px 18px rgba(9, 16, 35, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0;
}

.brand img {
  display: block;
  width: auto;
  height: 42px;
  max-width: min(220px, 52vw);
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.main-nav {
  display: flex;
  gap: 1.35rem;
  color: #2a3350;
  font-weight: 600;
  font-size: 0.94rem;
}

.main-nav a {
  color: inherit;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary-strong);
  border-bottom-color: rgba(255, 45, 85, 0.35);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #f0f3f9;
  color: #1a2238;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
  background: #e4e9f2;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.nav-toggle-icon--close {
  display: none;
}

.site-header.is-nav-open .nav-toggle-icon--open {
  display: none;
}

.site-header.is-nav-open .nav-toggle-icon--close {
  display: block;
}

.nav-backdrop {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  font-weight: 600;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.65);
  background: transparent;
}

.btn-small {
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(45, 212, 191, 0.2), transparent 55%),
    linear-gradient(130deg, rgba(8, 13, 27, 0.84), rgba(14, 24, 48, 0.55));
}

.hero-content {
  position: relative;
  color: var(--text-light);
  padding: 5rem 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.2;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

.lead {
  max-width: 62ch;
  margin: 0 0 1.4rem;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: 4.5rem 0;
}

.section-intro {
  max-width: 74ch;
  color: #3d4560;
  margin-bottom: 1.8rem;
}

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

.card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.35rem 1rem;
  border: 1px solid #e2e6ed;
  box-shadow: 0 4px 18px rgba(9, 16, 35, 0.07);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  gap: 0.85rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

a.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card[data-tilt] {
  transition: transform 0.18s ease-out, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 16px 40px rgba(9, 16, 35, 0.18);
}

.card img {
  width: var(--icon-card);
  height: var(--icon-card);
  object-fit: contain;
  margin: 0 auto;
}

.card h3 {
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
  line-height: 1.35;
  max-width: 100%;
}

.offer {
  position: relative;
  overflow: hidden;
  padding: 7.5rem 0;
  color: var(--text-light);
  background-color: #0c1528;
  background-image:
    radial-gradient(
      900px circle at var(--offer-glow-x) var(--offer-glow-y),
      rgba(45, 212, 191, 0.22),
      transparent 55%
    ),
    linear-gradient(120deg, rgba(3, 6, 16, 0.88), rgba(18, 24, 50, 0.8)),
    url("../../../media/images/gallery/6/big/10.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-attachment: scroll, scroll, fixed;
}

.offer-inner {
  text-align: center;
}

.offer-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

/* Ventajas — estilo original: bloques centrados + línea roja */
.section-ventajas {
  position: relative;
  color: #f4f7ff;
  padding: 4.75rem 0 5.25rem;
  background: radial-gradient(ellipse 85% 65% at 50% 42%, #1c2d52 0%, #101a35 42%, #0a1020 100%);
}

.ventajas-title {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
  color: #fff;
}

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

.metrics-grid--classic {
  gap: 2rem 1.75rem;
}

.metric--classic {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.5rem 0.75rem 0;
  text-align: center;
  transition: transform 0.2s ease;
}

.metric--classic:hover {
  transform: translateY(-3px);
}

.metric--classic strong {
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: #fff;
}

.metric--classic span {
  display: block;
  font-size: clamp(0.68rem, 1.2vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

.metric--classic::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin: 1rem auto 0;
  background: var(--primary);
  border-radius: 2px;
}

/* Reseñas */
.section-reviews {
  background: #f0f4fa;
  padding: 4.5rem 0;
  border-top: 1px solid #e4e9f0;
}

.reviews-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.reviews-intro h2 {
  margin-bottom: 0.65rem;
}

.reviews-lead {
  margin-left: auto;
  margin-right: auto;
}

.reviews-aggregate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.35rem;
}

.reviews-score {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2.35rem, 5vw, 3.1rem);
  font-weight: 800;
  color: #1a2238;
  line-height: 1;
}

.reviews-stars {
  color: #e6a800;
  letter-spacing: 0.12em;
  font-size: 1rem;
}

.reviews-stars--lg {
  font-size: 1.3rem;
}

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

.review-card {
  margin: 0;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  border: 1px solid #e2e6ed;
  box-shadow: 0 4px 18px rgba(9, 16, 35, 0.07);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.review-card:hover {
  border-color: rgba(45, 212, 191, 0.25);
  box-shadow: 0 12px 32px rgba(9, 16, 35, 0.1);
}

.review-card__stars {
  color: #e6a800;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.review-card__quote {
  margin: 0 0 1rem;
  flex: 1;
}

.review-card__quote p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #2a3350;
  font-style: italic;
}

.review-card__footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.9rem;
  margin: 0;
  border-top: 1px solid #edf0f6;
}

.review-card__name {
  font-weight: 700;
  color: #1a2238;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.95rem;
}

.review-card__source {
  font-size: 0.82rem;
  color: #5a6478;
}

.review-card__source .fa-google {
  color: #4285f4;
  margin-right: 0.25rem;
}

.review-card__source--cylex {
  font-weight: 500;
}

/* Botones flotantes: subir + WhatsApp */
.fab-float {
  position: fixed;
  z-index: 55;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(9, 16, 35, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.fab:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 26px rgba(9, 16, 35, 0.28);
}

.fab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.fab--top {
  background: #1a2238;
  color: #fff;
  font-size: 1.15rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.fab--top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fab--wa {
  background: #25d366;
  color: #fff;
  font-size: 1.85rem;
}

.contact-zone {
  position: relative;
  overflow: hidden;
  color: #e8edf7;
  padding: 5rem 0;
  background: linear-gradient(165deg, #0c1834 0%, #0a1428 38%, #070f1f 100%);
}

.contact-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(70, 110, 200, 0.22), transparent 55%),
    radial-gradient(ellipse 80% 50% at 80% 100%, rgba(255, 45, 85, 0.08), transparent 45%);
  opacity: 1;
}

.contact-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem 2.75rem;
  align-items: start;
}

.contact-copy h2 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin-bottom: 0.65rem;
}

.contact-lead {
  margin: 0 0 1.35rem;
  color: rgba(232, 237, 247, 0.92);
  font-size: 1.02rem;
  max-width: 38ch;
}

.contact-benefits {
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
}

.check-bullet {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  box-shadow: 0 2px 8px rgba(255, 45, 85, 0.35);
}

.contact-form-panel {
  background: rgba(12, 22, 48, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.form-panel-title {
  margin: 0;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(180deg, #d8e0ee 0%, #c5d0e2 100%);
  color: #1a2238;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-form {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form .field > span {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(232, 237, 247, 0.95);
}

.contact-form .field abbr {
  text-decoration: none;
  color: var(--accent);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #c5ccd8;
  background: #ffffff;
  color: #1a2238;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.65);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

.field-checkbox input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--primary);
}

.field-checkbox span {
  font-size: 0.86rem;
  font-weight: 400;
  color: rgba(232, 237, 247, 0.92);
}

.field-checkbox a {
  color: #7ec8ff;
  text-decoration: underline;
}

.recaptcha-slot {
  min-height: 72px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.recaptcha-slot__hint {
  font-size: 0.72rem;
  color: rgba(232, 237, 247, 0.55);
  text-align: center;
  line-height: 1.35;
}

.btn-enviar {
  width: 100%;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.form-feedback {
  margin: 0 0 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #c8fff4;
}

.form-alt {
  margin: 0;
  padding: 0.85rem 1.25rem 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(232, 237, 247, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-alt a {
  color: var(--accent);
  font-weight: 600;
}

.small {
  font-size: 0.88rem;
  opacity: 0.85;
}

.site-footer {
  background: #ffffff;
  color: var(--text);
  border-top: 1px solid #e8ecf2;
  box-shadow: 0 -4px 18px rgba(9, 16, 35, 0.06);
  padding: 2.75rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1fr;
  gap: 1.5rem 1.25rem;
}

.footer-logo-col .brand {
  align-self: flex-start;
}

.site-footer .brand img {
  height: 40px;
  max-width: 210px;
}

.site-footer h4 {
  font-size: 1rem;
  color: #1a2238;
  margin-bottom: 0.5rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: #3d4560;
}

.site-footer a:not(.brand) {
  color: #2a3350;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer a:not(.brand):hover {
  color: var(--primary-strong);
  border-bottom-color: rgba(255, 45, 85, 0.4);
}

.footer-bottom {
  border-top: 1px solid #e8ecf2;
  margin-top: 1.5rem;
  padding-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #2a3350;
  font-weight: 600;
  text-decoration: none;
  border-bottom: none;
}

.footer-bottom a:hover {
  color: var(--primary-strong);
  border-bottom: none;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 16, 28, 0.42);
    z-index: 48;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .site-header.is-nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 76px;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 0 1rem;
    margin: 0;
    background: #ffffff;
    border-bottom: 1px solid #e8ecf2;
    box-shadow: 0 16px 40px rgba(9, 16, 35, 0.12);
    max-height: min(70vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .site-header.is-nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid #eef1f6;
    font-size: 1rem;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav a:hover {
    border-bottom-color: #eef1f6;
    background: #f8fafc;
  }

  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }

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

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

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

@media (max-width: 420px) {
  .btn-nav-wa-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .btn-nav-wa {
    padding: 0.55rem 0.7rem;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 70vh;
  }

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

  :root {
    --icon-card: 64px;
    --icon-contact: 32px;
  }

  .metrics-grid--classic {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* Scroll reveal (JS añade .is-revealed) */
[data-reveal]:not([data-tilt]):not(.is-revealed) {
  opacity: 0;
  transform: translateY(22px);
}

[data-reveal]:not([data-tilt]).is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal][data-tilt]:not(.is-revealed) {
  opacity: 0;
}

[data-reveal][data-tilt].is-revealed {
  opacity: 1;
  transition: opacity 0.55s ease;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-bg {
    transform: none !important;
  }

  .offer {
    background-attachment: scroll, scroll, scroll;
  }
}

/* fixed + fondos en capas suele ir mal en móvil; scroll mantiene la imagen nítida */
@media (max-width: 768px) {
  .offer {
    background-attachment: scroll, scroll, scroll;
    padding: 6rem 0;
  }
}
