/* ========================================================================== 
   TICsPoint — Presentación Ejecutiva para la web
   Estética alineada con ticspoint.com (styles.css + site.css + v7.css)
   ========================================================================== */

/* ---------------- Tokens base (compatibles con el sitio) ---------------- */
:root{
  /* Duraciones de animación para stagger */
  --anim-base: 0.6s;
  --anim-delay-1: 0.1s;
  --anim-delay-2: 0.2s;
  --anim-delay-3: 0.3s;
  --anim-delay-4: 0.4s;
  --anim-delay-5: 0.5s;
  --tp-bg: #0F172A;
  --tp-surface: rgba(22, 31, 51, 0.55);
  --tp-surface-strong: rgba(22, 31, 51, 0.72);
  --tp-border: rgba(36, 48, 74, 0.70);
  --tp-border-soft: rgba(36, 48, 74, 0.55);
  --tp-text: #F8FAFC;
  --tp-muted: rgba(203,213,225,.85);
  --tp-muted-2: rgba(148,163,184,.78);
  --tp-cyan: #23D0EB;
  --tp-violet: #6c5ce7;

  --radius-12: 12px;
  --radius-16: 16px;

  --shadow-elev: 0 14px 40px rgba(0,0,0,.35);
  --shadow-glow: 0 0 18px rgba(35,208,235,.18);
  --shadow-glow-strong: 0 0 22px rgba(35,208,235,.32);

  --ease-fast: .15s ease;
  --ease: .25s ease;

  /* Tipografía */
  --font-heading: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--tp-text);
  line-height: 1.6;
  overflow: hidden; /* slide deck */

  /* Fondo en el mismo espíritu del sitio */
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(35, 208, 235, 0.10), transparent 60%),
    radial-gradient(700px 420px at 10% -10%, rgba(108, 92, 231, 0.10), transparent 60%),
    var(--tp-bg);
}

