/* ============================================================
   XAVIERROYES.COM - APP.CSS ÚNICO DE PRODUCCIÓN
   Fecha y hora compilación: 2026-05-25 13:30 CEST
   Versión: DIOS / preproducción
   Ruta: /assets/css/app.css

   CONTENIDO
   1. Estilos globales del sitio.
   2. Estilos de /tarifas/.
   3. Estilos de /auditoria-web/ y modal de captación.
   4. Ajustes finales responsive y limpieza de estilos inline.

   Nota: Font Awesome sigue como dependencia externa de iconos.
   ============================================================ */

/* === 1. GLOBAL ORIGINAL LIMPIO === */
/* ============================================================
   XAVIERROYES.COM - CSS PRINCIPAL
   Fecha: 2026-05-07
   Mobile-first real. Identidad: consultoría tecnológica premium.
   Ruta actual: /assets/css/app.css
   Nota: las variables de :root concentran colores, radios, sombras y medidas principales para facilitar mantenimiento.
   ============================================================ */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --ink: #07111f;
  --ink-2: #122033;
  --muted: #617083;
  --border: rgba(15, 23, 42, .11);
  --primary: #0b67e3;
  --primary-2: #08a8d8;
  --primary-dark: #084aa5;
  --success: #22c55e;
  --shadow: 0 18px 50px rgba(7, 17, 31, .10);
  --shadow-soft: 0 8px 26px rgba(7, 17, 31, .08);
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --header-h: 72px;
  --ease: 220ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { margin: 0; padding-left: 1.1rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 9999;
  background: var(--ink);
  color: white;
  padding: .7rem 1rem;
  border-radius: 999px;
}
.skip-link:focus { left: 8px; }

.container { width: min(92%, var(--container)); margin-inline: auto; }
.narrow { max-width: 850px; }

/* Header
   Cabecera fija con efecto glass. Cambiar logo o altura desde .brand img y --header-h. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, .84);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  backdrop-filter: blur(18px);
}
.header-shell {
  width: min(94%, var(--container));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand img { width: 168px; height: auto; }

.nav-toggle {
  width: 46px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 4px 18px rgba(7, 17, 31, .06);
  cursor: pointer;
}
.nav-toggle-line {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child { transform: translateY(-5px) rotate(-45deg); }

.main-nav {
  position: absolute;
  top: calc(var(--header-h) + 10px);
  left: 3%;
  right: 3%;
  display: grid;
  gap: .35rem;
  padding: .7rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
}
.main-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.main-nav a {
  padding: .82rem 1rem;
  border-radius: 15px;
  color: var(--ink-2);
  font-size: .95rem;
  font-weight: 750;
}
.main-nav a:hover { background: var(--surface-soft); color: var(--primary); }
.nav-cta { background: var(--ink); color: #fff !important; text-align: center; }

/* Buttons
   Sistema base de botones reutilizable: primary, ghost y variantes CTA. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  padding: .82rem 1.18rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 30px rgba(11, 103, 227, .28);
}
.btn-dark { color: #fff; background: var(--ink); }
.btn-light { color: var(--ink); background: #fff; border-color: var(--border); }
.btn-ghost {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  backdrop-filter: blur(12px);
}
.btn-full { width: 100%; }

/* Hero
   Bloque principal de venta: vídeo de fondo, claim, CTA y métricas. */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 46px) 0 56px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* Vídeo de fondo de la home.
     Ajuste más claro: deja ver más imagen sin perder legibilidad del texto. */
  opacity: .78;
  filter:
    brightness(1.36)
    contrast(1.03)
    saturate(1.08);
}
.hero-shade {
  position: absolute;
  inset: 0;

  /*
   * Capa de lectura del hero.
   * Antes estaba más cerrada/oscura; ahora deja pasar más imagen,
   * especialmente en el centro y derecha del hero.
   */
  background:
    radial-gradient(circle at 70% 18%, rgba(8,168,216,.22), transparent 34%),
    linear-gradient(90deg, rgba(7,17,31,.78) 0%, rgba(7,17,31,.50) 54%, rgba(7,17,31,.26) 100%),
    linear-gradient(180deg, rgba(7,17,31,.10), rgba(7,17,31,.55));
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(92%, var(--container));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.eyebrow, .section-label {
  margin: 0 0 .85rem;
  color: var(--primary-2);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.35rem, 13vw, 5.65rem);
  line-height: .96;
  letter-spacing: -.065em;
}
.hero-lead {
  max-width: 680px;
  margin: 1.2rem 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.7rem; }
.hero-actions .btn { width: 100%; }
.trust-strip {
  display: grid;
  gap: .7rem;
  margin: 1.5rem 0 0;
}
.trust-strip div {
  padding: .9rem 1rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 17px;
  background: rgba(255,255,255,.08);
}
.trust-strip dt { font-weight: 900; }
.trust-strip dd { margin: .1rem 0 0; color: rgba(255,255,255,.68); font-size: .9rem; }
.hero-panel {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 80px rgba(0,0,0,.28);
  padding: 1rem;
}
.panel-top {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding-bottom: 1rem;
  color: rgba(255,255,255,.82);
  font-weight: 800;
}
.status-dot { width: .7rem; height: .7rem; border-radius: 999px; background: var(--success); box-shadow: 0 0 0 8px rgba(34,197,94,.16); }
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.70);
}
.metric-row strong { color: #fff; text-align: right; }
.panel-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  color: #fff;
  font-weight: 900;
}

/* Sections
   Componentes compartidos de contenido: servicios, método, seguridad, FAQ y contacto. */
section { scroll-margin-top: calc(var(--header-h) + 24px); }
.intro-section, .services-section, .method-section, .tech-section, .pricing-section, .contact-section { padding: 4.4rem 0; }
.intro-grid, .security-grid, .tech-grid, .contact-grid { display: grid; gap: 2rem; }
.intro-grid h2, .section-heading h2, .security-copy h2, .tech-grid h2, .contact-copy h2, .page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.intro-grid p, .section-heading p, .security-copy p, .tech-grid p, .contact-copy p, .page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
}
.section-heading { max-width: 790px; margin-bottom: 2rem; }
.center { text-align: center; margin-inline: auto; }

.service-grid { display: grid; gap: 1rem; }
.service-card, .pricing-card, .security-list article, .process-grid article, .audit-grid article, .cta-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-soft);
}
.service-card {
  padding: 1.2rem;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(11,103,227,.22); }
.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(11,103,227,.10), rgba(8,168,216,.10));
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.service-card h3, .pricing-card h3, .process-grid h3 { margin: 0 0 .55rem; font-size: 1.35rem; line-height: 1.15; }
.service-card p, .pricing-card li, .process-grid p, .security-list p { color: var(--muted); }
.service-card ul { color: var(--ink-2); font-weight: 650; }

