@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Instrument+Serif:ital@0;1&family=Montserrat:wght@400;500;600;700&display=swap");

@layer base {
  :root {
    color-scheme: dark;
    --bg: #060a12;
    --bg-elevated: #0b1220;
    --bg-soft: #121b2d;
    --text: #eef2ff;
    --text-muted: rgba(226, 232, 240, 0.78);
    --border: rgba(148, 163, 184, 0.22);
    --header-bg: rgba(7, 11, 20, 0.82);
    --header-bg-solid: rgba(7, 11, 20, 0.95);
    --dropdown-bg: rgba(9, 14, 26, 0.94);
    --dropdown-border: rgba(148, 163, 184, 0.26);

    --accent: #FBCA38;
    --accent-2: #e1a705;
    --accent-info: #3b82f6;
    --shadow-soft: 0 12px 40px rgba(2, 6, 23, 0.36);
    --shadow-deep: 0 20px 60px rgba(2, 6, 23, 0.55);
    --motion-base: 0.35s;
    --motion-ease: ease;
    --scrollbar-thumb: rgba(51, 65, 85, 0.5);
    --scrollbar-thumb-hover: rgba(251, 202, 56, 0.82);
    --loader-scrollbar-compensation: 0px;
    --header-main-height: 4.75rem;
    --header-total-height: calc(var(--header-main-height) + var(--header-floating-gap, 8px));
  }

  [data-theme='dark'] {
    color-scheme: dark;
    --bg: #060a12;
    --bg-elevated: #0b1220;
    --bg-soft: #121b2d;
    --text: #eef2ff;
    --text-muted: rgba(226, 232, 240, 0.78);
    --border: rgba(148, 163, 184, 0.22);
    --header-bg: rgba(7, 11, 20, 0.82);
    --header-bg-solid: rgba(7, 11, 20, 0.95);
    --dropdown-bg: rgba(9, 14, 26, 0.94);
    --dropdown-border: rgba(148, 163, 184, 0.26);

    --accent: #FBCA38;
    --accent-2: #e1a705;
    --accent-info: #3b82f6;
    --shadow-soft: 0 12px 40px rgba(2, 6, 23, 0.36);
    --shadow-deep: 0 20px 60px rgba(2, 6, 23, 0.55);
    --scrollbar-thumb: rgba(51, 65, 85, 0.5);
    --scrollbar-thumb-hover: rgba(251, 202, 56, 0.82);
  }

  [data-theme='light'] {
    color-scheme: light;
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-soft: #f1f5f9;
    --text: #0f172a;
    --text-muted: #1e293b;
    --border: rgba(15, 23, 42, 0.08);
    --header-bg: rgba(255, 255, 255, 0.85);
    --header-bg-solid: rgba(255, 255, 255, 0.95);
    --dropdown-bg: rgba(255, 255, 255, 0.94);
    --dropdown-border: rgba(15, 23, 42, 0.12);

    --accent: #e1a705;
    --accent-2: #FBCA38;
    --accent-info: #3b82f6;
    --shadow-soft: 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow-deep: 0 12px 30px rgba(15, 23, 42, 0.08);
    --scrollbar-thumb: rgba(15, 23, 42, 0.2);
    --scrollbar-thumb-hover: rgba(251, 202, 56, 0.82);

    /* Text weight shifts for light mode */
    font-weight: 500;
  }

  [data-theme='light'] body {
    font-weight: 500;
  }
  [data-theme='light'] p {
    font-weight: 500;
  }
  [data-theme='light'] h1,
  [data-theme='light'] h2,
  [data-theme='light'] h3,
  [data-theme='light'] h4 {
    font-weight: 800;
  }
  [data-theme='light'] .f-text {
    font-weight: 700;
  }
  [data-theme='light'] .epg-card-desc {
    font-weight: 600;
  }
  [data-theme='light'] .f-content {
    font-weight: 600;
  }


}

