/* =========================================================
   RECOFI Landing
   CSS limpio para index.html y colegios.html
   Sin Bootstrap, sin Mobirise y sin dependencias externas.
========================================================= */

/* =========================================================
   Variables globales
========================================================= */

:root {
  --primary: #635BFF;
  --primary-dark: #4338CA;
  --secondary: #8B5CF6;
  --cyan: #10B6D8;
  --green: #18B26B;
  --orange: #F59E0B;

  --dark: #172033;
  --text: #445064;
  --muted: #738096;
  --light: #F7F8FC;
  --soft: #EEF0FF;
  --line: #E5E8F0;
  --white: #FFFFFF;

  --radius: 24px;
  --shadow: 0 20px 55px rgba(30, 41, 59, .10);
  --shadow-soft: 0 12px 30px rgba(30, 41, 59, .08);

  --container: 1120px;
}

/* =========================================================
   Base y reseteo
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 38px));
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.position-relative {
  position: relative;
}

/* =========================================================
   Accesibilidad
========================================================= */

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--dark);
  color: var(--white);
}

.skip-link:focus {
  top: 16px;
}

/* =========================================================
   Navbar
   Compatible con index.html y colegios.html
========================================================= */

.recofi-navbar,
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(226, 232, 240, .85);
  backdrop-filter: blur(18px);
}

.recofi-navbar-inner,
.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand-wrap,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.brand-wrap img,
.brand img {
  width: 148px;
  height: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  transition: color .18s ease, background .18s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: var(--soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  border-radius: 14px;
  background: var(--soft);
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: var(--primary);
  transition: transform .18s ease, opacity .18s ease;
}

/* =========================================================
   Botones
========================================================= */

.btn,
.btn-recofi {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(99, 91, 255, .25);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    color .18s ease;
}

.btn:hover,
.btn-recofi:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 18px 40px rgba(67, 56, 202, .30);
}

.btn.secondary,
.btn-recofi-light {
  background: #FFFFFF;
  color: var(--primary);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.btn.secondary:hover,
.btn-recofi-light:hover {
  background: var(--soft);
  color: var(--primary-dark);
}

/* =========================================================
   Secciones generales
========================================================= */

.section,
.section-padding {
  padding: 92px 0;
}

.kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-size: .9rem;
  font-weight: 900;
}

.title,
.section-title {
  margin: 0 0 18px;
  color: var(--dark);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.025em;
}

.text,
.section-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.section-head,
.section-heading-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .55fr);
  gap: 38px;
  align-items: end;
  margin-bottom: 44px;
}

/* =========================================================
   Hero principal del index
========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 74px;
  background:
    radial-gradient(circle at 12% 18%, rgba(99, 91, 255, .16), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(16, 182, 216, .16), transparent 30%),
    linear-gradient(180deg, #FBFCFF 0%, #F6F7FF 100%);
}

.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: rgba(139, 92, 246, .10);
  filter: blur(20px);
}

.hero-title {
  margin: 0 0 22px;
  color: var(--dark);
  font-size: clamp(2.55rem, 5.5vw, 5rem);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.065em;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-panel {
  margin-top: 56px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, .80);
  border-radius: 32px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

/* =========================================================
   Tarjetas de sistemas del hero
========================================================= */

.system-preview-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr .95fr;
  gap: 18px;
}

.system-preview {
  position: relative;
  overflow: hidden;
  min-height: 255px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(30, 41, 59, .06);
}

.system-preview .label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 900;
}

.system-preview h3 {
  margin: 0 0 8px;
  color: var(--dark);
  font-size: 1.2rem;
  font-weight: 900;
}

.system-preview p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}

.system-preview img {
  width: 100%;
  max-height: 230px;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 18px;
}

/* =========================================================
   Tarjetas de soluciones
========================================================= */