.security-section {
  padding: 4.4rem 0;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(8,168,216,.25), transparent 32%),
    linear-gradient(135deg, #07111f, #0f2238);
}
.security-copy h2 { color: #fff; }
.security-copy p { color: rgba(255,255,255,.72); }
.security-list { display: grid; gap: .9rem; }
.security-list article {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  padding: 1rem;
}
.security-list span, .process-grid span { color: var(--primary-2); font-weight: 950; letter-spacing: .08em; }
.security-list strong { display: block; margin-top: .35rem; color: #fff; font-size: 1.1rem; }
.security-list p { margin-bottom: 0; color: rgba(255,255,255,.66); }

.process-grid { display: grid; gap: 1rem; }
.process-grid article { padding: 1.1rem; }
.tech-cloud { display: flex; flex-wrap: wrap; gap: .7rem; }
.tech-cloud span {
  display: inline-flex;
  padding: .7rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(7,17,31,.05);
}

.pricing-grid { display: grid; gap: 1rem; }
.pricing-card { position: relative; padding: 1.25rem; }
.pricing-card.highlighted {
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #102743);
  border-color: rgba(255,255,255,.12);
}
.pricing-card.highlighted li { color: rgba(255,255,255,.78); }
.price { margin: .7rem 0 1rem; color: var(--primary); font-weight: 950; font-size: 2rem; letter-spacing: -.04em; }
.highlighted .price { color: #fff; }
.badge {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(8,168,216,.18);
  color: #9be8ff;
  font-weight: 900;
  font-size: .78rem;
}

.contact-section { background: #fff; }
.direct-contact { display: grid; gap: .7rem; margin-top: 1.2rem; }
.direct-contact a { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 850; }
.contact-form {
  display: grid;
  gap: .9rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-soft);
}
.contact-form label { display: grid; gap: .4rem; color: var(--ink-2); font-weight: 850; }
.form-row { display: grid; gap: .9rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: .92rem 1rem;
  color: var(--ink);
  outline: none;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: rgba(11,103,227,.55); box-shadow: 0 0 0 4px rgba(11,103,227,.10); }
.contact-form button[disabled] { cursor: wait; opacity: .78; transform: none; }
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}
.privacy-check { grid-template-columns: auto 1fr; align-items: start; font-size: .92rem; font-weight: 600 !important; color: var(--muted) !important; }
.privacy-check input { width: 18px; height: 18px; margin-top: .2rem; }
.privacy-check a { color: var(--primary); font-weight: 900; }
.form-message {
  display: none;
  margin: 0;
  padding: .85rem 1rem;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 850;
  line-height: 1.45;
}
.form-message:not(:empty) { display: block; }
.form-message.is-success { color: #166534; background: #ecfdf5; border-color: rgba(34,197,94,.28); }
.form-message.is-error { color: #991b1b; background: #fef2f2; border-color: rgba(239,68,68,.28); }
.form-message.is-loading { color: var(--primary-dark); background: #eff6ff; border-color: rgba(11,103,227,.22); }

/* Legal / audit pages
   Estilos comunes para páginas legales, auditoría y error 404. */
.legal-main { padding-top: var(--header-h); }
.page-hero { padding: 4rem 0 2rem; background: linear-gradient(180deg, #fff, var(--bg)); }
.legal-card {
  max-width: 920px;
  margin: 2rem auto 4rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.legal-card h2 { margin-top: 2rem; }
.legal-card a { color: var(--primary); font-weight: 850; }
.audit-grid { display: grid; gap: 1rem; padding-block: 2rem; }
.audit-grid article { padding: 1.1rem; }
.audit-grid i { color: var(--primary); font-size: 1.5rem; }
.audit-grid h2 { margin-bottom: .3rem; }
.cta-box { margin-block: 2rem 4rem; padding: 1.4rem; text-align: center; }

/* Footer
   Pie de página común. Mantener enlaces legales y datos de contacto actualizados. */
.site-footer {
  color: rgba(255,255,255,.76);
  background: #07111f;
  padding: 3rem 0 1rem;
}
.footer-grid { display: grid; gap: 1.6rem; }
.footer-logo { margin-bottom: 1rem; }
.site-footer h3 { color: #fff; margin: 0 0 .7rem; }
.site-footer a { display: block; color: rgba(255,255,255,.76); margin: .25rem 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  width: min(92%, var(--container));
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.simple-footer { text-align: center; }
.scroll-top {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  cursor: pointer;
}
.scroll-top.visible { display: grid; }
.cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(760px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  transform: translate(-50%, -50%);
  z-index: 2400;
  display: none;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}
.cookie-banner.visible { display: grid; }
.cookie-banner p { margin: .2rem 0 0; color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.cookie-actions .btn { min-height: 42px; padding: .6rem .85rem; }

@media (min-width: 540px) {
  .hero-actions .btn { width: auto; }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 760px) {
  .intro-grid, .security-grid, .tech-grid, .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .form-row-2 { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-large { grid-column: span 2; }
  .process-grid, .pricing-grid, .audit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr .8fr .8fr; }
  .contact-form { padding: 1.35rem; }
}

@media (min-width: 1020px) {
  :root { --header-h: 78px; }
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: .2rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a { padding: .65rem .85rem; font-size: .9rem; }
  .nav-cta { padding-inline: 1rem !important; border-radius: 999px; }
  .hero { min-height: 88vh; }
  .hero-inner { grid-template-columns: 1.25fr .75fr; }
  .hero-panel { padding: 1.3rem; transform: translateY(26px); }
  .intro-section, .services-section, .method-section, .tech-section, .pricing-section, .contact-section, .security-section { padding: 6.5rem 0; }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card-large { grid-column: span 2; grid-row: span 2; padding: 1.6rem; }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .audit-grid { grid-template-columns: repeat(4, 1fr); }
  .cookie-banner { grid-template-columns: 1fr auto; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* === 2. TARIFAS PRIVADAS === */
/* ============================================================
   XAVIERROYES.COM - TARIFAS PRIVADAS
   Fecha: 2026-05-26
   Versión: FIX CSS / rutas absolutas

   OBJETIVO
   - Estilos específicos para /tarifas/.
   - No modifica la home ni el formulario de contacto.
   - Preparado para páginas noindex enviadas por enlace directo.
   ============================================================ */

/* Base de página */
.tarifas-main {
  padding-top: calc(var(--header-h) + 28px);
  background:
    radial-gradient(circle at 12% 4%, rgba(11,103,227,.10), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(8,168,216,.11), transparent 30%),
    var(--bg);
  min-height: 100vh;
}

.tariff-shell {
  width: min(92%, var(--container));
  margin-inline: auto;
}

.tariff-section {
  padding: .5rem 0 2.2rem;
}

/* Migas de pan */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .92rem;
}

.breadcrumbs span {
  opacity: .65;
}

.breadcrumbs a {
  color: var(--muted);
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs strong {
  color: var(--ink);
}

/* Hero de ficha individual */
.tariff-hero {
  padding: 2.4rem 0 1.8rem;
}

.product-grid {
  display: grid;
  gap: 1.2rem;
}

.product-copy,
.product-visual,
.tariff-panel,
.info-card,
.cross-sell,
.gallery-card,
.process-card,
.cost-card,
.tariff-card,
.cta-panel {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.product-copy {
  padding: clamp(1.25rem, 3vw, 1.8rem);
}

.product-copy h1 {
  margin: 0 0 .85rem;
  font-size: clamp(2rem, 4.8vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}

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

.tariff-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem .85rem;
  border-radius: 999px;
  background: rgba(11,103,227,.08);
  color: var(--primary-dark);
  font-weight: 850;
  margin-bottom: 1rem;
}

.price-highlight {
  display: inline-flex;
  flex-direction: column;
  gap: .18rem;
  margin: 1rem 0 1.15rem;
  padding: 1rem 1.15rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(11,103,227,.08), rgba(8,168,216,.14));
}

.price-highlight strong {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  color: var(--ink);
}

.price-highlight span {
  color: var(--muted);
  font-size: .95rem;
}

.product-actions,
.cta-row,
.audit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.2rem;
}

.product-meta {
  display: grid;
  gap: .7rem;
  margin-top: 1.2rem;
}

.product-meta div {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink-2);
  font-weight: 650;
}

.product-meta i {
  color: var(--primary);
}

.product-visual {
  padding: .85rem;
  align-self: stretch;
}

.product-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 22px;
  background: #07111f;
}

/* Tarjetas rápidas */
.quick-facts {
  display: grid;
  gap: 1rem;
  margin: .2rem auto 2rem;
}

.quick-facts .info-card {
  padding: 1.25rem;
}

.info-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(11,103,227,.08);
  color: var(--primary);
  margin-bottom: .8rem;
  font-size: 1.2rem;
}

.info-card h3,
.tariff-panel h2,
.gallery-card h3,
.process-card h3,
.cost-card h3,
.cross-sell h3,
.cta-panel h2,
.tariff-card h3 {
  margin: 0 0 .55rem;
}

.info-card p,
.tariff-panel p,
.cross-sell p,
.gallery-card p,
.process-card p,
.cost-card p,
.cta-panel p,
.tariff-card p {
  margin: 0;
  color: var(--muted);
}

/* Grids internos */
.dual-grid,
.gallery-grid,
.process-grid,
.cost-grid,
.cross-grid,
.tariff-grid {
  display: grid;
  gap: 1rem;
}

.tariff-panel {
  padding: 1.4rem;
}

.tariff-panel ul {
  margin-top: .9rem;
  color: var(--ink-2);
}

.tariff-panel li + li {
  margin-top: .55rem;
}

.panel-note {
  margin-top: .9rem;
  padding: .8rem 1rem;
  border-radius: 18px;
  background: rgba(11,103,227,.06);
  color: var(--ink-2) !important;
}

/* Galería */
.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  min-height: 210px;
  object-fit: cover;
  background: #091525;
}

.gallery-copy {
  padding: 1rem 1.1rem 1.2rem;
}

/* Proceso, costes y tarjetas de precio */
.process-card,
.cost-card,
.tariff-card {
  padding: 1.2rem;
}

.process-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11,103,227,.14), rgba(8,168,216,.18));
  color: var(--primary-dark);
  font-weight: 850;
  margin-bottom: .75rem;
}

.cost-price {
  font-size: 1.55rem;
  font-weight: 850;
  color: var(--ink);
  margin: .35rem 0 .2rem;
}

.cross-sell {
  padding: 1.35rem;
}

.cross-sell strong {
  color: var(--primary-dark);
}

.cta-panel {
  padding: 1.6rem;
  display: grid;
  gap: .9rem;
  margin-bottom: 2.5rem;
}

/* Índice /tarifas/ */
.index-hero {
  padding: 2.4rem 0 2rem;
}

.index-hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(8,168,216,.24), transparent 34%),
    linear-gradient(145deg, rgba(7,17,31,.98), rgba(11,103,227,.95));
  border-radius: 32px;
  color: #fff;
  box-shadow: var(--shadow);
}

.index-hero-panel h1 {
  margin: .7rem 0 .85rem;
  max-width: 840px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.index-hero-panel p {
  color: rgba(255,255,255,.78);
  max-width: 850px;
}

.index-hero-panel .btn-ghost {
  color: #fff;
}

.section-heading-lite {
  margin-bottom: 1rem;
}

.section-heading-lite h2 {
  margin: 0 0 .45rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -.025em;
}

.small-note {
  color: var(--muted);
  font-size: .95rem;
}

/* Tarjetas del índice */
.tariff-card {
  display: grid;
  gap: .85rem;
  align-content: start;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.tariff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(11,103,227,.22);
}

.tariff-thumb {
  border-radius: 22px;
  overflow: hidden;
  background: #091525;
}

.tariff-thumb img {
  width: 100%;
  min-height: 180px;
  object-fit: cover;
}

.tariff-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--ink-2);
}

.tariff-list li + li {
  margin-top: .35rem;
}

.private-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 750;
}

/* Responsive */
@media (max-width: 560px) {
  .tarifas-main {
    padding-top: calc(var(--header-h) + 16px);
  }

  .product-copy,
  .tariff-panel,
  .cta-panel,
  .index-hero-panel {
    border-radius: 24px;
  }

  .product-actions .btn,
  .cta-row .btn {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .quick-facts,
  .cost-grid,
  .process-grid,
  .gallery-grid,
  .cross-grid,
  .tariff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: 1.05fr .95fr;
    align-items: stretch;
  }

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

@media (min-width: 960px) {
  .quick-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: 1.25fr .9fr .9fr;
  }

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

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

/* === 3. AUDITORÍA WEB Y MODAL === */
/* ============================================================
   XAVIERROYES.COM - AUDITORÍA WEB Y MODAL DE CAPTACIÓN
   Fecha: 2026-05-25 23:59
   Ruta original: /assets/css/auditoria-web.css · Integrado en /assets/css/app.css

   CONTENIDO
   1. Página /auditoria-web/
   2. Resultados PageSpeed
   3. Modal en home
   ============================================================ */

/* Página principal de auditoría */
.audit-page {
  padding-top: var(--header-h);
  background: #f6f8fb;
}

/* Hero de la auditoría */
.audit-hero {
  position: relative;
  padding: 3.2rem 0 2.2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(11,103,227,.18), transparent 32%),
    radial-gradient(circle at 92% 10%, rgba(8,168,216,.18), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
}

.audit-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -42% -10%;
  height: 300px;
  background: linear-gradient(135deg, rgba(11,103,227,.10), rgba(8,168,216,.10));
  transform: rotate(-2deg);
  pointer-events: none;
}

.audit-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.audit-copy,
.audit-side-card,
.audit-result-card,
.audit-summary,
.audit-contact-panel,
.audit-error-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(7,17,31,.10);
}

