/* ============================================================
   MYPE SEGURA — Hoja de estilos
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --navy: #112a5e;
  --navy-deep: #0a1c40;
  --navy-soft: #1b3a78;
  --orange: #f7941d;
  --orange-dark: #e07d09;
  --orange-soft: #fff1de;
  --green: #16a34a;
  --green-soft: #e7f7ed;

  --text: #3a4356;
  --text-soft: #6b7488;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --border: #e6ebf4;

  --shadow-sm: 0 2px 8px rgba(17, 42, 94, .06);
  --shadow-md: 0 12px 30px rgba(17, 42, 94, .08);
  --shadow-lg: 0 24px 60px rgba(10, 28, 64, .18);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1400px;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; }

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 40px; }
#plan .container,
#software .container { max-width: 1160px; }
.text-orange { color: var(--orange); }
.text-navy { color: var(--navy); }

.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section__title { font-size: clamp(1.6rem, 1rem + 2.4vw, 2.4rem); font-weight: 700; }
.section__subtitle { margin-top: 14px; color: var(--text-soft); font-size: 1.02rem; }

/* Riesgos: título más ancho (2 líneas) y subtítulo más grande */
#riesgos .section__head { max-width: 900px; }
#riesgos .section__head .section__title { font-size: clamp(1.8rem, 1rem + 3.2vw, 2.9rem); }
#riesgos .section__subtitle { font-size: 1.14rem; line-height: 1.75; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  padding: 7px 16px;
  border-radius: 50px;
}
.badge--soft { background: var(--orange-soft); color: var(--orange-dark); }
.badge--orange { background: var(--orange); color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(247, 148, 29, .35); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(247, 148, 29, .45); }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn .ico { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Iconos auxiliares ---------- */
.ico-mini { width: 15px; height: 15px; fill: currentColor; vertical-align: -2px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: inline-flex; align-items: center; }
.logo img { height: 70px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { font-family: var(--font-head); font-weight: 500; color: var(--navy); font-size: .95rem; transition: color .2s; }
.nav__link:hover { color: var(--orange); }
.nav__cta { color: #fff; }

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--bg-alt); padding: 70px 0 90px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero__title {
  margin: 20px 0 18px;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.1rem);
  font-weight: 800;
}
.hero__text { color: var(--text-soft); font-size: 1.08rem; max-width: 520px; }
.hero__note { margin-top: 18px; font-size: .85rem; color: var(--text-soft); }
.btn--lg.btn--primary { margin-top: 28px; }

/* Tarjeta de imagen hero */
.media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-card img { width: 100%; height: 380px; object-fit: cover; }
.media-card__tag {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10, 28, 64, .8);
  color: #fff; font-family: var(--font-head); font-weight: 500; font-size: .85rem;
  padding: 8px 14px; border-radius: 50px;
  backdrop-filter: blur(4px);
}
.media-card__tag .ico-mini { fill: var(--orange); }

/* ============================================================
   GRID GENÉRICO
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Tarjetas de riesgo ---------- */
.card-risk {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 26px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.card-risk:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: var(--orange);
  border-color: var(--orange);
}
.card-risk:hover .card-risk__title { color: #fff; }
.card-risk:hover p { color: #fff; }
.card-risk:hover .icon-box { background: #fff; }
.card-risk:hover .icon-box i { color: var(--orange); }
.icon-box {
  display: flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--orange); margin: 0 auto 22px;
  transition: background .3s ease;
}
.icon-box i { font-size: 34px; color: #fff; transition: color .3s ease; }
.card-risk__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; transition: color .3s ease; }
.card-risk p { color: var(--text-soft); font-size: .96rem; transition: color .3s ease; }

/* ============================================================
   PLAN / CARRUSEL
   ============================================================ */
.plan__lead { margin-top: 26px; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
#plan .section__head { max-width: 100%; }
#plan .section__title { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); }
#plan .section__subtitle { font-size: 1.18rem; line-height: 1.75; max-width: 860px; margin-inline: auto; }

.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  transition: transform .45s cubic-bezier(.45, .05, .25, 1);
  will-change: transform;
}
.carousel__item { flex: 0 0 calc(100% / 3); padding-inline: 13px; }

.card-plan {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-plan__media { position: relative; }
.card-plan__media img { width: 100%; height: 165px; object-fit: cover; }
.card-plan__icon {
  position: absolute; right: 14px; bottom: -22px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.card-plan__icon svg { width: 22px; height: 22px; fill: var(--orange); }
.card-plan__icon i { font-size: 20px; color: var(--orange); }
.card-plan__body { padding: 32px 22px 26px; }
.card-plan__body h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 9px; }
.card-plan__body p { color: var(--text-soft); font-size: .93rem; }

/* Controles */
.carousel__controls { display: flex; justify-content: center; gap: 16px; margin-top: 34px; }
.carousel__arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--navy); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: .2s;
}
.carousel__arrow svg { width: 22px; height: 22px; }
.carousel__arrow:hover { border-color: var(--orange); color: var(--orange); transform: scale(1.06); }
.carousel__arrow:disabled { opacity: .4; cursor: not-allowed; transform: none; border-color: var(--border); color: var(--navy); }

/* Dots */
.carousel__dots { display: flex; justify-content: center; gap: 9px; margin-top: 20px; }
.carousel__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #c8d2e4; border: none; cursor: pointer; padding: 0;
  transition: .25s;
}
.carousel__dot.is-active { background: var(--orange); width: 26px; border-radius: 50px; }

