/* ==========================================================================
   ARPSYDE - STYLE.CSS
   Global: reset, variables, tipografía, utilidades compartidas
   Específico: index.html
   ========================================================================== */

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background: #f4f6f4;
  color: #111;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   VARIABLES
   -------------------------------------------------------------------------- */

:root {
  --bg: #f5f6f2;
  --bg-soft: #eef0e8;
  --surface: #ffffff;
  --dark: #1e2a14;
  --green: #6a9020;
  --green-2: #7aaa28;
  --accent: #9dc832;
  --text: #111;
  --text-soft: #3d4232;
  --text-muted: #737868;
  --border: #dce0cc;

  --radius-sm: .5rem;
  --radius-md: .9rem;
  --radius-lg: 1.35rem;
  --radius-xl: 1.8rem;

  --shadow-sm: 0 4px 16px rgba(30, 42, 20, .06);
  --shadow-md: 0 8px 28px rgba(30, 42, 20, .09);
  --shadow-lg: 0 18px 48px rgba(30, 42, 20, .14);

  --container: 1120px;
  --section-y: 5rem;
  --ease: 220ms cubic-bezier(.25, .46, .45, .94);

  --text-xs: clamp(.72rem, .68rem + .18vw, .8rem);
  --text-sm: clamp(.84rem, .8rem + .2vw, .92rem);
  --text-base: clamp(.98rem, .94rem + .18vw, 1.02rem);
  --text-md: clamp(1.02rem, .98rem + .25vw, 1.12rem);
  --text-lg: clamp(1.14rem, 1.02rem + .55vw, 1.34rem);
  --text-xl: clamp(1.38rem, 1.14rem + 1vw, 1.8rem);
  --text-2xl: clamp(2.2rem, 1.8rem + 1.4vw, 3rem);
}

/* --------------------------------------------------------------------------
   TIPOGRAFÍA
   -------------------------------------------------------------------------- */

h1,
h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.02em;
}

h1 {
  font-size: var(--text-2xl);
  line-height: .95;
  color: #fff;
}

h2 {
  font-size: var(--text-xl);
  line-height: 1.08;
  color: var(--dark);
}

h3 {
  font-size: var(--text-md);
  line-height: 1.28;
  font-weight: 700;
  color: var(--dark);
}

p {
  font-size: var(--text-base);
  line-height: 1.72;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   UTILIDADES COMPARTIDAS (usadas en index Y páginas interiores)
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: var(--section-y) 0; }

/* Kicker / label compartido */
.hero-kicker,
.section-label,
.hero-panel-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-kicker,
.hero-panel-label { color: var(--accent); }
.section-label { color: var(--green); }

.hero-kicker::before,
.section-label::before,
.hero-panel-label::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}

/* Botones compartidos */
.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: var(--text-sm);
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.btn {
  padding: .78rem 1.45rem;
  border: 1.5px solid transparent;
  font-weight: 600;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
  box-shadow: 0 6px 20px rgba(157,200,50,.28);
}

.btn-primary:hover {
  background: #afd93f;
  border-color: #afd93f;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.94);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

/* Section header compartido */
.section-header {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header p { margin-top: .85rem; }

.section-header--left {
  max-width: 100%;
  margin-bottom: 2.6rem;
  text-align: left;
}

.section-header--left .section-label { margin-bottom: .9rem; }

.section-heading-row {
  display: grid;
  grid-template-columns: .75fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.section-heading-row p {
  max-width: 48ch;
  padding-top: .35rem;
}

/* Listas con bullet compartidas */
.hero-list,
.service-points,
.about-list {
  display: grid;
  gap: .65rem;
}

.hero-list { margin-top: 1.1rem; }
.service-points { margin: 1rem 0 1.1rem; }
.about-list { gap: .85rem; }

.hero-list li,
.service-points li,
.about-list li {
  position: relative;
  padding-left: 1.15rem;
}

.hero-list li::before,
.service-points li::before,
.about-list li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent);
}

.hero-list li::before,
.service-points li::before { content: "•"; }
.about-list li::before { content: "✓"; }

.service-points li { color: var(--text-soft); }
.about-list li { color: rgba(255,255,255,.88); }

.service-points li,
.about-list li {
  font-size: var(--text-sm);
  line-height: 1.55;
}

/* service-link / sport-link compartidos */
.service-link,
.sport-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--green);
}