.audit-copy {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.audit-copy h1 {
  max-width: 780px;
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}

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

.audit-lead {
  max-width: 760px;
  font-size: 1.08rem;
}

/* Formulario de la auditoría */
.audit-form {
  margin-top: 1.4rem;
}

.audit-form label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 850;
}

.audit-input-row {
  display: grid;
  gap: .75rem;
}

.audit-input-row input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 999px;
  padding: 0 1.15rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  box-shadow: 0 8px 20px rgba(7,17,31,.05);
}

.audit-input-row input:focus {
  border-color: rgba(11,103,227,.55);
  box-shadow: 0 0 0 4px rgba(11,103,227,.12);
}

.audit-form small {
  display: block;
  margin-top: .6rem;
  color: var(--muted);
}

.audit-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-weight: 800;
}

.audit-status[data-type="error"] { color: #b91c1c; }
.audit-status[data-type="success"] { color: #15803d; }
.audit-status[data-type="info"] { color: var(--primary-dark); }

/* Tarjeta lateral */
.audit-side-card {
  padding: clamp(1.2rem, 3vw, 1.6rem);
  align-self: stretch;
}

.audit-side-top {
  display: flex;
  gap: .6rem;
  align-items: center;
  margin-bottom: 1rem;
}

.audit-side-card ul {
  display: grid;
  gap: .75rem;
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
}

.audit-side-card li {
  display: flex;
  gap: .7rem;
  align-items: center;
  color: var(--ink-2);
  font-weight: 750;
}

.audit-side-card i {
  width: 22px;
  color: var(--primary);
}

.audit-side-card p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

/* Salida de resultados */
.audit-output-section {
  padding: 1.3rem 0 3.4rem;
}

.audit-results {
  display: grid;
  gap: 1rem;
}

.audit-summary,
.audit-contact-panel,
.audit-error-card {
  padding: clamp(1.2rem, 3vw, 1.6rem);
}

.audit-summary h2,
.audit-contact-panel h3,
.audit-error-card h2 {
  margin: 0 0 .65rem;
  letter-spacing: -.02em;
}

.audit-summary p,
.audit-contact-panel p,
.audit-error-card p {
  color: var(--muted);
  margin: 0;
}

.audit-results-grid {
  display: grid;
  gap: 1rem;
}

.audit-result-card {
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.audit-result-card h3 {
  margin: 0 0 1rem;
}

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

.audit-score {
  padding: .95rem;
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,.09);
  background: #f8fbff;
}

.audit-score span,
.audit-score small {
  display: block;
  color: var(--muted);
  font-size: .82rem;
}

.audit-score strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
  margin: .28rem 0;
}

.audit-score--good strong { color: #15803d; }
.audit-score--medium strong { color: #b45309; }
.audit-score--bad strong { color: #b91c1c; }

.audit-metrics {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

.audit-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem .85rem;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(15,23,42,.07);
}

.audit-metrics span {
  color: var(--muted);
}

.audit-result-card h4 {
  margin: 1.1rem 0 .7rem;
}

.audit-suggestions {
  display: grid;
  gap: .75rem;
  padding: 0;
  list-style: none;
}

.audit-suggestions li {
  padding: .9rem;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(15,23,42,.07);
}

.audit-suggestions strong,
.audit-suggestions span {
  display: block;
}

.audit-suggestions span {
  color: var(--muted);
  margin-top: .25rem;
  font-size: .92rem;
}

.audit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.1rem;
}

/* Error bonito, sin mostrar textos técnicos al cliente */
.audit-error-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  border-color: rgba(180,83,9,.20);
  background: linear-gradient(135deg, #fff, #fff7ed);
}

.audit-error-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #b45309;
  background: rgba(251,146,60,.14);
  font-size: 1.35rem;
}

.audit-error-url {
  margin-top: .9rem;
  padding: .8rem .9rem;
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  color: var(--ink-2);
  border: 1px solid rgba(15,23,42,.07);
  word-break: break-word;
}

/* Modal de captación en home */
.audit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7,17,31,.58);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.audit-modal-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.audit-modal-card {
  width: min(100%, 560px);
  position: relative;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(8,168,216,.16), transparent 30%),
    #fff;
  box-shadow: 0 28px 80px rgba(7,17,31,.28);
  border: 1px solid rgba(255,255,255,.55);
}