:root {
  --base-100: #ffffff;
  --base-200: #FBCA38;
  --base-300: #0f0f0f;
}

html {
  scrollbar-gutter: auto;
}

body {
  background-color: var(--bg);
  color: var(--text);
  transition: background-color var(--motion-base) var(--motion-ease), color var(--motion-base) var(--motion-ease);
  overflow-x: clip;
}

[data-type="la-escuela"] .site-header {
  background-color: transparent !important;
  backdrop-filter: none !important;
  border-bottom: none !important;
}

[data-type="la-escuela"] .site-footer-premium {
  margin-top: 0 !important;
}






* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.9;
}

h2 {
  font-family: var(--font-display), "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

p {
  font-family: var(--font-base), "Montserrat", sans-serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.6;
}

.hero {
  position: relative;
  width: 100%;
  height: 175svh;
  color: var(--base-100);
  overflow: hidden;
  margin-top: -5.75rem;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(6, 10, 18, 0.4) 0%, var(--bg) 100%);
  z-index: 1;
  transition: background var(--motion-base) var(--motion-ease);
}

[data-theme='light'] .hero-overlay {
  background: transparent;
}

.hero-img {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-img img {
  filter: brightness(0.6);
}

.hero-header {
  position: absolute;
  width: 100%;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  z-index: 2;
}

.hero-header h1 {
  font-size: clamp(2.2rem, 8vw, 6.5rem);
  text-shadow: var(--shadow-soft);
}

.hero-header .highlight {
  color: var(--accent);
}

.hero-header p {
  width: 90%;
  max-width: 800px;
  font-size: clamp(1.1rem, 3vw, 2.2rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-canvas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 3;
}

.hero-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 125svh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 4;
}

.hero-content h2 {
  width: min(90%, 900px);
  color: var(--text);
  font-size: clamp(1.4rem, 3.8vw, 2.8rem);
}

.hero-chart-2d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-bottom: 5svh; /* Más cerca del texto central */
  opacity: 0.45; /* Opacidad media para un balance armónico ideal */
}

.chart-bar {
  width: clamp(40px, 8vw, 80px); /* Más anchas y presenciales */
  background: linear-gradient(to top, rgba(251, 202, 56, 0.2), var(--accent));
  border-radius: 8px 8px 0 0;
  position: relative;
  transform-origin: bottom center;
  box-shadow: 0 0 25px rgba(251, 202, 56, 0.5); /* Resplandor armónico */
}

/* Base heights para la forma de escalera (se sobreescriben con GSAP, pero es bueno tener base) */
.chart-bar:nth-child(1) { height: 15%; }
.chart-bar:nth-child(2) { height: 35%; }
.chart-bar:nth-child(3) { height: 55%; }
.chart-bar:nth-child(4) { height: 75%; }
.chart-bar:nth-child(5) { height: 95%; }

/* La última barra tiene la cabeza de flecha */
.arrow-bar::after {
  content: "";
  position: absolute;
  top: -45px; /* Ajuste para el nuevo tamaño de flecha */
  left: 50%;
  transform: translateX(-50%);
  border-left: clamp(30px, 6vw, 55px) solid transparent;
  border-right: clamp(30px, 6vw, 55px) solid transparent;
  border-bottom: clamp(45px, 9vw, 80px) solid var(--accent); /* Color de acento fuerte */
  filter: drop-shadow(0 -10px 15px rgba(251, 202, 56, 0.6)); /* Glow en la punta */
}

/* Mision y Vision */
.mision-vision {
  padding: clamp(3rem, 6vw, 6rem) 5% clamp(4rem, 8vw, 8rem) 5%;
  background-color: var(--bg);
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  width: 100%;
  max-width: 1100px;
}

.mv-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.mv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.mv-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-deep);
  border-color: rgba(251, 202, 56, 0.4);
}

.mv-card:hover::before {
  transform: scaleX(1);
}

