/* =========================================================
   OFERLY · styles.css
   CSS común para toda la web.
   ========================================================= */

/* 01. Variables generales */
/*   Colores V1
:root {
  --bg: #050816;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-2: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --text-soft: #f1f5f9;
--text-muted: #dbe4f0;
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --accent: #86efac;
  --gold: #facc15;
  --whatsapp: #25d366;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1200px;
  --transition: 220ms ease;
}
  */
  :root {
  /* ===============================
     FONDOS PRINCIPALES
     =============================== */

  /* Fondo principal navy tecnológico */
  --bg: #060816;

  /* Fondo secundario morado oscuro profundo */
  --bg-2: #2e1065;


  /* ===============================
     SUPERFICIES / TARJETAS
     =============================== */

  /* Tarjetas y bloques con transparencia */
  --surface: rgba(255, 255, 255, 0.075);

  /* Tarjetas destacadas o hover */
  --surface-2: rgba(255, 255, 255, 0.12);

  /* Bordes suaves sobre fondo oscuro */
  --border: rgba(255, 255, 255, 0.14);


  /* ===============================
     TEXTOS
     =============================== */

  /* Texto principal */
  --text: #f8fafc;

  /* Texto secundario claro */
  --text-soft: #f1f5f9;

  /* Texto menos importante */
  --text-muted: #dbe4f0;


  /* ===============================
     COLORES DE MARCA OFERLY
     =============================== */

  /* Azul Royal principal */
  --primary: #2563eb;

  /* Violeta Premium para botones, degradados y zonas destacadas */
  --primary-dark: #7c3aed;

  /* Violeta intenso/neón para ondas, brillos y detalles visuales */
  --violet-neon: #a855f7;

  /* Morado oscuro profundo para fondos o degradados */
  --purple-dark: #2e1065;

  /* Verde lima suave para acentos llamativos */
  --accent: #a3e635;

  /* Verde lima más discreto para detalles secundarios */
  --accent-soft: #84cc16;

  /* Dorado para avisos, promociones o elementos premium */
  --gold: #facc15;

  /* WhatsApp */
  --whatsapp: #25d366;


  /* ===============================
     SOMBRAS Y EFECTOS
     =============================== */

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);


  /* ===============================
     RADIOS / BORDES REDONDEADOS
     =============================== */

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;


  /* ===============================
     CONTENEDOR Y TRANSICIONES
     =============================== */

  --container: 1200px;
  --transition: 220ms ease;
}
/* =========================================================
   FONDO GLOBAL OFERLY
   Ondas sutiles azul + violeta + verde lima
   ========================================================= */

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(37, 99, 235, 0.28),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 12%,
      rgba(168, 85, 247, 0.24),
      transparent 30%
    ),
    radial-gradient(
      circle at 78% 78%,
      rgba(163, 230, 53, 0.10),
      transparent 26%
    ),
    linear-gradient(
      135deg,
      var(--bg) 0%,
      #0b1026 42%,
      var(--bg-2) 100%
    );

  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

/* Capa decorativa con ondas suaves */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 18%,
      rgba(37, 99, 235, 0.10) 28%,
      transparent 42%,
      transparent 100%
    ),
    linear-gradient(
      65deg,
      transparent 0%,
      transparent 24%,
      rgba(124, 58, 237, 0.12) 36%,
      transparent 52%,
      transparent 100%
    ),
    linear-gradient(
      155deg,
      transparent 0%,
      transparent 58%,
      rgba(163, 230, 53, 0.07) 68%,
      transparent 82%,
      transparent 100%
    );

  filter: blur(26px);
  opacity: 0.9;
}

/* Capa extra: líneas tipo onda más elegantes */
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;

  background:
    repeating-radial-gradient(
      ellipse at 20% 20%,
      rgba(37, 99, 235, 0.13) 0px,
      rgba(37, 99, 235, 0.13) 1px,
      transparent 2px,
      transparent 95px
    ),
    repeating-radial-gradient(
      ellipse at 80% 70%,
      rgba(168, 85, 247, 0.12) 0px,
      rgba(168, 85, 247, 0.12) 1px,
      transparent 2px,
      transparent 120px
    );

  transform: rotate(-8deg);
  opacity: 0.35;
  filter: blur(1px);
}