/* ============================================================
   SOFTWARE
   ============================================================ */
.software-card {
  background: var(--navy-deep);
  border-radius: 26px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.software-card::before {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 148, 29, .22), transparent 70%);
}
.software-card__text { position: relative; z-index: 1; }
.software-card__title { color: #fff; font-size: clamp(1.6rem, 1rem + 2vw, 2.2rem); font-weight: 700; margin: 16px 0 14px; }
.software-card__intro { color: #c5cee0; font-size: 1.02rem; text-align: justify; }
.feature-list { margin-top: 24px; display: grid; gap: 14px; }
.feature-list li { display: flex; align-items: center; gap: 12px; color: #e4e9f4; font-size: .98rem; }
.ico-feat { width: 22px; height: 22px; fill: var(--orange); flex: 0 0 auto; }

/* Mockup app */
.software-card__mock { position: relative; z-index: 1; }
.app-mock {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
}
.app-mock__bar { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.app-mock__menu { display: flex; flex-direction: column; gap: 3px; }
.app-mock__menu span { width: 16px; height: 2px; background: var(--navy); border-radius: 2px; }
.app-mock__title { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; flex: 1; }
.app-mock__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
}
.app-mock__head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 12px; }
.app-mock__h { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .92rem; }
.app-mock__date { color: var(--text-soft); font-size: .78rem; }
.chip { font-family: var(--font-head); font-weight: 600; font-size: .68rem; padding: 5px 11px; border-radius: 50px; }
.chip--blue        { background: #e2ecff; color: #2b5bd7; }
.chip--green       { background: var(--green-soft); color: var(--green); }
.chip--orange-soft { background: var(--orange-soft); color: var(--orange-dark); }

/* ============================================================
   MOCK CAROUSEL (carrusel de módulos software)
   ============================================================ */
.mock-carousel {
  position: relative; /* contexto para flechas absolutas */
}
.mock-carousel__viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
}
.mock-carousel__track {
  display: flex;
  transition: transform .45s cubic-bezier(.45,.05,.25,1);
  will-change: transform;
}
.mock-carousel__item {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
}

.mock-slide-wrap {
  position: relative;
  padding-bottom: 42px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mock-slide-wrap .stat-float {
  right: 6px;
  bottom: 6px;
}

/* app-mock ocupa todo el alto disponible en el slide */
.mock-slide-wrap .app-mock {
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* la sección central de cada slide se expande para igualar alturas */
.mock-slide-wrap .app-mock__list,
.mock-slide-wrap .app-trend { flex: 1; }

/* distribuir ítems uniformemente cuando hay espacio extra */
.mock-slide-wrap .app-mock__list {
  align-content: space-between;
}

/* texto de ítems ligeramente más grande dentro del carrusel */
.mock-slide-wrap .app-item__t { font-size: .88rem; }
.mock-slide-wrap .app-item__s { font-size: .78rem; }

/* Flechas: posición absoluta sobre los bordes del viewport */
.mock-carousel__arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid rgba(255,255,255,.55);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(247,148,29,.55);
  transition: background .2s, box-shadow .2s;
}
.mock-carousel__arrow:hover:not(:disabled) {
  background: var(--orange-dark);
  box-shadow: 0 6px 20px rgba(247,148,29,.70);
}
.mock-carousel__arrow:disabled { opacity: .30; cursor: not-allowed; }

#mockPrev { left: 8px; }
#mockNext { right: 8px; }

.mock-carousel__dots { display: none; }

/* ---- Mobile: mock carrusel bien contenido dentro del card azul ---- */
@media (max-width: 768px) {
  /* asegurar que el mock no desborde el card azul */
  .software-card__mock { overflow: hidden; width: 100%; }
  .mock-carousel       { width: 100%; overflow: hidden; }

  /* desactivar igualación de alturas */
  .mock-carousel__item        { display: block; }
  .mock-slide-wrap            { display: block; flex: none; padding-bottom: 0; }
  .mock-slide-wrap .app-mock  { display: block; flex: none; width: 100%; box-sizing: border-box; }
  .mock-slide-wrap .app-mock__list,
  .mock-slide-wrap .app-trend { flex: none; align-content: normal; }

  /* stat-float oculto en mobile */
  .mock-slide-wrap .stat-float { display: none; }

  /* contenido compacto */
  .mock-slide-wrap .app-mock       { padding: 12px; }
  .mock-slide-wrap .app-mock__bar  { padding-bottom: 8px; }
  .mock-slide-wrap .app-mock__head { margin: 8px 0 8px; }
  .mock-slide-wrap .app-mock__h    { font-size: .82rem; }
  .mock-slide-wrap .app-mock__list { gap: 6px; }
  .mock-slide-wrap .app-item       { padding: 7px 9px; }
  .mock-slide-wrap .app-item__t    { font-size: .8rem; }
  .mock-slide-wrap .app-item__s    { font-size: .72rem; }
  .mock-slide-wrap .app-mock__btn  { padding: 9px 12px; font-size: .8rem; margin-top: 8px; }
  .mock-slide-wrap .app-trend__header { margin-bottom: 4px; }
  .mock-slide-wrap .app-trend__footer { margin-top: 4px; }

  /* flechas debajo, centradas */
  .mock-carousel { padding-bottom: 44px; }
  .mock-carousel__arrow {
    position: absolute;
    top: auto;
    bottom: 4px;
    transform: none;
    width: 34px; height: 34px;
  }
  #mockPrev { left: calc(50% - 42px); }
  #mockNext { right: auto; left: calc(50% + 8px); }
}

/* stat-float variante naranja */
.stat-float__num--orange { color: var(--orange); }

/* Gráfico de tendencia SST */
.app-trend { padding: 2px 0; }
.app-trend__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.app-trend__title {
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: var(--navy);
}
.app-trend__range { font-size: .72rem; color: var(--text-soft); }
.app-trend__chart { width: 100%; height: auto; display: block; }
.app-trend__footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px;
}
.app-trend__delta {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  color: var(--green);
}
.app-trend__current { font-size: .8rem; color: var(--text-soft); }
.app-trend__current strong { color: var(--orange); font-weight: 700; }

/* ============================================================
   SECCIÓN NO-MYPE
   ============================================================ */
.no-mype-section {
  background: transparent;
  padding: 80px 0;
}

.no-mype__card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 52px;
  row-gap: 18px;
  align-items: center;
  max-width: 920px;
  margin-inline: auto;
  background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy-soft) 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: 36px 52px;
  box-shadow: var(--shadow-lg);
}
.no-mype__icon-wrap { grid-column: 1; grid-row: 1; }
.no-mype__body      { grid-column: 2; grid-row: 1; }

