/* CraniaMed — estilos comunes de toda la web (portadas en los 4 idiomas, blog, artículos y legales).
   Colores y tipografía según el manual de marca. */

/* ========== TIPOGRAFÍA (manual de marca) ==========
   Sequel Sans es la corporativa; mientras no tengamos la licencia web se usa
   Helvetica Neue / Helvetica (Arial en Windows y Android), como indica el manual. */

/* ========== VARIABLES CORPORATIVAS ========== */
:root {
  --blue: #5F5FFF;
  --blue-dark: #3F3FD9;
  --blue-50: #EFEFFF;
  --coral: #FE653F;
  --coral-dark: #E04A26;
  --cream: #FDDDC0;
  --cream-soft: #FEF0E3;
  --orange-light: #FFAA80;
  --ink: #202027;
  --text: #36363D;
  --muted: #636368;
  --white: #FFFFFF;
  --bg-soft: #F9F9F9;
  --border: #E9E9E9;
  --font-display: "Sequel Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Sequel Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(32,32,39,.04);
  --shadow: 0 12px 32px rgba(95,95,255,.08);
  --shadow-lg: 0 28px 60px rgba(95,95,255,.14);
  --container: 1240px;
  --gutter: 24px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400; color: var(--ink);
  line-height: 1.08; letter-spacing: -0.025em;
}
h3, h4 { font-weight: 500; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(64px, 8vw, 112px) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--blue); margin-bottom: 18px;
}
.section-title { max-width: 820px; margin-bottom: 48px; }
.section-title p { margin-top: 20px; color: var(--muted); font-size: 1.1rem; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; font-weight: 700; font-size: 0.95rem;
  border-radius: 999px; transition: all 0.25s ease;
  white-space: nowrap; font-family: var(--font-body);
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(95,95,255,.35); }
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(254,101,63,.35); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--cream); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ========== HEADER ========== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 76px; }
.logo { flex-shrink: 0; }
.logo img { height: 44px; width: auto; }
@media (max-width: 640px) { .logo img { height: 38px; } }
.nav { display: flex; gap: clamp(14px, 1.9vw, 34px); align-items: center; }
.nav a { font-size: 0.93rem; font-weight: 600; white-space: nowrap; color: var(--text); transition: color .2s; }
.nav a:hover { color: var(--blue); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--white); }
.lang-switch { display: inline-flex; gap: 2px; align-items: center; }
.nav .lang-switch a { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; padding: 4px 6px; border-radius: 6px; color: var(--muted); }
.nav .lang-switch a[aria-current] { color: var(--blue); background: var(--blue-50); }
@media (max-width: 1200px) {
  .lang-switch { padding: 12px 18px; border-bottom: 1px solid var(--border); width: 100%; gap: 8px; }
  .nav .lang-switch a { width: auto; border-bottom: 0; padding: 6px 10px; }
}
.nav-toggle { display: none; padding: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: all .3s; }

@media (max-width: 1200px) {
  .nav {
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    padding: 0; max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open { max-height: 520px; }
  .nav a, .nav .btn { padding: 18px 24px; width: 100%; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-toggle { display: block; }
}

/* ========== HERO ========== */
.hero {
  padding: clamp(64px, 7vw, 120px) 0 clamp(80px, 10vw, 140px);
  background:
    radial-gradient(ellipse at 85% 10%, rgba(95,95,255,.08) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(254,101,63,.06) 0%, transparent 50%),
    var(--white);
  position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; background: var(--blue-50);
  border-radius: 999px; font-size: 0.85rem;
  font-weight: 700; color: var(--blue-dark); margin-bottom: 28px;
}
.hero-tag::before {
  content: ''; width: 7px; height: 7px;
  background: var(--blue); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--blue); font-weight: 400; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-meta { display: flex; gap: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-meta div strong {
  display: block; font-family: var(--font-display);
  font-size: 2rem; color: var(--ink); line-height: 1;
  margin-bottom: 6px; font-weight: 700;
}
.hero-meta div span { font-size: 0.85rem; color: var(--muted); }

/* MARCO MÓVIL DEL HERO — contiene el vídeo vertical de YouTube */
.hero-phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19.5;        /* proporción real de un móvil moderno */
  margin-left: auto;             /* alinea a la derecha del grid */
  background: var(--ink);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.06) inset,
    var(--shadow-lg);
}
.hero-phone::before {            /* notch superior simulada */
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.hero-phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
}
.hero-phone-screen iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
/* Miniatura del vídeo: YouTube solo se carga al pulsar */
.video-portada {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: #000; cursor: pointer; display: block;
}
.video-portada img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .25s; }
.video-portada:hover img { opacity: 1; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--blue);
  display: flex; align-items: center; justify-content: center; padding-left: 4px;
  box-shadow: 0 10px 30px rgba(32,32,39,.25); transition: transform .2s ease;
}
.video-portada:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.hero-phone-tag {                /* badge flotante junto al móvil */
  position: absolute;
  bottom: 24px; left: -28px;
  background: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 700;
  z-index: 4;
  animation: float 6s ease-in-out infinite;
}
.hero-phone-tag .dot {
  width: 8px; height: 8px;
  background: #22c55e; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-phone { margin: 0 auto; max-width: 280px; }
  .hero-phone-tag { left: -16px; bottom: 18px; }
  .hero-meta { flex-wrap: wrap; gap: 24px; }
}