/* 02. Reset y base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;

  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(37, 99, 235, 0.30),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 12%,
      rgba(168, 85, 247, 0.26),
      transparent 32%
    ),
    radial-gradient(
      circle at 78% 78%,
      rgba(163, 230, 53, 0.11),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      var(--bg) 0%,
      #0b1026 42%,
      var(--bg-2) 100%
    );

  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

body.menu-open {
  overflow: hidden;
}


body.high-contrast {
  --bg: #000;
  --bg-2: #000;
  --surface: rgba(255, 255, 255, 0.14);
  --surface-2: rgba(255, 255, 255, 0.24);
  --border: rgba(255, 255, 255, 0.42);
  --text: #fff;
  --text-soft: #fff;
  --text-muted: #e5e7eb;
  --primary: #facc15;
  --primary-dark: #fde047;
  --accent: #22c55e;
  background: #000;
}

body.underline-links a {
  text-decoration: underline !important;
}

body.pause-animations *,
body.pause-animations *::before,
body.pause-animations *::after {
  animation: none !important;
  transition: none !important;
}

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

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

p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.42rem;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.section {
  padding: 20px 0;
}

.section-header {
  max-width: 840px;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-soft);
  background: rgba(56, 189, 248, 0.09);
  font-size: 0.9rem;
  font-weight: 800;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: -9999px;
  z-index: 9999;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #fff;
  color: #000;
}

.skip-link:focus {
  left: 1rem;
}

/* 03. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.84);
  backdrop-filter: blur(60px);
}

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

/* Logo principal de la cabecera */
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  background: transparent;
  border: 0;
  padding: 0;
}

.brand-logo {
  display: block;
  width: 190px;
  height: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  opacity: 1;
}

.brand-logo-small {
  width: 140px;
}


.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--text-soft);
  font-weight: 750;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* 04. Componentes */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #03111d;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.button-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.055);
}

.button-ghost {
  color: var(--text-soft);
  border-color: var(--border);
  background: transparent;
}

.hero-card,
.card,
.form-panel,
.legal-card,
.cookie-banner,
.accessibility-panel,
.cta-box,
.result-box {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card,
.form-panel,
.legal-card,
.hero-card,
.cta-box,
.result-box {
  border-radius: var(--radius-xl);
  padding: 1.25rem;
}

.card {
  position: relative;
  padding: 1.75rem;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  right: -78px;
  bottom: -78px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 65%);
  pointer-events: none;
}

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

.card-featured {
  border-color: rgba(56, 189, 248, 0.48);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(56, 189, 248, 0.14), rgba(255, 255, 255, 0.045));
}

.badge,
.premium-pill,
.cookie-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.74rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.065);
  font-size: 0.88rem;
  font-weight: 800;
}

.badge {
  margin-bottom: 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  margin: 1rem 0;
}

.price strong {
  font-size: clamp(2.05rem, 5vw, 3.1rem);
  line-height: 1;
}

.price span {
  color: var(--text-muted);
  font-weight: 800;
}

.price-note {
  margin-top: -0.45rem;
  color: var(--accent);
  font-weight: 800;
}

.card-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* 05. Layouts */
.grid-2,
.contact-grid,
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-3,
.pricing-grid,
.blog-grid,
.feature-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.pricing-note {
  max-width: 850px;
  margin: 16px auto 0;
  color: #7b7280;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.55;
  text-align: center;
}

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

.clean-list,
.check-list,
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li,
.clean-list li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--text-soft);
}

.check-list li + li,
.clean-list li + li {
  margin-top: 0.72rem;
}

.check-list li::before,
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* 06. Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 74px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12% -10% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 66%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy p {
  max-width: 760px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.9rem;
}

.hero-card {
  padding: 1.5rem;
}

.hero-logo-wrap {
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 35%),
    rgba(255, 255, 255, 0.04);
}

.hero-logo-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.premium-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