/* destellos decorativos */
.no-mype__glow {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  pointer-events: none;
}
.no-mype__glow--tl {
  top: -80px; left: -80px;
  background: radial-gradient(circle, rgba(247,148,29,.18), transparent 70%);
}
.no-mype__glow--br {
  bottom: -80px; right: -80px;
  background: radial-gradient(circle, rgba(27,58,120,.55), transparent 70%);
}

.no-mype__icon-wrap {
  flex-shrink: 0;
  width: 96px; height: 96px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(247, 148, 29, .45);
  position: relative; z-index: 1;
}
.no-mype__icon-wrap i { font-size: 42px; color: #fff; }

.no-mype__body { position: relative; z-index: 1; }

.no-mype__badge { margin-bottom: 14px; }

.no-mype__title {
  color: #fff;
  font-size: clamp(1.4rem, .9rem + 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
}

.no-mype__btn { grid-column: 1 / -1; justify-self: center; }
.no-mype__btn i { font-size: 22px; }

@media (max-width: 768px) {
  .no-mype-section { padding: 60px 0; }
  .no-mype__card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 28px;
  }
  .no-mype__icon-wrap { display: none; }
  .no-mype__body      { grid-column: 1; }
  .no-mype__btn { width: 100%; justify-content: center; }
}

.app-mock__list { display: grid; gap: 10px; }
.app-item { display: flex; gap: 11px; align-items: flex-start; background: #f6f8fc; border-radius: 11px; padding: 11px 13px; }
.app-item--done { background: var(--green-soft); }
.check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #c8d2e4; flex: 0 0 auto; margin-top: 1px; }
.check--on { background: var(--green); border-color: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.check--on svg { width: 14px; height: 14px; }
.app-item__t { font-family: var(--font-head); font-weight: 500; color: var(--navy); font-size: .84rem; }
.app-item__s { color: var(--text-soft); font-size: .74rem; }
.app-item__s--warn { color: var(--orange-dark); }

.app-mock__btn {
  margin-top: 14px; width: 100%;
  background: var(--navy); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  border: none; border-radius: 11px; padding: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: background .2s;
}
.app-mock__btn svg { width: 18px; height: 18px; fill: currentColor; }
.app-mock__btn:hover { background: var(--navy-soft); }

.stat-float {
  position: absolute; right: -14px; bottom: -22px;
  background: #fff; border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow-lg);
  text-align: left;
}
.stat-float__label { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .72rem; }
.stat-float__label svg { width: 15px; height: 15px; fill: var(--green); }
.stat-float__num { font-family: var(--font-head); font-weight: 800; color: var(--green); font-size: 1.7rem; line-height: 1.1; }
.stat-float__sub { color: var(--text-soft); font-size: .6rem; font-weight: 600; letter-spacing: .5px; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.card-quote {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.stars { color: var(--orange); letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 14px; }
.card-quote__text { color: var(--text); font-size: .96rem; font-style: italic; flex: 1; }
.person { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  flex: 0 0 auto;
}
.person__name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .95rem; }
.person__role { color: var(--text-soft); font-size: .82rem; }

/* ============================================================
   SERVICIO INTEGRAL
   ============================================================ */
.integral__head { max-width: 1060px; }
.integral__head .section__title { font-size: clamp(1.7rem, 1rem + 2.8vw, 2.6rem); }

.integral__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}

.integral__media {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.integral__photo {
  max-height: 520px;
  width: auto;
  display: block;
  filter:
    drop-shadow(0 0 16px rgba(17,42,94,.25))
    drop-shadow(0 12px 32px rgba(17,42,94,.3));
  transition: transform .4s ease, filter .4s ease;
}
.integral__photo:hover {
  transform: scale(1.04) translateY(-6px);
  filter:
    drop-shadow(0 0 28px rgba(17,42,94,.35))
    drop-shadow(0 20px 48px rgba(17,42,94,.4));
}

.integral__steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.integral__step {
  display: flex;
  align-items: center;
  gap: 20px;
}

.integral__num {
  flex-shrink: 0;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  border: 3px solid;
  background: transparent;
}
.integral__num--orange { border-color: var(--orange); color: var(--orange); }
.integral__num--blue   { border-color: #2563eb;       color: #2563eb; }
.integral__num--green  { border-color: var(--green);  color: var(--green); }

.integral__pill {
  flex: 1;
  border-radius: var(--radius);
  padding: 18px 24px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.12);
}
.integral__pill--orange { background: var(--orange); }
.integral__pill--blue   { background: #2563eb; }
.integral__pill--green  { background: var(--green); }
.integral__pill strong  { font-weight: 700; }

/* Botón envoltorio del número — neutro en desktop */
.integral__step-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: default;
  pointer-events: none;
  display: flex;
  align-items: center;
}
/* Etiqueta y chevron solo visibles en mobile */
.integral__step-label,
.integral__step-chevron { display: none !important; }

@media (max-width: 992px) {
  .integral__inner { grid-template-columns: 1fr; gap: 32px; }
  .integral__media { order: -1; }
  .integral__photo { max-height: 340px; }
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final__inner { text-align: center; max-width: 780px; margin: 0 auto; }
.cta-final__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--orange-soft); margin-bottom: 8px;
}
.cta-final__icon svg { width: 42px; height: 42px; fill: var(--orange); }
.cta-final .section__title { margin-top: 6px; font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); }
.cta-final .section__subtitle { font-size: 1.18rem; }
.cta-final .btn--lg { margin-top: 28px; }
.cta-final__note { margin-top: 14px; color: var(--text-soft); font-size: .92rem; }

/* ============================================================
   FUNDADOR
   ============================================================ */
.founder-section {
  position: relative;
  background: var(--bg-alt);
  padding: 80px 0;
  overflow: hidden;
}

/* Triángulos decorativos — ocultos */
.founder__decor { display: none; }

.founder__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Tarjeta de texto */
.founder__card {
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.25);
}

.founder__logo {
  height: 100px;
  width: auto;
  display: block;
  margin: 0 auto 28px;
}

.integral-section { padding-bottom: 48px; }

.integral__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.integral__cta-btn {
  font-size: 18px;
  padding: 16px 36px;
  gap: 12px;
}
.integral__cta-btn .fa-whatsapp {
  font-size: 26px;
}

.founder__btn-wsp {
  margin-top: 24px;
  gap: 10px;
  font-size: 16px;
  display: flex;
  width: fit-content;
  margin-inline: auto;
}
.founder__btn-wsp .fa-whatsapp {
  font-size: 22px;
}

/* Botón "Leer más" — solo visible en mobile */
.founder__toggle {
  display: none;
}

@media (max-width: 768px) {
  /* Ocultar el texto completo y el contenido extra por defecto */
  .founder__full { display: none; }
  .founder__more-content { display: none; }
  .founder__media { display: none; }

  /* Cuando está expandido, mostrar todo */
  .founder__card.is-expanded .founder__full { display: inline; }
  .founder__card.is-expanded .founder__more-content { display: block; }
  .founder__card.is-expanded .founder__media-mobile { display: block; }

  .founder__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    background: none;
    border: none;
    color: var(--orange);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
  }
}