/* ========== QUÉ ES ========== */
#what { background: var(--bg-soft); }
.what-intro p { font-size: 1.15rem; color: var(--text); margin-top: 20px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--white); padding: 36px 32px;
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: all .3s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--shadow); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--blue-50); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.feature:nth-child(2) .feature-icon,
.feature:nth-child(4) .feature-icon,
.feature:nth-child(6) .feature-icon { background: var(--cream-soft); color: var(--coral-dark); }
.feature h3 { font-size: 1.3rem; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 960px) { .features-grid { grid-template-columns: 1fr; } }

/* ========== CÓMO FUNCIONA ========== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-num {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  color: var(--blue); text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.step-visual {
  aspect-ratio: 4/3; border-radius: var(--radius);
  margin-bottom: 22px; overflow: hidden;
  background: var(--cream-soft);
  position: relative;
}
.step-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.step:hover .step-visual img { transform: scale(1.04); }
.step-num-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--white); color: var(--blue);
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
  letter-spacing: 0.1em; z-index: 2;
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.96rem; }
.steps-cta { text-align: center; margin-top: 64px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }

/* ========== PRECIOS ========== */
#precios { background: var(--bg-soft); }
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 auto 56px; flex-wrap: wrap; }
.pricing-toggle span { font-weight: 700; font-size: 0.95rem; color: var(--muted); transition: color .2s; }
.pricing-toggle span.active { color: var(--ink); }
.pricing-toggle .save-badge {
  background: var(--coral); color: var(--white); font-size: 0.72rem;
  padding: 4px 10px; border-radius: 999px; font-weight: 700;
  margin-left: 8px; text-transform: uppercase; letter-spacing: 0.05em;
}
.toggle-switch {
  position: relative; width: 54px; height: 28px;
  background: #D2D2D4; border-radius: 999px;
  cursor: pointer; transition: background .2s; flex-shrink: 0;
}
.toggle-switch.on { background: var(--blue); }
.toggle-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; background: var(--white);
  border-radius: 50%; transition: transform .2s;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.toggle-switch.on::after { transform: translateX(26px); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 44px 36px; border: 1px solid var(--border);
  display: flex; flex-direction: column; position: relative;
  transition: all .3s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured {
  border: 2px solid var(--blue); transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%);
}
.plan.featured:hover { transform: scale(1.03) translateY(-4px); }
.plan-badge {
  position: absolute; top: -14px; left: 36px;
  background: var(--coral); color: var(--white);
  font-size: 0.72rem; font-weight: 700; padding: 6px 14px;
  border-radius: 999px; letter-spacing: 0.1em; text-transform: uppercase;
}
.plan-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.plan-tag { font-size: 0.9rem; color: var(--muted); margin-bottom: 28px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 28px; flex-wrap: wrap; }
.plan-price .amount { font-family: var(--font-display); font-size: 3rem; font-weight: 600; color: var(--ink); line-height: 1; }
.plan-price .period { color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.plan-price .old { text-decoration: line-through; color: var(--muted); font-size: 1.5rem; font-family: var(--font-display); font-weight: 500; margin-right: 4px; }
.plan-features { margin-bottom: 32px; flex: 1; }
.plan-features li {
  padding: 11px 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem; display: flex; align-items: flex-start; gap: 10px;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li svg { flex-shrink: 0; color: var(--blue); margin-top: 3px; }
.plan .btn { justify-content: center; width: 100%; }
.plan-note { font-size: 0.75rem; color: var(--muted); margin-top: 14px; text-align: center; line-height: 1.5; }
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .plan.featured:hover { transform: translateY(-4px); }
}

/* ========== MATERIAL ========== */
.materials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.material { transition: transform .3s; }
.material:hover { transform: translateY(-6px); }
.material-img {
  aspect-ratio: 1; border-radius: var(--radius);
  margin-bottom: 20px; overflow: hidden;
  background: var(--cream-soft);
}
.material-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.material:hover .material-img img { transform: scale(1.05); }
.material h3 { font-size: 1.15rem; margin-bottom: 6px; }
.material-price { font-family: var(--font-display); font-size: 1.6rem; color: var(--blue); font-weight: 700; margin-bottom: 8px; }
.material-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.material-cta { display: flex; gap: 10px; align-items: center; }
.btn-add {
  background: var(--ink); color: var(--white); padding: 10px 18px;
  font-size: 0.85rem; border-radius: 999px; font-weight: 700;
  transition: background .2s; font-family: var(--font-body);
}
.btn-add:hover { background: var(--blue); }
.materials-note { font-size: 0.85rem; color: var(--muted); margin-top: 32px; text-align: center; }
@media (max-width: 960px) { .materials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .materials { grid-template-columns: 1fr; } }

/* ========== CÓMO ADQUIRIR ========== */
#adquirir { background: var(--bg-soft); }

.acquire-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.acquire-stage {
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s ease;
}
.acquire-stage:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
  background: var(--white);
}
.acquire-stage-num {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700;
  color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.acquire-stage-num::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--coral);
  border-radius: 50%;
}
.acquire-stage h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.15;
}
.acquire-stage p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 24px;
  flex: 1;
}
.acquire-illu {
  margin-top: auto;
  height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.acquire-illu svg {
  max-height: 100%;
  width: auto;
}
.acquire-flow-line {
  position: absolute;
  top: 56px;
  left: 12%; right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 6px, transparent 6px, transparent 12px);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .acquire-grid { grid-template-columns: repeat(2, 1fr); }
  .acquire-flow-line { display: none; }
}
@media (max-width: 540px) {
  .acquire-grid { grid-template-columns: 1fr; }
}
#who { background: linear-gradient(135deg, var(--ink) 0%, #1f1f1f 100%); color: var(--white); position: relative; overflow: hidden; }
#who::before {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(95,95,255,.15) 0%, transparent 70%);
  border-radius: 50%;
}
#who::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(254,101,63,.1) 0%, transparent 70%);
  border-radius: 50%;
}
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
#who .eyebrow { color: var(--coral); }
#who h2 { color: var(--white); }
.who-grid p { font-size: 1.1rem; color: rgba(255,255,255,.75); margin-top: 20px; margin-bottom: 32px; }
.who-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.who-tag {
  padding: 8px 16px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  color: rgba(255,255,255,.9);
}
.who-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream-soft);
}
.who-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 960px) {
  .who-grid { grid-template-columns: 1fr; }
  .who-visual { max-width: 400px; margin: 0 auto; }
}