.products-section {
  background: #FFFFFF;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}

.row > * {
  padding-right: 12px;
  padding-left: 12px;
}

.g-4 {
  row-gap: 24px;
}

.g-5 {
  row-gap: 42px;
}

.col-md-4,
.col-md-6,
.col-md-12,
.col-xl-4 {
  width: 100%;
}

.product-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFFFF;
  box-shadow: var(--shadow-soft);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.product-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--product-soft, rgba(99, 91, 255, .10));
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 91, 255, .35);
  box-shadow: var(--shadow);
}

.product-icon,
.icon-box {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 17px;
  background: var(--product-soft, var(--soft));
  color: var(--product-color, var(--primary));
  font-size: 1.3rem;
  font-weight: 900;
}

.product-card h3 {
  margin: 0 0 12px;
  color: var(--dark);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

.product-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.62;
}

.feature-list,
.check-list {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.feature-list li,
.check-list li {
  display: flex;
  gap: 8px;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.45;
}

.feature-list li::before,
.check-list li::before {
  content: "✓";
  flex: 0 0 auto;
  color: var(--product-color, var(--accent, var(--primary)));
  font-weight: 900;
}

.product-link,
.link {
  color: var(--product-color, var(--accent, var(--primary)));
  font-weight: 900;
}

/* =========================================================
   Sección por qué usar RECOFI
========================================================= */

.why-section,
.feature-band {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #FFFFFF;
}

.why-section::before,
.feature-band::before {
  content: "";
  position: absolute;
  top: -140px;
  left: -110px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(99, 91, 255, .35);
  filter: blur(40px);
}

.why-section .section-title,
.why-section .section-text,
.feature-band .section-title,
.feature-band .section-text,
.feature-band .title,
.feature-band .text {
  color: #FFFFFF;
}

.why-section .section-text,
.feature-band .text {
  opacity: .78;
}

.why-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.why-card {
  height: 100%;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}

.why-number,
.why-card b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  color: #FFFFFF;
  font-weight: 900;
}

.why-card h3 {
  margin: 0 0 10px;
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 900;
}

.why-card p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  line-height: 1.62;
}

/* =========================================================
   Planes del index
========================================================= */

.pricing-strip {
  background: #FFFFFF;
}

.pricing-card,
.price-card {
  height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: var(--shadow-soft);
}

.pricing-card h3,
.price-card h3 {
  margin: 0 0 8px;
  color: var(--dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.pricing-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.price {
  margin: 12px 0;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.05em;
}

.price small {
  display: block;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* =========================================================
   Clientes
========================================================= */

.clients-section,
.clients {
  overflow: hidden;
  background: #F8F9FF;
}

.clients-intro {
  max-width: 720px;
  margin: 10px auto 0;
}

.clients-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.clients-window {
  width: 100%;
  overflow: hidden;
}

.clients-track {
  display: flex;
  gap: 18px;
  transition: transform .45s ease;
  will-change: transform;
}

.client-logo-card,
.client-card {
  flex: 0 0 calc((100% - 54px) / 4);
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(30, 41, 59, .06);
}

.client-logo-card img,
.client-card img {
  width: auto;
  max-width: 100%;
  max-height: 72px;
  display: block;
  object-fit: contain;
}

.clients-control {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(30, 41, 59, .08);
  transition:
    transform .18s ease,
    background .18s ease,
    color .18s ease;
}

.clients-control:hover {
  transform: translateY(-2px);
  background: var(--primary);
  color: #FFFFFF;
}

/* =========================================================
   Páginas internas
========================================================= */

.page-hero {
  padding: 76px 0 50px;
  background:
    radial-gradient(circle at 85% 10%, rgba(108, 99, 255, .15), transparent 30%),
    linear-gradient(180deg, #FBFCFF, #F6F7FF);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .84fr);
  gap: 46px;
  align-items: center;
}

.page-hero h1 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(2.45rem, 5.2vw, 4.25rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.065em;
}

.page-hero p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.72;
}

.modules-grid,
.systems-grid,
.price-grid,
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.module-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(30, 41, 59, .06);
}

.module-card h3 {
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 1.08rem;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

/* =========================================================
   Página RECOFI Colegios
========================================================= */

.colegios-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(108, 99, 255, .16), transparent 34%),
    radial-gradient(circle at 8% 10%, rgba(99, 91, 255, .08), transparent 30%),
    linear-gradient(180deg, #FBFCFF 0%, #F6F7FF 100%);
}

.colegios-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.colegios-hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 78%;
  max-width: 430px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(108, 99, 255, .10);
  filter: blur(8px);
  animation: colegiosAura 5s ease-in-out infinite;
}

.colegios-hero-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: colegiosFloat 4.6s ease-in-out infinite;
  will-change: transform;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.colegios-modulos-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(99, 91, 255, .06), transparent 28%),
    #FFFFFF;
}