.audit-modal-card h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

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

.audit-modal-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.audit-modal-form {
  margin-top: 1rem;
}

.audit-modal-form label {
  display: block;
  margin-bottom: .45rem;
  font-weight: 850;
}

.audit-modal-row {
  display: grid;
  gap: .7rem;
}

.audit-modal-row input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 999px;
  padding: 0 1rem;
  color: var(--ink);
  outline: none;
}

.audit-modal-row input:focus {
  border-color: rgba(11,103,227,.55);
  box-shadow: 0 0 0 4px rgba(11,103,227,.12);
}

.audit-modal-form small {
  display: block;
  margin-top: .55rem;
  color: var(--muted);
}

.audit-modal-status {
  margin-top: .8rem;
  font-weight: 800;
  color: #b91c1c;
}

/* Responsive */
@media (max-width: 520px) {
  .audit-score-grid {
    grid-template-columns: 1fr;
  }

  .audit-error-card {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 760px) {
  .audit-hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    align-items: stretch;
  }

  .audit-input-row,
  .audit-modal-row {
    grid-template-columns: 1fr auto;
  }

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

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


/* ============================================================
   RESULTADOS DE AUDITORÍA - CÍRCULOS DE PUNTUACIÓN
   Fecha: 2026-05-26
   Objetivo: mostrar las puntuaciones como medidores circulares,
   sin símbolo de porcentaje visible, y explicar términos técnicos.
   ============================================================ */

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

.audit-score {
  --ring-color: var(--primary);
  --score: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .85rem;
  padding: .9rem;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.09);
  background: #f8fbff;
}