.service-link::after,
.sport-link::after {
  content: "→";
}

/* --------------------------------------------------------------------------
   HEADER / NAV (compartido en todas las páginas)
   -------------------------------------------------------------------------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 1.6rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 58px; width: auto; }

.main-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  position: relative;
  padding: .45rem 0;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  transition: color var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--ease);
}

.nav-link:hover,
.nav-link.nav-active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.nav-active::after {
  width: 100%;
}

.nav-cta {
  padding: .78rem 1.15rem;
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--dark);
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  padding: .3rem;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-line {
  width: 22px;
  height: 1.5px;
  border-radius: 999px;
  background: #fff;
}

/* --------------------------------------------------------------------------
   FOOTER (compartido en todas las páginas)
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 1.5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.footer-brand {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark);
}

.footer-location,
.footer-nav a {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a:hover {
  color: var(--green);
}

/* --------------------------------------------------------------------------
   INDEX - HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 9rem 0 5.2rem;
  background: var(--dark);
}

.hero-bg,
.hero-bg-overlay,
.bento-card-img-wrap,
.bento-card-img-overlay,
.sport-panel-img,
.sport-panel-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg { z-index: 0; }

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-bg-overlay {
  background: linear-gradient(100deg, rgba(15,22,8,.92) 0%, rgba(20,30,10,.84) 42%, rgba(20,30,10,.58) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .85fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-kicker { margin-bottom: 1rem; }

.hero-content h1 {
  max-width: 12.5ch;
  text-wrap: balance;
}

.hero-text {
  max-width: 44ch;
  margin-top: 1.2rem;
  color: rgba(255,255,255,.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.9rem;
}

.hero-panel {
  padding: 1.8rem;
  border-radius: var(--radius-xl);
  background: rgba(15,22,8,.72);
  border: 1px solid rgba(157,200,50,.22);
  backdrop-filter: blur(10px);
}

.hero-panel-label { margin-bottom: .65rem; }

.hero-panel h2 {
  max-width: 18ch;
  margin-bottom: .8rem;
  font-size: var(--text-lg);
  color: #fff;
}

.hero-panel > p,
.hero-list li {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.82);
}

/* --------------------------------------------------------------------------
   INDEX - STATS BAR
   -------------------------------------------------------------------------- */

.stats-bar {
  padding: 1.9rem 0;
  background: var(--dark);
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex: 1;
  min-width: 140px;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .5rem 2.2rem;
}

.stat-number {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: var(--text-xl);
  line-height: 1;
  color: #fff;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
}

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   INDEX - SERVICES / BENTO
   -------------------------------------------------------------------------- */

.section-services {
  background: linear-gradient(180deg, #edf2ee 0%, #f4f6f4 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: auto auto;
}

.bento-card--hero {
  position: relative;
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 540px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-card-img-wrap { z-index: 0; }

.bento-card-img-wrap img,
.bento-courses-img img,
.sport-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-card-img-wrap img { object-position: center; }

.bento-card-img-overlay,
.sport-panel-overlay {
  background: linear-gradient(to top, rgba(20,30,10,.94) 0%, rgba(20,30,10,.42) 52%, rgba(20,30,10,.10) 100%);
}

.bento-card-body,
.bento-courses-text,
.about-panel,
.sport-panel-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.bento-card-body h3,
.sport-panel-content h3 {
  margin-bottom: .7rem;
  font-size: var(--text-lg);
  color: #fff;
}

.bento-card-body p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.88);
}

.bento-card--dark,
.bento-card--light {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  transition: transform var(--ease), box-shadow var(--ease);
}