h1, h2, h3, h4, h5, h6{
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p{ margin: 0; }

/* ---------------- Contenedor de presentación ---------------- */
.presentation-container{
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ---------------- Slides ---------------- */
.slide{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Un poco más compacto para evitar cortes en pantallas bajas */
  padding: clamp(42px, 6vh, 72px) clamp(22px, 6vw, 96px);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
}
.slide.active{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

/* Animaciones de entrada escalonadas */
.slide.active .slide-header-tag{
  animation: fadeInUp var(--anim-base) ease var(--anim-delay-1) both;
}
.slide.active .slide-title,
.slide.active .main-title{
  animation: fadeInUp var(--anim-base) ease var(--anim-delay-2) both;
}
.slide.active .glass-caption,
.slide.active .subtitle-light,
.slide.active .intro-text{
  animation: fadeInUp var(--anim-base) ease var(--anim-delay-3) both;
}
.slide.active .content-box,
.slide.active .flow-diagram,
.slide.active .two-columns > *{
  animation: fadeInUp var(--anim-base) ease var(--anim-delay-3) both;
}
.slide.active .symptom-card:nth-child(1),
.slide.active .process-card:nth-child(1),
.slide.active .context-card:nth-child(1){
  animation: fadeInScale var(--anim-base) ease var(--anim-delay-2) both;
}
.slide.active .symptom-card:nth-child(2),
.slide.active .process-card:nth-child(2),
.slide.active .context-card:nth-child(2){
  animation: fadeInScale var(--anim-base) ease var(--anim-delay-3) both;
}
.slide.active .symptom-card:nth-child(3),
.slide.active .process-card:nth-child(3),
.slide.active .context-card:nth-child(3){
  animation: fadeInScale var(--anim-base) ease var(--anim-delay-4) both;
}
.slide.active .symptom-card:nth-child(4),
.slide.active .context-card:nth-child(4){
  animation: fadeInScale var(--anim-base) ease var(--anim-delay-5) both;
}
.slide.active .symptom-card:nth-child(5){
  animation: fadeInScale var(--anim-base) ease calc(var(--anim-delay-5) + 0.1s) both;
}
.slide.active .step-item:nth-child(1){
  animation: fadeInScale var(--anim-base) ease var(--anim-delay-2) both;
}
.slide.active .step-item:nth-child(2){
  animation: fadeInScale var(--anim-base) ease var(--anim-delay-3) both;
}
.slide.active .step-item:nth-child(3){
  animation: fadeInScale var(--anim-base) ease var(--anim-delay-4) both;
}
.slide.active .step-item:nth-child(4){
  animation: fadeInScale var(--anim-base) ease var(--anim-delay-5) both;
}
.slide.active .brand-block,
.slide.active .cta-buttons,
.slide.active .contact-info{
  animation: fadeInUp var(--anim-base) ease var(--anim-delay-4) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.slide-content{
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Presentación: no scroll interno */
  overflow: hidden;
}

.slide-content.center{ align-items: center; text-align: center; }
.slide-content.top{ justify-content: flex-start; }

/* ---------------- Controles (look del sitio) ---------------- */
.presentation-controls{
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(15,23,42,.68);
  backdrop-filter: blur(12px);
  padding: 14px 10px;
  border-radius: var(--radius-16);
  border: 1px solid var(--tp-border-soft);
  box-shadow: 0 14px 36px rgba(0,0,0,.25);
}

.control-btn{
  background: rgba(15,23,42,.60);
  border: 1px solid rgba(36,48,74,.70);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-text);
  transition: transform var(--ease), background var(--ease), border-color var(--ease), filter var(--ease);
}
.control-btn:hover:not(:disabled){
  background: rgba(22,31,51,.72);
  border-color: rgba(35,208,235,.55);
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: var(--shadow-glow);
}
.control-btn:disabled{ opacity: .28; cursor: not-allowed; }

.slide-counter{
  font-size: 12px;
  font-weight: 700;
  color: rgba(203,213,225,.92);
  padding: 8px 0;
  font-family: var(--font-heading);
  letter-spacing: .06em;
}

/* Barra de progreso */
.progress-bar{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: rgba(36,48,74,.55);
  z-index: 1000;
}
.progress-fill{
  height: 100%;
  width: 11.11%;
  background: linear-gradient(90deg, var(--tp-cyan), var(--tp-violet));
  transition: width .35s ease;
}

/* ---------------- Partículas de fondo sutiles ---------------- */
.particles-bg{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle{
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--tp-cyan);
  opacity: 0.15;
  animation: floatParticle 20s linear infinite;
  box-shadow: 0 0 8px rgba(35,208,235,0.3);
}

.particle:nth-child(2n){
  background: var(--tp-violet);
  box-shadow: 0 0 8px rgba(108,92,231,0.3);
  animation-duration: 25s;
}

.particle:nth-child(3n){
  animation-duration: 30s;
  width: 2px;
  height: 2px;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.15;
  }
  90% {
    opacity: 0.15;
  }
  100% {
    transform: translateY(-100vh) translateX(50px) scale(1);
    opacity: 0;
  }
}

/* ---------------- Tipografía / jerarquía ---------------- */
/* ---------------- Utilidades ---------------- */
.accent{ color: var(--tp-cyan); }

.slide-topbar{
  display:flex;
  align-items:center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.topbar-sep{
  color: rgba(148,163,184,.75);
  font-style: italic;
  letter-spacing: .08em;
  transform: translateY(-0.5px);
}

.slide-topbar .intro-text{ margin-bottom: 0; }

.folio-title{
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: rgba(203,213,225,.85);
  letter-spacing: .06em;
  text-transform: none;
  margin: 0 0 18px 0;
}

.glass-caption{
  margin-top: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-16);
  border: 1px solid rgba(36,48,74,.65);
  background: rgba(15,23,42,.35);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  max-width: 880px;
}
.glass-caption p{
  color: rgba(203,213,225,.92);
  font-weight: 600;
  font-size: clamp(14px, 1.65vw, 18px);
}

.brand-block{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  margin-top: 40px;
}
.brand-logo{
  color: rgba(35,208,235,.95);
  filter: drop-shadow(0 0 14px rgba(35,208,235,.22));
}
.brand-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  line-height:1.1;
}
.brand-tagline{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(148,163,184,.88);
  font-weight: 600;
}

.main-title{
  font-size: clamp(38px, 4.4vw, 68px);
  font-weight: 800;
  margin-bottom: 22px;
  color: var(--tp-text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.main-subtitle{
  font-size: clamp(16px, 2.0vw, 20px);
  font-weight: 400;
  color: var(--tp-muted);
  max-width: 820px;
}

.brand{ margin-top: 46px; }
.brand-name{
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 900;
  letter-spacing: .01em;
  /* Solo "TICs" va acentuado (span.accent). */
  color: var(--tp-text);
}


/* Acentos mejorados con más glow */
.accent{ 
  color: var(--tp-cyan); 
  text-shadow: 0 0 24px rgba(35,208,235,.35), 0 0 12px rgba(35,208,235,.25);
  position: relative;
}

/* Caption tipo "glass" (como en el sitio) */
.glass-caption{
  margin-top: 14px;
  max-width: 820px;
  padding: 14px 16px;
  border-radius: var(--radius-16);
  border: 1px solid rgba(36,48,74,.70);
  background: rgba(15,23,42,.28);
  backdrop-filter: blur(12px);
}
.glass-caption p{ color: rgba(203,213,225,.9); font-size: clamp(15px, 1.8vw, 18px); }

/* Bloque de marca en portada */
.brand-block{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 12px 14px;
  border-radius: var(--radius-16);
  border: 1px solid rgba(36,48,74,.70);
  background: rgba(15,23,42,.22);
  backdrop-filter: blur(12px);
}
.brand-logo{ color: var(--tp-cyan); filter: drop-shadow(0 0 14px rgba(35,208,235,.22)); }
.brand-meta{ display:flex; flex-direction:column; align-items:flex-start; text-align:left; }
.brand-tagline{ font-size: 12px; color: rgba(203,213,225,.82); font-weight: 600; margin-top: 2px; }

/* Topbar consistente para folios y tags */
.slide-topbar{
  display:flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}
.slide-topbar .intro-text{ margin-bottom: 0; }

/* Folio pequeño (no debe competir con el título) */
.folio-title{
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: rgba(203,213,225,.88);
  letter-spacing: .02em;
  margin-bottom: 18px;
  max-width: 960px;
}

/* Kicker / tag como en el sitio */
.slide-header-tag{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(203,213,225,.82);
  margin-bottom: 14px;
}
.slide-header-tag::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--tp-cyan);
  box-shadow: 0 0 16px rgba(35,208,235,.55), 0 0 8px rgba(35,208,235,.35);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 16px rgba(35,208,235,.55), 0 0 8px rgba(35,208,235,.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 24px rgba(35,208,235,.75), 0 0 12px rgba(35,208,235,.50);
    transform: scale(1.1);
  }
}

.slide-title{
  font-size: clamp(22px, 3.2vw, 44px);
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--tp-text);
}