/* 07. Formularios */
.form-panel,
.legal-card {
  padding: 1.7rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

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

label {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--text);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}
/* Arreglo desplegables */
select option {
  color: #111827;
  background: #ffffff;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(56, 189, 248, 0.28);
  outline-offset: 2px;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-soft);
}

.form-check input {
  width: auto;
  margin-top: 0.25rem;
}

.notice {
  padding: 1rem;
  border: 1px solid rgba(134, 239, 172, 0.24);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  background: rgba(134, 239, 172, 0.08);
}

/* 08. Blog */
.article-preview {
  position: relative;
  max-height: 122px;
  overflow: hidden;
}

.article-preview.is-open {
  max-height: none;
}

.article-preview:not(.is-open)::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 54px;
  background: linear-gradient(180deg, transparent, rgba(8, 15, 31, 0.98));
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* 09. Pricing y referidos */
.toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.toggle-button {
  padding: 0.78rem 1.1rem;
  border: 0;
  border-radius: 999px;
  color: var(--text-soft);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.toggle-button.active {
  color: #03111d;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.referral-box {
  background:
    radial-gradient(circle at top right, rgba(134, 239, 172, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
}

.referral-stat {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(255, 255, 255, 0.055);
}

.referral-stat strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 1.8rem;
  line-height: 1;
}

/* 10. Legal */
.legal-page {
  max-width: auto;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

/* 11. CTA y Footer */
.cta-box {
  padding: 2.4rem;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.85fr 1fr;
  gap: 1.4rem;
  padding: 2rem 0;
}

.footer-list li + li {
  margin-top: 0.5rem;
}

.footer-list a {
  color: var(--text-soft);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0 2rem;
  color: var(--text-muted);
}

/* 12. WhatsApp, accesibilidad y cookies */
.whatsapp-float,
.accessibility-toggle {
  position: fixed;
  right: 20px;
  z-index: 1200;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.whatsapp-float {
  bottom: 22px;
  background: var(--whatsapp);
  color: #03111d;
  font-size: 1.55rem;
  font-weight: 900;
}

.accessibility-toggle {
  bottom: 92px;
  color: #03111d;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  cursor: pointer;
}

.accessibility-panel {
  position: fixed;
  right: 20px;
  bottom: 162px;
  z-index: 1300;
  display: none;
  width: min(350px, calc(100vw - 2rem));
  padding: 1rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.98));
}

.accessibility-panel.is-open {
  display: block;
}

.accessibility-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.accessibility-actions button {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1400;
  display: none;
  padding: 1.15rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.98));
}

.cookie-banner.is-visible {
  display: block;
}

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

.seo-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 13. Responsive */
@media (max-width: 1120px) {
  .hero-grid,
  .grid-2,
  .contact-grid,
  .two-col,
  .grid-3,
  .pricing-grid,
  .blog-grid,
  .feature-grid,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-toggle {
    display: grid;
  }

  .nav-panel {
    position: fixed;
    inset: 82px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: rgba(2, 6, 23, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-menu,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions .button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 78px 0 58px;
  }

  .card,
  .hero-card,
  .form-panel,
  .legal-card,
  .cta-box {
    padding: 1.3rem;
  }

  .hero-actions,
  .cookie-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .grid-4,
  .referral-stats,
  .form-row,
  .accessibility-actions {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 128px;
  }

  .whatsapp-float,
  .accessibility-toggle {
    right: 14px;
  }

  .accessibility-panel {
    right: 14px;
    bottom: 150px;
  }

  .toggle-wrap {
    width: 100%;
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .toggle-button {
    width: 100%;
  }
}
[x-cloak] {
  display: none !important;
}

.accessibility-panel {
  display: none;
}

.accessibility-panel.is-open {
  display: block;
}

select option {
  color: #111827;
  background: #ffffff;
}
/* ==============================
   DESCUENTOS
============================== */

.price-old {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 1rem;
  margin-right: 0.5rem;
}

.price-new {
  color: #22c55e;
  font-weight: 900;
}

.discount-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: #22c55e;
  color: #011f18;
  font-size: 0.75rem;
  font-weight: 800;
}
/* ==============================
   TARJETAS CON FOTO DE FONDO
============================== */

.project-card {
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(2, 6, 23, 0.25) 0%,
      rgba(2, 6, 23, 0.70) 45%,
      rgba(2, 6, 23, 0.96) 100%
    );
  z-index: 1;
}

