/* Evita re-escaleo tipográfico */
html { -webkit-text-size-adjust: 100%; }

/* ====== Tokens mínimos para el hero ====== */
:root {
  --primary:#5f38cf;
  --primary-700:#43279a;
  --white:#fff;
  --text:#484356;
  --glass-border:rgba(255,255,255,.55);
  --glass-bg:rgba(255,255,255,.28);
  --shadow:0 18px 40px rgba(26,6,68,.18);
  --ava-size: 36px;     /* diámetro */
  --ava-ring: 2px;      /* grosor del aro blanco */
  --ava-overlap: 16px;  /* cuánto se montan */
  --topbar-h: 56px;
}
@font-face{ font-family:"Poppins"; src: local("Poppins"); font-display:swap; }
html,body{ background:#fff; font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color:var(--text); }
.container{ width:min(1160px, 92%); margin-inline:auto; }

/* ====== NAV GLASEADO ====== */
/* evita franja blanca superior */
html, body { margin: 0; }

/* Sticky arriba dentro del hero */
/* Fijo, centrado y por encima de todo */
.glass-nav {
  position: fixed;
  top: calc(var(--topbar-h) + 25px);                 /* separacion desde el borde superior */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  width: auto;
  pointer-events: none;      /* el wrapper no interfiere; el pill sí */
}

.nav-shell {
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* Pill EXACTO de Figma + ancho al contenido */
.nav__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 9px;
  width: max-content;                 /* no se estira */
  max-width: calc(100vw - 32px);      /* respiración a los lados */
  border-radius: 30px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(152,150,150,0.20);
  -webkit-backdrop-filter: blur(4.4px);
  backdrop-filter: blur(4.4px);
  box-shadow: none;
  pointer-events: auto;               /* clickeable */
}

/* marca redonda a la izquierda (opcional, puedes ajustar) */
.brand-circle{
  display: grid; place-items: center;
  border-radius: 999px;
  padding: 8px;
}

.nav__links{ display:flex; align-items:center; gap:18px; }
.nav__links a {
  text-decoration:none;
  padding:8px 10px;
  border-radius:999px;
  color: #FFF;
  text-align: center;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.30);
  /* Body/Normal medium */
  font-family: var(--font-family-body);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  transition: text-shadow, transform .18s ease;
}

.nav__links a:hover {
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.50);
}

.nav__button {
  padding: 15px 14px !important;
  font-weight: var(--font-weight-medium) !important;
  border-radius: 25px !important;
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.25);
  background: var(--secondary---blue--darker);
  text-shadow: none !important;
  transition: transform .18s ease;
}

/* Capa con el gradiente que aparece en hover */
.nav__button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(262deg, #A59FFF 0%, #5F38CF 100%);
  opacity: 0;                         /* escondido por defecto */
  transition: opacity .28s ease;      /* animación suave */
  z-index: -1;                        /* por debajo del contenido */
}

/* Hover del botón */
.nav__button:hover{
  transform: translateY(-1px);
}

.nav__button:hover::before{
  opacity: 1; /* aparece el gradiente suavemente */
}

@media (max-width:860px){
  .nav__links a:not(.nav__button){ display:none; }
  .nav__inner{
    max-width: calc(100vw - 20px);
  }
}

/* ====== HERO SLAB (morado con radial) ====== */
.hero-slab{
  /* círculo radial como ya lo tienes */
  --radial-r: clamp(340px, 42vw, 560px);
  --radial-x: 50%;
  --radial-y: 46%;
  /* espacio reservado para que el mock “cuelgue” sin pisar lo de abajo */
  --hero-space: clamp(290px, 38vw, 420px);
  margin-bottom: 300px; /* espacio extra debajo del hero */
  position: relative;
  isolation: isolate;                 /* crea contexto propio de apilado */
  z-index: 0;
  background-color: #8967EA;
  /* Radial circular (no elíptico) y con transición suave */
  background-image:
    radial-gradient(
      circle var(--radial-r) at var(--radial-x) var(--radial-y),
      #5F38CF 0%,
      #5F38CF 20%,
      rgba(95,56,207,0.92) 38%,
      rgba(95,56,207,0.68) 58%,
      rgba(95,56,207,0.36) 76%,
      rgba(95,56,207,0.14) 88%,
      rgba(95,56,207,0.00) 100%
    );
  background-repeat: no-repeat;

  border-bottom-left-radius: 115px;
  border-bottom-right-radius: 115px;
  overflow: visible;
  /* un solo padding: top y bottom (reservamos espacio abajo) */
  padding: 140px 0 var(--hero-space);
}

/* Opcional: en móviles, haz el círculo un poco más pequeño */
@media (max-width: 940px) {
  .hero-slab {
    --radial-r: clamp(260px, 60vw, 380px);
    --radial-y: 44%;
    margin-bottom: 41vw;
    padding: 140px 0 var(--hero-space);
  }

  .glass-nav {
    top: calc(var(--topbar-h) + 52px);
  }
}

/* Badge */
.hero__badge {
	display: flex;
	align-items:center;
	gap:10px;
	padding:18px 23px;
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	border-radius: 44px;
	border: 1.5px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.10);

  width: max-content;                 /* shrink-wrap */
  max-width: calc(100% - 32px);       /* no desborda en mobile */
  box-sizing: border-box;
  margin-inline: auto;                /* centra en bloques/grid */
  align-self: center;
}

/* Grupo de avatares */
.badge__avatars{
	position:relative; display:inline-flex; align-items:center;
}

/* Avatar con aro blanco + sombra + solapamiento */
.badge__avatars .ava{
	position:relative;
	width:var(--ava-size);
	height:var(--ava-size);
	border-radius:50%;
	overflow:hidden;
	border:var(--ava-ring) solid #fff;
	box-shadow: 0 8px 18px rgba(26, 6, 68, .22); /* sombra suave detrás */
}