.audit-score--good { --ring-color: #15803d; }
.audit-score--medium { --ring-color: #b45309; }
.audit-score--bad { --ring-color: #b91c1c; }
.audit-score--unknown { --ring-color: #64748b; }

.audit-ring {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 60%),
    conic-gradient(var(--ring-color) calc(var(--score) * 1%), #e4ebf5 0);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
}

.audit-ring span {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.audit-score-copy strong,
.audit-score-copy small {
  display: block;
}

.audit-score-copy strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.audit-score-copy small {
  margin-top: .18rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
}

.audit-score-help {
  display: grid;
  gap: .45rem;
  margin: 1rem 0;
  padding: .9rem 1rem;
  border-radius: 18px;
  background: rgba(11,103,227,.055);
  border: 1px solid rgba(11,103,227,.08);
}

.audit-score-help p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

.audit-score-help strong {
  color: var(--ink-2);
}

.audit-metrics {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

.audit-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem .9rem;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(15,23,42,.07);
}

.audit-metrics span {
  color: var(--ink-2);
  font-weight: 800;
}

.audit-metrics span small {
  display: block;
  margin-top: .12rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}

.audit-metrics strong {
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .audit-score-grid {
    grid-template-columns: 1fr;
  }

  .audit-score {
    grid-template-columns: auto 1fr;
  }

  .audit-ring {
    width: 66px;
    height: 66px;
  }
}


/* Nota comercial bajo errores de límite de consultas */
.audit-error-soft-note {
  margin-top: 1rem !important;
  padding: .8rem .9rem;
  border-radius: 16px;
  background: rgba(11,103,227,.06);
  color: var(--ink-2) !important;
  font-size: .92rem;
}


/* ============================================================
   BARRA DE PROGRESO - AUDITORÍA WEB
   Fecha: 2026-05-26
   Objetivo: mostrar avance visual mientras se consulta móvil y escritorio.
   ============================================================ */

.audit-progress {
  margin-top: 1rem;
  padding: .95rem 1rem;
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(11,103,227,.14);
  box-shadow: 0 10px 26px rgba(7,17,31,.07);
}

.audit-progress[hidden] {
  display: none !important;
}

.audit-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: .65rem;
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 800;
}

.audit-progress-head strong {
  color: var(--primary-dark);
  white-space: nowrap;
}

.audit-progress-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eef8;
}

.audit-progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 420ms ease;
}

.audit-progress-track span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255,255,255,.36) 45%,
    transparent 70%
  );
  animation: audit-progress-shine 1.2s linear infinite;
}

@keyframes audit-progress-shine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}


/* ============================================================
   XAVIERROYES.COM - AJUSTES FINALES PRODUCCIÓN DIOS
   Fecha y hora: 2026-05-25 13:30 CEST
   Objetivo:
   - Evitar desbordamientos horizontales en móvil.
   - Corregir comportamiento responsive de /tarifas/ y /auditoria-web/.
   - Centralizar estilos menores que antes estaban inline.
   - Mantener una única hoja CSS propia: /assets/css/app.css.
   ============================================================ */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 0;
}

main,
section,
article,
header,
footer,
.container,
.header-shell,
.hero-inner,
.tariff-shell,
.product-grid,
.audit-hero-grid,
.audit-results-grid {
  min-width: 0;
}

h1,
h2,
h3,
h4,
p,
li,
a,
span,
strong,
small {
  overflow-wrap: break-word;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.site-header {
  width: 100%;
}

.hero-copy {
  min-width: 0;
}

.footer-social {
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  margin: .35rem 0 0;
}

.inline-primary-link {
  color: var(--primary);
  font-weight: 800;
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #e5eefb 100%);
}

.thank-you-shell {
  max-width: 760px;
}

.thank-you-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15,23,42,.14);
  padding: clamp(1.4rem, 5vw, 2.125rem);
}

.thank-you-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #15803d;
  font-size: 28px;
  margin-bottom: 18px;
}

.thank-you-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 800;
  color: #2563eb;
}

.thank-you-card h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.05;
  color: #0f172a;
}

.thank-you-card p:not(.thank-you-kicker) {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.7;
  color: #475569;
}

.thank-you-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-visual img,
.gallery-card img,
.tariff-thumb img {
  max-width: 100%;
  height: auto;
}

.audit-modal-card,
.audit-copy,
.audit-side-card,
.audit-result-card,
.audit-summary,
.audit-contact-panel,
.audit-error-card,
.product-copy,
.product-visual,
.tariff-panel,
.cta-panel,
.index-hero-panel,
.tariff-card {
  min-width: 0;
}