.project-card-content {
  position: relative;
  z-index: 2;
  padding: 1.6rem;
}

.project-card .badge {
  margin-bottom: 0.8rem;
}

.project-card h3,
.project-card p,
.project-card li {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.project-card:hover {
  transform: translateY(-4px);
  transition: transform 220ms ease;
}
.whatsapp-icon {
  width: 30px;
  height: 30px;
  color: #03111d;
}
/* =====================================================
   PROMOCIÓN LIMITADA - PRIMEROS 10 CLIENTES
   ===================================================== */

.promo-limited {
  padding: 1.5rem 0;
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.22), transparent 35%),
    radial-gradient(circle at bottom right, rgba(132, 204, 22, 0.18), transparent 35%),
    rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.promo-limited-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.promo-kicker {
  display: inline-flex;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #050816;
  background: #a3e635;
}

.promo-limited h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  color: #ffffff;
}

.promo-limited p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.promo-counter {
  min-width: 170px;
  padding: 1rem;
  text-align: center;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.promo-counter-number {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
  color: #a3e635;
}

.promo-counter-text {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Cards personalizadas sin precio cerrado */

.card-custom {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(168, 85, 247, 0.12)),
    rgba(255, 255, 255, 0.05);
}

.card-custom::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(163, 230, 53, 0.14), transparent 32%);
}

.card-actions {
  margin-top: 1.25rem;
}

/* Responsive */

@media (max-width: 768px) {
  .promo-limited-inner {
    grid-template-columns: 1fr;
  }

  .promo-counter {
    width: 100%;
  }
}
/* =====================================================
   SECTORES PREMIUM CON IMAGEN REAL
   ===================================================== */

.sector-preview-grid,
.sector-full-grid,
.clients-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.sector-card-pro,
.client-card {
  overflow: hidden;
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.sector-card-pro:hover,
.client-card:hover {
  transform: translateY(-6px);
  border-color: rgba(163, 230, 53, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.sector-image-wrap,
.client-image-wrap {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.sector-image-wrap {
  aspect-ratio: 16 / 10;
}

.client-image-wrap {
  aspect-ratio: 16 / 10;
}

.sector-image-wrap img,
.client-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.sector-card-pro:hover .sector-image-wrap img,
.client-card:hover .client-image-wrap img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.04);
}

.sector-image-wrap::after,
.client-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 35%, rgba(5, 8, 22, 0.45)),
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 40%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.22), transparent 42%);
}

.sector-content-pro,
.client-content {
  padding: 1.25rem;
}

.sector-content-pro h3,
.client-content h3 {
  margin: 0.75rem 0 0.6rem;
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.25;
}

.sector-content-pro p,
.client-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.sector-content-pro .check-list {
  margin-top: 1rem;
}

.client-content .button {
  margin-top: 1.15rem;
}

/* =====================================================
   COMPATIBILIDAD: CARDS ANTIGUAS DE SECTOR
   Si queda alguna .sector-card con background-image,
   evitamos que se vea aplastada o demasiado baja.
   ===================================================== */

.sector-card {
  min-height: 280px;
  border-radius: 1.5rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.sector-content {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(5, 8, 22, 0.08), rgba(5, 8, 22, 0.82));
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
  .sector-preview-grid,
  .sector-full-grid,
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sector-preview-grid,
  .sector-full-grid,
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .sector-image-wrap,
  .client-image-wrap {
    aspect-ratio: 16 / 11;
  }

  .sector-content-pro,
  .client-content {
    padding: 1rem;
  }
}
.client-image-wrap-real {
  aspect-ratio: auto;
  padding: 0.5rem;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.18), transparent 35%),
    rgba(255, 255, 255, 0.05);
}