.bento-card--dark { background: #2a3d14; }

.bento-card--light {
  background: var(--surface);
  border: 1px solid rgba(106,144,32,.1);
  box-shadow: var(--shadow-sm);
}

.bento-card--dark:hover,
.bento-card--light:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.bento-card--dark h3,
.bento-courses-text h3,
.about-panel h3 { color: #fff; }

.bento-card--dark p,
.bento-card--dark .service-points li { color: rgba(255,255,255,.82); }

.bento-card--dark .service-index { color: #c6e860; }
.bento-card--dark .service-link  { color: #cced6a; }
.bento-card--light p             { color: var(--text-soft); }

.bento-card--accent {
  grid-column: 2 / 4;
  background: var(--green-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bento-courses-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 220px;
}

.bento-courses-text p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.88);
}

.bento-courses-text .service-index {
  color: rgba(255,255,255,.65);
}

.bento-courses-text .service-link { color: #e4f5a0; }

.bento-courses-img {
  min-height: 100%;
}

.bento-courses-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-index {
  display: block;
  margin-bottom: .75rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}

/* --------------------------------------------------------------------------
   INDEX - SPORTS
   -------------------------------------------------------------------------- */

.section-sports {
  padding: 0 0 4.5rem;
}

.section-sports .section-header {
  margin-bottom: 0;
  padding: 4.5rem 0 2.2rem;
}

.sports-wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.sports-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sport-panel {
  position: relative;
  display: flex;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  flex-direction: column;
  justify-content: flex-end;
}

.sport-panel-img img {
  transition: transform 600ms cubic-bezier(.25,.46,.45,.94);
}

.sport-panel:hover .sport-panel-img img {
  transform: scale(1.04);
}

.sport-panel-content p {
  max-width: 34ch;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.84);
}

.sport-panel .sport-link { color: #c6e860; }

/* --------------------------------------------------------------------------
   INDEX - ABOUT
   -------------------------------------------------------------------------- */

.section-about {
  padding: 4.5rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3rem;
  align-items: center;
}

.about-aside {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.1rem;
}

.about-panel {
  width: 100%;
  max-width: 420px;
  padding: 2rem 2rem 1.8rem;
  background: var(--dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-text .section-label { margin-bottom: .9rem; }

.about-text h2 {
  max-width: 20ch;
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.9rem);
  line-height: 1.02;
  text-wrap: balance;
}

.about-text p {
  max-width: 52ch;
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   INDEX - CTA
   -------------------------------------------------------------------------- */

.section-cta {
  padding: 5rem 0;
  background: var(--dark);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.cta-text h2 {
  max-width: 22ch;
  color: #fff;
}

.cta-text p {
  max-width: 48ch;
  margin-top: .9rem;
  color: rgba(255,255,255,.68);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-width: 230px;
}

.section-cta .btn-ghost {
  color: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.22);
}

.section-cta .btn-ghost:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner,
  .about-grid,
  .cta-inner,
  .section-heading-row {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento-card--hero {
    grid-column: 1 / 3;
    grid-row: 1;
    min-height: 440px;
  }

  .bento-card--accent {
    grid-column: 1 / 3;
    grid-row: 3;
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-divider { display: none; }
  .stat { padding: .5rem 1.5rem; }
  .hero-content h1 { max-width: 14ch; }
}

@media (max-width: 720px) {
  :root { --section-y: 3.8rem; }

  .container,
  .sports-wrap {
    padding: 0 1.25rem;
  }

  .site-header { padding: 1rem 0; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--dark);
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .main-nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
  }

  .nav-link,
  .nav-cta,
  .hero-actions .btn,
  .section-cta .btn {
    width: 100%;
    text-align: center;
  }

  .nav-cta { margin-top: .5rem; }

  .hero {
    padding: 8rem 0 4.4rem;
  }

  .hero-inner,
  .bento,
  .sports-split,
  .bento-courses-inner,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    max-width: 100%;
    text-wrap: pretty;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .bento-card--hero,
  .bento-card--dark,
  .bento-card--light,
  .bento-card--accent {
    grid-column: 1;
  }

  .bento-card--hero { min-height: 380px; }
  .bento-courses-img { min-height: 220px; }

  .section-sports {
    padding: 0 0 4rem;
  }

  .section-sports .section-header {
    padding: 3.8rem 0 1.8rem;
  }

  .sport-panel { min-height: 320px; }

  .sport-panel-content,
  .about-panel,
  .bento-card-body,
  .bento-courses-text {
    padding: 1.5rem;
  }

  .about-text h2 {
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat {
    min-width: 120px;
    padding: .5rem 1rem;
  }
}

@media (max-width: 480px) {
  .brand-logo { height: 50px; }
  .sport-panel { min-height: 280px; }
}
/* --------------------------------------------------------------------------
   Corrección responsive — base móvil
   -------------------------------------------------------------------------- */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

iframe,
video,
img {
  max-width: 100%;
}

@media (max-width: 720px) {
  .container,
  .sports-wrap {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .site-header {
    padding: .85rem 0;
  }

  .header-inner {
    position: relative;
  }

  .brand-logo {
    height: 44px;
  }

  .main-nav {
    left: 1.1rem;
    right: 1.1rem;
    top: calc(100% + .75rem);
    inset: calc(100% + .75rem) 1.1rem auto 1.1rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 42px rgba(0,0,0,.22);
  }

  .nav-list {
    gap: .55rem;
  }

  .nav-link,
  .nav-cta {
    justify-content: center;
    padding: .78rem 1rem;
    border-radius: 999px;
  }

  .nav-link::after {
    display: none;
  }

  .hero,
  .page-hero,
  .inv-hero,
  .cur-hero,
  .con-hero {
    padding-top: 7.2rem !important;
  }

  .hero-content h1,
  .page-hero-content h1,
  .inv-hero-content h1,
  .cur-hero-content h1,
  .con-hero-content h1 {
    max-width: 100% !important;
    font-size: clamp(2.05rem, 10vw, 3rem) !important;
    line-height: 1.02 !important;
  }

  .hero-text,
  .page-hero .hero-text,
  .inv-hero-content .hero-text,
  .cur-hero-content .hero-text,
  .con-hero-content .hero-text {
    max-width: 100% !important;
    font-size: .95rem;
    line-height: 1.65;
  }

  .hero-actions,
  .page-hero .hero-actions,
  .inv-hero-content .hero-actions,
  .cur-hero-content .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-panel,
  .bento-card--dark,
  .bento-card--light,
  .about-panel,
  .intro-card,
  .tipo-card,
  .inv-card-inner,
  .cur-stat-card {
    padding: 1.35rem;
  }

  .stats-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  .stat {
    min-width: 0;
    padding: .65rem .5rem;
  }

  .stat-number {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
    text-align: center;
  }

  .stat-label {
    text-align: center;
    line-height: 1.35;
  }

  .footer-nav {
    gap: .75rem 1rem;
  }
}

@media (max-width: 480px) {
  .container,
  .sports-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-logo {
    height: 40px;
  }

  .hero,
  .page-hero,
  .inv-hero,
  .cur-hero,
  .con-hero {
    padding-top: 6.8rem !important;
  }

  .hero-content h1,
  .page-hero-content h1,
  .inv-hero-content h1,
  .cur-hero-content h1,
  .con-hero-content h1 {
    font-size: clamp(1.9rem, 10.5vw, 2.55rem) !important;
  }

  .stats-inner {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Corrección menú responsive — evitar salto en "Cita y contacto"
   -------------------------------------------------------------------------- */

.nav-cta {
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .nav-list {
    gap: 1.15rem;
  }

  .nav-link,
  .nav-cta {
    font-size: clamp(.72rem, 1.25vw, .86rem);
    letter-spacing: .055em;
  }

  .nav-cta {
    padding: .68rem .95rem;
  }

  .brand-logo {
    height: 52px;
  }
}

@media (max-width: 860px) {
  .nav-list {
    gap: .8rem;
  }

  .nav-link,
  .nav-cta {
    font-size: .72rem;
    letter-spacing: .045em;
  }

  .nav-cta {
    padding: .62rem .78rem;
  }

  .brand-logo {
    height: 46px;
  }
}

@media (max-width: 720px) {
  .nav-cta {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   INDEX - Certificaciones dentro de Nuestra mirada
   -------------------------------------------------------------------------- */

.about-certifications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1.6rem;
}

.cert-card {
  padding: 1.25rem;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(106,144,32,.16);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.cert-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .55rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}

.cert-label::before {
  content: "";
  width: 14px;
  height: 1.5px;
  background: currentColor;
}

.cert-card h3 {
  margin-bottom: .5rem;
  font-size: var(--text-base);
  color: var(--dark);
}

.cert-card p {
  margin-top: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-soft);
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .85rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
}

.cert-link::after {
  content: "↗";
  font-size: .85em;
}

.cert-link:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .about-certifications {
    grid-template-columns: 1fr;
  }

  .cert-card {
    padding: 1.15rem;
  }
}

/* --------------------------------------------------------------------------
   Ajuste Inicio — imágenes en áreas y nueva distribución de certificaciones
   -------------------------------------------------------------------------- */

.bento-card--with-img {
  padding: 0;
  overflow: hidden;
}

.bento-small-img {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.bento-small-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,30,10,.36), rgba(20,30,10,.04));
}

.bento-small-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.25,.46,.45,.94);
}

.bento-card--with-img:hover .bento-small-img img {
  transform: scale(1.04);
}

.bento-small-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.bento-card--with-img .service-points {
  margin-bottom: auto;
}

.about-layout {
  display: grid;
  gap: 2.4rem;
}

.about-layout .about-grid {
  align-items: stretch;
}

.about-layout .about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-layout .about-panel {
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-layout .about-certifications {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.about-layout .cert-card {
  position: relative;
  min-height: 220px;
  padding: 1.6rem 1.7rem;
  overflow: hidden;
  background: rgba(255,255,255,.86);
}

.about-layout .cert-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(157,200,50,.12);
  pointer-events: none;
}

.about-layout .cert-card h3,
.about-layout .cert-card p,
.about-layout .cert-link,
.about-layout .cert-label {
  position: relative;
  z-index: 1;
}

.cert-card--europsy {
  border-left: 4px solid var(--accent);
}

.cert-card--deporte {
  border-left: 4px solid var(--green);
}

@media (max-width: 1024px) {
  .bento-small-img {
    height: 180px;
  }
}

@media (max-width: 720px) {
  .bento-small-img {
    height: 190px;
  }

  .bento-small-body {
    padding: 1.35rem;
  }

  .about-layout {
    gap: 1.6rem;
  }

  .about-layout .about-certifications {
    grid-template-columns: 1fr;
  }

  .about-layout .cert-card {
    min-height: auto;
  }
}

/* --------------------------------------------------------------------------
   Corrección Inicio — imágenes específicas y más coherentes en Áreas
   -------------------------------------------------------------------------- */

.bento-small-img img[src*="investigacion-card-bg"],
.bento-small-img img[src*="asesoramiento-card-bg"] {
  object-position: center;
}

.bento-small-img {
  height: 168px;
}

.bento-small-img::after {
  background: linear-gradient(to top, rgba(20,30,10,.30), rgba(20,30,10,0));
}

/* --------------------------------------------------------------------------
   Corrección Inicio — áreas de trabajo equilibradas
   -------------------------------------------------------------------------- */

.services-grid-balanced {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(106,144,32,.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.service-card-img {
  height: 230px;
  overflow: hidden;
  background: var(--bg-soft);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.25,.46,.45,.94);
}

.service-card:hover .service-card-img img {
  transform: scale(1.04);
}

.service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.55rem;
}

.service-card-body h3 {
  margin-bottom: .65rem;
  color: var(--dark);
}

.service-card-body p {
  font-size: var(--text-sm);
  color: var(--text-soft);
}

.service-card-body .service-points {
  margin-bottom: auto;
}

.service-card--dark {
  background: #263914;
  border-color: rgba(157,200,50,.22);
}

.service-card--dark .service-card-body h3,
.service-card--dark .service-index {
  color: #fff;
}

.service-card--dark .service-card-body p,
.service-card--dark .service-points li {
  color: rgba(255,255,255,.82);
}

.service-card--dark .service-link {
  color: #c6e860;
}

@media (max-width: 1024px) {
  .services-grid-balanced {
    grid-template-columns: 1fr;
  }

  .service-card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .service-card-img {
    height: 100%;
    min-height: 260px;
  }
}

@media (max-width: 720px) {
  .service-card {
    display: flex;
  }

  .service-card-img {
    height: 210px;
    min-height: 0;
  }

  .service-card-body {
    padding: 1.35rem;
  }
}

/* --------------------------------------------------------------------------
   Ajuste paleta — acercar la web al verde del logotipo sin perder elegancia
   -------------------------------------------------------------------------- */

:root {
  --bg: #f7f9f1;
  --bg-soft: #eef5df;
  --dark: #2f4918;
  --green: #75a915;
  --green-2: #88c800;
  --accent: #a8d050;
  --text-soft: #3a432d;
  --text-muted: #6f7860;
  --border: #dce8c7;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1d2c0e;
  box-shadow: 0 8px 24px rgba(136,200,0,.22);
}

.btn-primary:hover {
  background: #b5dc58;
  border-color: #b5dc58;
}

.nav-cta {
  border-color: rgba(168,208,80,.95);
}

.nav-cta:hover {
  background: var(--accent);
  color: #1d2c0e;
}

.hero-bg-overlay {
  background:
    linear-gradient(100deg, rgba(47,73,24,.84) 0%, rgba(59,91,28,.70) 44%, rgba(82,120,32,.42) 100%),
    radial-gradient(ellipse at 75% 32%, rgba(168,208,80,.16) 0%, transparent 58%);
}

.hero-panel {
  background: rgba(47,73,24,.62);
  border-color: rgba(168,208,80,.34);
}

.stats-bar {
  background: linear-gradient(90deg, #2f4918 0%, #41661f 52%, #557d27 100%);
}

.bento-card--dark {
  background: linear-gradient(145deg, #41661f 0%, #2f4918 100%);
}

.bento-card-img-overlay,
.sport-panel-overlay {
  background: linear-gradient(to top, rgba(47,73,24,.84) 0%, rgba(47,73,24,.36) 52%, rgba(47,73,24,.08) 100%);
}

.about-panel,
.section-cta {
  background: linear-gradient(135deg, #2f4918 0%, #41661f 58%, #557d27 100%);
}

.service-card--dark {
  background: linear-gradient(145deg, #41661f 0%, #2f4918 100%);
}

@media (max-width: 720px) {
  .hero-bg-overlay {
    background: linear-gradient(180deg, rgba(47,73,24,.86) 0%, rgba(59,91,28,.68) 52%, rgba(47,73,24,.84) 100%);
  }
}

/* --------------------------------------------------------------------------
   Corrección final parte baja Inicio — más profundidad y acabado
   -------------------------------------------------------------------------- */

.section-about {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(168,208,80,.16), transparent 34%),
    linear-gradient(180deg, #f7f9f1 0%, #eef5df 100%);
}

.section-about::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgba(136,200,0,.10);
  pointer-events: none;
}

.section-about .container {
  position: relative;
  z-index: 1;
}

.about-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(168,208,80,.18), transparent 42%),
    linear-gradient(145deg, #2f4918 0%, #41661f 100%);
  border: 1px solid rgba(168,208,80,.22);
}

.section-cta {
  position: relative;
  overflow: hidden;
  padding: 4.8rem 0;
  background: linear-gradient(135deg, #2f4918 0%, #41661f 55%, #557d27 100%);
}

.section-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 30%, rgba(168,208,80,.20), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(255,255,255,.10), transparent 30%);
  pointer-events: none;
}

.section-cta .cta-inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.8rem, 3.5vw, 3rem);
  background: rgba(15,22,8,.18);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 52px rgba(15,22,8,.18);
  backdrop-filter: blur(8px);
}

.section-cta .cta-text h2 {
  color: #fff;
}

.section-cta .cta-text p {
  color: rgba(255,255,255,.76);
}

.section-cta .btn-ghost {
  border-color: rgba(255,255,255,.28);
  color: rgba(255,255,255,.92);
}

.section-cta .btn-ghost:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.site-footer {
  padding: 2rem 0;
  background: #f7f9f1;
  border-top: 1px solid rgba(106,144,32,.14);
}

.footer-brand {
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-nav a {
  transition: color var(--ease), opacity var(--ease);
}

@media (max-width: 720px) {
  .section-cta .cta-inner {
    padding: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Extensión estilo Nuestra mirada + footer premium
   -------------------------------------------------------------------------- */

.section-services,
.section-intro,
.inv-intro,
.cur-intro,
.section-acreditaciones,
.con-ubicacion {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(168,208,80,.12), transparent 32%),
    linear-gradient(180deg, #f7f9f1 0%, #eef5df 100%);
}

.section-services > .container,
.section-intro > .container,
.inv-intro > .container,
.cur-intro > .container,
.section-acreditaciones > .container,
.con-ubicacion > .container {
  position: relative;
  z-index: 1;
}

.site-footer--enhanced {
  position: relative;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(168,208,80,.16), transparent 30%),
    linear-gradient(135deg, #f7f9f1 0%, #eef5df 100%);
  border-top: 1px solid rgba(106,144,32,.16);
}

.site-footer--enhanced::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgba(136,200,0,.10);
  pointer-events: none;
}

.footer-enhanced {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(160px, .55fr) minmax(200px, .75fr);
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 2.2rem;
}

.footer-brand-block {
  max-width: 430px;
}

.footer-logo-link {
  display: inline-flex;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 150px;
  height: auto;
}

.footer-brand-block p {
  max-width: 42ch;
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.footer-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.2rem;
}

.footer-contact-links a {
  display: inline-flex;
  padding: .5rem .8rem;
  border: 1px solid rgba(106,144,32,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  color: var(--dark);
  font-size: var(--text-xs);
  font-weight: 700;
}

.footer-column-title {
  display: block;
  margin-bottom: .85rem;
  color: var(--green);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer--enhanced .footer-nav {
  display: grid;
  gap: .55rem;
}

.site-footer--enhanced .footer-nav a {
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.site-footer--enhanced .footer-nav a:hover,
.footer-contact-links a:hover {
  color: var(--green);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
  border-top: 1px solid rgba(106,144,32,.14);
  color: var(--text-muted);
  font-size: var(--text-xs);
}

@media (max-width: 900px) {
  .footer-enhanced {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-enhanced {
    grid-template-columns: 1fr;
    gap: 1.7rem;
    padding-top: 2.3rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   Corrección real footer — logo ARPSYDE legible + responsive
   -------------------------------------------------------------------------- */

.site-footer--enhanced .footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 1.15rem;
  padding: .85rem 1.15rem;
  background: linear-gradient(135deg, #243914 0%, #36591d 100%);
  border: 1px solid rgba(168,208,80,.24);
  border-radius: 1rem;
  box-shadow: 0 14px 34px rgba(30,42,20,.14);
}

.site-footer--enhanced .footer-logo {
  display: block;
  width: 165px;
  height: auto;
  filter: none;
}

.site-footer--enhanced .footer-enhanced {
  align-items: start;
}

.site-footer--enhanced .footer-brand-block p {
  margin-top: 0;
}

@media (max-width: 900px) {
  .site-footer--enhanced .footer-enhanced {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer--enhanced .footer-enhanced {
    grid-template-columns: 1fr;
  }

  .site-footer--enhanced .footer-logo-link {
    padding: .75rem 1rem;
  }

  .site-footer--enhanced .footer-logo {
    width: 145px;
  }

  .footer-contact-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact-links a {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Páginas legales — Privacidad y Cookies
   -------------------------------------------------------------------------- */

.legal-hero {
  padding: 8.5rem 0 4rem;
  background:
    radial-gradient(circle at 16% 22%, rgba(168,208,80,.18), transparent 34%),
    linear-gradient(135deg, #f7f9f1 0%, #eef5df 100%);
  border-bottom: 1px solid rgba(106,144,32,.16);
}

.legal-hero-inner {
  max-width: 760px;
}

.legal-hero h1 {
  max-width: 12ch;
  margin-top: .8rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.3rem, 4.5vw, 4.5rem);
  line-height: .98;
  color: var(--dark);
}

.legal-hero p {
  max-width: 54ch;
  margin-top: 1rem;
  color: var(--text-soft);
}

.legal-section {
  background: #fff;
}

.legal-content {
  max-width: 820px;
  padding: clamp(2rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid rgba(106,144,32,.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: .65rem;
  font-size: var(--text-lg);
  color: var(--dark);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-soft);
}

.legal-content a {
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 720px) {
  .legal-hero {
    padding: 7rem 0 3rem;
  }

  .legal-content {
    padding: 1.4rem;
    border-radius: var(--radius-lg);
  }
}