/* ========== TEAM ========== */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.team-avatar {
  aspect-ratio: 1; border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--cream-soft);
  position: relative;
}
.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.team-member:hover .team-avatar img { transform: scale(1.05); }
/* Borde fino sobre la foto: marca el marco aunque la foto tenga fondo blanco */
.team-avatar::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(32,32,39,.10); }
.team-avatar.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  background: linear-gradient(135deg, var(--cream), var(--coral));
  color: var(--ink);
}
.team-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.team-role { font-size: 0.85rem; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.team-bio { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .team { grid-template-columns: 1fr; } }

/* ========== LANZADERA / DETRÁS ========== */
#behind { background: var(--cream-soft); }
.behind-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; }
.pillars { display: grid; gap: 20px; }
.pillar {
  background: var(--white); padding: 28px 24px;
  border-radius: var(--radius); border-left: 4px solid var(--blue);
}
.pillar:nth-child(2) { border-left-color: var(--coral); }
.pillar:nth-child(3) { border-left-color: var(--ink); }
.pillar h3 { font-size: 1.25rem; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 0.95rem; }
.behind-content p { color: var(--text); margin-bottom: 18px; font-size: 1.02rem; }
.behind-content .highlight {
  background: linear-gradient(180deg, transparent 64%, rgba(255,170,128,.55) 64%);
  padding: 0 1px; font-weight: 600; color: var(--ink);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.backers {
  margin-top: 36px;
  padding: 24px 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap;
}
.backers-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}
.backers-logos {
  display: flex; align-items: center; gap: 28px;
  flex: 1; min-width: 0;
}
.backers-logos img {
  max-height: 34px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.2);
  opacity: 0.85;
  transition: all 0.3s ease;
}
.backers-logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}
/* El logo de la UCV es un escudo con texto en tres líneas: necesita más altura para leerse */
.backers-logos img[src$="partner-ucv.png"] { max-height: 58px; }
.backers-sep {
  width: 1px; height: 32px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 540px) {
  .backers { flex-direction: column; align-items: flex-start; gap: 18px; }
  .backers-logos { gap: 20px; }
  .backers-logos img { max-height: 32px; }
  .backers-logos img[src$="partner-ucv.png"] { max-height: 50px; }
}
.behind-content .btn { margin-top: 16px; }
@media (max-width: 960px) { .behind-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ========== FAQ ========== */
.faq { max-width: 880px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600; color: var(--ink);
  transition: color .2s;
}
.faq-question:hover { color: var(--blue); }
.faq-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.faq-item.open .faq-icon { background: var(--blue); color: var(--white); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-answer { max-height: 800px; }
.faq-answer-inner { padding-bottom: 24px; color: var(--muted); font-size: 1rem; }

/* ========== CONTACTO ========== */
#contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info > p { color: var(--muted); margin-bottom: 40px; font-size: 1.05rem; }
.contact-methods { display: grid; gap: 20px; margin-bottom: 40px; }
.contact-method { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-50); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-method strong {
  display: block; font-family: var(--font-display);
  font-size: 0.85rem; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px;
}
.contact-method a, .contact-method span { color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.contact-method a:hover { color: var(--blue); }
.social { display: flex; gap: 10px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: all .2s;
}
.social a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-2px); }

.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label {
  font-size: 0.82rem; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.form-field input, .form-field textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg-soft);
  color: var(--ink); transition: all .2s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 3px rgba(95,95,255,.12);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field .required { color: var(--coral); }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; cursor: pointer; }