.client-image-wrap-real img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 3rem;
}
 /* Mejoras específicas para el blog de Oferly */
    .blog-card {
      overflow: hidden;
    }

    .blog-cover {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      border-radius: 1.25rem;
      margin-bottom: 1rem;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.04);
    }

    .blog-card h3 {
      margin-bottom: 0.8rem;
    }

    .article-preview {
      max-height: 18rem;
      overflow: hidden;
      position: relative;
    }

    .article-preview::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 5rem;
      background: linear-gradient(
        to bottom,
        rgba(5, 8, 22, 0),
        rgba(5, 8, 22, 0.96)
      );
      pointer-events: none;
    }

    .article-preview.is-open {
      max-height: none;
      overflow: visible;
    }

    .article-preview.is-open::after {
      display: none;
    }

    .article-preview h4 {
      margin-top: 1.5rem;
      margin-bottom: 0.65rem;
      font-size: 1.08rem;
      color: var(--text, #f8fafc);
    }

    .article-preview p {
      margin-bottom: 1rem;
      line-height: 1.8;
    }

    .article-cta-box {
      margin-top: 1.4rem;
      padding: 1rem;
      border-radius: 1.2rem;
      border: 1px solid rgba(163, 230, 53, 0.24);
      background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.16)),
        rgba(255, 255, 255, 0.04);
    }

    .image-prompt {
      margin-top: 1rem;
      padding: 0.9rem 1rem;
      border-radius: 1rem;
      border: 1px dashed rgba(168, 85, 247, 0.45);
      background: rgba(255, 255, 255, 0.035);
    }

    .image-prompt summary {
      cursor: pointer;
      font-weight: 700;
    }

    .image-prompt p {
      margin-top: 0.7rem;
      margin-bottom: 0;
      font-size: 0.95rem;
    }
    /* =========================================================
   OFERLY - BLOG PROFESIONAL Y ARTÍCULOS INDIVIDUALES
   Pegar al final de css/styles.css
   ========================================================= */

.blog-grid {
  align-items: stretch;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

.blog-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1.2rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.blog-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.blog-card p {
  color: var(--text-muted);
  line-height: 1.75;
}

.blog-card .button {
  margin-top: auto;
  width: fit-content;
}

.blog-post {
  padding-bottom: 5rem;
}

.blog-post-header {
  padding: 5rem 0 2.5rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
}

.blog-post-header h1 {
  max-width: 980px;
  margin-top: 1rem;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.blog-post-intro {
  max-width: 850px;
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: var(--text-soft);
}

.blog-post-cover {
  padding-bottom: 3rem;
}

.blog-post-cover img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  border-radius: 1.8rem;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.blog-post-narrow {
  max-width: 860px;
}

.blog-post-content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-soft);
}

.blog-post-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.blog-post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.blog-post-content p {
  margin-bottom: 1.35rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1.5rem 0 1.8rem;
  padding-left: 1.4rem;
}

.blog-post-content li {
  margin-bottom: 0.7rem;
}

.blog-cta-box {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.2), transparent 36%),
    radial-gradient(circle at bottom right, rgba(163, 230, 53, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.06);
}

.blog-cta-box strong,
.blog-cta-box h2 {
  display: block;
  margin-bottom: 0.8rem;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  color: var(--text);
}

.blog-cta-box p {
  color: var(--text-muted);
}

.image-prompt {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.image-prompt summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text-soft);
}

@media (max-width: 700px) {
  .blog-post-header {
    padding-top: 3.5rem;
  }

  .blog-post-cover img {
    border-radius: 1.2rem;
  }

  .blog-post-content {
    font-size: 1rem;
    line-height: 1.78;
  }
}
/* =========================================================
   BLOG - ARTÍCULOS RELACIONADOS
   ========================================================= */

.related-posts-section {
  padding: 4.5rem 0 5rem;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(163, 230, 53, 0.1), transparent 30%),
    rgba(255, 255, 255, 0.015);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.related-post-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.related-post-category {
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(163, 230, 53, 0.35);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.related-post-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
}

.related-post-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.related-post-card h3 a:hover {
  color: var(--accent);
}