@media (max-width: 760px) {
  :root {
    --header-h: 68px;
  }

  .header-shell {
    width: min(94%, var(--container));
  }

  .brand img {
    width: min(168px, 48vw);
  }

  .main-nav {
    left: 4%;
    right: 4%;
    max-height: calc(100svh - var(--header-h) - 24px);
    overflow-y: auto;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 34px) 0 44px;
  }

  .hero h1,
  .audit-copy h1,
  .product-copy h1,
  .index-hero-panel h1 {
    letter-spacing: -.045em;
  }

  .hero-actions .btn,
  .product-actions .btn,
  .cta-row .btn,
  .audit-actions .btn,
  .thank-you-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    gap: 1rem;
    align-items: flex-start;
  }

  .scroll-top {
    flex: 0 0 auto;
  }

  .tarifas-main {
    padding-top: calc(var(--header-h) + 16px);
  }

  .product-visual img {
    min-height: 0;
    height: auto;
  }

  .gallery-card img,
  .tariff-thumb img {
    min-height: 0;
  }

  .audit-input-row,
  .audit-modal-row {
    grid-template-columns: 1fr;
  }

  .audit-progress-head {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .audit-metrics div {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .audit-score {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .thank-you-page {
    padding: 18px;
  }
}

@media (min-width: 760px) and (max-width: 1019px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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


/* ============================================================
   AUDITORÍA WEB - UX DE MÉTRICAS Y RECOMENDACIONES
   Fecha y hora: 2026-05-25 16:20 CEST
   Objetivo:
   - Mostrar FCP, LCP, TBT, CLS y Speed Index como tarjetas compactas.
   - Añadir semáforo visual: verde correcto, amarillo regular, rojo mal.
   - Explicar cada sigla al pasar el ratón o tocarla en móvil.
   - Evitar que las recomendaciones de PageSpeed se salgan de pantalla.
   ============================================================ */

/* La zona de métricas ahora trabaja con tarjetas <article>, no con filas largas. */
.audit-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: .75rem;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Tarjeta individual de métrica: compacta y legible en móvil. */
.audit-metric-card {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: .55rem;
  padding: 1rem;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 10px 24px rgba(15,23,42,.045);
}

/* La sigla es un botón para que en móvil se pueda tocar y ver la explicación. */
.audit-metric-name {
  position: relative;
  justify-self: start;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.025em;
  cursor: help;
}

.audit-metric-name:focus-visible {
  outline: 3px solid rgba(11,103,227,.22);
  outline-offset: 5px;
  border-radius: 8px;
}

/* Tooltip interno: aparece con hover en escritorio y con foco/tap en móvil. */
.audit-metric-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 30;
  width: min(260px, 78vw);
  padding: .72rem .8rem;
  border-radius: 14px;
  background: #07111f;
  color: #fff;
  box-shadow: 0 18px 38px rgba(7,17,31,.22);
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.audit-metric-name:hover .audit-metric-tooltip,
.audit-metric-name:focus .audit-metric-tooltip,
.audit-metric-name:focus-visible .audit-metric-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Semáforo: solo una luz activa; las otras quedan apagadas. */
.audit-metrics .audit-traffic-light {
  display: flex;
  align-items: center;
  gap: .42rem;
  width: max-content;
  min-width: 0;
  max-width: 100%;
  padding: .18rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.audit-light {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #dbe3ef;
  border: 2px solid #cbd5e1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
  opacity: .58;
}

.audit-light--red.is-active {
  background: #ef233c;
  border-color: #ef233c;
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(239,35,60,.12);
}

.audit-light--yellow.is-active {
  background: #facc15;
  border-color: #eab308;
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(250,204,21,.14);
}

.audit-light--green.is-active {
  background: #22c55e;
  border-color: #16a34a;
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(34,197,94,.13);
}

.audit-metric-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.audit-metric-card small {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
}

.audit-metric-card--good small { color: #15803d; }
.audit-metric-card--medium small { color: #b45309; }
.audit-metric-card--bad small { color: #b91c1c; }
.audit-metric-card--unknown small { color: #64748b; }

/* Recomendaciones: impedir URLs o textos largos fuera del contenedor. */
.audit-suggestions,
.audit-suggestions li,
.audit-suggestions strong,
.audit-suggestions span {
  min-width: 0;
  max-width: 100%;
}

.audit-suggestions li {
  overflow: hidden;
}

.audit-suggestions strong,
.audit-suggestions span {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.audit-suggestions span {
  line-height: 1.55;
}

/* Móvil estrecho: se mantienen dos tarjetas si caben; si no, baja a una columna. */
@media (max-width: 420px) {
  .audit-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-metric-card {
    padding: .9rem;
  }

  .audit-metric-name {
    font-size: 1.18rem;
  }

  .audit-metric-card strong {
    font-size: 1.35rem;
  }
}

@media (max-width: 330px) {
  .audit-metrics {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   AUDITORÍA WEB - CAPTACIÓN POST-ANÁLISIS Y EMAIL DE RESULTADOS
   Fecha y hora: 2026-05-25 17:35 CEST
   Objetivo:
   - Al terminar PageSpeed, mostrar "Auditoría completada" sin enseñar datos.
   - Abrir modal obligatorio con nombre y email.
   - Mostrar resultados solo si el endpoint PHP valida y acepta el envío SMTP.
   - Permitir enviar el resultado por email desde el bloque final.
   ============================================================ */

/* Bloque centrado que aparece entre el final de la barra de progreso y el modal. */
.audit-complete-card {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(1.35rem, 4vw, 2.25rem);
  text-align: center;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 22px 60px rgba(7,17,31,.12);
}

.audit-complete-icon {
  width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  margin: 0 0 1rem;
  border-radius: 22px;
  color: #15803d;
  background: #dcfce7;
  font-size: 1.65rem;
}

.audit-complete-card h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.audit-complete-card p:not(.section-label) {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.65;
}

/* Bloqueo de scroll mientras el modal obligatorio está abierto. */
.audit-modal-lock {
  overflow: hidden;
}

/* Modal de captación posterior al análisis. Reutiliza la base del modal global. */
.audit-lead-card {
  width: min(100%, 540px);
}

.audit-lead-form {
  display: grid;
  gap: .75rem;
  margin-top: 1.1rem;
}

.audit-lead-form label {
  font-weight: 900;
  color: var(--ink);
}

.audit-lead-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 18px;
  padding: 0 1rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  box-shadow: 0 8px 20px rgba(7,17,31,.05);
}

.audit-lead-form input:focus {
  border-color: rgba(11,103,227,.55);
  box-shadow: 0 0 0 4px rgba(11,103,227,.12);
}

.audit-lead-form .btn {
  margin-top: .35rem;
  width: 100%;
}

.audit-lead-status,
.audit-contact-status {
  min-height: 1.35rem;
  margin-top: .5rem;
  font-size: .94rem;
  font-weight: 850;
  line-height: 1.45;
}

.audit-lead-status[data-type="error"],
.audit-contact-status[data-type="error"] {
  color: #b91c1c;
}

.audit-lead-status[data-type="success"],
.audit-contact-status[data-type="success"] {
  color: #15803d;
}

.audit-lead-status[data-type="info"],
.audit-contact-status[data-type="info"] {
  color: var(--primary-dark);
}

.audit-privacy-note {
  margin: 1rem 0 0;
  font-size: .86rem;
  line-height: 1.55;
  color: var(--muted);
}

.audit-privacy-note a {
  color: var(--primary-dark);
  font-weight: 850;
  text-decoration: none;
}

.audit-privacy-note a:hover {
  text-decoration: underline;
}

.audit-contact-status {
  margin-top: .85rem;
}

@media (max-width: 560px) {
  .audit-lead-card {
    border-radius: 26px;
    padding: 1.15rem;
  }

  .audit-complete-card {
    text-align: left;
  }

  .audit-complete-card p:not(.section-label) {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ============================================================
   V5 - MODAL DE VALIDACIÓN DE EMAIL Y TOOLTIP LEGIBLE
   Fecha y hora: 2026-05-25 19:05 CEST
   Objetivo:
   - Mostrar una espera profesional mientras el servidor valida DNS/MX/SMTP.
   - Evitar que el usuario pulse varias veces el formulario.
   - Forzar texto blanco en el tooltip oscuro de FCP/LCP/TBT/CLS/Speed Index.
   ============================================================ */

.xr-email-validation-lock {
  overflow: hidden;
}

.xr-email-validation-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(7, 17, 31, .52);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.xr-email-validation-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.xr-email-validation-card {
  width: min(100%, 420px);
  padding: clamp(1.35rem, 5vw, 2rem);
  border-radius: 28px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 28px 80px rgba(7, 17, 31, .28);
}

.xr-email-validation-hourglass {
  width: 72px;
  height: 72px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 24px;
  font-size: 2.25rem;
  background: #eff6ff;
  color: var(--primary-dark);
  animation: xr-hourglass-pulse 1.05s ease-in-out infinite;
}

.xr-email-validation-card h2 {
  margin: 0 0 .55rem;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ink);
}

.xr-email-validation-card p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.55;
}

@keyframes xr-hourglass-pulse {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-3px) rotate(180deg) scale(1.05);
    opacity: .82;
  }
}

/*
   Corrección específica:
   reglas antiguas como .audit-metrics span tenían más especificidad y podían
   heredar color oscuro dentro del tooltip. Esta regla fuerza la lectura correcta.
*/
.audit-metrics .audit-metric-tooltip,
.audit-metrics .audit-metric-name .audit-metric-tooltip {
  color: #ffffff !important;
}

/* ============================================================
   CONTACTO V8.2 - CAPTCHA PROPIO Y DOBLE VALIDACIÓN
   Fecha: 2026-05-30
   ============================================================ */
.xr-human-check {
  display: grid;
  gap: .7rem;
  padding: .8rem;
  border: 1px solid rgba(11,103,227,.18);
  border-radius: 18px;
  background: #fff;
}

.xr-human-check-copy {
  display: grid;
  gap: .35rem;
}

.xr-human-question-line {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

.xr-human-check-copy span,
.xr-human-check-answer {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.xr-human-check-copy strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.25;
}

.contact-form .xr-human-check-answer {
  display: grid;
  gap: .35rem;
}

.contact-form .xr-human-check-answer input {
  text-align: center;
  font-weight: 950;
}

.xr-human-refresh {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ink);
  cursor: pointer;
}

.xr-human-refresh:hover {
  border-color: rgba(11,103,227,.34);
  background: #eff6ff;
}

@media (max-width: 560px) {
  .xr-human-question-line {
    align-items: flex-start;
  }
}

/* ============================================================
   XR IA ASSISTANT - WIDGET FRONT-END
   Fecha: 2026-06-02
   Uso: asistente IA controlado para preguntas básicas de clientes.
   API esperada: https://assistant.2red.net/chat
   ============================================================ */

.xr-ai-root {
  position: fixed;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(18px, 2.5vw, 28px);
  z-index: 1200;
  font-family: inherit;
}

.xr-ai-toggle {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 54px;
  padding: .78rem 1rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.34), transparent 28%),
    linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 44px rgba(11, 103, 227, .28);
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), filter var(--ease);
}

.xr-ai-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(11, 103, 227, .34);
  filter: saturate(1.05);
}

.xr-ai-toggle:focus-visible,
.xr-ai-close:focus-visible,
.xr-ai-send:focus-visible,
.xr-ai-chip:focus-visible {
  outline: 3px solid rgba(8, 168, 216, .35);
  outline-offset: 3px;
}

.xr-ai-toggle-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.xr-ai-toggle-text {
  display: grid;
  text-align: center;
  line-height: 1.05;
}

.xr-ai-toggle-text strong {
  font-size: 1rem;
  font-weight: 950;
}

.xr-ai-toggle-text span {
  font-size: .72rem;
  font-weight: 850;
  opacity: .86;
}

.xr-ai-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(390px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 110px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 28px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 26px 80px rgba(7, 17, 31, .22);
  backdrop-filter: blur(18px);
}

.xr-ai-root.is-open .xr-ai-panel {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
}

.xr-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: 1rem 1rem .85rem;
  color: #fff;
  background:
    radial-gradient(circle at 14% 20%, rgba(255,255,255,.24), transparent 30%),
    linear-gradient(135deg, #07111f, #0b67e3);
}

.xr-ai-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-width: 0;
  flex: 1;
  text-align: center;
}

.xr-ai-title-copy {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.xr-ai-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
}

.xr-ai-title strong {
  display: block;
  font-size: 1.18rem;
  font-weight: 950;
  line-height: 1.1;
}

.xr-ai-title span:not(.xr-ai-avatar) {
  display: none;
}

.xr-ai-close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.10);
  cursor: pointer;
}

.xr-ai-messages {
  display: grid;
  align-content: start;
  gap: .75rem;
  min-height: 260px;
  max-height: min(470px, calc(100vh - 245px));
  overflow-y: auto;
  padding: 1rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(11,103,227,.08), transparent 30%),
    #f8fafc;
}