.colegios-modules-grid {
  align-items: stretch;
}

.colegio-module-card {
  position: relative;
  overflow: hidden;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.colegio-module-card::after {
  content: "";
  position: absolute;
  top: -42px;
  right: -42px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(108, 99, 255, .08);
  transition: transform .22s ease, opacity .22s ease;
}

.colegio-module-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 99, 255, .30);
  box-shadow: 0 18px 42px rgba(30, 41, 59, .10);
}

.colegio-module-card:hover::after {
  transform: scale(1.18);
  opacity: .90;
}

.module-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #EEF0FF;
  font-size: 1.35rem;
}

.colegios-price-section {
  background: #F8F9FF;
}

.colegios-price-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .65fr);
  gap: 24px;
  align-items: stretch;
}

.colegios-main-price {
  position: relative;
  overflow: hidden;
  border-color: rgba(108, 99, 255, .28);
  box-shadow: 0 22px 54px rgba(30, 41, 59, .10);
}

.colegios-main-price::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(108, 99, 255, .10);
}

.price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #EEF0FF;
  color: var(--primary);
  font-size: .86rem;
  font-weight: 900;
}

.price-description {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.colegios-price-note {
  padding: 28px;
  border-radius: 24px;
  background: #101827;
  color: rgba(255, 255, 255, .78);
  box-shadow: 0 22px 54px rgba(16, 24, 39, .16);
}

.colegios-price-note h3 {
  margin: 0 0 12px;
  color: #FFFFFF;
  font-size: 1.35rem;
  font-weight: 900;
}

.colegios-price-note p {
  margin: 0 0 16px;
  line-height: 1.65;
}

.price-example {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
}

.price-example strong {
  color: #FFFFFF;
}

.price-example span {
  color: rgba(255, 255, 255, .82);
  line-height: 1.5;
}

@keyframes colegiosFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(-1deg);
  }
}

@keyframes colegiosAura {
  0%,
  100% {
    transform: scale(1);
    opacity: .80;
  }

  50% {
    transform: scale(1.08);
    opacity: .55;
  }
}

/* =========================================================
   CTA y footer
========================================================= */

.cta-section,
.cta {
  padding: 82px 0;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 255, 255, .16), transparent 24%),
    linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF;
}

.cta-box {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-box h2,
.cta h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.045em;
}

.cta-box p,
.cta p {
  margin: 0 0 26px;
  opacity: .88;
  font-size: 1.12rem;
  line-height: 1.70;
}

.footer,
.site-footer {
  padding: 22px 20px;
  background: #101827;
  color: rgba(255, 255, 255, .72);
  font-size: .94rem;
}

.footer strong,
.site-footer strong {
  color: #FFFFFF;
}