.related-post-card p {
  flex: 1;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.related-post-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.related-post-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.related-post-link:hover::after {
  transform: translateX(4px);
}

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

@media (max-width: 640px) {
  .related-posts-section {
    padding: 3.5rem 0 4rem;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .related-post-card {
    padding: 1.2rem;
  }
}
/* =========================================================
   PÁGINA LEGAL
   Archivo: legal.css
   Uso: política de privacidad, aviso legal y cookies
========================================================= */

/* Desplazamiento suave al hacer clic en enlaces internos */
html {
  scroll-behavior: smooth;
}

/* Evita que el header fijo tape el título al saltar a una sección */
#privacidad,
#aviso-legal,
#cookies {
  scroll-margin-top: 120px;
}

/* Contenedor general */
.legal-container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Hero legal */
.legal-hero {
  padding: 90px 0 60px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 35%),
    linear-gradient(135deg, #0f172a 0%, #111827 55%, #1e293b 100%);
  color: #ffffff;
}

.legal-kicker {
  margin-bottom: 12px;
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.legal-hero p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Índice legal */
.legal-index {
  padding: 50px 0;
  background: #f8fafc;
}

.legal-index h2 {
  margin-bottom: 24px;
  color: #0f172a;
  font-size: 1.8rem;
}

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

.legal-index-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 130px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.legal-index-card span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 700;
}

.legal-index-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

/* Secciones legales */
.legal-section {
  padding: 70px 0;
  background: #ffffff;
  color: #1f2937;
}

.legal-section-alt {
  background: #f8fafc;
}

.legal-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 800;
}

.legal-section h2 {
  margin-bottom: 22px;
  color: #0f172a;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
}

.legal-section h3 {
  margin-top: 34px;
  margin-bottom: 12px;
  color: #111827;
  font-size: 1.25rem;
}

.legal-section h4 {
  margin-top: 22px;
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 1.05rem;
}

.legal-section p,
.legal-section li {
  color: #374151;
  font-size: 1rem;
  line-height: 1.85;
}

.legal-section ul {
  margin-top: 12px;
  padding-left: 22px;
}

.legal-section strong {
  color: #111827;
}