/* solapamiento hacia la izquierda */
.badge__avatars .ava + .ava{ margin-left: calc(-1 * var(--ava-overlap)); }

/* Z-index para que el del medio quede adelante (como en el diseño) */
.badge__avatars .ava:nth-child(1){ z-index:3; }
.badge__avatars .ava:nth-child(2){ z-index:2; } /* arriba de todos */
.badge__avatars .ava:nth-child(3){ z-index:1; }

.badge__avatars .ava img{
	width:100%; height:100%; object-fit:cover; display:block;
	border-radius:50%;
}

/* Responsive: avatares un poco más pequeños en móviles */
@media (max-width: 520px){
	:root{
		--ava-size: 44px;
		--ava-overlap: 14px;
	}
}

.mascotas-atendidas {
	color: #FFF;
	text-align: center;
	font-family: var(--font-family-body);
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
}

/* Título + Subtítulo */
.hero__title{
	color: #FFF;
	text-align: center;
	font-family: var(--font-family-headlines);
	font-size: 74px;
	font-style: normal;
	font-weight: 800;
	line-height: 123.915%; /* 106.567px */
	margin: 30px 0 30px;
}
.hero__subtitle{
	max-width: 650px;
	margin: 0 auto 45px;
	color: var(--white, #FFF);
	text-align: center;
	font-family: var(--font-family-body);
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
}

/* CTAs */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  border-radius:999px; text-decoration:none; font-weight:800; cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn--primary{
  background:#fff;
  color:var(--primary);
  padding:14px 18px;
  box-shadow: var(--shadow);
}

.btn-cta-v1 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    border-radius: 19px;
    background: #FFF;

    /* línea cercana, levemente púrpura (se ve sobre fondo morado) */
    box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.35);
    /* Body/Medium Bold */
    font-family: var(--font-family-body);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
    color: var(--primary--purple-main);
}


.btn--primary:hover{ transform: translateY(-2px); }