.founder__quote {
  color: #d8e0f0;
  font-size: 1.22rem;
  line-height: 1.85;
  margin: 0 0 28px;
  font-style: normal;
  border: none;
  text-align: justify;
}
.founder__quote strong { color: #fff; font-size: 1.28rem; }

.founder__cta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--orange);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 22px;
}
.founder__cta i { color: var(--orange); font-size: 1.4rem; margin-top: 3px; flex-shrink: 0; }

/* Imagen CEO */
.founder__media {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.founder__photo {
  max-height: 540px;
  width: auto;
  display: block;
  filter:
    drop-shadow(0 0 18px rgba(247,148,29,.4))
    drop-shadow(0 12px 36px rgba(10,28,64,.55));
  transition: transform .4s ease, filter .4s ease;
}
.founder__photo:hover {
  transform: scale(1.07) translateY(-10px);
  filter:
    drop-shadow(0 0 32px rgba(247,148,29,.65))
    drop-shadow(0 20px 56px rgba(10,28,64,.7));
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); color: #c5cee0; padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__about { margin-top: 16px; font-size: .92rem; max-width: 300px; }
.footer__title { color: #fff; font-size: 1.02rem; font-weight: 600; margin-bottom: 16px; }
.footer__links li, .footer__contact li { margin-bottom: 11px; font-size: .92rem; }
.footer__links a:hover { color: var(--orange); }
.footer__contact li { display: flex; align-items: center; gap: 9px; }
.footer__contact .ico-mini { fill: var(--orange); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; text-align: center; font-size: .85rem; }

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

/* Carrusel de testimonios: oculto en desktop, visible en mobile */
.quotes-carousel { display: none; }
.quotes-grid    { display: grid; }

@media (max-width: 768px) {
  .quotes-carousel { display: block; }
  .quotes-grid    { display: none; }
  .quotes-carousel .carousel__item { flex: 0 0 100%; }
}

/* Tablet grande / laptop pequeña */
@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 540px; }
  .software-card { grid-template-columns: 1fr; gap: 48px; padding: 44px; }
  .stat-float { right: 14px; }
  .carousel__item { flex: 0 0 50%; }
  .founder__inner { grid-template-columns: 1fr; gap: 16px; }
  .founder__media { order: -1; }
  .founder__photo { max-height: 340px; }
  /* Reducir espacio entre la sección de riesgos y la de fundador */
  #riesgos { padding-bottom: 24px; }
  .founder-section { padding: 16px 0 48px; }
}