.form-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }
.form-check a { color: var(--blue); text-decoration: underline; }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--coral); }
.field-error { color: var(--coral-dark); font-size: 0.85rem; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600; }
.form-status.is-ok { background: var(--blue-50); color: var(--blue-dark); }
.form-status.is-error { background: #FFEDE6; color: var(--coral-dark); }
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
}

/* ========== FOOTER ========== */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand img { height: 30px; margin-bottom: 20px; filter: invert(1); }
.footer-brand p { font-size: 0.95rem; max-width: 340px; }
.footer-col h4 {
  color: var(--white); font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.92rem; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; font-size: 0.85rem;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ========== AJUSTES GENERALES ========== */
h1, h2, h3, .section-title h2 { text-wrap: balance; }          /* sin palabras sueltas en la última línea */
p, li { text-wrap: pretty; }
section[id] { scroll-margin-top: 84px; }                       /* los anclajes no quedan bajo la cabecera fija */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px;
}
::selection { background: rgba(95,95,255,.18); }
.header { transition: box-shadow .25s ease; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(32,32,39,.06); }

/* Botón "Comprar" siempre a la misma altura en las tarjetas de material */
.material { display: flex; flex-direction: column; }
.material-desc { flex: 1; }

/* Pasos y material más compactos en el móvil (antes cada uno ocupaba una pantalla) */
@media (max-width: 640px) {
  .features-grid { gap: 12px; }
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .feature-icon { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; margin: 0; }
  .feature-icon svg { width: 20px; height: 20px; }
  .feature h3 { font-size: 1.08rem; margin-bottom: 4px; }
  .feature p { font-size: 0.9rem; }
  .hero-phone { max-width: 250px; border-radius: 36px; }

  .acquire-illu { height: 96px; }
  .acquire-stage { padding: 24px 20px 20px; }

  .steps { gap: 20px; }
  .step { display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; align-items: start; }
  .step > * { grid-column: 2; }
  .step .step-visual { grid-column: 1; grid-row: 1 / span 3; aspect-ratio: 1; margin: 0; border-radius: var(--radius-sm); }
  .step .step-num-badge { display: none; }
  .step .step-num { margin-bottom: 4px; font-size: 0.75rem; }
  .step h3 { font-size: 1.1rem; margin-bottom: 4px; }
  .step p { font-size: 0.92rem; }
  .steps-cta { margin-top: 40px; }

  .materials { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .material-img { margin-bottom: 12px; border-radius: var(--radius-sm); }
  .material h3 { font-size: 1rem; }
  .material-price { font-size: 1.3rem; margin-bottom: 4px; }
  .material-desc { font-size: 0.82rem; margin-bottom: 12px; }
  .btn-add { padding: 9px 14px; }

  .team { gap: 28px 16px; }
  .team-name { font-size: 1.05rem; }
  .team-role { font-size: 0.72rem; letter-spacing: 0.06em; }
  .team-bio { font-size: 0.86rem; }
}

/* =====================================================================
   ESTILO TECNOLÓGICO — cuadrícula técnica, degradados de marca (morado →
   naranja), halos, visor de escaneo y aparición al hacer scroll.
   ===================================================================== */
:root {
  --grad-marca: linear-gradient(100deg, var(--blue) 0%, #7B6BFF 45%, var(--coral) 100%);
  --grad-boton: linear-gradient(135deg, #6E6EFF 0%, var(--blue) 55%, #4B4BF0 100%);
  --rejilla: rgba(95,95,255,.075);
}

/* Cuadrícula técnica de fondo (portada, cabeceras de blog y "Para quién") */
.hero::before, .blog-hero::before, .articulo-hero::before, #who .container::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--rejilla) 1px, transparent 1px), linear-gradient(90deg, var(--rejilla) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 30%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 70% at 70% 30%, #000 25%, transparent 78%);
}
.hero > .container, .blog-hero > .container, .articulo-hero > .container { position: relative; z-index: 1; }
.blog-hero, .articulo-hero { position: relative; overflow: hidden; }
.hero::after {                               /* halo morado detrás del móvil */
  content: ''; position: absolute; width: 620px; height: 620px; right: -120px; top: 40px;
  background: radial-gradient(circle, rgba(95,95,255,.22) 0%, rgba(95,95,255,0) 65%);
  filter: blur(10px); pointer-events: none;
}
#who .container { position: relative; }
#who .container::before { --rejilla: rgba(255,255,255,.05); inset: -80px -40px; z-index: 0; }

/* Titular: palabras clave con degradado de marca */
.hero h1 em {
  background: var(--grad-marca); -webkit-background-clip: text; background-clip: text;
  color: transparent; padding-right: .06em;
}
.hero-tag {
  background: rgba(255,255,255,.72); border: 1px solid rgba(95,95,255,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-meta { gap: 14px; border-top: 0; padding-top: 8px; flex-wrap: wrap; }
.hero-meta > div {
  padding: 14px 18px; border-radius: 14px; min-width: 128px;
  background: rgba(255,255,255,.7); border: 1px solid rgba(95,95,255,.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-meta div strong {
  font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  background: var(--grad-marca); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Etiquetas de sección numeradas: 01 / ¿Qué es CraniaMed? */
body { counter-reset: seccion; }
section[id] .eyebrow::before {
  counter-increment: seccion; content: counter(seccion, decimal-leading-zero) "\00a0/\00a0"; opacity: .5;
}

/* Botones */
.btn-primary { background: var(--grad-boton); box-shadow: 0 8px 22px rgba(95,95,255,.28), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { background: var(--grad-boton); filter: brightness(1.07); box-shadow: 0 14px 32px rgba(95,95,255,.4), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-coral { box-shadow: 0 8px 22px rgba(254,101,63,.28); }
.btn-outline { background: rgba(255,255,255,.6); }

/* Tarjetas: borde degradado y halo al pasar el ratón */
.feature, .acquire-stage, .plan, .post-card, .pillar {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.feature:hover, .acquire-stage:hover, .post-card:hover, .plan:not(.featured):hover {
  border-color: transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              linear-gradient(135deg, rgba(95,95,255,.65), rgba(254,101,63,.5)) border-box;
  box-shadow: 0 18px 40px rgba(95,95,255,.14);
}
.feature-icon {
  background: linear-gradient(135deg, var(--blue-50), #FFFFFF); border: 1px solid rgba(95,95,255,.16);
  box-shadow: 0 6px 16px rgba(95,95,255,.12);
}
.feature:nth-child(2) .feature-icon, .feature:nth-child(4) .feature-icon, .feature:nth-child(6) .feature-icon {
  background: linear-gradient(135deg, var(--cream-soft), #FFFFFF); border-color: rgba(254,101,63,.2);
  box-shadow: 0 6px 16px rgba(254,101,63,.12);
}
.plan.featured {
  border-color: transparent;
  background: linear-gradient(180deg, #FFFFFF, #F6F6FF) padding-box, var(--grad-marca) border-box;
  box-shadow: 0 24px 60px rgba(95,95,255,.22);
}
.step-visual { box-shadow: 0 10px 30px rgba(32,32,39,.08); }
.step-visual::after {                        /* brillo de pantalla sobre las fotos de los pasos */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(95,95,255,0) 55%, rgba(95,95,255,.18) 100%);
}
.step-num-badge { background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Visor de escaneo sobre la foto del móvil de la portada */
.visor { position: absolute; inset: 16% 12% 20%; pointer-events: none; }
.visor i { position: absolute; width: 30px; height: 30px; border: 3px solid rgba(255,255,255,.95); filter: drop-shadow(0 0 6px rgba(95,95,255,.8)); }
.visor i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.visor i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.visor i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.visor i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.visor::after {
  content: ''; position: absolute; left: 6%; right: 6%; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #FFFFFF 30%, #FFFFFF 70%, transparent);
  box-shadow: 0 0 14px 2px rgba(95,95,255,.9);
  animation: escanear 2.8s ease-in-out infinite alternate;
}
@keyframes escanear { from { top: 4%; } to { top: 96%; } }
.visor-estado {
  position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: rgba(32,32,39,.72); color: #FFFFFF; font-size: 0.72rem; font-weight: 600; letter-spacing: .02em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.visor-estado .dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; animation: pulse 1.6s infinite; }
.video-play { z-index: 2; }
.hero-phone-tag-ia { bottom: auto; top: 72px; left: auto; right: -34px; animation-delay: -3s; }
.ia-chip {
  display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 7px;
  border-radius: 6px; background: var(--grad-boton); color: #FFFFFF; font-size: 0.7rem; letter-spacing: .06em;
}

/* Pie: línea degradada superior */
.footer { position: relative; }
.footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad-marca); opacity: .9; }

/* Aparición al hacer scroll (la clase .revelar la pone el JS solo si se permite el movimiento) */
.revelar { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.revelar.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero::after { width: 420px; height: 420px; right: -160px; top: auto; bottom: 0; }
  .hero-phone-tag-ia { right: -8px; top: 48px; }
}
@media (max-width: 640px) {
  .hero::before, .blog-hero::before, .articulo-hero::before { background-size: 32px 32px; }
  .hero-meta > div { min-width: 0; flex: 1 1 0; padding: 12px; }
  .hero-meta div strong { font-size: 1.35rem; }
  .visor-estado { bottom: -40px; font-size: 0.66rem; }
}
@media (prefers-reduced-motion: reduce) {
  .visor::after, .visor-estado .dot, .hero-phone-tag, .hero-tag::before { animation: none; }
  .visor::after { top: 50%; }
}

/* ========== AVISO Y CONFIGURACIÓN DE COOKIES (assets/js/cookies.js) ========== */
.ck-aviso {
  position: fixed; left: 20px; bottom: 20px; z-index: 1000; width: min(420px, calc(100% - 40px));
  padding: 22px 22px 16px; border-radius: 20px; color: #FFFFFF;
  background: rgba(32,32,39,.94); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 60px rgba(32,32,39,.35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: ck-entrar .35s cubic-bezier(.2,.7,.2,1);
}
.ck-aviso::before {
  content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; border-radius: 2px; background: var(--grad-marca);
}
@keyframes ck-entrar { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ck-titulo { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.ck-texto { font-size: 0.9rem; line-height: 1.55; margin-bottom: 16px; }
.ck-aviso .ck-texto { color: rgba(255,255,255,.78); }
.ck-texto a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.ck-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ck-btn {
  padding: 12px 14px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; line-height: 1.2;
  background: #FFFFFF; color: var(--ink); border: 1px solid rgba(32,32,39,.12); transition: transform .15s ease, filter .15s ease;
}
.ck-btn:hover { transform: translateY(-1px); filter: brightness(.97); }
.ck-btn-principal { background: var(--grad-boton); color: #FFFFFF; border-color: transparent; }
.ck-enlace {
  display: block; margin: 10px auto 0; padding: 6px; font-size: 0.85rem; font-weight: 600;
  color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 3px;
}
.ck-enlace:hover { color: #FFFFFF; }

.ck-fondo {
  position: fixed; inset: 0; z-index: 1001; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(32,32,39,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ck-panel {
  position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: 28px 26px 22px; border-radius: 22px; background: #FFFFFF; color: var(--text);
  box-shadow: 0 30px 80px rgba(32,32,39,.35); animation: ck-entrar .25s ease;
}
.ck-panel .ck-titulo { color: var(--ink); font-size: 1.3rem; margin-bottom: 16px; padding-right: 32px; }
.ck-panel-corto .ck-titulo { font-size: 1.15rem; }
.ck-cat { padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; }
.ck-cat-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; cursor: pointer; }
.ck-cat-cab strong { color: var(--ink); font-weight: 600; }
.ck-cat p { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.ck-siempre { font-size: 0.78rem; font-weight: 700; color: var(--blue); }
.ck-interruptor {
  -webkit-appearance: none; appearance: none; flex-shrink: 0; width: 46px; height: 26px; border-radius: 999px;
  background: #D2D2D4; position: relative; cursor: pointer; transition: background .2s;
}
.ck-interruptor::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s;
}
.ck-interruptor:checked { background: var(--blue); }
.ck-interruptor:checked::after { transform: translateX(20px); }
.ck-interruptor:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.ck-panel .ck-texto { color: var(--muted); margin: 6px 0 16px; }
.ck-cerrar {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.5rem; line-height: 1; color: var(--muted);
}
.ck-cerrar:hover { background: var(--bg-soft); color: var(--ink); }

/* Vídeo de un artículo a la espera del permiso */
.video-externo {
  aspect-ratio: 16 / 9; border-radius: var(--radius); padding: 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(circle at 50% 35%, rgba(95,95,255,.35), transparent 60%), var(--ink); color: #FFFFFF;
}
.video-externo p { color: rgba(255,255,255,.8); font-size: 0.9rem; max-width: 420px; margin: 0; }
.video-externo-play {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.95); position: relative;
}
.video-externo-play::after {
  content: ''; position: absolute; left: 24px; top: 19px;
  border-left: 18px solid var(--blue); border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.video-externo .ck-btn { width: auto; }

/* Enlace "Configurar cookies" del pie */
.enlace-cookies { font-size: 0.92rem; color: inherit; padding: 0; text-align: left; transition: color .2s; }
.enlace-cookies:hover { color: var(--white); }

@media (max-width: 560px) {
  .ck-aviso { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 18px 12px; }
  .ck-botones { grid-template-columns: 1fr; }
  .ck-aviso .ck-botones { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ck-aviso, .ck-panel { animation: none; } }

/* ========== TESTIMONIOS ========== */
#testimonios { background: var(--bg-soft); position: relative; overflow: hidden; }
#testimonios::before {                       /* halo de marca de fondo */
  content: ''; position: absolute; width: 700px; height: 700px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(95,95,255,.10) 0%, rgba(95,95,255,0) 65%); pointer-events: none;
}
#testimonios .container { position: relative; }
.section-title-centrado { margin-left: auto; margin-right: auto; text-align: center; }
.testimonios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.testimonio {
  display: flex; flex-direction: column; gap: 18px; margin: 0;
  padding: 28px 24px 24px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(32,32,39,.05);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.testimonio:hover {
  transform: translateY(-4px); border-color: transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              linear-gradient(135deg, rgba(95,95,255,.65), rgba(254,101,63,.5)) border-box;
  box-shadow: 0 18px 40px rgba(95,95,255,.14);
}
.testimonio-comillas { fill: var(--blue); opacity: .9; }
.testimonio:nth-child(even) .testimonio-comillas { fill: var(--coral); }
.testimonio blockquote { margin: 0; flex: 1; font-size: 1rem; line-height: 1.6; color: var(--text); }
.testimonio figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.testimonio figcaption strong { display: block; color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.testimonio figcaption small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.4; margin-top: 2px; }
.testimonio-avatar {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-boton); color: #FFFFFF; font-weight: 700; font-size: 0.9rem; letter-spacing: .02em;
}
.testimonio:nth-child(even) .testimonio-avatar { background: linear-gradient(135deg, #FF8A66, var(--coral)); }
img.testimonio-avatar { object-fit: cover; padding: 0; }   /* si se usa foto en vez de iniciales */
@media (max-width: 1100px) { .testimonios { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .testimonios { grid-template-columns: 1fr; gap: 14px; }
  .testimonio { padding: 22px 20px 20px; }
}

/* =====================================================================
   CAMBIOS 18/11/2026: botones en rojo coral corporativo, 3 etapas de compra,
   testimonios en 3 columnas, sección de demo (Calendly) y WhatsApp flotante
   ===================================================================== */
:root {
  --rojo-coral: #F37276;
  --rojo-coral-dark: #E25A5F;
  --grad-boton: linear-gradient(135deg, #F7898C 0%, var(--rojo-coral) 55%, #EC6166 100%);
}
.btn-primary, .btn-primary:hover { background: var(--grad-boton); }
.btn-primary { box-shadow: 0 8px 22px rgba(243,114,118,.30), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(243,114,118,.42), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-coral { background: var(--rojo-coral); box-shadow: 0 8px 22px rgba(243,114,118,.30); }
.btn-coral:hover { background: var(--rojo-coral-dark); box-shadow: 0 10px 24px rgba(243,114,118,.4); }
.btn-add:hover { background: var(--rojo-coral); }

/* Cómo adquirirlo: 3 etapas */
.acquire-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.acquire-flow-line { left: 16%; right: 16%; }
@media (max-width: 1024px) { .acquire-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .acquire-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* Logo del pie: el ancho sigue a la altura (no se deforma) */
.footer-brand img { width: auto; max-width: 100%; height: 34px; object-fit: contain; filter: brightness(0) invert(1); }   /* logo entero en blanco, sin invertir el color de "Med" */

/* Testimonios: 3 columnas (3 o 6 tarjetas) */
.testimonios { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonio-avatar { width: 52px; height: 52px; }
img.testimonio-avatar { box-shadow: 0 0 0 2px var(--white), 0 0 0 3px rgba(95,95,255,.25); }
@media (max-width: 1100px) { .testimonios { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testimonios { grid-template-columns: 1fr; } }

/* Equipo: avatar con iniciales mientras no haya foto */
.team-avatar-iniciales {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--cream) 100%);
}
.team-avatar-iniciales span {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: .02em;
  background: var(--grad-marca); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Agendar demo */
#demo { position: relative; overflow: hidden; }
#demo::before {
  content: ''; position: absolute; width: 640px; height: 640px; right: -180px; top: -200px; pointer-events: none;
  background: radial-gradient(circle, rgba(243,114,118,.12) 0%, rgba(243,114,118,0) 65%);
}
.demo-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: center; position: relative; }
.demo-texto p { color: var(--muted); font-size: 1.1rem; margin-top: 20px; }
.demo-wa { margin-top: 32px; padding: 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.demo-wa strong { color: var(--ink); font-size: 1.05rem; }
.demo-form { font-size: 0.92rem; color: var(--muted); font-weight: 600; }
.demo-form:hover { color: var(--ink); }
.btn-whatsapp { background: #25D366; color: #FFFFFF; box-shadow: 0 8px 22px rgba(37,211,102,.28); }
.btn-whatsapp:hover { background: #1EBE5A; transform: translateY(-2px); }
.calendly {
  min-height: 560px; border-radius: var(--radius); overflow: hidden; background: var(--white);
  border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(32,32,39,.08);
  display: flex; align-items: center; justify-content: center;
}
.calendly.is-cargada { display: block; }
.calendly iframe { display: block; width: 100%; height: 700px; border: 0; }
.calendly-aviso { max-width: 380px; padding: 32px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.calendly-aviso p { color: var(--muted); margin: 0; }
.calendly-icono { width: 64px; height: 64px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--white); background: var(--grad-boton); box-shadow: 0 10px 26px rgba(243,114,118,.3); }
@media (max-width: 960px) {
  .demo-grid { grid-template-columns: 1fr; gap: 40px; }
  .calendly { min-height: 420px; }
}

/* Botón flotante de WhatsApp */
.wa-flotante {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(37,211,102,.38), 0 2px 6px rgba(32,32,39,.18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-flotante:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 34px rgba(37,211,102,.48), 0 2px 6px rgba(32,32,39,.18); }
.wa-flotante::before {      /* pulso suave para que se vea */
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; opacity: 0;
  animation: wa-pulso 2.8s ease-out 1.5s infinite;
}
@keyframes wa-pulso { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 560px) {
  .wa-flotante { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  body:has(.ck-aviso) .wa-flotante { display: none; }   /* no tapar el aviso de cookies en móvil */
}
@media (prefers-reduced-motion: reduce) { .wa-flotante::before { animation: none; } }
.ia-chip { background: linear-gradient(135deg, #6E6EFF 0%, var(--blue) 55%, #4B4BF0 100%); }   /* el chip IA sigue en morado */

/* 19/11/2026: el equipo queda en 4 personas */
.team { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .team { grid-template-columns: 1fr; } }

/* 23/11/2026: vídeo vertical propio en el móvil de la portada */
.video-portada video,
.hero-phone-screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.video-portada video { opacity: .95; transition: opacity .25s; }
.video-portada:hover video { opacity: 1; }

/* 25/11/2026: distintivos en el azul corporativo y agenda de Calendly sin scroll interno */
.pricing-toggle .save-badge, .plan-badge { background: var(--blue); }
.calendly iframe { height: 1000px; transition: height .2s; }
@media (max-width: 960px) { .calendly iframe { height: 1100px; } }

/* 25/11/2026: en el móvil los logos de «Respaldados por» se encogen para caber en la caja */
@media (max-width: 540px) {
  .backers { padding: 20px; }
  .backers-logos { width: 100%; gap: 16px; }
  .backers-logos img { min-width: 0; flex-shrink: 1; max-width: calc(50% - 17px); height: auto; }
}

/* 25/11/2026: en Safari (iPhone) la pantalla no heredaba la altura del marco y el vídeo asomaba por debajo.
   La pantalla se ancla al marco (12px = su padding) y se fuerza el recorte redondeado del vídeo. */
.hero-phone-screen {
  position: absolute; inset: 12px; width: auto; height: auto;
  isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); transform: translateZ(0);
}

/* 25/11/2026: «Mide con tu móvil» tapaba la parte de abajo del vídeo: pasa a asomar bajo el marco */
.hero-phone-tag:not(.hero-phone-tag-ia) { bottom: -24px; left: -28px; }
@media (max-width: 960px) { .hero-phone-tag:not(.hero-phone-tag-ia) { bottom: -26px; left: -12px; } }