.xr-ai-msg {
  display: grid;
  gap: .28rem;
  max-width: 88%;
}

.xr-ai-msg.is-user {
  justify-self: end;
}

.xr-ai-msg.is-assistant {
  justify-self: start;
}

.xr-ai-bubble {
  padding: .72rem .82rem;
  border-radius: 18px;
  font-size: .92rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.xr-ai-msg.is-assistant .xr-ai-bubble {
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 8px 24px rgba(7,17,31,.06);
  border-bottom-left-radius: 8px;
}

.xr-ai-msg.is-user .xr-ai-bubble {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-bottom-right-radius: 8px;
}

.xr-ai-msg-label {
  padding-inline: .24rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.xr-ai-msg.is-user .xr-ai-msg-label {
  text-align: right;
}

.xr-ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: 0 1rem 1rem;
  background: #f8fafc;
}

.xr-ai-chip {
  border: 1px solid rgba(11,103,227,.18);
  border-radius: 999px;
  padding: .42rem .62rem;
  color: var(--primary-dark);
  background: #fff;
  font-size: .76rem;
  font-weight: 850;
  cursor: pointer;
}

.xr-ai-chip:hover {
  background: #eff6ff;
  border-color: rgba(11,103,227,.32);
}

.xr-ai-form {
  display: grid;
  gap: .72rem;
  padding: .9rem;
  border-top: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
}

.xr-ai-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .58rem;
  align-items: end;
}

.xr-ai-input {
  width: 100%;
  min-height: 46px;
  max-height: 115px;
  resize: vertical;
  padding: .72rem .82rem;
  border: 1px solid rgba(15, 23, 42, .13);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  line-height: 1.35;
}

.xr-ai-input:focus {
  outline: 0;
  border-color: rgba(11,103,227,.42);
  box-shadow: 0 0 0 4px rgba(11,103,227,.10);
}

.xr-ai-send {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  cursor: pointer;
}

.xr-ai-send[disabled] {
  cursor: wait;
  opacity: .65;
}

.xr-ai-note {
  display: none;
}

.xr-ai-typing .xr-ai-bubble::after {
  content: "";
  display: inline-block;
  width: .9rem;
  height: .9rem;
  margin-left: .35rem;
  vertical-align: -.15rem;
  border: 2px solid rgba(11,103,227,.18);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: xr-ai-spin 850ms linear infinite;
}

