:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-deep: #07111f;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --text: #101828;
  --muted: #5b6475;
  --soft: #7a8496;
  --line: rgba(16, 24, 40, 0.1);
  --blue: #2563eb;
  --blue-dark: #174ac9;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --green: #16a34a;
  --orange: #f97316;
  --shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
  --radius: 28px;
  --header-height: 78px;
  --hero-image: linear-gradient(90deg, rgba(246, 248, 251, 0.8) 0%, rgba(246, 248, 251, 0.66) 28%, rgba(246, 248, 251, 0.42) 52%, rgba(246, 248, 251, 0.18) 74%, rgba(246, 248, 251, 0.02) 100%), url("../../hero-bg.png");
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(124, 58, 237, 0.10), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fe 44%, #ffffff 100%);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand span span {
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #344054;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a {
  transition: color 0.18s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.22);
}

.btn-dark {
  color: #ffffff;
  background: #07111f;
  box-shadow: 0 16px 34px rgba(7, 17, 31, 0.18);
}

.btn-soft {
  color: #172033;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(16, 24, 40, 0.12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(37, 99, 235, 0.09);
  border: 1px solid rgba(37, 99, 235, 0.14);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 575px;
  padding: 10px 0 34px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-image);
  background-size: 128%;
  background-position: 65% 40%;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 190px;
  background: linear-gradient(180deg, transparent, #ffffff);
  z-index: -1;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 305px;
  display: flex;
  align-items: flex-start;
  padding: 18px 0 24px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-image);
  background-size: 128%;
  background-position: 65% -198px;
  z-index: -2;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, #ffffff);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: 54px;
}

.hero h1 {
  max-width: 890px;
  font-size: 3.45rem;
  line-height: 1.04;
  letter-spacing: -1.4px;
  margin-bottom: 18px;
}

.page-hero h1 {
  max-width: 890px;
  font-size: 3.45rem;
  line-height: 1.04;
  letter-spacing: -1.4px;
  margin-bottom: 18px;
}

.lead {
  max-width: 700px;
  color: #475467;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 760px);
  margin-top: 22px;
}

.trust-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 7px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 999px;
  color: #344054;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  font-size: clamp(0.66rem, 1.45vw, 0.9rem);
  line-height: 1.1;
  text-align: center;
}

.hero-panel {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel-top {
  padding: 22px;
  border-radius: 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(6, 182, 212, 0.38), transparent 30%),
    linear-gradient(135deg, #07111f, #162b52 52%, #5b21b6);
}

.hero-panel-top small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-panel-top strong {
  display: block;
  margin: 8px 0;
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-panel-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.hero-panel-list li,
.check-list li {
  display: flex;
  gap: 10px;
  color: #344054;
  font-weight: 650;
}

.hero-panel-list li::before,
.check-list li::before {
  content: "✓";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.section {
  padding: 92px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  max-width: 830px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 24, 40, 0.1);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.story-card p + p {
  margin-top: 16px;
}

.about-badge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.about-badge {
  padding: 16px;
  border-radius: 18px;
  color: #172033;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-weight: 850;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
}

.metric {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.metric strong {
  display: block;
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric span {
  color: var(--soft);
  font-weight: 800;
}

.ejemplos {
  overflow: hidden;
}

.ejemplos-header {
  margin-bottom: 26px;
}

.carousel-3d {
  position: relative;
  max-width: 1260px;
  margin: 0 auto;
  perspective: 1800px;
  padding: 16px 68px 8px;
}

.carousel-track {
  position: relative;
  height: 620px;
  transform-style: preserve-3d;
}

.carousel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  transform-style: preserve-3d;
  transition:
    transform .55s cubic-bezier(.2,.8,.2,1),
    box-shadow .35s ease,
    filter .35s ease,
    opacity .35s ease;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ffffff;
}

.carousel-card.active {
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.28);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .94);
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
  transition: .2s ease;
}

.carousel-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.03);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(37, 99, 235, 0.18);
  cursor: pointer;
  transition: .2s ease;
}

.carousel-dot.active {
  background: var(--blue);
  transform: scale(1.15);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price-card {
  padding: 30px;
  border-radius: 30px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.price-card.featured {
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.32), transparent 28%),
    linear-gradient(145deg, #07111f, #17315d 52%, #5b21b6);
  transform: translateY(-10px);
}

.price-card.featured p,
.price-card.featured li,
.price-card.featured .price-note {
  color: rgba(255, 255, 255, 0.78);
}

.price-card h3 {
  font-size: 1.5rem;
}

.price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 18px 0 8px;
}