.footer-grid,
.footer-container {
  width: min(1180px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: -.01em;
}

.footer-brand span {
  color: rgba(255, 255, 255, .68);
}

.footer-credit {
  color: rgba(255, 255, 255, .68);
  line-height: 1.6;
  text-align: right;
}

.footer-credit a {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

.footer-separator {
  margin: 0 6px;
  color: rgba(255, 255, 255, .32);
}

/* =========================================================
   Animaciones de entrada
========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
========================================================= */

@media (min-width: 768px) {
  .col-md-4 {
    width: 33.333333%;
  }

  .col-md-6 {
    width: 50%;
  }

  .col-md-12 {
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .col-xl-4 {
    width: 33.333333%;
  }
}

@media (max-width: 991px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: fixed;
    top: 82px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--shadow-soft);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    justify-content: flex-start;
  }

  .nav-actions .btn,
  .nav-actions .btn-recofi {
    display: none;
  }

  .section,
  .section-padding {
    padding: 70px 0;
  }

  .section-head,
  .section-heading-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .system-preview-grid {
    grid-template-columns: 1fr;
  }

  .system-preview {
    min-height: auto;
  }

  .systems-grid,
  .modules-grid,
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .client-logo-card,
  .client-card {
    flex-basis: calc((100% - 36px) / 3);
  }

  .colegios-price-wrap {
    grid-template-columns: 1fr;
  }

  .colegios-hero-visual img {
    width: min(100%, 480px);
  }
}

@media (max-width: 768px) {
  .footer,
  .site-footer {
    padding: 22px 18px;
  }

  .footer-grid,
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-credit {
    text-align: left;
  }

  .footer-separator {
    display: none;
  }

  .footer-credit a {
    display: inline-block;
  }
}

@media (max-width: 575px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .recofi-navbar-inner,
  .navbar {
    min-height: 74px;
  }

  .brand-wrap img,
  .brand img {
    width: 132px;
  }

  .nav-menu {
    top: 74px;
  }

  .hero {
    padding: 34px 0 38px;
    background:
      radial-gradient(circle at 50% 145px, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .94) 38%, rgba(255, 255, 255, .55) 58%, transparent 76%),
      radial-gradient(circle at 0% 0%, rgba(99, 91, 255, .12), transparent 42%),
      radial-gradient(circle at 100% 0%, rgba(16, 182, 216, .12), transparent 42%),
      linear-gradient(180deg, #FBFCFF 0%, #FFFFFF 48%, #F7F8FF 100%);
  }

  .hero::before {
    opacity: .35;
  }

  .hero-title {
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(2rem, 11vw, 2.65rem);
    line-height: .98;
  }

  .hero-copy {
    max-width: 330px;
    margin-bottom: 22px;
    color: #526179;
    font-size: .93rem;
    line-height: 1.65;
  }

  .hero-actions {
    max-width: 330px;
    flex-direction: column;
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions .btn,
  .hero-actions .btn-recofi,
  .hero-buttons .btn,
  .cta .btn,
  .cta-section .btn,
  .cta .btn-recofi,
  .cta-section .btn-recofi {
    width: 100%;
  }

  .hero-panel {
    margin-top: 26px;
    padding: 12px;
    border-radius: 24px;
  }

  .product-card,
  .why-card,
  .pricing-card,
  .price-card {
    padding: 22px;
  }

  .systems-grid,
  .modules-grid,
  .price-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .clients-carousel {
    gap: 8px;
  }

  .clients-track {
    gap: 12px;
  }

  .client-logo-card,
  .client-card {
    flex-basis: calc((100% - 12px) / 2);
    height: 98px;
    padding: 16px;
    border-radius: 18px;
  }

  .client-logo-card img,
  .client-card img {
    max-height: 54px;
  }

  .clients-control {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 1.6rem;
  }

  .page-hero {
    padding: 42px 0 46px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .page-hero p {
    font-size: .96rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .colegios-hero-visual {
    margin-top: 10px;
  }

  .colegios-hero-visual img {
    width: min(100%, 340px);
  }

  .module-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .colegios-price-note,
  .colegios-main-price {
    padding: 22px;
  }

  .module-icon i {
  color: var(--primary);
  font-size: 1.22rem;
  line-height: 1;
}


}
/* =========================================================
   RECOFI Gym
========================================================= */

.gym-hero {
  background:
    radial-gradient(circle at 86% 12%, rgba(99, 91, 255, .16), transparent 34%),
    radial-gradient(circle at 8% 10%, rgba(139, 92, 246, .10), transparent 30%),
    linear-gradient(180deg, #FBFCFF 0%, #F6F7FF 100%);
  overflow: hidden;
}

.gym-kicker {
  background: var(--soft);
  color: var(--primary);
}

.gym-btn {
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(99, 91, 255, .25);
}

.gym-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 18px 40px rgba(67, 56, 202, .30);
}

.gym-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gym-hero-visual::before {
  content: "";
  position: absolute;
  width: 78%;
  max-width: 430px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(99, 91, 255, .10);
  filter: blur(8px);
  z-index: 0;
  animation: gymAura 5s ease-in-out infinite;
}

.gym-hero-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  animation: gymFloat 4.8s ease-in-out infinite;
  will-change: transform;
}

.gym-modulos-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(99, 91, 255, .06), transparent 28%),
    #fff;
}

.gym-module-card {
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.gym-module-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(99, 91, 255, .08);
  transition: transform .22s ease, opacity .22s ease;
}

.gym-module-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 91, 255, .30);
  box-shadow: 0 18px 42px rgba(30, 41, 59, .10);
}