/* Tablet */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 50px 0 70px; }

  /* Menú móvil */
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 22px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform .35s ease;
    align-items: stretch;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav__cta { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: flex; }

  .grid--3 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .software-card { padding: 32px 24px; }
  .founder__logo { display: none; }
  .founder__card { margin-inline: -8px; padding: 36px 32px; }
  .founder-section { padding-bottom: 24px; }
  #plan { padding-top: 28px; }
  .integral__cta-wrap { margin-top: 18px; }
  .integral-section { padding-bottom: 20px; }
  #software { padding-top: 24px; }

  /* ---- Acordeón pasos integrales — solo mobile ---- */
  .integral__steps { gap: 12px; }

  .integral__step {
    flex-direction: column;
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    background: #fff;
  }

  .integral__step-btn {
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border-radius: 14px;
    transition: background 0.2s;
  }
  .integral__step.is-open > .integral__step-btn { border-radius: 14px 14px 0 0; background: #f4f7fe; }

  .integral__step-label {
    display: block !important;
    flex: 1;
    text-align: left;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--navy);
  }

  .integral__step-chevron {
    display: block !important;
    color: var(--navy);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }
  .integral__step.is-open .integral__step-chevron { transform: rotate(180deg); }

  /* Borde izquierdo de color según el paso */
  .integral__step:nth-child(1) .integral__step-btn { border-left: 4px solid var(--orange); }
  .integral__step:nth-child(2) .integral__step-btn { border-left: 4px solid #2563eb; }
  .integral__step:nth-child(3) .integral__step-btn { border-left: 4px solid var(--green); }

  /* Pill: colapsada por defecto en mobile */
  .integral__pill {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.35s cubic-bezier(0.4,0,0.2,1);
  }
  .integral__step.is-open .integral__pill {
    max-height: 320px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .section__subtitle { text-align: justify; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .carousel__item { flex: 0 0 100%; }     
  .media-card img { height: 300px; }
  .btn--lg { width: 100%; justify-content: center; }
  .integral__cta-btn { width: auto; }
  .hero .btn--lg { width: auto; font-size: 13px; padding: 11px 18px; }
  .cta-final .btn--lg { white-space: normal; text-align: center; }
  .stat-float { right: 50%; transform: translateX(50%); bottom: -28px; }
}

/* ============================================================
   TITLE RIBBON BANNER — banderola profesional con doblez en esquina
   ============================================================ */
.title-ribbon {
  position: relative;
  margin-bottom: 32px;
}

.title-ribbon .section__title {
  display: block;
  background: linear-gradient(110deg, #ffc94a 0%, #f7941d 55%, #e37910 100%);
  color: var(--navy);
  padding: 26px 64px;
  border-radius: 14px;
  box-shadow:
    0 6px 28px rgba(247, 148, 29, 0.42),
    0 2px 8px  rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.22);
  letter-spacing: -0.01em;
}

/* Doblez / pliegue en la esquina inferior-izquierda — efecto cinta */
.title-ribbon::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 20px 26px 0 0;
  border-color: #8c4800 transparent transparent transparent;
}

/* Sección plan: ribbon más ancho para el título más corto */
#plan .section__head .title-ribbon .section__title {
  padding: 28px 80px;
  font-size: clamp(1.9rem, 1.2rem + 3.2vw, 2.9rem);
}