.price strong {
  font-size: 3.7rem;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.old-price {
  width: fit-content;
  color: #98a2b3;
  text-decoration: line-through;
  font-weight: 800;
}

.price-note {
  color: var(--soft);
  font-size: 0.95rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  list-style: none;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 20px 22px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 20px;
  background: #ffffff;
}

.faq summary {
  cursor: pointer;
  font-weight: 850;
  color: #172033;
}

.faq p {
  margin-top: 10px;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 104px;
  padding: 22px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 24px;
  background: #ffffff;
}

.legal-toc a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  font-weight: 750;
}

.legal-doc {
  padding: 36px;
  border-radius: 30px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.06);
}

.legal-doc h2 {
  margin: 34px 0 12px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  color: #4b5565;
}

.legal-doc ul {
  margin: 10px 0 18px 22px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 28px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font: inherit;
  outline: none;
}

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

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.site-footer {
  padding: 18px 0 16px;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 14% 0%, rgba(37, 99, 235, 0.24), transparent 34%),
    linear-gradient(135deg, #07111f, #0d1b31);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.45fr) minmax(150px, 0.7fr) minmax(230px, 0.95fr);
  gap: 12px;
  align-items: start;
}

.footer-grid h2,
.footer-grid h3 {
  color: #ffffff;
}

.footer-grid h2 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.footer-grid h3 {
  margin-bottom: 4px;
  font-size: 0.78rem;
}

.footer-grid a {
  display: block;
  margin: 2px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.notice {
  padding: 16px 18px;
  border-radius: 18px;
  color: #344054;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.16);
}

@media (max-width: 980px) {
  .header-inner {
    gap: 14px;
  }

  .nav {
    min-width: 0;
    overflow-x: auto;
    display: flex;
    gap: 12px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    font-size: clamp(0.72rem, 2.45vw, 0.9rem);
    line-height: 1.1;
    white-space: nowrap;
  }

  .hero-grid,
  .pricing-grid,
  .grid-3,
  .grid-2,
  .contact-panel,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 10px 18px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-grid > div:first-child p {
    display: none;
  }

  .site-footer {
    padding: 14px 0 12px;
  }

  .footer-bottom {
    margin-top: 12px;
    padding-top: 8px;
  }

  .legal-toc {
    position: static;
  }

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 94px;
    --hero-image: linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.66) 42%, rgba(255, 255, 255, 0.22) 74%, rgba(255, 255, 255, 0.04) 100%), url("../../hero-bg.png");
  }

  .container {
    width: calc(100% - 28px);
    max-width: calc(100vw - 28px);
  }

  html,
  body,
  .site-header,
  main,
  .hero,
  .page-hero,
  .section,
  .site-footer {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .header-inner {
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 4px;
    padding: 5px 0;
  }

  .header-inner > .btn {
    display: none;
  }

  .nav {
    width: 100%;
    max-width: calc(100vw - 28px);
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px 14px;
  }

  .nav a {
    min-width: 0;
    text-align: center;
    font-size: 0.6rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
  }

  .nav a[href="sobre-nosotros.html"] {
    font-size: 0.6rem;
  }

  .nav a[href="sobre-nosotros.html"]::after {
    content: none;
  }

  .hero {
    min-height: auto;
    padding: 18px 0 28px;
  }

  .page-hero {
    min-height: 320px;
    padding: 18px 0 28px;
  }

  .hero::before,
  .page-hero::before {
    background-position: center right;
  }

  .section {
    padding: 54px 0;
  }

  .hero h1,
  .page-hero h1 {
    width: min(100%, 340px);
    max-width: 340px;
    font-size: 1.46rem;
    line-height: 1.07;
    letter-spacing: -0.04em;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .lead {
    width: min(100%, 340px);
    max-width: 340px;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .section-head h2,
  .section-head h2[style] {
    font-size: 1.46rem !important;
    line-height: 1.07 !important;
    letter-spacing: -0.04em !important;
  }

  .section-head p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .brand {
    gap: 6px;
    font-size: 0.9rem;
    flex: 0 0 auto;
  }

  .brand img {
    width: 25px;
    height: 25px;
  }

  .carousel-3d {
    padding: 8px 34px 0;
  }

  .carousel-track {
    height: 470px;
  }

  .carousel-card {
    width: min(58vw, 230px);
    border-radius: 20px;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .legal-doc,
  .card,
  .price-card,
  .hero-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