.btn--link{
  color: var(--white, #FFF);
  text-align: center;
  font-family: "DM Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: 12%; /* 2.16px */
  text-underline-offset: 15%; /* 2.7px */
  text-underline-position: from-font;
  gap: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__cta {
  display:flex;
  gap: 50px;
  justify-content:center;
  flex-wrap:wrap;
}

/* Ornamentos (SVG alrededor del título) */
.orn{ position:absolute; width:86px; height:auto; opacity:.95; filter: drop-shadow(0 8px 18px rgba(0,0,0,.12)); pointer-events:none; }
.o1{
  top: 12%;
  left: 5%;
  width: 189.749px;
  transform: rotate(9.848deg);
  filter: blur(7px);
}
.o2{
  top: 65vh;
  right: 4%;
  width: 220px;
  transform: rotate(-17.251deg);
}
.o3{
  top: 47%;
  left: 11%;
  width:89.228px;
  transform: rotate(16.319deg);
}
.o4{
  top: 1%;
  right: 1%;
  width: 312.813px;
  transform: rotate(3.418deg);
  filter: blur(7.650000095367432px);
}
.o5{
  top: 80%;
  left: 10%;
  transform: translateX(-50%);
  width: 264.567px;
  transform: rotate(26.037deg);
  filter: blur(7.650000095367432px);
}

.o6{
  top: 77%;
  right: 10%;
  transform: translateX(-50%);
  width: 297.239px;
  transform: rotate(-16.413deg);
  filter: blur(7.650000095367432px);
}

/* Mockup inferior superpuesto */
.hero-mock{
  /* controla cuánto cuelga hacia la zona blanca (ajustable) */
  --mock-drop: clamp(120px, 19vw, 200px);

  position: absolute;
  left: 50%;
  bottom: calc(-1 * var(--mock-drop)); /* leve salida hacia la zona blanca */
  transform: translateX(-50%);

  /* Tamaño Figma con responsividad */
  width: min(808px, calc(100vw - 48px));
  aspect-ratio: 113 / 73;
  border-radius: 30px;
  background: var(--mock-img) lightgray 50% / cover no-repeat;
  box-shadow: 0 2px 37.2px rgba(95, 56, 207, 0.25), 0 0 0 8px rgba(176, 171, 240, 0.20);

  z-index: 10; /* por encima del fondo del hero */
  pointer-events: none;
}

section:not(.hero-slab){ position: relative; }

/* Ajustes finos en pantallas pequeñas */
@media (max-width: 640px){
  .hero-mock{
    border-width: 6px;
    border-radius: 24px;
  }
}



/* Responsivo */
@media (max-width:980px){
  .o1,.o3{ display:none; }
  .o5 {
    width: 120px;
    top: 75%;
    left: 2%;
  }
  .o6 {
    width: 150px;
    right: 1%;
    top: 77%;
  }
  .hero-slab{ padding-bottom:140px;
    border-bottom-left-radius: 27px;
    border-bottom-right-radius: 27px;
  }
  .hero__cta {
    gap: 30px;
    margin-bottom: 60px;
  }
  .why {
    margin: 52px;
  }
}
@media (max-width:640px){
  .o2,.o4{ display:none; }

  .hero__title{
    font-size: clamp(32px, 9vw, 46px);
    margin-top: 18px;
  }
  .hero__subtitle{ padding:0 8px; }
}

/* ===== Brand strip ===== */
/* ===== Brand strip con marquee infinito ===== */
.brands{
  margin: clamp(28px, 5vw, 64px) 0 clamp(40px, 7vw, 96px);
}

.brands__inner {
  width: min(860px, 95%);
}

.brands__eyebrow{
  text-align: center;
  font-family: var(--font-family-body);
  font-size: 16px;
  margin: 0 0 27px;
  color: rgba(52, 52, 52, 0.93);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Ventana */
.brands__rail{
  overflow: hidden;
  /* desvanecidos laterales (opcional; quita si no lo quieres) */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

/* Pista que se mueve */
.brands__track{
  --brands-speed: 28s;              /* velocidad del loop (ajusta si quieres) */
  display: flex;
  gap: clamp(36px, 6vw, 80px);
  width: 740px;               /* se ajusta al contenido duplicado */
  animation: brands-scroll var(--brands-speed) linear infinite;
}

@keyframes brands-scroll{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* se mueve exactamente una “secuencia” */
}

.brands__track li{
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}

.brands__track img{
  max-height: 42px;
  width: auto; height: auto; object-fit: contain;
  filter: grayscale(100%) contrast(95%) brightness(90%) opacity(.9);
}

/* Más rápido en móviles para evitar “saltos” largos, y tamaño algo menor */
@media (max-width: 720px){
  .brands__track{ --brands-speed: 20s; gap: 28px; }
  .brands__track img{ max-height: 36px; }
}

/* Accesibilidad: respeta preferencia de reducir movimiento */
@media (prefers-reduced-motion: reduce){
  .brands__track{ animation: none; transform: none; }
}


/* ===== Why ===== */
.why{ margin: clamp(32px, 6vw, 72px) auto; }

.why__head{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  margin-bottom: clamp(16px, 3vw, 37px);
}

.why__title{
  color: #2D2D2D;
  font-family: var(--font-family-headlines);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  margin: 0 0 12px;
}

.why__logo-group{ display:flex; align-items:flex-start; gap: 11px; }
.why__logo{ width: clamp(150px, 20vw, 210px); height:auto; }
.why__plus{
  color:#5F38CF;
  font-family: var(--font-family-headlines);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1;
}

.why__text{
  text-align: right;
  margin: 0;
  color: rgba(52, 52, 52, 0.80);
  text-align: right;
  font-family: var(--font-family-body);
  font-size: 16px;
  font-style: normal;
  line-height: normal;
}

@media (max-width: 820px){
  .why__head{
    grid-template-columns: 1fr;
    align-items: start;
  }
  .why__text{ text-align: left; }
}

/* ===== Banner violeta con video ===== */
.why__banner{
  position: relative;
  border-radius: 24px;                 /* figma */
  overflow: hidden;
  background: #6f4be3;                 /* fallback violeta por si no carga poster */
  aspect-ratio: 16 / 9;                /* mantiene proporción */
  box-shadow: 0 8px 28px rgba(17, 6, 60, .16);
  border: 1.5px solid rgba(255,255,255,.65);  /* borde claro del figma */
}

/* “aro” exterior sutil como en figma */
.why__banner::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.55) inset;
  pointer-events:none;
}

.why__video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Botón play (pastilla blanca grande) */
.why__play{
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(86px, 14vw, 160px);
  height: clamp(62px, 10vw, 112px);
  border: 0;
  border-radius: 22px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(17,6,60,.22);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.why__play:hover{ transform: translateY(-2px); box-shadow: 0 16px 36px rgba(17,6,60,.28); }
.why__play svg{ width: clamp(22px, 3vw, 34px); height:auto; }

/* Al reproducir, ocultar el botón */
.why__banner.is-playing .why__play{ opacity: 0; pointer-events: none; }

/* Responsivo: bordes y sombras más suaves en móviles */
@media (max-width: 640px){
  .why__banner{ border-radius: 18px; }
}

/* ===== Features ===== */
.titles_section{
  color:#2D2D2D;
  font-family:var(--font-family-headlines);
  font-size:40px;
  font-weight:600;
  line-height:134.903%;
  margin:0;
}

.features{ margin: 8px auto 70px; }

/* Cabecera: título a la izquierda; texto + CTA apilados a la derecha */
.features__head{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:end;
  gap: 16px;
  margin-bottom: 34px;
}
.features__meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}
.features__tagline{
  color: rgba(45,45,45,.86);
  font-family: var(--font-family-body);
  font-size: 16px;
  margin:0;
  text-align: right;
}

/* CTA outline (pastilla) */
.features__cta {
  border-radius: 21px;
  border: 2.2px solid rgba(95, 56, 207, 0.15);
  background: var(--white, #FFF);
  display: inline-flex;
  padding: 14px 13px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--black, #343434);
  text-shadow: 0 0 6.3px rgba(0, 0, 0, 0.14);
  text-decoration: none;

}

.features__cta svg {
  transition: transform .15s ease;
}

.features__cta svg:hover {
  transform: rotate(-43deg);
}

.btn-outline{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border:1.5px solid rgba(0,0,0,.12);
  border-radius:25px;
  background:#fff;
  color:#2D2D2D;
  font-family:var(--font-family-body);
  font-weight:600;
  text-decoration:none;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-outline:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}

/* GRID de cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 30px;
}

/* Card (Figma) */
.card{
  background:#FFF;
  border-radius:25px;                                /* Figma */
  box-shadow: 0 2px 30px -1px rgba(0,0,0,0.14);      /* Figma */
  padding: 12px 13px 27px;
  display:flex;
  flex-direction:column;
  min-height: 220px;
  transition: transform .18s ease, box-shadow .18s ease;
  border: none;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -4px rgba(0,0,0,.16);
}

/* Subcontenedor azul (Figma) */
.card__thumb{
  border-radius:21px;                                 /* Figma */
  background: linear-gradient(180deg,#E2EFFF 0%,#A0CAFF 100%);  /* Figma */
  aspect-ratio: 16 / 11;                               /* responsivo */
  display:grid;
  place-items:center;
  overflow:hidden;
  align-items: center;
  justify-content: center;
}
.card__thumb img{
  width: clamp(84px, 18vw, 140px);
  height:auto;
  object-fit:contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.10));
}

/* Texto */
.card__title{
  color: var(--black, #343434);
  margin: 22px 0 2px;
}
.card__desc{
  margin:0;
  color: var(--gray-text, #747474);
}

/* Responsivo */
@media (max-width: 980px){
  .cards{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .features__head{ grid-template-columns: 1fr; align-items:start; }
  .features__meta{ align-items:flex-start; }
  .features__tagline {
    text-align: left;
    margin-bottom: 12px;
  }
}
@media (max-width: 620px){
  .cards{ grid-template-columns: 1fr; }
  .titles_section{ font-size: clamp(28px, 6.5vw, 40px); }
}


/* -- Onboarding --  */
.onboarding{ margin: clamp(24px, 6vw, 88px) auto; }

.ob__grid{
  display: grid;
  grid-template-columns: 1.08fr 1fr;      /* texto / visual */
  align-items: center;
  gap: clamp(20px, 6vw, 64px);
}

@media (max-width: 980px){
  .ob__grid{ grid-template-columns: 1fr; }
  .ob__visual{ order: 2; }  /* visual debajo del texto en móviles */
}

.ob__lead{
  margin: 16px 0 28px;
  color: rgba(52, 52, 52, 0.80);
  font-family: var(--font-family-body);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 150.003%; /* 27.001px */
}

.ob__bullets{
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(20px, 4vw, 28px);
  display: grid;
  gap: clamp(10px, 2.4vw, 18px);
}
.ob__bullets li{
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
}
.ob__icon{
  display: inline-grid;
  place-items: center;
}

/* ===== Visual (derecha) ===== */
.ob__visual{ width:100%; }

.ob__pane{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;                          /* proporción responsiva */
  border-radius: 45px;
  background: linear-gradient(121deg, #B0ABF0 0%, #5F38CF 93.5%);
  /* box-shadow: 0 18px 40px rgba(26,6,68,.18); */
  border: 3px solid rgba(255, 255, 255, 0.45);;
  overflow: hidden;
  isolation: isolate;
}

/* Capa base genérica */
.ob__layer{
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  will-change: transform;
}

/* Hoja centrada (fija). Ajusta % si tu PNG tiene otra proporción */
.ob__sheet{
  background-image: var(--ob-sheet);
  /* colocación aproximada del Figma */
  left: 23%;
  top: 14%;
  width: 58%;
  aspect-ratio: 3 / 4;
  transform: translateZ(0); /* fija, sin animación */
}

/* Chips flotantes con animación sutil */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }      /* amplitud suave */
}

.ob__float{
  filter: drop-shadow(0 10px 20px rgba(17,6,60,.18));  /* brillo suave */
  animation: floatY 5.6s ease-in-out infinite;
}

/* Cucho (arriba-izquierda) */
.ob__float--a{
  background-image: var(--ob-float-a);
  left: 5%;
  top: 30%;
  width: 42%;
  aspect-ratio: 390 / 96; /* ajusta a tu PNG */
  animation-duration: 6.2s;           /* desincroniza */
  animation-delay: .2s;
}

/* Max (abajo-derecha) */
.ob__float--b{
  background-image: var(--ob-float-b);
  right: 6%;
  bottom: 14%;
  width: 48%;
  aspect-ratio: 470 / 96; /* ajusta a tu PNG */
  animation-duration: 5.4s;
  animation-delay: .6s;
}

.ob__float--c{
  background-image: var(--ob-float-c);
  right: 2%;
  top: 19%;
  width: 40%;
  aspect-ratio: 420 / 150;                 /* ajusta a tu PNG si hace falta */
  filter: drop-shadow(0 10px 20px rgba(17,6,60,.18));
  animation: floatY 6.4s ease-in-out infinite reverse; /* ← dirección contraria */
  animation-delay: .15s;                   /* desincronizado suavemente */
}

/* Mobile tweaks */
@media (max-width: 640px){
  .ob__pane{ border-radius: 24px; }
  .ob__sheet{ left: 20%; top: 16%; width: 60%; }
  .ob__float--a{ width: 64%; left: 4%; top: 28%; }
  .ob__float--b{ width: 68%; right: 4%; bottom: 12%; }
  .ob__float--c{
    right: 6%;
    top: 8%;
    width: 58%;
  }
}

/* Accesibilidad: respeta reducir movimiento */
@media (prefers-reduced-motion: reduce){
  .ob__float{ animation: none; }
}

/* ===== Pricing ===== */
.pricing{ margin: clamp(20px, 7vw, 96px) auto; }
.pricing__head{
  display:grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: clamp(10px, 4vw, 28px);
  margin-bottom: clamp(16px, 4vw, 32px);
}

.pricing__desc{
  text-align:right;
  color: rgba(0,0,0,.70);
  font-family: var(--font-family-body);
  font-size: clamp(14px, 2vw, 18px);
  margin:0;
}
@media (max-width: 900px){
  .pricing__head{ grid-template-columns: 1fr; }
  .pricing__desc{ text-align:left; }
}

/* GRID de cards */
.pricing__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(16px, 2.6vw, 26px);
}
@media (max-width: 1100px){ .pricing__grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px){  .pricing__grid{ grid-template-columns: 1fr; } }

/* Card base */
.price-card{
  position: relative;
  border-radius: 45px;
  background: #fff;
  border: none;
  box-shadow: 0 7px 13.2px 0 rgba(0, 0, 0, 0.10), 0 1px 6px 0 rgba(0, 0, 0, 0.14);
  padding: clamp(10px, 1.4vw, 14px); /* deja espacio por si hay featured ring */
  transition: transform .18s ease, box-shadow .18s ease;
}
.price-card:hover{ transform: translateY(-3px); box-shadow: 0 18px 46px rgba(0,0,0,.12); }

/* caja interior */
.pc__box{
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 35px;
  padding: clamp(18px, 2vw, 26px);
}

/* Destacada (borde degradado violeta) */
.price-card.is-featured{
  background: linear-gradient(323deg, #B0ABF0 0%, #5F38CF 44.71%, #E1DFFF 100%);
}
.price-card.is-featured .pc__box{ border: 4px solid #fff; }

/* cinta “Más popular …” */
.price-card{ position: relative; z-index: 1; overflow: visible; }
.price-card.is-featured{ z-index: 2; }

/* Tag con SVG de fondo (del Figma) */
.pc__ribbon{
    --r-w: clamp(200px, 48vw, 243px);   /* ancho (máx 243px) */
  --r-h: clamp(44px, 7vw, 55px);      /* alto  (máx 55px)  */
  --r-overlap: clamp(16px, 2.6vw, 22px); /* cuánto “muerde” la card */

  position: absolute;
  left: 50%;
  top: calc(-1 * var(--r-overlap));
  transform: translateX(-50%);
  z-index: 6;                               /* por encima de la card */
  width: var(--r-w);
  height: var(--r-h);

  background-image: url("/static/img/pc__tag.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;               /* que el shape calce exacto */
  background-position: center;

  display: flex;
  align-items: center;
  /* deja espacio para el “medallón” del svg a la izquierda */
  padding-left: calc(var(--r-h) * 1.0);
  padding-right: calc(var(--r-h) * 0.30);

  pointer-events: none;                     /* no interfiere con clicks debajo */
}

/* Texto dentro del tag (degradado blanco→lila suave) */
.pc__ribbon-text{
  margin: 0;
  font-family: var(--font-family-headlines);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(180deg, #FFFFFF 0%, #CDC9FA 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

@media (max-width: 420px){
  .pc__ribbon{ --r-overlap: 50px;
    padding-left: calc(var(--r-h) * 0.6);
    --r-w: clamp(250px, 48vw, 243px);
    --r-h: clamp(84px, 7vw, 55px);
  }
  .pc__ribbon-text {
    font-size: 13px;
  }
}

/* cabecera plan */
.pc__head{ margin-bottom: 0; }
.pc__plan{
  display:flex;
  align-items:center;
  gap: 8px;
  color: var(--Black, #343434);
  font-family: var(--font-family-headlines);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
}
.pc__plan svg{ flex:0 0 auto;
  width: 17px;
}

/* precio */
.pc__priceRow{ display:flex; align-items:baseline; gap:0; margin: 0; }
.pc__price{
  color: #2D2D2D;
  /* Desktop Headlines/H1 */
  font-family: var(--font-family-headlines);
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.pc__currency{ font-size: .6em; margin-right: 2px; }
.pc__note {
  color: var(--gray-text, #747474);
  font-family: var(--font-family-headlines);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.pc__subtitle {
  color: var(--gray-text, #747474);
  margin: 4px 0 14px;

}

/* CTA */
.pc__cta{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 14px 55px;
  color:#fff;
  text-decoration:none;
  transition: transform .15s ease, box-shadow .15s ease;
  border-radius: 20px;
  background: linear-gradient(87deg, #8353F3 3.09%, #5F38CF 82.85%);
  box-shadow: 0 2px 5.9px 0 rgba(255, 255, 255, 0.40) inset, 0 0 0 2.5px rgba(95, 56, 207, 0.15);
  font-family: var(--font-family-body);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.pc__cta:hover{ transform: translateY(-1px);}

/* lista de features */
.pc__list{ list-style:none; margin: 16px 0 0; padding:0; display:grid; gap:12px; }
.pc__list li{
  display:grid; grid-template-columns: 22px 1fr; align-items:center; gap:4px;
  color: var(--gray-text, #747474);
}
.pc__bullet{
  width:18px; height:18px; border-radius:50%;
  border:2px solid #B7A9FF; box-shadow: inset 0 0 0 2px rgba(255,255,255,.9);
}

/* ===== Testimonials ===== */
/* ===== Testimonials slab (fondo y título) ===== */
.testimonials{
  margin: clamp(24px, 8vw, 96px) auto;
}

.testi__slab{
  position:relative;
  padding: clamp(28px, 6vw, 56px) clamp(18px, 4vw, 32px);
  border-radius: clamp(22px, 4vw, 40px);
  background: linear-gradient(180deg, #7B72FF 25.96%, #C1BDFA 100%);
  overflow: hidden;
}

.testi__title {
  margin:0 0 58px;
  text-align:center;
  color:#fff;
  font-family: var(--font-family-headlines);
  font-size: 44px;
  font-style: normal;
  font-weight: 600;
  line-height: 115%; /* 50.6px */
}

.testi__accent {
  color: var(--primary--purple-extra-light, #E1DFFF);
}

.testi__rail {
  position: relative;
  overflow:hidden;
  isolation: isolate;
}

.testi__rail::before,
.testi__rail::after{
  content: "";
  position: absolute;
  inset-block: 0;
  width: 70px;                      /* ajusta según diseño */
  pointer-events: none;
  z-index: 2;
}

.testi__rail::before{
  left: 0;
  background: linear-gradient(to right, rgba(123,114,255,0.45), rgba(123,114,255,0));
}

.testi__rail::after {
  right: 0;
  background: linear-gradient(to left, rgba(123,114,255,0.45), rgba(123,114,255,0));
}

.testi__card {
  flex: 0 0 clamp(260px, 36vw, 410px);  /* ancho responsivo de cada tarjeta */
  min-height: 236px;
  height: 100%;
  justify-content: space-between;
  background:#fff;
  padding: 25px 32px 20px;
  border-radius: 30px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.40);
  min-width: 0;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Texto + autor */
.testi__text{
  margin:0 0 19px;
  color: var(--Black, #343434);
  font-family: var(--font-family-body);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.testi__author {
  display:flex; flex-direction:column; gap:0;
  margin-top: 9px;
}

.testi__author strong {
  color: #2D2D2D;
  font-family: var(--font-family-body);
  font-size: 16px;
  font-weight: 500;
}

.testi__author span {
  color: var(--Gray-text, #747474);
  font-family: var(--font-family-body);
  font-size: 14px;
  font-weight: 500;
}

/* Estrellas */
.testi__stars{
  display:flex; gap:6px; margin-bottom: 6px;
}

.testi__stars svg{
  width:18px; height:18px; flex:0 0 auto;
  fill:#6E49F4; filter: drop-shadow(0 1px 0 rgba(255,255,255,.25));
}

/* swiper slide config */

:root {
  /* Ajusta a tu diseño: todas las slides tendrán este ancho */
  --card-w: clamp(260px, 36vw, 410px);
}

.testimonials .swiper {
  width: 100%;
  overflow: hidden;
}

.testimonials .swiper::before {
  left: 0;
  background: linear-gradient(to right, rgba(123,114,255,0.45), rgba(123,114,255,0));
}

.testimonials .swiper::after {
  right: 0;
  background: linear-gradient(to left, rgba(123,114,255,0.45), rgba(123,114,255,0));
}

/* Movimiento super fluido */
.testimonials .swiper .swiper-wrapper {
  display:flex;
  will-change: transform;
  animation-name: testi-marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: running;
}

.testimonials .testi__rail.paused .swiper-wrapper {
  animation-play-state: paused;
} /* pausa inmediata */

.testimonials .swiper .swiper-slide {
  flex: 0 0 var(--card-w) !important;
  width: var(--card-w) !important;
  max-width: var(--card-w);
  box-sizing: border-box;
  overflow:hidden; /* evita que el contenido empuje el ancho */
  margin-right: 0;
}

@keyframes testi-marquee{
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(calc(-1 * var(--distance, 1000px)), 0, 0); }
}

/* ===== Affiliates ===== */
/* ===== Brand strip con marquee infinito ===== */
.affiliates{
  margin: clamp(28px, 5vw, 64px) 0 clamp(40px, 7vw, 96px);
}

.affiliates__inner {
  width: min(130vh, 92%);
}

.affiliates__award {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.affiliates__award svg {
  width: 14.5px;
}

.award_tittle {
  display: grid;
  justify-content: center;
}

.subtittle_award {
  margin: 0;
  color: var(--gray-text, #747474);
  text-align: center;
  font-family: var(--font-family-body);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.tittle_award {
  text-align: center;
}

.affiliates__eyebrow{
  text-align: center;
  font-family: var(--font-family-body);
  font-size: 16px;
  margin: 0 0 27px;
  color: rgba(52, 52, 52, 0.93);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Ventana */
.affiliates__rail{
  overflow: hidden;
  /* desvanecidos laterales (opcional; quita si no lo quieres) */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

/* Pista que se mueve */
.affiliates__track{
  --affiliates-speed: 28s;              /* velocidad del loop (ajusta si quieres) */
  display: flex;
  gap: clamp(36px, 6vw, 80px);
  width: 740px;               /* se ajusta al contenido duplicado */
  animation: affiliates-scroll var(--affiliates-speed) linear infinite;
}

@keyframes affiliates-scroll{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* se mueve exactamente una “secuencia” */
}

.affiliates__track li{
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}

.affiliates__track img{
  max-height: 42px;
  width: auto; height: auto; object-fit: contain;
  filter: grayscale(100%) contrast(95%) brightness(90%) opacity(.9);
}

/* Más rápido en móviles para evitar “saltos” largos, y tamaño algo menor */
@media (max-width: 720px){
  .affiliates__track{ --affiliates-speed: 20s; gap: 28px; }
  .affiliates__track img{ max-height: 36px; }
}

/* Accesibilidad: respeta preferencia de reducir movimiento */
@media (prefers-reduced-motion: reduce){
  .affiliates__track{ animation: none; transform: none; }
}


/* ===== CTA final ===== */
.cta{
  margin: clamp(36px, 6vw, 72px) auto clamp(52px, 8vw, 96px);
  margin-bottom: clamp(18px, 4vw, 36px);
}

.cta__box{
  position: relative;
  overflow: hidden;
  border-radius: 50px;

  /* Radial EXACTO del Figma */
  background: radial-gradient(50% 50% at 50% 50%, #B9B4F9 0%, #5F38CF 86.06%);

  /* Inner glow + ligera sombra exterior */
  box-shadow:
    inset 18px 32px 69.6px 0 #FFF;

  backdrop-filter: blur(33.55px);
  -webkit-backdrop-filter: blur(33.55px);

  /* Espaciado responsivo */
  padding: clamp(28px, 4vw, 52px) clamp(20px, 5vw, 64px);
  text-align: center;
  color: #fff;
}

.cta__title{
  margin: 0 0 9px;
  font-family: var(--font-family-headlines);
  color: #FFF;
  text-align: center;
  font-size: 52px;
  font-style: normal;
  font-weight: 600;
  line-height: 135.817%; /* 70.625px */
  justify-self: center;
  width: 80%;
}

.cta__text{
  justify-self: center;
  max-width: min(560px, 92%);
  margin: 0 auto 35px;   /* centra como bloque */
  text-align: center;     /* centra el contenido */
  align-self: center;     /* si el padre es flex (col), centra en el eje cruzado */
}

/* Re-usa tu botón “Comienza ahora”; aquí solo centramos */
.cta__box .features__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Ornamentos grandes */
.cta__orn{
  position: absolute;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 22px 46px rgba(0,0,0,.15));
  opacity: .98;
}

/* Ajusta tamaños con clamp para responsividad */
.cta__orn--left{
  left: clamp(-56px, -3vw, -8px);
  bottom: clamp(-16px, -4vw, -10px);
  width: clamp(220px, 32vw, 330px);
  transform: rotate(13deg);
}

.cta__orn--right{
  right: clamp(-62px, -5.5vw, -6px);
  bottom: clamp(-72px, -6.5vw, -8px);
  width: clamp(220px, 30vw, 380px);
  transform: rotate(-11.404deg);
}

/* Opcional: en pantallas muy pequeñas reduce el radio para evitar clipping brusco */
@media (max-width: 700px){
  .cta__box{ border-radius: 36px;
    padding: 50px 10px 26vw 10px;
  }
  .cta__title {
    font-size: 24px;
  }
  .cta__text {
    font-size: 16px;
    width: 80%;
    margin-bottom: 15px;
  }
  .cta__orn--right {
    display: none;
  }
  .cta__orn--left {
    transform: none;
    width: 180px;
  }
}


/* ===== Botón flotante Contáctanos ===== */
.contact-fab{
  position: fixed;
  right: clamp(12px, 2.2vw, 22px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(12px, 2.2vw, 22px));
  z-index: 4000;
  text-shadow: rgba(0, 0, 0, 0.20) 0px 0px 4.3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 19px;
  background-color: var(--secondary---blue--darker);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 18px 0 rgba(0, 0, 0, 0.30);

  /* color base + overlay animado para suavizar el cambio */
  transition: transform .18s ease, box-shadow .22s ease;
}

.contact-fab__icon{
  display:grid;
  place-items:center;
}

/* Hover / focus */
.contact-fab:hover{
  transform: translateY(-2px);
  background-color: var(--primary--purple-secondary);
  box-shadow: 0 2px 18px 0 rgba(0, 0, 0, 0.50);
}
.contact-fab:hover::before{ opacity: 1; }

.contact-fab:active{ transform: translateY(0); transition-duration: .06s; }

/* Mobile: solo icono (para no tapar contenido) */
@media (max-width: 560px){
  .contact-fab{
    padding: 12px;
  }
  .contact-fab__label{
    display:none;
  }
  .contact-fab__icon{ width: 32px; height: 32px; }
}

/* Animación de entrada */
@keyframes fab-in{
  to{ opacity:1; transform: translateY(0); }
}

/* Respeta preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce){
  .contact-fab{ animation: none; opacity: 1; transform:none; transition:none; }
  .contact-fab::before{ transition: none; }
}



/* ===== Calendar embed ===== */
.calendar-embed{ background:#fff; border-radius:16px; box-shadow: var(--shadow); padding:18px; margin: 8px auto 86px }
.calendar-embed iframe{ width:100%; border-radius:12px }



/* Utility */
.img-fluid{max-width:100%; height:auto}

/* Logo */
.hero-logo{
  position: absolute;
  top: 40px;
  left: 50px;
  z-index: 10;                 /* por encima del fondo radial, debajo del nav si este tiene z-index mayor */
  display: inline-block;
}

.hero-logo img{
  height: clamp(22px, 2.6vw, 32px);  /* tamaño responsivo como en Figma */
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.18)); /* glow sutil del Figma */
}

/* En pantallas muy pequeñas, baja un poco el tamaño/margen */
@media (max-width: 480px){
  .hero-logo{ top: 26px; left: 16px; }
  .hero-logo img{ height: 16px; }
}

/* --- Top CTA Bar --- */
.top-cta_button {
    justify-content: center;
    align-items: center;
    color: var(--black, #343434);
    text-shadow: rgba(0, 0, 0, 0.14) 0px 0px 6.3px;
    border-radius: 21px;
    background-color: var(--white, #FFF);
    padding: 9px 15px !important;
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.19);
    transition: transform .18s ease;

  grid-column: 3;
  justify-self: center;
  display: inline-flex;
  gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap; /* evita que se corte */
  text-decoration: none;
}

.top-cta_button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,.16);
}

.top-cta_button:focus-visible {
  outline: 3px solid rgba(95,56,207,.35); /* #5F38CF */
  outline-offset: 2px;
  transition: outline-color .18s ease;
}

.top-bar {
  position: sticky;          /* si prefieres fijo siempre, cambia a: fixed */
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  width: 100%;
  background: var(--vet-blue, #CFE7FF); /* tono suave como en figma */
  backdrop-filter: saturate(120%);
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
  padding-top: max(4px, env(safe-area-inset-top));
  padding-bottom: 4px;
}

.top-bar__inner {
  display: grid;
  grid-template-columns: 0fr auto auto;
  align-items: center;
  column-gap: 15px;
  max-width: 950px;   /* ajusta al ancho de tu layout */
  margin: 0 auto;
  padding: 6px 16px;
}

.top-bar__text {
  grid-column: 2;
  text-align: center;
  color: var(--text, #1f2937);
  margin: 0;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
  .top-bar__inner {
    grid-template-columns: 1fr; /* stack */
    row-gap: 5px;
    padding: 5px 15px;
  }
  .top-bar__text {
    grid-column: 1;
    text-align: center;
    padding: 0 4px;
    font-size: 14px;
  }
  .top-cta_button {
    grid-column: 1;
    justify-self: center;
    width: 100%;
    max-width: 320px;
    font-size: 15px;
  }
}

/* (opcional) si decides usar position: fixed en .top-bar:
   añade margen superior al header principal para que no lo tape */
.has-topbar-offset {
  margin-top: 48px; /* ajusta según la altura real del bar */
}

/* Overlay + modal simples, sin agregar botones extra en el DOM fijo */
.pwa-modal__backdrop {
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  display:none; align-items:center; justify-content:center; z-index:10000;
}

.pwa-modal__panel {
  width:min(640px,92%);
  max-height:78vh;
  overflow:auto;
  background: var(--white);
  color:var(--purple--dark--text);
  border-radius:18px;
  box-shadow:0 10px 40px rgba(0,0,0,.35);
  padding:22px 22px 16px;
}

.pwa-modal__title{
  font-size:24px;
  font-weight:700;
  margin:0 0 8px;
}

.pwa-modal__subtitle {
  font-size:14px;
  opacity:.85;
  margin:0 0 14px;
}

.pwa-steps {
  margin:0;
  padding-left:18px;
}

.pwa-steps li {
  margin:8px 0;
}
.pwa-modal__close {
  appearance:none;
  background: var(--primary--purple-main);
  color:#fff;
  border:1px solid transparent;
  padding:10px 14px;
  border-radius:12px;
  font-weight:600;
  cursor:pointer;
}
.pwa-modal__footer {
  margin-top:14px;
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
}
.pwa-badge {
  display:inline-flex; align-items:center; gap:6px; font-size:12px; padding:6px 9px; border-radius:999px;
  color: var(--white); background: var(--secondary---blue--darker); opacity:.9; font-weight: 600;
}

#pwaInstallBtn {
  display:none;
  position:fixed;
  right: clamp(12px, 2.2vw, 22px);
  bottom: 90px;
  z-index:9999;
  padding:14px 20px;
  border:none;
  border-radius: 18px;
  cursor:pointer;
  font-size:16px;
  font-weight:600;
  color:#fff;
  background-color: var(--secondary---blue--darker);
  box-shadow:0 4px 20px rgba(0,0,0,0.25);
  transition:transform .2s ease;
}

#pwaInstallBtn:hover {
  transform: translateY(-2px);
  background-color: var(--primary--purple-secondary);
  box-shadow: rgba(0, 0, 0, 0.5) 0px 2px 18px 0px;
}


/* --- PAWWY ECOSYSTEM --- */
/* ============  Tokens mínimos Pawwy  ============ */
:root{
  --card-bg:#FFFFFF;
  --card-br:20px;
  --card-shadow: 0 7px 24px 0 rgba(36, 38, 43, 0.08);
  --border-subtle: rgba(27, 27, 27, 0.08);
}

/* ============  Layout sección  ============ */
.ecosystem{
  padding-block: clamp(2.5rem, 3vw + 1rem, 4rem);

  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.ecosystem__head{
  display:grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.ecosystem .titles_section{
  line-height: 1.1;
}

.ecosystem__meta{
  justify-self:end;
  max-width: 520px;
}

.ecosystem__lead{
  color: var(--gray-text, #747474);
  margin: 0;
}

/* ============  Cards  ============ */
.ecosystem__cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(280px,1fr));
  gap: 20px;
}

.ecosystem-card{
  background: var(--card-bg);
  border-radius: var(--card-br);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-subtle);
  padding: 40px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.ecosystem-card:hover{
  transform: translateY(-2px);
}

.ecosystem-card__media{
  width:100%;
  aspect-ratio: 4 / 3;            /* mantiene proporción visual similar al figma */
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius: calc(var(--card-br) - 8px);
  margin-bottom: 10px;
}

.ecosystem-card__media img{
  width: clamp(180px, 60%, 260px);
  height:auto;
  display:block;
}

.ecosystem-card__media--centered img{
  width: clamp(220px, 70%, 350px);
}

.ecosystem-card__title{
  color: var(--black, #343434);
  margin: 0 0 5px 0;
  font-size: clamp(1.125rem, 1.2vw + .9rem, 1.5rem);
}

.ecosystem-card__desc{
  color: var(--gray-text, #747474);
  margin: 0;
  max-width: 35ch;
}

/* ============  Responsivo  ============ */
/* Tablets horizontales */
@media (max-width: 1024px) {
  

  .ecosystem__meta {
    justify-self: start;
  }

  .ecosystem__cards {
    gap: 15px;
  }

  .ecosystem-card__media img {
    width: clamp(180px, 50%, 240px);
  }
}

/* Tablets verticales */
@media (max-width: 900px){
  .ecosystem__head {
    grid-template-columns: 1fr;
  }
  .ecosystem__cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
  .ecosystem-card {
    padding: 2rem 1.5rem;
  }
}

/* Smartphones grandes */
@media (max-width: 600px) {
  .ecosystem {
    padding-inline: 1rem;
  }

  .ecosystem__head {
    text-align: left;
  }

  .ecosystem__lead {
    font-size: 0.95rem;
  }

  .ecosystem-card {
    padding: 1.5rem;
  }

  .ecosystem-card__title {
    font-size: 1.25rem;
  }

  .ecosystem-card__desc {
    font-size: 0.9rem;
  }
}

/* Smartphones pequeños */
@media (max-width: 400px) {
  .ecosystem-card__media img {
    width: 60%;
  }

  .ecosystem-card__desc {
    font-size: 0.85rem;
  }
}

/* Accentos al foco/teclado */
.ecosystem-card:focus-within {
  outline: 2px solid color-mix(in oklab, var(--black) 60%, white);
  outline-offset: 2px;
}