.gym-module-card:hover::after {
  transform: scale(1.18);
  opacity: .9;
}

.gym-module-icon {
  background: var(--soft);
}

.gym-module-icon i {
  color: var(--primary);
  font-size: 1.22rem;
  line-height: 1;
}

.gym-price-section {
  background: #F8F9FF;
}

.gym-price-card {
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.gym-price-card::after {
  content: "";
  position: absolute;
  right: -52px;
  top: -52px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(99, 91, 255, .08);
}

.gym-price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 91, 255, .30);
  box-shadow: 0 18px 42px rgba(30, 41, 59, .10);
}

.gym-price-card.highlight {
  border-color: rgba(99, 91, 255, .45);
  box-shadow: 0 22px 54px rgba(99, 91, 255, .14);
}

.gym-price-badge {
  background: var(--soft);
  color: var(--primary);
}

.gym-price {
  color: var(--primary);
}

.gym-cta {
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 255, 255, .16), transparent 24%),
    linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

@keyframes gymFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-16px) rotate(1deg);
  }
}

@keyframes gymAura {
  0%, 100% {
    transform: scale(1);
    opacity: .8;
  }

  50% {
    transform: scale(1.08);
    opacity: .55;
  }
}

@media (max-width: 991px) {
  .gym-hero-visual img {
    width: min(100%, 460px);
  }
}

@media (max-width: 575px) {
  .gym-hero-visual {
    margin-top: 10px;
  }

  .gym-hero-visual img {
    width: min(100%, 330px);
  }
}


/* =========================================================
   RECOFI PYME
========================================================= */

.pyme-hero {
  background:
    radial-gradient(circle at 86% 12%, rgba(99, 91, 255, .16), transparent 34%),
    radial-gradient(circle at 8% 10%, rgba(139, 92, 246, .10), transparent 30%),
    linear-gradient(180deg, #FBFCFF 0%, #F6F7FF 100%);
  overflow: hidden;
}

.pyme-kicker {
  background: var(--soft);
  color: var(--primary);
}

.pyme-btn {
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(99, 91, 255, .25);
}

.pyme-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 18px 40px rgba(67, 56, 202, .30);
}

.pyme-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pyme-hero-visual::before {
  content: "";
  position: absolute;
  width: 78%;
  max-width: 430px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(99, 91, 255, .10);
  filter: blur(8px);
  z-index: 0;
  animation: pymeAura 5s ease-in-out infinite;
}

.pyme-hero-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  animation: pymeFloat 4.8s ease-in-out infinite;
  will-change: transform;
}

.pyme-modulos-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(99, 91, 255, .06), transparent 28%),
    #fff;
}