/* Tabla de cookies */
.cookies-table-wrapper {
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.cookies-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.cookies-table th,
.cookies-table td {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.cookies-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 800;
}

.cookies-table td {
  color: #374151;
  font-size: 0.95rem;
}

.cookies-table tr:last-child td {
  border-bottom: none;
}

/* Botón volver arriba */
.back-to-top {
  margin-top: 40px;
}

.back-to-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.back-to-top a:hover {
  transform: translateY(-2px);
  background: #2563eb;
}

/* Footer legal */
.site-footer {
  padding: 32px 0;
  background: #0f172a;
  color: #e5e7eb;
}

.footer-container {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: #cbd5e1;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: #e5e7eb;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-legal a:hover {
  color: #93c5fd;
}

/* Responsive */
@media (max-width: 850px) {
  .legal-index-grid {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    padding: 70px 0 45px;
  }

  .legal-section {
    padding: 55px 0;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================================================
   AJUSTES PARA DECLARACIÓN DE ACCESIBILIDAD EN LEGAL.HTML
========================================================= */

/* Añadimos el ancla de accesibilidad para que el header no tape el título */
#accesibilidad {
  scroll-margin-top: 120px;
}

/* Índice con 4 tarjetas */
.legal-index-grid-four {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive para el índice legal de 4 apartados */
@media (max-width: 1100px) {
  .legal-index-grid-four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .legal-index-grid-four {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   OFERLY · FONDO DE CÓDIGO SINCRONIZADO CON EL SCROLL

   El contenido permanece por encima y totalmente interactivo.
   La capa de código es decorativa: no recibe clics ni foco.
   ========================================================= */

body {
  isolation: isolate;
}

body > main,
body > .site-footer {
  position: relative;
  z-index: 1;
}

.oferly-code-background {
  --oferly-code-drift: 0px;
  position: fixed;
  inset: 82px 0 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: strict;
  opacity: 0.30;
}

.oferly-code-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(6, 8, 22, 0.04) 0%,
      rgba(6, 8, 22, 0.28) 23%,
      rgba(6, 8, 22, 0.86) 43%,
      rgba(6, 8, 22, 0.86) 57%,
      rgba(6, 8, 22, 0.28) 77%,
      rgba(6, 8, 22, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(6, 8, 22, 0.22),
      transparent 18%,
      transparent 78%,
      rgba(6, 8, 22, 0.35)
    );
}

.oferly-code-background__meta {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: clamp(18px, 4vw, 68px);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.oferly-code-background__language {
  color: var(--accent);
  font-weight: 800;
}

.oferly-code-background[data-language="css"]
  .oferly-code-background__language {
  color: #93c5fd;
}

.oferly-code-background[data-language="javascript"]
  .oferly-code-background__language {
  color: #fde047;
}

.oferly-code-background[data-language="php"]
  .oferly-code-background__language {
  color: #c4b5fd;
}

.oferly-code-background__frame {
  position: absolute;
  inset: 62px clamp(16px, 3vw, 54px) 0;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: clamp(0.65rem, 1.5vw, 1.2rem);
  transform: translate3d(0, var(--oferly-code-drift), 0);
  will-change: transform;
}

.oferly-code-background__numbers,
.oferly-code-background__pre {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.69rem, 0.84vw, 0.84rem);
  line-height: 1.75;
}

.oferly-code-background__numbers {
  color: rgba(203, 213, 225, 0.55);
  text-align: right;
}

.oferly-code-background__pre {
  min-width: 0;
  overflow: hidden;
  color: #bfdbfe;
  text-shadow: 0 0 18px rgba(37, 99, 235, 0.42);
}

.oferly-code-background__code {
  font: inherit;
}

.oferly-code-background__cursor {
  display: inline-block;
  width: 0.48em;
  height: 1.05em;
  margin-left: 0.2em;
  vertical-align: -0.16em;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(163, 230, 53, 0.62);
}

body.high-contrast .oferly-code-background {
  display: none;
}

@media (max-width: 720px) {
  .oferly-code-background {
    opacity: 0.21;
  }

  .oferly-code-background::after {
    background: rgba(6, 8, 22, 0.46);
  }

  .oferly-code-background__meta {
    top: 16px;
    right: 14px;
    left: 14px;
    justify-content: flex-end;
    font-size: 0.69rem;
  }

  .oferly-code-background__frame {
    inset: 52px 8px 0;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    gap: 0.55rem;
  }

  .oferly-code-background__numbers,
  .oferly-code-background__pre {
    font-size: 0.69rem;
    line-height: 1.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oferly-code-background__frame {
    transform: none;
    will-change: auto;
  }
}
/* =========================================================
   PUNTUALY BY OFERLY
   ========================================================= */

.puntualy-home,
.puntualy-detail {
  --puntualy-primary: #7957f2;
  --puntualy-secondary: #c817dc;
  --puntualy-accent: #55d6a5;
  --puntualy-dark: #071322;
  --puntualy-card: rgba(255, 255, 255, 0.08);
  --puntualy-border: rgba(255, 255, 255, 0.14);
  --puntualy-text: #f7f8ff;
  --puntualy-muted: #b8c1d9;

  position: relative;
  overflow: hidden;
  color: var(--puntualy-text);
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(121, 87, 242, 0.25),
      transparent 34%
    ),
    radial-gradient(
      circle at 88% 75%,
      rgba(85, 214, 165, 0.16),
      transparent 30%
    ),
    var(--puntualy-dark);
}

.puntualy-home h2,
.puntualy-detail h2,
.puntualy-detail h3 {
  color: var(--puntualy-text);
}

.puntualy-home__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.puntualy-home__content {
  position: relative;
  z-index: 2;
}

.puntualy-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(85, 214, 165, 0.4);
  border-radius: 999px;
  color: #b9ffe4;
  background: rgba(85, 214, 165, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.puntualy-home h2,
.puntualy-detail h2 {
  max-width: 820px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.puntualy-lead {
  max-width: 760px;
  color: var(--puntualy-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.7;
}

.puntualy-checklist {
  display: grid;
  gap: 0.8rem;
  margin: 1.8rem 0 2rem;
  padding: 0;
  list-style: none;
}

.puntualy-checklist li {
  position: relative;
  padding-left: 1.8rem;
  color: #e7eaf5;
}

.puntualy-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--puntualy-accent);
  font-weight: 900;
}

.puntualy-small {
  margin-top: 1rem;
  color: var(--puntualy-muted);
  font-size: 0.88rem;
}

/* Vista previa de la aplicación */

.puntualy-preview {
  position: relative;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--puntualy-border);
  border-radius: 28px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.13),
      rgba(255, 255, 255, 0.045)
    );
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.puntualy-preview::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(121, 87, 242, 0.55),
    transparent 45%,
    rgba(85, 214, 165, 0.35)
  );
  filter: blur(14px);
  opacity: 0.65;
}

.puntualy-preview__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.puntualy-preview__header div {
  display: grid;
}

.puntualy-preview__header small {
  color: var(--puntualy-muted);
}

.puntualy-preview__logo {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: linear-gradient(
    135deg,
    var(--puntualy-primary),
    var(--puntualy-accent)
  );
  font-size: 1.35rem;
  font-weight: 900;
}

.puntualy-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: #caffeb;
  background: rgba(85, 214, 165, 0.12);
  font-size: 0.74rem;
  font-weight: 800;
}