.subtitle-light{
  font-size: clamp(18px, 2.3vw, 32px);
  font-weight: 400;
  color: var(--tp-muted-2);
}

.intro-text{
  font-size: 14px;
  color: rgba(148,163,184,.88);
  margin-bottom: 10px;
  font-style: italic;
}

.large-text{
  max-width: 980px;
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.75;
  color: var(--tp-muted);
  margin-bottom: 18px;
  max-width: 960px;
}
.large-text.highlight{
  color: rgba(248,250,252,.95);
  font-weight: 700;
}

/* ---------------- Layouts ---------------- */
.two-columns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 26px;
}

/* ---------------- Superficies / cards ---------------- */
.content-box,
.flow-diagram,
.symptom-card,
.step-item,
.process-card,
.context-card,
.diagnostic-box{
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--radius-16);
  padding: 22px;
  backdrop-filter: blur(12px);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background var(--ease);
}

.content-box:hover,
.flow-diagram:hover{
  transform: translateY(-5px);
  border-color: rgba(35,208,235,.45);
  background: var(--tp-surface-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 24px rgba(35,208,235,.15);
}

.symptom-card:hover,
.context-card:hover,
.diagnostic-box:hover{
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(35,208,235,.5);
  background: var(--tp-surface-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 24px rgba(35,208,235,.18);
}

.step-item:hover{
  transform: translateY(-5px);
  border-color: rgba(35,208,235,.5);
  background: var(--tp-surface-strong);
  box-shadow: 0 14px 36px rgba(0,0,0,.3), 0 0 20px rgba(35,208,235,.15);
}

.process-card:hover{
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(35,208,235,.55);
  background: var(--tp-surface-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 28px rgba(35,208,235,.2);
}

/* Variantes */
.friction-box{ position: relative; }
.friction-box::before{
  content:"";
  position: absolute;
  left: 0; top: 16px;
  width: 4px;
  height: calc(100% - 32px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tp-cyan), var(--tp-violet));
  opacity: .9;
}

.box-title{
  font-size: 14px;
  font-weight: 800;
  color: rgba(203,213,225,.85);
  margin-bottom: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.box-text{ font-size: 16px; line-height: 1.65; color: var(--tp-muted); }

/* Flow diagram */
.flow-diagram{ display:flex; flex-direction:column; align-items:center; }
.diagram-title{
  font-size: 11px;
  font-weight: 800;
  color: rgba(148,163,184,.85);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-align: center;
}
.flow-svg{ width: 100%; max-width: 320px; height: auto; }
.flow-svg text{ font-family: var(--font-heading); }

/* Animaciones del diagrama de flujo */
.flow-arrow-anim{
  stroke-dashoffset: 0;
  animation: flowMove 2s linear infinite;
}

.friction-pulse{
  animation: pulseBox 2.5s ease-in-out infinite;
}

.flow-box-anim{
  animation: fadeInBox 0.6s ease both;
}

@keyframes flowMove {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 20;
  }
}

@keyframes pulseBox {
  0%, 100% {
    stroke-opacity: 0.2;
    fill-opacity: 0.08;
  }
  50% {
    stroke-opacity: 0.4;
    fill-opacity: 0.14;
  }
}

@keyframes fadeInBox {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Alert box */
.alert-box{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-16);
  border: 1px solid rgba(35,208,235,.22);
  background:
    radial-gradient(400px 240px at 10% 0%, rgba(35,208,235,.10), transparent 60%),
    rgba(15,23,42,.28);
}
.alert-box p{ font-size: 15px; color: rgba(203,213,225,.92); font-weight: 600; }

/* Symptoms */
.symptoms-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.symptom-card{ text-align:center; padding: 20px 18px; }
.symptom-icon{
  color: var(--tp-cyan);
  margin-bottom: 12px;
  display:flex;
  justify-content:center;
  opacity: .95;
}
.symptom-card p{ font-size: 15px; line-height: 1.55; color: rgba(203,213,225,.90); }

/* Quote */
.quote-box{
  margin: 22px 0;
  padding: 22px;
  border-radius: var(--radius-16);
  border: 1px solid rgba(35,208,235,.35);
  background:
    radial-gradient(520px 280px at 50% -10%, rgba(108,92,231,.18), transparent 60%),
    rgba(15,23,42,.32);
  text-align:center;
}
.quote-text{
  font-size: clamp(16px, 2.0vw, 26px);
  font-weight: 700;
  color: rgba(248,250,252,.95);
  font-style: italic;
  font-family: var(--font-heading);
}

/* Principle */
.principle-box{ text-align:center; margin-bottom: 26px; }
.principle-title{
  /* Coherente con el resto de títulos principales (slide-title) */
  font-size: clamp(30px, 4.3vw, 52px);
  font-weight: 800;
  color: var(--tp-text);
  margin-bottom: 6px;
  line-height: 1.08;
}
.principle-subtitle{ font-size: clamp(14px, 1.6vw, 18px); color: rgba(148,163,184,.90); font-weight: 600; }

/* Steps */
.steps-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
.step-item{ padding: 20px; }
.step-item:hover{ transform: translateY(-4px); }
.step-number{
  width: 44px; height: 44px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  font-size: 16px;
  font-weight: 900;
  color: #041018;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--tp-cyan), var(--tp-violet));
  box-shadow: 0 6px 18px rgba(35,208,235,.18);
  margin-bottom: 12px;
}
.step-icon{
  width: 44px; height: 44px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  color: #041018;
  background: linear-gradient(135deg, var(--tp-cyan), var(--tp-violet));
  box-shadow: 0 6px 18px rgba(35,208,235,.18);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}
.step-item:hover .step-icon{
  box-shadow: 0 8px 24px rgba(35,208,235,.35);
  transform: translateY(-3px) scale(1.05);
}
.step-icon svg{ display:block; }
.step-title{ font-size: 18px; font-weight: 700; color: var(--tp-text); margin-bottom: 8px; }
.step-text{ font-size: 15px; line-height: 1.6; color: var(--tp-muted); }

/* Highlight message */
.highlight-message{
  text-align:center;
  padding: 18px;
  border-radius: var(--radius-16);
  border: 1px solid rgba(35,208,235,.30);
  background:
    linear-gradient(135deg, rgba(35,208,235,.12), rgba(108,92,231,.12)),
    rgba(15,23,42,.18);
}
.highlight-message p{ font-size: clamp(16px, 2.0vw, 22px); font-weight: 800; color: rgba(248,250,252,.95); }

/* Process */
.process-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.process-card{ padding: 42px 30px 30px; position: relative; overflow: hidden; }


.process-number{
  position: absolute;
  top: -18px;
  left: 18px;
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(148,163,184,.28);
  font-family: var(--font-heading);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.process-title{ font-size: 18px; font-weight: 700; color: var(--tp-text); margin-bottom: 10px; }
.process-text{ font-size: 15px; line-height: 1.6; color: var(--tp-muted); }

/* Platform content */
.platform-content{ max-width: 980px; margin: 0 auto; }
.platform-layout{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: center;
}
.platform-media{
  padding: 0;
}
.media-placeholder{
  border-radius: var(--radius-16);
  border: 1px dashed rgba(148,163,184,.35);
  background:
    radial-gradient(520px 280px at 25% 0%, rgba(35,208,235,.10), transparent 60%),
    rgba(15,23,42,.22);
  min-height: 280px;
  display:flex;
  flex-direction: column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding: 18px;
}
.media-badge{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(203,213,225,.85);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(36,48,74,.85);
  background: rgba(2,6,23,.25);
  margin-bottom: 10px;
}
.media-hint{
  font-size: 14px;
  line-height: 1.5;
  color: rgba(148,163,184,.92);
  max-width: 320px;
}
.emphasis-box{
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-16);
  border: 1px solid rgba(108,92,231,.28);
  background:
    radial-gradient(520px 280px at 15% 0%, rgba(35,208,235,.12), transparent 60%),
    rgba(15,23,42,.24);
  text-align:center;
}
.emphasis-box p{ font-size: clamp(16px, 2.0vw, 22px); font-weight: 700; color: rgba(248,250,252,.95); font-family: var(--font-heading); }

/* Contexts */
.contexts-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.context-card{ text-align:center; padding: 22px; }
.context-icon{ 
  color: var(--tp-cyan); 
  margin-bottom: 14px; 
  display:flex; 
  justify-content:center; 
  opacity: .95;
  filter: drop-shadow(0 0 12px rgba(35,208,235,.25));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.context-card:hover .context-icon{
  filter: drop-shadow(0 0 18px rgba(35,208,235,.45));
  transform: scale(1.1);
}
.context-card p{ font-size: 16px; line-height: 1.6; color: rgba(203,213,225,.92); font-weight: 600; }

/* Conclusion */
.conclusion-text{ font-size: clamp(16px, 1.9vw, 22px); line-height: 1.7; color: var(--tp-muted); max-width: 820px; margin: 0 auto 18px; text-align:center; }
.diagnostic-box{ max-width: 920px; margin: 0 auto 20px; padding: 22px; }
.diagnostic-box h3{ font-size: 18px; font-weight: 700; color: var(--tp-text); margin-bottom: 8px; letter-spacing: .2px; }
.diagnostic-box p{ font-size: 16px; color: rgba(203,213,225,.90); }

/* ---------------- CTA buttons (mismo look que el sitio) ---------------- */
.cta-buttons{
  display:flex;
  gap: 12px;
  justify-content:center;
  margin: 18px 0 22px;
  flex-wrap: wrap;
}

.btn{
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease, filter .3s ease;
}

.btn-primary{
  background: linear-gradient(135deg, var(--tp-cyan) 0%, var(--tp-violet) 100%);
  color: var(--tp-text);
  border: none;
  box-shadow: 0 4px 15px rgba(35,208,235,.30);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.50);
  filter: brightness(1.02);
}
.btn-primary::before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::before{ left: 100%; }

.btn-secondary{
  background: rgba(15,23,42,.18);
  color: var(--tp-cyan);
  border: 1px solid rgba(36,48,74,.85);
}
.btn-secondary:hover{
  background: rgba(35,208,235,.08);
  border-color: rgba(35,208,235,.55);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(35, 208, 235, 0.20);
}

/* Contact info */
.contact-info{ display:flex; gap: 30px; justify-content:center; flex-wrap: wrap; }
.contact-item{ display:flex; flex-direction:column; gap: 6px; min-width: 220px; }
.contact-label{
  font-size: 11px;
  font-weight: 800;
  color: rgba(148,163,184,.85);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}
.contact-item a{
  font-size: 14px;
  color: rgba(203,213,225,.92);
  text-decoration: none;
  transition: color var(--ease-fast);
}
.contact-item a:hover{ color: var(--tp-cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1200px){
  .slide{ padding: clamp(52px, 6vh, 72px) clamp(18px, 5vw, 56px); }
}

@media (max-width: 920px){
  .slide{ padding: clamp(48px, 6vh, 64px) clamp(16px, 5vw, 34px); }
  .two-columns{ grid-template-columns: 1fr; }
  .steps-grid{ grid-template-columns: 1fr; }
  .process-grid{ grid-template-columns: 1fr; }
  .contexts-grid{ grid-template-columns: 1fr; }
  .platform-layout{ grid-template-columns: 1fr; }
  .media-placeholder{ min-height: 240px; }
}

@media (max-width: 600px){
  /* Mobile-first feel: menos aire, mejor lectura y deck sin scrollbar */
  /* Dejamos espacio extra abajo para los controles flotantes */
  .slide{ padding: clamp(42px, 6vh, 56px) 16px 84px; }
  .slide-content{ justify-content: flex-start; }

  /* Tipografía un poco más compacta (manteniendo identidad) */
  .main-title{ font-size: clamp(30px, 9vw, 42px); margin-bottom: 14px; }
  .main-subtitle{ font-size: 15px; }
  .slide-title{ font-size: clamp(20px, 6.6vw, 28px); margin-bottom: 18px; }
  .subtitle-light{ font-size: clamp(16px, 5.4vw, 20px); }
  .folio-title{ font-size: 12px; margin-bottom: 12px; }

  /* Topbar: folio arriba, tag abajo */
  .slide-topbar{ flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Cards / bloques: padding más chico */
  .content-box,
  .flow-diagram,
  .symptom-card,
  .step-item,
  .process-card,
  .context-card,
  .diagnostic-box{ padding: 16px; }
  .box-text{ font-size: 14px; }
  .symptom-card p{ font-size: 14px; }

  /* Controles abajo en horizontal (estilo deck) */
  .presentation-controls{
    top: auto;
    bottom: 12px;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    gap: 10px;
    padding: 10px 12px;
  }
  .control-btn{ width: 40px; height: 40px; }
  .slide-counter{ display: none; }

  /* CTA */
  .cta-buttons{ flex-direction: column; }
  .btn{ width: 100%; padding: 13px 18px; }

  /* Contact */
  .contact-info{ gap: 14px; }
  .contact-item{ min-width: 0; width: 100%; text-align: center; }

  /* SVG más chico */
  .flow-svg{ max-width: 260px; }

  /* Slide 7: imagen debajo del texto (más compacto) */
  .media-placeholder{ min-height: 200px; padding: 14px; }
}

/* ---------------- Altura baja (evitar scroll) ---------------- */
@media (max-height: 820px){
  .slide{ padding-top: 40px; padding-bottom: 40px; }

  /* Slide 2 */
  .slide-2 .slide-title{ margin-bottom: 14px; }
  .slide-2 .two-columns{ gap: 14px; }
  .slide-2 .content-box{ padding: 18px; }
  .slide-2 .box-text{ font-size: 14px; }
  .slide-2 .flow-svg{ max-width: 300px; height: 300px; }
  .slide-2 .alert-box{ margin-top: 14px; padding: 14px 16px; }

  /* Slide 5 */
  .slide-5 .folio-title{ margin: 6px 0 10px; }
  .slide-5 .principle-box{ margin-bottom: 18px; }
  .slide-5 .steps-grid{ gap: 12px; margin-bottom: 14px; }
  .slide-5 .step-item{ padding: 16px; }
  .slide-5 .step-number{ width: 40px; height: 40px; margin-bottom: 10px; }
  .slide-5 .step-icon{ width: 40px; height: 40px; margin-bottom: 10px; }
  .slide-5 .step-title{ margin-bottom: 6px; }
  .slide-5 .step-text{ font-size: 14px; line-height: 1.55; }
  .slide-5 .highlight-message{ padding: 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .slide{ transition: none; }
  .content-box, .flow-diagram, .symptom-card, .step-item, .process-card, .context-card{ transition: none; }
  .content-box:hover, .flow-diagram:hover, .symptom-card:hover, .step-item:hover, .process-card:hover, .context-card:hover{ transform: none; }
}

/* ================================
   TICsPoint Ejecutiva - patches
   ================================ */


/* Slide 4 — Diagnóstico: El error más frecuente */
.slide-4 .s4-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:32px;
  align-items:center;
}
.slide-4 .s4-left{
  max-width: 720px;
}
.slide-4 .s4-text{
  max-width: 58ch;
}
.slide-4 .s4-quote{
  margin-top: 26px;
  max-width: 520px;
}
.slide-4 .s4-quote .quote-text{
  font-weight: 600; /* baja un poco para no competir con el título */
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.25;
}
.slide-4 .s4-media{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  pointer-events:none;
}
.slide-4 .s4-img{
  width: min(520px, 40vw);
  max-width: 520px;
  max-height: 520px;
  height: auto;
  object-fit: contain;
  opacity: .95;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.35));
}

/* Slide 4 responsive */
@media (max-width: 900px){
  .slide-4 .s4-grid{
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }
  .slide-4 .s4-media{
    justify-content: flex-start;
  }
  .slide-4 .s4-img{
    width: 100%;
    max-width: 520px;
    max-height: 220px;
  }
  .slide-4 .s4-quote{
    max-width: 460px;
  }
}


/* Slide 5: folio single line */
.slide-5 .slide-topbar{
  justify-content:flex-start;
  gap:10px;
}
.slide-5 .slide-topbar .intro-text{
  font-size: 14px;
  opacity:.85;
}

/* Slide 7: smaller subtitle + image behavior */
.slide-7 .subtitle-light.subtitle-small{
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 500;
  opacity:.6;
}
.platform-media{
  min-height: 260px;
  height: clamp(260px, 42vh, 430px);
}
.platform-media .platform-img{
  width:100%;
  height:100%;
  object-fit: cover;
  border-radius: 18px;
  display:block;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

/* Evitar que el texto “salte” hacia abajo cuando la imagen es grande */
.platform-layout{
  align-items: start;
}

/* En slide 7 la captura suele ser “screenshot”: preferible contener sin recortar */
.slide-7 .platform-media .platform-img{
  object-fit: contain;
  background: transparent;
}
.platform-media .media-placeholder{
  display:none; /* will be shown via onerror */
  height:100%;
}

/* Slide 9: contact icons */
.slide-9 .contact-item{
  display:flex;
  align-items:center;
  gap:10px;
}
.slide-9 .contact-ico{
  width:18px;
  height:18px;
  opacity:.85;
}

/* Slide 9: hover accent SOLO en el ícono (el link mantiene su comportamiento normal) */
.slide-9 .contact-ico{
  transition: color var(--ease-fast), opacity var(--ease-fast);
  cursor: pointer;
}
.slide-9 .contact-ico:hover{
  color:#34d399;
  opacity: 1;
}


/* Mobile fit: evitar cortes por vh en navegadores móviles */
@supports (height: 100svh){
  .presentation-container{ height: 100svh; }
}

/* Ajustes generales para mobile */
@media (max-width: 820px){
  .slide{
    padding: 22px 16px 26px; /* reemplaza clamps basados en vh */
    align-items: flex-start;
  }
  .slide-content{
    width: 100%;
    max-width: 100%;
  }

  /* En mobile, los controles de navegación tapan información */
  .presentation-controls{ display: none !important; }

  /* Slide 1 y 9: el contenido quedaba demasiado arriba */
  .slide-1 .slide-content.center,
  .slide-9 .slide-content.center{
    min-height: calc(100svh - 48px);
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* Slide 3: 2 columnas para que entren las 6 tarjetas sin cortar */
  .symptoms-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .symptom-card{ padding: 14px 12px; min-height: auto; }
  .symptom-icon{ width: 42px; height: 42px; }
  .symptom-title{ font-size: 16px; }
  .symptom-desc{ font-size: 13px; }

  /* Slide 5: 2 columnas + compactar para que "Definir" entre */
  .principles-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .principle-card{ padding: 16px 14px; }
  .principle-icon{ width: 44px; height: 44px; }
  .principle-name{ font-size: 18px; }
  .principle-desc{ font-size: 13px; }
  /* títulos principales */
  .hero-title{ font-size: clamp(34px, 8vw, 44px); }
  .hero-subtitle{ font-size: 15px; }
  /* grids de 3 columnas: apilar */
  .cards-3{ grid-template-columns: 1fr; }
  .cards-2{ grid-template-columns: 1fr; }
}

/* Muy angosto: volver a 1 columna para evitar tarjetas demasiado estrechas */
@media (max-width: 380px){
  .symptoms-grid{ grid-template-columns: 1fr; }
  .principles-grid{ grid-template-columns: 1fr; }
}


/* --- PATCH v11: Slide 4 topbar alignment + Slide 2 note placement --- */
.slide-4 .slide-topbar{
  justify-content:flex-start;
  gap: 10px;
}
.slide-4 .intro-text{
  margin-left:8px;
}
.slide-2 .s2-note{
  margin-top:18px;
  width:100%;
  max-width:520px;
}