.mv-icon {
  width: 80px;
  height: 80px;
  background: rgba(251, 202, 56, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.mv-icon svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.mv-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.mv-text p {
  font-family: var(--font-base);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.about {
  background: var(--bg);
  position: relative;
  width: 100%;
  padding: 6rem 5% 2rem 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.about > p {
  width: 40%;
  text-align: center;
}

.partners-stripe {
  position: relative;
  z-index: 10;
  background-color: #FBCA38 ; 
  width: 100%;
  min-height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 50s linear infinite;
  animation-play-state: paused; 
}

.marquee-track.animating {
  animation-play-state: running;
}

.marquee-content {
  display: flex;
  gap: 5rem;
  padding-right: 5rem; 
  align-items: center;
}

.marquee-content img {
  height: 100%;
  width: 100%;
  max-width: 300px;
  object-fit: contain;
}



@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.about-extra-content {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  font-family: var(--font-display);
  margin-top: 1rem;
}

.cards-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.epg-card {
  background-color: var(--bg-elevated);
  color: var(--text);
  border-left: 6px solid var(--base-200);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  display: flex;
  gap: clamp(1rem, 3vw, 1.5rem);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.epg-card:hover {
  transform: translateY(-5px);
}

.epg-card-icon {
  background-color: rgba(251, 202, 56, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.epg-card-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--base-200);
}

.epg-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.epg-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.epg-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 500;
}

.fortalezas-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fortalezas-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

.fortalezas-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.f-item {
  box-shadow: var(--shadow-soft);
  background-color: var(--bg-elevated);
  color: var(--text);
  border-left: 4px solid transparent;
  border-radius: 8px;
  transition: transform 0.3s ease, border-left-color 0.3s ease;
  overflow: hidden;
}

.f-item:hover {
  border-left-color: var(--base-200);
  transform: translateX(5px);
}

.f-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  cursor: pointer;
  list-style: none;
}

.f-summary::-webkit-details-marker {
  display: none;
}

.f-summary svg:first-child {
  width: 24px;
  height: 24px;
  fill: var(--text);
  flex-shrink: 0;
}

.f-text {
  font-size: 1.05rem;
  font-weight: 600;
  flex-grow: 1;
  user-select: none;
}

.f-summary svg:last-child {
  width: 20px;
  height: 20px;
  fill: var(--text);
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.f-item.active .f-summary svg:last-child {
  transform: rotate(180deg);
}

.f-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.f-item.active .f-content-wrapper {
  grid-template-rows: 1fr;
}

.f-content-inner {
  overflow: hidden;
}

.f-content {
  padding: 0 clamp(1rem, 3vw, 2rem) 1.25rem clamp(1.5rem, 5vw, 4.5rem);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 500;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.f-item.active .f-content {
  opacity: 1;
  transform: translateY(0);
}

.statistics {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  padding: 2rem 5% 4rem 5%;
  background: var(--bg);
  width: 100%;
  flex-wrap: wrap;
}

.stat-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 10px solid var(--base-200);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-elevated);
  transition: transform 0.3s ease;
}

.stat-circle:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}

.ventajas {
  width: 100%;
  padding: clamp(3rem, 6vw, 6rem) 5%;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.ventajas-header {
  text-align: center;
  max-width: 800px;
}

.ventajas-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}

.ventajas-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
}

.v-card {
  background-color: var(--bg-elevated);
  border-radius: 12px;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.v-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(251, 202, 56, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.v-card:hover::before {
  opacity: 1;
}

.v-card:hover {
  box-shadow: var(--shadow-deep);
}

.v-card > * {
  position: relative;
  z-index: 1;
  transform: translateZ(20px);
}

.v-card svg {
  width: 32px;
  height: 32px;
  fill: var(--text);
  margin-bottom: 1.5rem;
}

.v-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.v-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.certification {
  width: 100%;
  padding: 6rem 5% 4rem 5%;
  background-color: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  overflow: hidden;
}

.compromiso {
  width: 100%;
  padding: 6rem 0;
  background-color: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.compromiso-container {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
}

.comp-header {
  text-align: center;
  max-width: 800px;
}

.comp-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.comp-header p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.comp-card {
  background-color: var(--bg-elevated);
  border-radius: 24px; 
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  max-width: 1000px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.comp-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(251, 202, 56, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.comp-icon-box {
  background-color: var(--accent);
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comp-icon-box svg {
  width: 40px;
  height: 40px;
  fill: #000;
}

.comp-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comp-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
}

.comp-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Final CTA Section Styles */
.final-cta {
  position: relative;
  width: 100%;
  padding: clamp(4rem, 8vw, 8rem) 1.5rem;
  background-color: var(--bg);
  color: var(--text);
  text-align: center;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(251, 202, 56, 0.08) 0%, var(--bg) 80%);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.final-cta p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.2rem clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px rgba(251, 202, 56, 0.3);
}

.btn-primary:hover {
  background: var(--accent-2);
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(251, 202, 56, 0.5);
}

.btn-primary svg {
  fill: currentColor;
  stroke: none;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(251, 202, 56, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-5px);
}

.btn-glass svg {
  transition: fill 0.3s ease;
  fill: currentColor;
}

@media (max-width: 768px) {
  .comp-card {
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
    text-align: center;
  }
  .comp-icon-box {
    margin: 0 auto;
  }
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .marquee-content img {
    max-width: 140px;
    height: 40px;
  }
  .marquee-content {
    gap: 2.5rem;
    padding-right: 2.5rem;
  }
}


.cert-header {
  text-align: center;
  max-width: 900px;
}

.cert-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.cert-header p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.cert-grid {
  display: flex;
  gap: clamp(2rem, 8vw, 12rem);
  perspective: 2000px;
  width: 100%;
  max-width: 1100px;
  justify-content: center;
}

.cert-img-wrapper {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  height: auto;
  perspective: 1000px;
  cursor: pointer;
  will-change: transform, opacity;
  position: relative;
}

.click-hint {
  position: absolute;
  top: -15px;
  right: -10px;
  background-color: var(--accent);
  color: #000;
  padding: 6px 12px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 20;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  animation: bounceHint 2s infinite ease-in-out;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cert-img-wrapper.is-flipped .click-hint {
  opacity: 0;
}

@keyframes bounceHint {
  0%, 100% { transform: translateY(0) rotate(10deg); }
  50% { transform: translateY(-8px) rotate(10deg); }
}

.click-hint svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.cert-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.cert-img-wrapper.is-flipped .cert-card-inner {
  transform: rotateY(180deg);
}

.cert-card-front, .cert-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.cert-card-front {
  background: transparent;
}

.cert-card-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.cert-card-back {
  background-color: var(--bg-elevated);
  color: var(--text);
  transform: rotateY(180deg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.cert-card-back h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--accent);
}

.cert-card-back p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

[data-theme='dark'] .cert-card-front img {
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.1));
}

@media (max-width: 1000px) {
  .hero-content h2,
  .about > p {
    width: calc(100% - 4rem);
  }
  .about-extra-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .statistics {
    gap: 4rem;
    padding: 3rem 5%;
  }
  .ventajas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-circle {
    width: 160px;
    height: 160px;
    border-width: 8px;
  }
  .stat-number {
    font-size: 2.5rem;
  }
  .stat-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 900px) {
  .cert-grid {
    flex-direction: column;
    align-items: center;
    gap: 4rem;
  }
  .cert-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .ventajas-grid {
    grid-template-columns: 1fr;
  }
  .ventajas-header h2 {
    font-size: 2.2rem;
  }
  .statistics {
    gap: 3rem;
  }
  .stat-circle {
    width: 140px;
    height: 140px;
    border-width: 6px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .stat-label {
    font-size: 0.65rem;
  }
}

/* Fix hamburger position to the right */
.menu-toggle {
  margin-left: auto !important;
}