.puntualy-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--puntualy-accent);
  box-shadow: 0 0 12px var(--puntualy-accent);
}

.puntualy-preview__time {
  display: grid;
  justify-items: center;
  margin: 2.2rem 0;
}

.puntualy-preview__time small,
.puntualy-preview__time span {
  color: var(--puntualy-muted);
}

.puntualy-preview__time strong {
  margin: 0.35rem 0;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.puntualy-preview__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.puntualy-preview__actions span {
  padding: 0.8rem 0.5rem;
  border: 1px solid var(--puntualy-border);
  border-radius: 12px;
  color: var(--puntualy-muted);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.puntualy-preview__actions .is-active {
  border-color: transparent;
  color: white;
  background: linear-gradient(
    135deg,
    var(--puntualy-primary),
    var(--puntualy-secondary)
  );
}

.puntualy-preview__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
}

.puntualy-preview__summary div {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.puntualy-preview__summary small {
  color: var(--puntualy-muted);
}

/* Página de servicios */

.puntualy-detail__intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
  margin-bottom: 3rem;
}

.puntualy-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.puntualy-feature {
  padding: 1.6rem;
  border: 1px solid var(--puntualy-border);
  border-radius: 20px;
  background: var(--puntualy-card);
}

.puntualy-feature__number {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--puntualy-accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.puntualy-feature h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.puntualy-feature p {
  margin: 0;
  color: var(--puntualy-muted);
  line-height: 1.65;
}

.puntualy-detail__highlight {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 24px;
  color: #11182a;
  background: linear-gradient(135deg, #f7f4ff, #dffcef);
}

.puntualy-detail__highlight h3 {
  max-width: 750px;
  color: #11182a;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.puntualy-detail__highlight p {
  max-width: 780px;
  color: #4f5870;
}

.puntualy-detail__cta {
  display: grid;
  gap: 0.75rem;
  min-width: 230px;
  text-align: center;
}

.puntualy-detail__cta span {
  color: #5f687e;
  font-size: 0.78rem;
}

.puntualy-legal-note {
  max-width: 960px;
  margin: 1.5rem auto 0;
  color: var(--puntualy-muted);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

/* Responsive */

@media (max-width: 900px) {
  .puntualy-home__grid,
  .puntualy-detail__intro,
  .puntualy-detail__highlight {
    grid-template-columns: 1fr;
  }

  .puntualy-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .puntualy-detail__cta {
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .puntualy-features,
  .puntualy-preview__summary {
    grid-template-columns: 1fr;
  }

  .puntualy-preview__actions {
    grid-template-columns: 1fr;
  }

  .puntualy-status {
    display: none;
  }
}