@media (max-width: 768px) {
  .title-ribbon .section__title {
    padding: 22px 32px;
    border-radius: 12px;
  }
  .title-ribbon::after {
    border-width: 16px 20px 0 0;
  }
  #plan .section__head .title-ribbon .section__title {
    padding: 22px 32px;
  }
}

@media (max-width: 560px) {
  .title-ribbon .section__title {
    padding: 18px 24px;
    border-radius: 10px;
  }
  .title-ribbon::after {
    border-width: 13px 16px 0 0;
  }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(.4,0,.2,1), transform 1.1s cubic-bezier(.4,0,.2,1);
}
.reveal--up    { transform: translateY(48px); }
.reveal--left  { transform: translateX(-64px); }
.reveal--right { transform: translateX(64px); }
.reveal--zoom  { transform: scale(.93); }
.reveal.is-visible { opacity: 1; transform: none; }

.reveal--d1 { transition-delay: .18s; }
.reveal--d2 { transition-delay: .36s; }
.reveal--d3 { transition-delay: .54s; }
.reveal--d4 { transition-delay: .72s; }

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.btn-wsp {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 10;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 6px 24px rgba(37,211,102,.5), 0 2px 8px rgba(0,0,0,.2);
  transition: transform .3s ease, box-shadow .3s ease;
}
.btn-wsp:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 36px rgba(37,211,102,.7), 0 4px 12px rgba(0,0,0,.25);
}

/* Burbuja "Contáctanos" */
.btn-wsp__bubble {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  opacity: 1;
}
.btn-wsp__bubble::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left-color: #fff;
}