.pyme-module-card {
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.pyme-module-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(99, 91, 255, .08);
  transition: transform .22s ease, opacity .22s ease;
}

.pyme-module-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 91, 255, .30);
  box-shadow: 0 18px 42px rgba(30, 41, 59, .10);
}

.pyme-module-card:hover::after {
  transform: scale(1.18);
  opacity: .9;
}

.pyme-module-icon {
  background: var(--soft);
}

.pyme-module-icon i {
  color: var(--primary);
  font-size: 1.22rem;
  line-height: 1;
}

.pyme-price-section {
  background: #F8F9FF;
}

.pyme-price-card {
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.pyme-price-card::after {
  content: "";
  position: absolute;
  right: -52px;
  top: -52px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(99, 91, 255, .08);
}

.pyme-price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 91, 255, .30);
  box-shadow: 0 18px 42px rgba(30, 41, 59, .10);
}

.pyme-price-card.highlight {
  border-color: rgba(99, 91, 255, .45);
  box-shadow: 0 22px 54px rgba(99, 91, 255, .14);
}

.pyme-price-badge {
  background: var(--soft);
  color: var(--primary);
}

.pyme-price {
  color: var(--primary);
}

.pyme-cta {
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 255, 255, .16), transparent 24%),
    linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

@keyframes pymeFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-16px) rotate(-1deg);
  }
}

@keyframes pymeAura {
  0%, 100% {
    transform: scale(1);
    opacity: .8;
  }

  50% {
    transform: scale(1.08);
    opacity: .55;
  }
}

@media (max-width: 991px) {
  .pyme-hero-visual img {
    width: min(100%, 460px);
  }
}

@media (max-width: 575px) {
  .pyme-hero-visual {
    margin-top: 10px;
  }

  .pyme-hero-visual img {
    width: min(100%, 330px);
  }
}

/* =========================================================
   Index - Efecto flotante 3D en imágenes principales
========================================================= */

.hero-panel {
  overflow: visible;
}

.system-preview-grid {
  overflow: visible;
  perspective: 1200px;
}

.system-preview {
  position: relative;
  overflow: visible !important;
  isolation: isolate;
  transform-style: preserve-3d;
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease;
}

.system-preview img {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 230px;
  object-fit: contain;
  margin: 8px auto 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  transform: translateY(0) scale(1);
  transform-origin: center center;
  transition:
    transform .35s ease,
    filter .35s ease;
  will-change: transform;
}

/* Movimiento de la tarjeta */
.system-preview:hover {
  z-index: 10;
  transform: translateY(-8px);
  border-color: rgba(99, 91, 255, .32);
  box-shadow: 0 24px 58px rgba(30, 41, 59, .15);
}

/* Movimiento de la imagen */
.system-preview:hover img {
  transform: translateY(-30px) scale(1.08);
  filter: drop-shadow(0 24px 22px rgba(30, 41, 59, .22));
}

/* Efecto al tocar en móvil o tablet */
.system-preview:active {
  z-index: 10;
  transform: translateY(-5px);
}

.system-preview:active img {
  transform: translateY(-22px) scale(1.05);
  filter: drop-shadow(0 20px 18px rgba(30, 41, 59, .20));
}

/* Evita que el efecto quede exagerado en pantallas pequeñas */
@media (max-width: 575px) {
  .system-preview:hover {
    transform: none;
  }

  .system-preview:hover img,
  .system-preview:active img {
    transform: translateY(-14px) scale(1.04);
    filter: drop-shadow(0 14px 14px rgba(30, 41, 59, .18));
  }
}
@media (max-width: 575px) {
  .hero-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(2.35rem, 11.8vw, 3rem);
    line-height: .96;
    font-weight: 900;
    letter-spacing: -0.07em;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.72;
    font-weight: 500;
  }

  .system-preview h3,
  .product-card h3,
  .section-title {
    font-weight: 900;
    letter-spacing: -0.035em;
  }
}