@keyframes xr-ai-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .xr-ai-root {
    right: 12px;
    bottom: 12px;
  }

  .xr-ai-panel {
    position: fixed;
    inset: auto 10px 78px 10px;
    width: auto;
    max-height: calc(100vh - 96px);
    border-radius: 24px;
  }

  .xr-ai-toggle-text span {
    display: none;
  }

  .xr-ai-toggle {
    min-height: 52px;
    padding: .72rem .9rem;
  }

  .xr-ai-root.is-open .xr-ai-toggle-text {
    display: none;
  }

  .xr-ai-messages {
    max-height: calc(100vh - 290px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .xr-ai-toggle,
  .xr-ai-typing .xr-ai-bubble::after {
    transition: none;
    animation: none;
  }
}


/* XR IA Roberta ajustes V2 */
.xr-ai-quick { display: none !important; }
.xr-ai-header .xr-ai-title { margin-inline: auto; }
.xr-ai-toggle-text span { display: none; }


/* ============================================================
   Ajustes 2026-06-02: cookies centradas + IA Roberta
   ============================================================ */
.cookie-banner {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(760px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  transform: translate(-50%, -50%);
  z-index: 2400;
}

.cookie-banner.visible {
  display: grid;
}

.xr-ai-root {
  z-index: 2600;
}

.xr-ai-title {
  justify-content: center;
  text-align: center;
}

.xr-ai-title-copy {
  justify-items: center;
  text-align: center;
}

.xr-ai-title strong {
  font-size: clamp(1.28rem, 3.8vw, 1.55rem);
}

.xr-ai-quick,
.xr-ai-note {
  display: none !important;
}

@media (max-width: 640px) {
  .cookie-banner {
    width: min(420px, calc(100% - 1.25rem));
    padding: .9rem;
    border-radius: 20px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ============================================================
   XR Tarifas Maestras v26.1
   Página pública /tarifas/ con estilo propio XavierRoyes.com.
   ============================================================ */
.xr-pricing-main{
  padding-top:calc(var(--header-h) + 34px);
  background:
    radial-gradient(circle at 8% 0%, rgba(11,103,227,.12), transparent 26%),
    radial-gradient(circle at 96% 8%, rgba(8,168,216,.13), transparent 30%),
    linear-gradient(180deg,#fff 0%, var(--bg) 42%, #fff 100%);
  min-height:100vh;
}
.xr-pricing-shell{width:min(92%,var(--container));margin-inline:auto;}
.xr-pricing-hero{padding:2.6rem 0 2rem;}
.xr-pricing-hero-card{
  position:relative;overflow:hidden;border-radius:34px;color:#fff;padding:clamp(1.5rem,4vw,3rem);
  background:
    radial-gradient(circle at 82% 18%, rgba(8,168,216,.34), transparent 30%),
    linear-gradient(135deg, rgba(7,17,31,.99), rgba(11,103,227,.92));
  box-shadow:var(--shadow);
}
.xr-pricing-hero-card::after{content:"";position:absolute;right:-90px;bottom:-110px;width:320px;height:320px;border-radius:50%;background:rgba(255,255,255,.08);}
.xr-pricing-kicker{display:inline-flex;align-items:center;gap:.5rem;border-radius:999px;padding:.45rem .85rem;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);font-weight:850;font-size:.82rem;text-transform:uppercase;letter-spacing:.08em;}
.xr-pricing-hero-card h1{position:relative;margin:.8rem 0 .8rem;max-width:850px;font-size:clamp(2rem,5vw,4rem);line-height:1.03;letter-spacing:-.055em;}
.xr-pricing-hero-card p{position:relative;max-width:850px;color:rgba(255,255,255,.78);font-size:1.05rem;}
.xr-pricing-hero-actions{position:relative;display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.35rem;}
.xr-pricing-summary{display:grid;gap:1rem;margin:1.2rem 0 2.2rem;}
.xr-pricing-summary-card{border:1px solid var(--border);background:rgba(255,255,255,.96);border-radius:24px;padding:1.1rem;box-shadow:var(--shadow-soft);}
.xr-pricing-summary-card strong{display:block;font-size:1.55rem;letter-spacing:-.04em;line-height:1.05;}
.xr-pricing-summary-card span{color:var(--muted);font-weight:750;font-size:.92rem;}
.xr-pricing-section{padding:1.2rem 0 2.2rem;}
.xr-pricing-head{display:flex;align-items:end;justify-content:space-between;gap:1.2rem;margin-bottom:1rem;}
.xr-pricing-head h2{margin:.2rem 0 0;font-size:clamp(1.55rem,3vw,2.45rem);line-height:1.08;letter-spacing:-.04em;}
.xr-pricing-head p{margin:.35rem 0 0;color:var(--muted);max-width:720px;}
.xr-pricing-grid{display:grid;gap:1rem;}
.xr-pricing-card{position:relative;display:grid;gap:.95rem;align-content:start;border:1px solid var(--border);background:rgba(255,255,255,.98);border-radius:28px;padding:1.25rem;box-shadow:var(--shadow-soft);transition:transform var(--ease), box-shadow var(--ease), border-color var(--ease);}
.xr-pricing-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:rgba(11,103,227,.22);}
.xr-pricing-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;}
.xr-pricing-card h3{margin:0;font-size:1.25rem;line-height:1.12;letter-spacing:-.02em;}
.xr-pricing-code{display:inline-flex;align-items:center;border-radius:999px;background:rgba(11,103,227,.08);color:var(--primary-dark);padding:.32rem .62rem;font-size:.72rem;font-weight:850;white-space:nowrap;}
.xr-pricing-desc{color:var(--muted);margin:0;}
.xr-pricing-price{font-size:clamp(1.55rem,3vw,2.05rem);line-height:1;font-weight:950;letter-spacing:-.055em;color:var(--ink);}
.xr-pricing-meta{display:grid;gap:.5rem;border-top:1px solid var(--border);padding-top:.9rem;}
.xr-pricing-meta span{display:flex;align-items:center;justify-content:space-between;gap:1rem;color:var(--muted);font-weight:720;font-size:.92rem;}
.xr-pricing-meta b{color:var(--ink-2);font-weight:850;text-align:right;}
.xr-pricing-includes{margin:0;padding-left:1.05rem;color:var(--ink-2);font-weight:650;}
.xr-pricing-includes li+li{margin-top:.3rem;}
.xr-pricing-value{border-radius:18px;background:linear-gradient(135deg,rgba(34,197,94,.09),rgba(8,168,216,.10));padding:.75rem .85rem;color:var(--ink-2);font-weight:800;}
.xr-pricing-note{margin:1.2rem 0 2.8rem;border-radius:30px;background:#07111f;color:#fff;padding:clamp(1.25rem,3vw,2rem);box-shadow:var(--shadow);}
.xr-pricing-note h2{margin:0 0 .5rem;font-size:clamp(1.4rem,3vw,2rem);letter-spacing:-.03em;}
.xr-pricing-note p{color:rgba(255,255,255,.78);max-width:900px;}
.xr-pricing-pay-grid{display:grid;gap:1rem;margin-top:1rem;}
.xr-pricing-pay{border:1px solid rgba(255,255,255,.14);border-radius:22px;background:rgba(255,255,255,.08);padding:1rem;}
.xr-pricing-pay strong{display:block;margin-bottom:.25rem;}
@media (min-width:720px){.xr-pricing-summary{grid-template-columns:repeat(3,1fr)}.xr-pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.xr-pricing-pay-grid{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1060px){.xr-pricing-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:620px){.xr-pricing-hero-actions .btn{width:100%}.xr-pricing-head{display:block}.xr-pricing-card-top{display:grid}.xr-pricing-meta span{display:grid;gap:.15rem}}
