/* ══════════════════════════════════════════════════════════════
   ESTILOS GENERALES — compartidos por index.html, cursos.html y
   las demás páginas principales. (El menú está en site-header.css)
   ══════════════════════════════════════════════════════════════ */
/*
  ═══════════════════════════════════════
  CSS — CASCADING STYLE SHEETS
  ═══════════════════════════════════════
  CSS is what gives your HTML color, fonts, spacing, and layout.
  Think of HTML as the skeleton and CSS as the skin and clothes.

  CSS SYNTAX EXPLAINED:
    selector {
      property: value;
    }
  The "selector" picks what element to style.
  The "property" is what aspect you're changing (color, size, etc.)
  The "value" is what you're changing it to.
*/

/*
  ─────────────────────────────────────
  CSS VARIABLES (Custom Properties)
  ─────────────────────────────────────
  :root means "the whole document."
  Variables let us define colors once and reuse them everywhere.
  If you ever want to change the brand color, you change it HERE
  and it updates automatically across the entire website.
*/
:root {
  --navy:        #1B2B5E;   /* Deep navy — primary brand color */
  --navy-dark:   #0F1A3A;   /* Darker navy — for depth and shadows */
  --navy-light:  #243572;   /* Slightly lighter navy */
  --crimson:     #B22222;   /* Classic academic red */
  --crimson-dark:#8B1A1A;   /* Deeper red for hover effects */
  --silver:      #C0C0C0;   /* Silver from the logo shield */
  --white:       #FFFFFF;
  --off-white:   #F5F3EE;   /* Warm off-white — elegant, not stark */
  --text-light:  rgba(255,255,255,0.85);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;
}

/*
  ─────────────────────────────────────
  RESET & BASE STYLES
  ─────────────────────────────────────
  Browsers add their own default spacing and styles.
  This "resets" everything so we start from a clean slate.
*/
*, *::before, *::after {
  margin: 0;       /* Remove default spacing around elements */
  padding: 0;      /* Remove default inner spacing */
  box-sizing: border-box; /* Makes sizing calculations more predictable */
}

html {
  scroll-behavior: smooth; /* Makes clicking nav links scroll smoothly */
}

body {
  font-family: var(--font-body); /* Sets Lato as the default font */
  background-color: var(--off-white);
  color: var(--navy);
  overflow-x: hidden; /* Prevents unwanted horizontal scrolling */
}

/* NAVIGATION BAR → ahora vive en site-header.css (compartido por todas las páginas) */
section[id], #equipo, #recursos, #preguntas-frecuentes { scroll-margin-top: 80px; }

/*
  ═══════════════════════════════════════
  HERO SECTION
  ═══════════════════════════════════════
  The "Hero" is the first large section visitors see.
  It's the most important part of your homepage.
  We're creating a full-screen, cinematic banner.
*/
.hero {
  position: relative;  /* Needed so child elements can be positioned inside it */
  width: 100%;
  min-height: 100vh;   /* 100vh = 100% of the viewport height (full screen) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;    /* Hides anything that goes beyond the section's edges */
  padding-top: 80px;   /* Offset for the fixed navbar height */
}

/*
  HERO BACKGROUND
  ─────────────────────────────────────
  We layer multiple visual elements using absolute positioning.
  Each layer is stacked with z-index values.
  Think of it like layers in Photoshop or Canva.
*/

/* Layer 1: Deep navy base gradient */
.hero-bg {
  position: absolute; /* Takes it out of normal flow — positions relative to .hero */
  inset: 0;           /* Shorthand for: top:0, right:0, bottom:0, left:0 */
  background: linear-gradient(
    135deg,            /* Diagonal direction of the gradient */
    var(--navy-dark) 0%,
    var(--navy) 40%,
    #1a2d6e 70%,
    var(--navy-dark) 100%
  );
  z-index: 1;
}

/* Layer 2: Texture overlay — adds depth and richness */

.hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(178,34,34,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(192,192,192,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(36, 53, 114, 0.4) 0%, transparent 50%);
  z-index: 2;
}

/* Layer 3: Diagonal decorative stripe — references the shield's split design */
.hero-stripe {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(178,34,34,0.07) 0%,
    rgba(178,34,34,0.02) 100%
  );
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  /* clip-path cuts the element into a diagonal shape */
  z-index: 3;
}

/* Layer 4: Subtle grid pattern — gives an academic/institutional feel */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px; /* Size of each grid cell */
  z-index: 4;
}

/* Layer 5: Bottom gradient fade — smooth transition to next section */
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--off-white));
  z-index: 5;
}

/*
  HERO CONTENT — The actual text and buttons
  This sits above all the background layers (z-index higher than all above)
*/
.hero-content {
  position: relative;
  z-index: 10;         /* Above all background layers */
  text-align: center;
  max-width: 900px;    /* Limits line length for readability */
  padding: 2rem 2rem 5rem; /* top | left+right | bottom padding */
  animation: heroFadeUp 1.2s ease forwards; /* Plays the animation defined below */
}

/* The shield crest / institution badge above the title */

/* Institution name between shield and crest line */
.hero-institution-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: heroFadeUp 1s ease 0.15s both;
}

.hero-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 2.5rem;
  animation: heroFadeUp 1s ease 0.2s both; /* Delays 0.2s then animates */
}

.hero-crest-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--silver));
}

.hero-crest-line.right {
  background: linear-gradient(to left, transparent, var(--silver));
}

.hero-crest-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--silver);
}

/* Main logo in the hero */
.hero-logo-img {
  width: 180px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.5));
  animation: heroFadeUp 1s ease 0.1s both;
}

/* The big headline */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  /* clamp(min, preferred, max) — responsive font size */
  /* min: 2.2rem on small screens, max: 4rem on big screens */
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  animation: heroFadeUp 1s ease 0.3s both;
}

/* The italic emphasis inside the title (like the social media post) */
.hero-title em {
  font-style: italic;
  color: var(--silver);
}

/* The red accent word */
.hero-title .accent-red {
  color: #E84040;
  font-style: normal;
}

/* Subtitle / tagline below the main title */
.hero-tagline {
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  letter-spacing: 0.02em;
  animation: heroFadeUp 1s ease 0.45s both;
}

/* Values strip — showing the 3 pillars from your social media post */
.hero-values {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  animation: heroFadeUp 1s ease 0.55s both;
}

.hero-value-item {
  padding: 0.7rem 1.8rem;
  border-left: 1px solid rgba(192,192,192,0.2);
  text-align: center;
}

.hero-value-item:first-child {
  border-left: none;
}

.hero-value-item .value-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.2rem;
}

.hero-value-item .value-text {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

/* CTA Buttons container */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap; /* Buttons wrap to next line on small screens */
  animation: heroFadeUp 1s ease 0.65s both;
}

/*
  BUTTONS — Two styles: primary (solid) and secondary (outline)
*/
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;     /* Changes cursor to hand on hover */
  transition: all 0.3s ease; /* Smooth transition on all properties */
  border: 2px solid transparent; /* Invisible border by default */
}

.btn-primary {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
}

.btn-primary:hover {
  background: var(--crimson-dark);
  border-color: var(--crimson-dark);
  transform: translateY(-2px); /* Lifts button 2px up on hover */
  box-shadow: 0 8px 25px rgba(178,34,34,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(192,192,192,0.5);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--silver);
  transform: translateY(-2px);
}

/* Botón dorado — para destacar (mismo dorado que usa la página Convenios) */
.btn-gold {
  background: #C8A84B;
  color: #0F1A3A;
  border-color: #C8A84B;
}

.btn-gold:hover {
  background: #D9BC63;
  border-color: #D9BC63;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200,168,75,0.35);
}

/* Scroll indicator at the bottom of the hero */
.hero-scroll {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%); /* Centers it horizontally */
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: heroFadeUp 1s ease 0.9s both;
}

.hero-scroll span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(192,192,192,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite; /* Loops forever */
}

/*
  ─────────────────────────────────────
  STAT BAR — The strip below the hero
  A quick trust signal: numbers that build credibility
  ─────────────────────────────────────
*/
.stat-bar {
  background: var(--navy);
  padding: 2rem;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  border-top: 3px solid var(--crimson);
}

.stat-item {
  flex: 1;
  min-width: 150px;
  max-width: 220px;
  text-align: center;
  padding: 1rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-number span {
  color: var(--crimson);
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/*
  ─────────────────────────────────────
  PLACEHOLDER SECTIONS
  These are empty sections to show the page structure.
  We'll build each one step by step in future sessions.
  ─────────────────────────────────────
*/
.placeholder-section {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(27,43,94,0.1);
}

.placeholder-section:nth-child(even) {
  background: white;
}

.placeholder-inner {
  text-align: center;
  padding: 4rem 2rem;
}

.placeholder-inner .section-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1rem;
}

.placeholder-inner h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.placeholder-inner p {
  color: rgba(27,43,94,0.5);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.placeholder-divider {
  width: 40px;
  height: 3px;
  background: var(--crimson);
  margin: 1rem auto;
}


/*
  ═══════════════════════════════════════
  ANIMATIONS (@keyframes)
  ═══════════════════════════════════════
  Keyframes define the start and end state of an animation.
  CSS then automatically transitions between them.

  "heroFadeUp" moves elements from slightly below and transparent
  to their normal position and fully visible.
*/
@keyframes heroFadeUp {
  from {
    opacity: 0;              /* Starts invisible */
    transform: translateY(30px); /* Starts 30px below normal */
  }
  to {
    opacity: 1;              /* Ends fully visible */
    transform: translateY(0); /* Ends at normal position */
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/*
  ═══════════════════════════════════════
  RESPONSIVE DESIGN (@media queries)
  ═══════════════════════════════════════
  Media queries change styles based on screen size.
  This makes your website look great on mobile phones too.
  "max-width: 768px" means: "apply these styles on screens
  768px wide or smaller" (typical phone/tablet size).
*/
/*
  ═══════════════════════════════════════
  CURSOS DE INGLÉS — SECTION STYLES
  ═══════════════════════════════════════
*/

/* ── Section wrapper ── */
.courses-section {
  background: var(--off-white);
  padding: 100px 2rem 0;
  /* Large top padding so content doesn't feel cramped after the stat bar */
}

/* ── Section header ── */
.courses-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag-dark {
  /*
    Similar to .section-tag on placeholders, but for light backgrounds.
    Small caps label that identifies the section category.
  */
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.8rem;
  display: block;
}

.courses-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.courses-title-divider {
  /*
    A short red line under the title — a classic typographic
    device that signals "this is a major section heading."
  */
  width: 50px;
  height: 3px;
  background: var(--crimson);
  margin: 0.8rem auto 1.2rem;
}

.courses-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(27,43,94,0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Modality badges (Presencial / En Línea) */
.courses-modality {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.modality-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Cards Grid ── */
.courses-grid {
  /*
    CSS GRID with exactly 3 columns of equal width.
    "repeat(3, 1fr)" = 3 columns, each taking 1 equal fraction.
    This gives us 2 rows of 3 cards (6 levels total).
  */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

/* ── Individual Card — HORIZONTAL layout ── */
.course-card {
  background: var(--white);
  border-radius: 4px;
  border: 1px solid rgba(27,43,94,0.08);
  position: relative;
  display: flex;
  flex-direction: row; /* KEY CHANGE: children sit side by side, not stacked */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(27,43,94,0.12);
}

/*
  LEFT PANEL — the colored sidebar strip
  This replaces the top accent bar from the vertical layout.
  It holds the level badge and sits on the left side of the card.
*/
.card-accent {
  width: 72px;           /* Fixed width left column */
  min-height: 100%;
  background: linear-gradient(to bottom, var(--navy), var(--navy-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;        /* Prevents this panel from squishing */
  padding: 1.2rem 0;
}

.course-card.featured .card-accent {
  background: linear-gradient(to bottom, var(--crimson), #c0392b);
}

/* Level badge now lives inside .card-accent (left panel) */
.card-level-badge {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  padding: 0 6px;
}

/* Thin horizontal divider inside the left panel */
.card-level-badge::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 6px auto 0;
}

/* MCER label rotated vertically inside the left panel */
.card-level-sub {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  writing-mode: vertical-rl;   /* Rotates text 90 degrees */
  transform: rotate(180deg);   /* Flips it to read bottom-to-top */
}

/* "Más Popular" tag — now sits on top of the card */
.card-featured-tag {
  position: absolute;
  top: 0;
  left: 72px;            /* Starts right after the left panel */
  width: 55%;
  background: var(--crimson);
  color: var(--white);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 18px 4px 10px;
  text-align: center;
  clip-path: polygon(0% 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  /* Diagonal cut on the RIGHT edge this time */
}

.course-card.featured {
  border-color: rgba(178,34,34,0.2);
}

/* ── Card body (all the text — right side) ── */
.card-body {
  padding: 1.1rem 1.1rem 0.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  /* Featured cards need top padding to clear the "Más Popular" banner */
}

.course-card.featured .card-body {
  padding-top: 1.1rem;
}

.card-level-header {
  /* No right padding needed anymore — badge is on the left panel */
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

.card-cefr {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(27,43,94,0.35);
}

.card-description {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(27,43,94,0.68);
  flex: 1;
}

/* "Ideal para:" tag */
.card-for {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.3rem 0.6rem;
  background: rgba(27,43,94,0.04);
  border-left: 2px solid var(--navy);
  border-radius: 0 2px 2px 0;
}

.course-card.featured .card-for {
  border-left-color: var(--crimson);
  background: rgba(178,34,34,0.04);
}

.for-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(27,43,94,0.45);
  white-space: nowrap;
}

.for-text {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--navy);
}

/* Duration + Price row */
.card-meta {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(27,43,94,0.07);
  padding: 0.5rem 0 0;
}

.meta-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 0.4rem;
}

.meta-item:first-child {
  border-right: 1px solid rgba(27,43,94,0.07);
  padding-left: 0;
}

.meta-icon {
  color: var(--navy);
  opacity: 0.35;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.meta-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(27,43,94,0.4);
}

.meta-value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-left: auto;
}

/* Package note */
.card-package-note {
  font-size: 0.68rem;
  color: rgba(27,43,94,0.45);
}

.card-package-note a {
  color: var(--crimson);
  text-decoration: none;
  font-weight: 700;
}

.card-package-note a:hover {
  text-decoration: underline;
}

/* ── Card footer (button) ── */
.card-footer {
  padding: 0 1.1rem 1rem;
}

.btn-card {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 2px solid var(--navy);
  transition: all 0.3s ease;
}

.btn-card:hover {
  background: transparent;
  color: var(--navy);
}

.course-card.featured .btn-card {
  background: var(--crimson);
  border-color: var(--crimson);
}

.course-card.featured .btn-card:hover {
  background: transparent;
  color: var(--crimson);
}

/* ── Package Banner (bottom of section) ── */
.courses-package-banner {
  background: var(--navy);
  margin-top: 0;
  padding: 3.5rem 2rem;
  border-top: 4px solid var(--crimson);
}

.package-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.package-banner-text {
  flex: 1;
  min-width: 260px;
}

.package-banner-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.5rem;
}

.package-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.package-banner-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 520px;
}

  .programme-hero {
    grid-template-columns: 1fr; /* Stack vertically on mobile */
    padding: 0 1rem;
  }

  .pricing-card {
    position: static; /* Remove sticky on mobile */
  }

  .package-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .package-banner-inner .btn {
    width: 100%;
    text-align: center;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  @media (min-width: 600px) {
    .courses-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

/*
  ═══════════════════════════════════════
  PROGRAMME HERO — Full package pitch block
  Two-column layout: pitch on left, pricing card on right
  ═══════════════════════════════════════
*/
.programme-hero {
  display: grid;
  grid-template-columns: 1fr 420px; /* Left takes remaining space, right is fixed */
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
  align-items: start;
}

/* ── Left: the pitch ── */
.programme-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.8rem;
  display: block;
}

.programme-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.programme-title em {
  font-style: italic;
  color: var(--crimson);
}

.programme-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(27,43,94,0.72);
  margin-bottom: 1.8rem;
  max-width: 520px;
}

/* Included features list */
.programme-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.programme-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(27,43,94,0.8);
  line-height: 1.5;
}

.pi-icon {
  /* The ✓ checkmark */
  width: 20px;
  height: 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Right: pricing card ── */
.pricing-card {
  background: var(--white);
  border: 1px solid rgba(27,43,94,0.1);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(27,43,94,0.1);
  position: sticky; /* Stays in view as you scroll the left side */
  top: 100px;
}

.pricing-card-header {
  background: var(--navy);
  padding: 1.4rem 1.6rem;
}

.pricing-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.2rem;
}

.pricing-card-subtitle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

/* Pricing option rows */
.pricing-option {
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pricing-option--crossed {
  background: rgba(27,43,94,0.03);
  opacity: 0.65; /* Dimmed — less important option */
}

.pricing-option--featured {
  background: rgba(178,34,34,0.04);
  border-left: 3px solid var(--crimson);
}

.pricing-option-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pricing-option-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.pricing-option-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27,43,94,0.45);
  background: rgba(27,43,94,0.07);
  padding: 2px 7px;
  border-radius: 2px;
  display: inline-block;
}

.pricing-option-tag.best {
  background: var(--crimson);
  color: var(--white);
}

.pricing-option-price {
  text-align: right;
  flex-shrink: 0;
}

.price-amount {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

/* Crossed out old price */
.price-amount.crossed {
  text-decoration: line-through;
  color: rgba(27,43,94,0.4);
  font-size: 1.3rem;
}

.price-period {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(27,43,94,0.4);
}

/* Green savings bar between the two options */
.pricing-savings-bar {
  background: #1a6b3c; /* Deep green — communicates savings/positive */
  color: var(--white);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pricing-savings-bar strong {
  color: #7effc0; /* Light green accent for the dollar amount */
}

.pricing-note {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27,43,94,0.4);
  padding: 0.8rem 1.6rem 0;
}

/* Main CTA button inside pricing card */
.btn-programme {
  display: block;
  margin: 1rem 1.6rem;
  padding: 0.9rem;
  text-align: center;
  background: var(--crimson);
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 2px solid var(--crimson);
  transition: all 0.3s ease;
}

.btn-programme:hover {
  background: transparent;
  color: var(--crimson);
}

/* "or pay level by level" link below button */
.pricing-single-note {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(27,43,94,0.5);
  padding: 0 1.6rem 1.4rem;
}

.pricing-single-note a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.pricing-single-note a:hover {
  text-decoration: underline;
}

/* ── Individual levels sub-header ── */
.niveles-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  padding: 3rem 2rem 0;
  border-top: 1px solid rgba(27,43,94,0.08);
}

.niveles-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.5rem 0;
}

.niveles-subtitle {
  font-size: 0.9rem;
  color: rgba(27,43,94,0.6);
  margin-top: 0.4rem;
}

/* Hide scroll indicator on smaller screens where it overlaps content */
@media (max-height: 700px) {
  .hero-scroll { display: none; }
}

@media (max-width: 768px) {

  .hero-values {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-value-item {
    border-left: none;
    border-top: 1px solid rgba(192,192,192,0.2);
    padding: 0.5rem 1rem;
  }

  .hero-value-item:first-child {
    border-top: none;
  }

  .stat-bar {
    gap: 1rem;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    min-width: 120px;
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}


/*
  ═══════════════════════════════════════
  MODAL — Enrollment Form Pop-up
  ═══════════════════════════════════════

  HOW A MODAL WORKS IN CSS:
  The modal starts hidden (opacity:0, visibility:hidden).
  When JavaScript adds the class "active", it becomes visible.
  The overlay darkens everything behind it.
  The modal-box is the white card that appears on top.
*/

/* Overlay — dark background behind the modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 45, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal box — the white card */
.modal-box {
  background: var(--white);
  border-radius: 6px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

/* Modal header */
.modal-header {
  background: var(--navy);
  padding: 1.6rem 2rem;
  position: relative;
}

.modal-header-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.3rem;
  display: block;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.modal-header p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.3rem;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255,255,255,0.2);
}

/* Modal body */
.modal-body {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group label .required {
  color: var(--crimson);
  margin-left: 2px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(27,43,94,0.15);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,43,94,0.08);
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "\25BE";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy);
  pointer-events: none;
  font-size: 0.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-modal-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--crimson);
  color: var(--white);
  border: 2px solid var(--crimson);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.btn-modal-submit:hover {
  background: transparent;
  color: var(--crimson);
}

textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid rgba(27,43,94,0.15); border-radius: 6px;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--navy); background: #f8f9fc;
  outline: none; resize: vertical; transition: border-color 0.2s;
}
textarea:focus { border-color: var(--navy); background: var(--white); }
.btn-submit {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--crimson); }
.form-privacy {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(27,43,94,0.45);
  margin-top: 0.8rem;
  line-height: 1.5;
}

/* Success message */
.modal-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.modal-success.visible {
  display: block;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.5rem;
}

.modal-success h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.modal-success p {
  font-size: 0.88rem;
  color: rgba(27,43,94,0.6);
  line-height: 1.6;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .modal-body { padding: 1.5rem; }
}


/* ══════════════════════════════════════
   MODALITY BADGES — Clickable buttons
══════════════════════════════════════ */
.modality-btn {
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modality-btn:hover { background: var(--navy-light); transform: translateY(-1px); }
.info-icon { opacity: 0.6; flex-shrink: 0; }
.modality-btn:hover .info-icon { opacity: 1; }

/* ══════════════════════════════════════
   MODALITY MODAL
══════════════════════════════════════ */
.modality-overlay { position: fixed; inset: 0; background: rgba(11,18,45,0.75); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.modality-overlay.active { opacity: 1; visibility: visible; }
.modality-box { background: var(--white); border-radius: 8px; width: 100%; max-width: 440px; overflow: hidden; box-shadow: 0 25px 70px rgba(0,0,0,0.35); transform: translateY(16px) scale(0.98); transition: transform 0.25s ease; }
.modality-overlay.active .modality-box { transform: translateY(0) scale(1); }
.modality-box-header { padding: 1.4rem 1.6rem; position: relative; display: flex; align-items: center; gap: 12px; }
.modality-box-header.presencial { background: var(--navy); }
.modality-box-header.online { background: linear-gradient(135deg, var(--navy), #1a5276); }
.modality-header-icon { width: 46px; height: 46px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modality-header-text { flex: 1; }
.modality-header-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.2rem; display: block; }
.modality-header-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--white); }
.modality-close { position: absolute; top: 0.8rem; right: 0.8rem; width: 28px; height: 28px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: var(--white); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; line-height: 1; }
.modality-close:hover { background: rgba(255,255,255,0.2); }
.modality-box-body { padding: 1.6rem; }
.modality-box-body p { font-size: 0.88rem; line-height: 1.7; color: rgba(27,43,94,0.75); margin-bottom: 1.2rem; }
.modality-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.4rem; }
.modality-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84rem; color: rgba(27,43,94,0.8); line-height: 1.5; }
.mf-icon { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 900; flex-shrink: 0; margin-top: 1px; color: var(--white); background: var(--navy); }
.modality-cta { display: block; width: 100%; padding: 0.75rem; text-align: center; background: var(--navy); color: var(--white); border: none; border-radius: 3px; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: background 0.3s ease; }
.modality-cta:hover { background: var(--crimson); }


/* ══════════════════════════════════════
   NOSOTROS SECTION — Warm cream palette
   Distinct from Cursos: cream backgrounds,
   bold red accents, editorial typography
══════════════════════════════════════ */

/* Cream palette — defined only for this section */
.nosotros-section {
  --cream:       #F2EDE4;   /* Warm cream base */
  --cream-dark:  #E8E0D4;   /* Slightly darker cream for contrast */
  --cream-border:#D9CFC2;   /* Cream border color */
  background: var(--cream);
}

/* Shared typography */
.nosotros-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}
.nosotros-title em { font-style: italic; color: var(--crimson); }
.nosotros-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0.5rem 0;
}
/* Divider: thicker, red, no longer just a line */
.nosotros-divider {
  width: 50px;
  height: 4px;
  background: var(--crimson);
  margin: 0.8rem 0 1.5rem;
}
/* Centered variant for section headers */
.team-header .nosotros-divider,
.blog-header .nosotros-divider,
.faq-header .nosotros-divider { margin: 0.8rem auto 1.5rem; }
.nosotros-body-text { font-size: 0.95rem; color: rgba(27,43,94,0.65); line-height: 1.7; max-width: 600px; }

/* ── Section separator — red full-width stripe between blocks ── */
.nosotros-stripe {
  height: 4px;
  background: linear-gradient(to right, var(--crimson), var(--crimson-dark), transparent);
}

/* ── 1. WELCOME BLOCK ── */
.welcome-block {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 2rem 80px;
  align-items: start;
}

/* Mission / Vision / Values — editorial style with large red numbers */
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0.5rem;
  border: 1px solid var(--cream-border);
  border-radius: 4px;
  overflow: hidden;
}
.mv-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.4rem 1.4rem 1.4rem 1.2rem;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-border);
  transition: background 0.2s ease;
  position: relative;
}
.mv-card:last-child { border-bottom: none; }
.mv-card:hover { background: #EDE5D8; }

/* Large red number replaces the icon circle */
.mv-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--crimson);
  line-height: 1;
  opacity: 0.25;
  flex-shrink: 0;
  width: 42px;
  text-align: center;
  transition: opacity 0.2s ease;
}
.mv-card:hover .mv-number { opacity: 0.5; }
.mv-card-text {}
.mv-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Small red dash before the title */
.mv-card h4::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--crimson);
  flex-shrink: 0;
}
.mv-card p { font-size: 0.83rem; color: rgba(27,43,94,0.68); line-height: 1.65; }

/* Founder card — cream version */
.founder-card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(178,34,34,0.08), 0 2px 8px rgba(27,43,94,0.06);
  position: sticky;
  top: 100px;
}
/* Red top bar on founder card */
.founder-card::before {
  content: '';
  display: block;
  height: 5px;
  background: var(--crimson);
}
.founder-img-placeholder {
  height: 200px;
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.founder-img-placeholder svg { color: var(--cream-border); }
.founder-img-placeholder p {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(27,43,94,0.25);
}
.founder-message { padding: 1.6rem; }
.founder-quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--crimson);
  line-height: 0.5;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.6;
}
.founder-quote {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-style: italic;
  color: rgba(27,43,94,0.8);
  line-height: 1.75;
  margin-bottom: 1.4rem;
  border-left: 3px solid var(--crimson);
  padding-left: 1rem;
}
.founder-sig { display: flex; align-items: center; gap: 1rem; }
.founder-sig-line { width: 30px; height: 2px; background: var(--crimson); flex-shrink: 0; }
.founder-sig strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--navy); }
.founder-sig span { font-size: 0.68rem; color: rgba(27,43,94,0.45); letter-spacing: 0.05em; }

/* ── 2. TEAM BLOCK — dark navy background for max contrast ── */
/* ══ TEAM CAROUSEL ══ */
.team-block {
  padding: 50px 2rem 40px;
  background: var(--navy);
}
.team-header { text-align: center; margin-bottom: 2rem; }
.team-block .nosotros-subtitle { color: var(--white); }
.team-block .nosotros-body-text { color: rgba(255,255,255,0.6); }
.team-block .section-tag-dark { color: var(--crimson); letter-spacing: 0.2em; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 0.5rem; }
.team-block .nosotros-divider { background: var(--crimson); width: 40px; height: 2px; margin: 0.75rem auto 1rem; border: none; }

.team-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.team-arrow {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
  pointer-events: all;
}
.team-arrow:hover {
  background: var(--crimson);
  border-color: var(--crimson);
}

.team-carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

.team-carousel-track {
  display: flex;
  width: 100%;
}

.team-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}

.team-slide-photo {
  /* Foto cuadrada y compacta, enmarcada dentro de la tarjeta */
  width: 280px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  align-self: center;
  margin: 2rem 0 2rem 2rem;
  overflow: hidden;
  border-radius: 12px;
  border: 3px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.team-slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.team-slide-info {
  flex: 1;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-slide-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  display: block;
  margin-bottom: 0.6rem;
}

.team-slide-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.team-slide-divider {
  width: 40px; height: 2px;
  background: var(--crimson);
  margin-bottom: 1.25rem;
}

.team-slide-bio {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.team-slide-bio-en {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  font-style: italic;
}

.team-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.team-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.team-dot.active {
  background: var(--crimson);
  transform: scale(1.3);
}

@media (max-width: 700px) {
  .team-slide { flex-direction: column; }
  .team-slide-photo { width: 220px; margin: 1.5rem auto 0; }
  .team-slide-info { padding: 1.5rem; }
  .team-slide-name { font-size: 1.4rem; }
  .team-arrow { width: 38px; height: 38px; }
}

@media (max-width: 480px) {
  .team-carousel-wrap { gap: 0.5rem; }
  .team-arrow { width: 32px; height: 32px; }
}

/* ── 3. BLOG BLOCK — cream again, editorial feel ── */
.blog-block {
  padding: 80px 2rem;
  background: var(--cream);
}
.blog-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.blog-header .nosotros-body-text { margin: 0 auto; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(178,34,34,0.1); }
/* Red top border appears on hover */
.blog-card::before { content: ''; display: block; height: 3px; background: transparent; transition: background 0.3s ease; }
.blog-card:hover::before { background: var(--crimson); }
.blog-card-img {
  height: 150px;
  background: var(--cream-dark);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.blog-card:nth-child(1) .blog-card-img { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.blog-card:nth-child(1) .blog-card-img::before { content: '📚'; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 4rem; opacity: 0.25; }
.blog-card:nth-child(2) .blog-card-img { background: linear-gradient(135deg, var(--crimson-dark), #c0392b); }
.blog-card:nth-child(2) .blog-card-img::before { content: '🎓'; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 4rem; opacity: 0.25; }
.blog-card:nth-child(3) .blog-card-img { background: linear-gradient(135deg, #1a4a6b, #2471a3); }
.blog-card:nth-child(3) .blog-card-img::before { content: '🌍'; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 4rem; opacity: 0.25; }
.blog-category {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 2px;
}
.blog-card-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.blog-date { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--crimson); margin-bottom: 0.5rem; opacity: 0.7; }
.blog-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--navy); line-height: 1.4; margin-bottom: 0.6rem; }
.blog-excerpt { font-size: 0.8rem; color: rgba(27,43,94,0.6); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.blog-read-more {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--crimson);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.blog-read-more:hover { gap: 8px; }

/* ── 4. FAQ BLOCK — cream-dark, strong red accents ── */
.faq-block {
  background: var(--cream-dark);
  padding: 80px 2rem 100px;
  border-top: 4px solid var(--crimson);
}
.faq-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.faq-header .nosotros-body-text { margin: 0 auto; }
.faq-list {
  max-width: 800px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.open { border-color: var(--crimson); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  transition: background 0.2s ease;
}
.faq-question:hover { background: rgba(178,34,34,0.03); }
.faq-icon { flex-shrink: 0; color: var(--crimson); transition: transform 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-item.open .faq-question { color: var(--crimson); background: rgba(178,34,34,0.03); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.3rem;
  border-top: 0px solid var(--crimson);
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0.8rem 1.3rem 1.2rem;
  border-top: 1px solid rgba(178,34,34,0.15);
}
.faq-answer p { font-size: 0.86rem; color: rgba(27,43,94,0.72); line-height: 1.75; }

.faq-cta {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 2.5rem;
  border-top: 1px solid var(--cream-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.faq-cta p { font-size: 0.9rem; color: rgba(27,43,94,0.6); }

/* Responsive */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card--director { grid-column: span 2; }
}
@media (max-width: 768px) {
  .welcome-block { grid-template-columns: 1fr; gap: 2rem; padding: 60px 1.5rem; }
  .founder-card { position: static; }
  .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card--director { grid-column: span 1; flex-direction: column !important; }
  .team-card--director .team-photo-placeholder { width: 100%; height: 160px; }
}


/* ══════════════════════════════════════
   CERTIFICACIONES SECTION
══════════════════════════════════════ */
.cert-section {
  background: #EEF2F9;
  padding: 100px 2rem 0;
}

/* Header */
.cert-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 5rem;
}
.cert-header .section-tag-dark { color: var(--crimson); }
.cert-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.cert-divider { width: 50px; height: 3px; background: var(--crimson); margin: 0.8rem auto 1.5rem; }
.cert-subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(27,43,94,0.65);
  line-height: 1.75;
}


/* Authority badge — institutional credential in header */
.cert-authority-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  background: var(--white);
  border: 1px solid rgba(27,43,94,0.12);
  border-left: 4px solid var(--navy);
  border-radius: 4px;
  padding: 0.9rem 1.4rem;
  box-shadow: 0 2px 12px rgba(27,43,94,0.07);
  flex-wrap: wrap;
}
.cert-authority-icon {
  width: 40px;
  height: 40px;
  background: #E8EEF8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.cert-authority-text {
  flex: 1;
  min-width: 200px;
}
.cert-authority-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.cert-authority-text span {
  font-size: 0.72rem;
  color: rgba(27,43,94,0.55);
  font-weight: 400;
}
.cert-authority-seal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(180,100,0,0.1);
  color: #b46400;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

/* Group wrapper */
.cert-group { max-width: 1200px; margin: 0 auto; padding-bottom: 80px; }
.cert-group--coming { padding-bottom: 0; background: none; }

/* Group label row */
.cert-group-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.cert-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.cert-group-badge--available { background: rgba(26,107,60,0.9); color: #7effc0; }
.cert-group-badge--coming { background: rgba(178,34,34,0.25); color: rgba(255,255,255,0.6); border: 1px solid rgba(178,34,34,0.3); }
.cert-group-badge--advice { background: var(--navy); color: var(--white); }
.cert-group-line { flex: 1; height: 1px; background: rgba(27,43,94,0.12); }

/* ── Available certs — full horizontal cards ── */
.cert-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cert-card {
  background: var(--white);
  border: 1px solid rgba(27,43,94,0.1);
  border-radius: 6px;
  display: flex;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.cert-card:hover {
  border-color: rgba(178,34,34,0.35);
  background: #fafafa;
}

/* Left panel — provider identity */
.cert-card-left {
  width: 160px;
  flex-shrink: 0;
  background: #E8EEF8;
  border-right: 1px solid rgba(27,43,94,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.8rem 1rem;
}
.cert-logo-placeholder {
  width: 70px;
  height: 70px;
  background: rgba(27,43,94,0.1);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(27,43,94,0.12);
}
.cert-logo-placeholder span {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27,43,94,0.4);
}
.cert-provider-info { text-align: center; }
.cert-provider-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(27,43,94,0.45);
  margin-bottom: 0.2rem;
}
.cert-provider-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.cert-provider-type {
  font-size: 0.62rem;
  color: var(--crimson);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Right body */
.cert-card-body {
  flex: 1;
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.cert-card-header-text {}
.cert-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cert-type-tag {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--crimson);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 2px;
}
.cert-full-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27,43,94,0.4);
}
.cert-description {
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(27,43,94,0.7);
  flex: 1;
}

/* Detail bullets */
.cert-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.cert-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(27,43,94,0.55);
  font-weight: 700;
}
.cert-detail-item svg { color: var(--crimson); opacity: 0.7; flex-shrink: 0; }

/* Card footer: price + CTA */
.cert-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(27,43,94,0.08);
  gap: 1rem;
  flex-wrap: wrap;
}
.cert-price {}
.cert-price-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(27,43,94,0.4);
  margin-bottom: 0.15rem;
}
.cert-price-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.btn-cert {
  padding: 0.6rem 1.6rem;
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(27,43,94,0.25);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-cert:hover {
  background: var(--crimson);
  border-color: var(--crimson);
}

/* ── Coming soon — Cambridge cards ── */
.cert-coming-intro {
  font-size: 0.9rem;
  color: rgba(27,43,94,0.6);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 2rem;
}
.cert-coming-intro strong { color: var(--navy); }

.cert-coming-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.cert-coming-card {
  background: var(--white);
  border: 1px solid rgba(27,43,94,0.1);
  border-radius: 6px;
  padding: 1.6rem;
  position: relative;
  opacity: 0.75;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}
.cert-coming-card:hover {
  opacity: 1;
  border-color: rgba(178,34,34,0.25);
}

/* "Próximamente" tag top-right */
.cert-coming-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(178,34,34,0.1);
  color: var(--crimson);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 6px 0 4px;
  border-left: 1px solid rgba(178,34,34,0.2);
  border-bottom: 1px solid rgba(178,34,34,0.2);
}

.cert-coming-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-bottom: 1rem;
}
.cert-coming-logo span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(27,43,94,0.3);
}

/* Big level badge */
.cert-coming-level {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--crimson);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.cert-coming-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.cert-coming-desc {
  font-size: 0.8rem;
  color: rgba(27,43,94,0.6);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.cert-coming-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(27,43,94,0.45);
  border: 1px solid rgba(27,43,94,0.15);
  padding: 3px 8px;
  border-radius: 2px;
}

/* Notify strip */
.cert-notify-strip {
  background: rgba(178,34,34,0.06);
  border: 1px solid rgba(178,34,34,0.15);
  border-radius: 4px;
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.cert-notify-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cert-notify-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
}
.cert-notify-text span {
  font-size: 0.8rem;
  color: rgba(27,43,94,0.6);
}

@media (max-width: 900px) {
  .cert-coming-grid { grid-template-columns: 1fr; }
  .cert-card { flex-direction: column; }
  .cert-card-left { width: 100%; flex-direction: row; padding: 1.2rem 1.5rem; gap: 1rem; border-right: none; border-bottom: 1px solid rgba(27,43,94,0.08); }
  .cert-notify-strip { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .cert-coming-grid { grid-template-columns: 1fr; }
}


/* FOOTER → ahora vive en site-footer.css (compartido por todas las páginas) */

/* ══════════════════════════════════════
   CONTACT / INSCRIPTION SECTION
══════════════════════════════════════ */
.contact-section {
  background: var(--navy);
  padding: 100px 2rem;
}
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

/* Left info panel */
.contact-left .section-tag-dark { color: var(--silver); }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}
.contact-divider { width: 50px; height: 3px; background: var(--crimson); margin: 0.8rem 0 1.5rem; }
.contact-desc { font-size: 0.92rem; color: rgba(255,255,255,0.55); line-height: 1.75; margin-bottom: 2rem; }

/* Contact detail list */
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2rem; }
.contact-details li { display: flex; align-items: flex-start; gap: 12px; }
.contact-detail-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--crimson);
  flex-shrink: 0;
}
.contact-detail-label { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 0.15rem; }
.contact-detail-value { font-size: 0.88rem; font-weight: 700; color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s ease; }
.contact-detail-value:hover { color: var(--white); }
.contact-detail-person { display: block; font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.5); margin-top: 0.15rem; }

/* Admissions badge */
.contact-admissions-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(26,107,60,0.2);
  color: #7effc0;
  border: 1px solid rgba(126,255,192,0.2);
  padding: 6px 14px;
  border-radius: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Right form card */
.contact-form-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.contact-form-header {
  background: var(--navy-dark);
  padding: 1.3rem 1.8rem;
  border-bottom: 3px solid var(--crimson);
}
.contact-form-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.2rem;
}
.contact-form-subtitle { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* Form fields */
.contact-form { padding: 1.8rem; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form-group { margin-bottom: 1.1rem; }
.contact-form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.contact-form-group .required { color: var(--crimson); margin-left: 2px; }
.contact-form-group input,
.contact-form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(27,43,94,0.15);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form-group input:focus,
.contact-form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,43,94,0.08);
}

.btn-contact-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--crimson);
  color: var(--white);
  border: 2px solid var(--crimson);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.3rem;
}
.btn-contact-submit:hover { background: transparent; color: var(--crimson); }

.contact-form-privacy {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(27,43,94,0.45);
  margin-top: 0.8rem;
  line-height: 1.5;
}

/* Success message */
.contact-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}
.contact-success.visible { display: block; }
.contact-success h4 { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); margin: 1rem 0 0.5rem; }
.contact-success p { font-size: 0.88rem; color: rgba(27,43,94,0.6); line-height: 1.6; }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-form-row { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════
   PLATFORM TEASER SECTION
══════════════════════════════════════ */
.platform-teaser {
  background: var(--navy-dark);
  padding: 100px 2rem;
}
.platform-teaser-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.platform-teaser-text .section-tag-dark { color: var(--silver); }
.platform-teaser-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}
.platform-teaser-divider { width: 50px; height: 3px; background: var(--crimson); margin: 0.8rem 0 1.4rem; }
.platform-teaser-desc { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.75; margin-bottom: 1.8rem; }
.platform-tools { display: flex; gap: 1rem; flex-wrap: wrap; }
.platform-tool {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
}
.platform-tool-icon { font-size: 1rem; }

/* Mock portal card */
.platform-teaser-visual { display: flex; justify-content: center; }
.platform-teaser-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.ptc-header { display: flex; gap: 5px; margin-bottom: 1.2rem; }
.ptc-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(27,43,94,0.1); }
.ptc-level-badge {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 900;
  color: var(--crimson); opacity: 0.2;
  line-height: 1; margin-bottom: 0.3rem;
}
.ptc-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(27,43,94,0.35); margin-bottom: 0.7rem; }
.ptc-tabs { display: flex; gap: 0.3rem; margin-bottom: 1rem; }
.ptc-tab { padding: 3px 10px; border-radius: 2px; font-size: 0.68rem; font-weight: 700; background: rgba(27,43,94,0.06); color: rgba(27,43,94,0.4); }
.ptc-tab.active { background: var(--navy); color: var(--white); }
.ptc-lock {
  display: flex; align-items: center; gap: 8px;
  background: #EEF2F9; border-radius: 4px; padding: 0.7rem 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.75rem; font-weight: 700; color: rgba(27,43,94,0.5);
}
.ptc-lock svg { opacity: 0.4; flex-shrink: 0; }
.ptc-resources { display: flex; flex-direction: column; gap: 0.4rem; }
.ptc-resource {
  padding: 0.55rem 0.8rem;
  background: rgba(27,43,94,0.04);
  border: 1px solid rgba(27,43,94,0.07);
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(27,43,94,0.35);
  filter: blur(1.5px);
  /* Blurred to suggest locked content */
}

@media (max-width: 900px) {
  .platform-teaser-inner { grid-template-columns: 1fr; gap: 3rem; }
  .platform-teaser-visual { display: none; }
}


/* Real logos inside certification cards */
.cert-logo-placeholder--img {
  background: var(--white);
  padding: 6px;
}
.cert-provider-logo {
  width: 58px;
  height: auto;
  object-fit: contain;
}
.cert-coming-logo-img {
  width: 80px;
  height: auto;
  object-fit: contain;
  opacity: 0.35;
}
.cert-coming-logo-img--pearson {
  width: 70px;
}
/* Authority badge — wider container for logo */
.cert-authority-seal--ok {
  background: rgba(22,128,60,0.1);
  color: #16803c;
}
.cert-authority-icon--img {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
}


/* ══════════════════════════════════════
   MOBILE STYLES (max-width: 768px)
══════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── HERO ── */
  .hero-content { padding: 2rem 1.2rem 4rem; }
  .hero-values { flex-direction: column; gap: 0.4rem; }
  .hero-value-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding: 0.5rem 1rem; }
  .hero-value-item:first-child { border-top: none; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .hero-institution-name { font-size: 1.4rem; letter-spacing: 0.15em; }

  /* ── STAT BAR ── */
  .stat-bar { padding: 1.5rem 1rem; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); min-width: 50%; padding: 0.8rem; }
  .stat-item:last-child { border-bottom: none; }

  /* ── CURSOS ── */
  .courses-section { padding: 60px 1rem 0; }
  .courses-header { margin-bottom: 2.5rem; }
  .programme-hero { grid-template-columns: 1fr; gap: 2rem; padding: 0; }
  .pricing-card { position: static; }
  .courses-grid { grid-template-columns: 1fr; padding-bottom: 2rem; }
  .course-card { flex-direction: column; }
  .card-accent {
    width: 100%;
    height: 60px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 1.2rem;
    gap: 0.8rem;
  }
  .card-level-sub { writing-mode: horizontal-tb; transform: none; font-size: 0.6rem; }
  .card-level-badge { font-size: 1.1rem; }
  .card-level-badge::after { display: none; }
  .card-featured-tag { left: 0; width: 55%; }
  .niveles-header { padding: 2rem 1rem 0; }

  /* ── NOSOTROS ── */
  .welcome-block { grid-template-columns: 1fr; gap: 2rem; padding: 60px 1rem 40px; }
  .founder-card { position: static; }
  .mission-vision-grid { gap: 0.8rem; }

  /* ── TEAM — Accordion on mobile ── */
  .team-block { padding: 60px 1rem; }
  .team-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .team-card--director { grid-column: span 1; flex-direction: column !important; }
  .team-card--director .team-photo-placeholder { width: 100%; height: 120px; }

  /* Hide photo placeholder on mobile for non-director cards */
  .team-card:not(.team-card--director) .team-photo-placeholder { display: none; }

  /* Accordion style for team cards on mobile */
  .team-card { cursor: pointer; }
  .team-card-body { padding: 0; }
  .team-card-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    width: 100%;
  }
  .team-card-trigger .team-role { margin-bottom: 0; }
  .team-card-trigger .team-name { margin-bottom: 0; }
  .team-card-chevron {
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }
  .team-card.tc-open .team-card-chevron { transform: rotate(180deg); }
  .team-card-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.1rem;
  }
  .team-card.tc-open .team-card-detail {
    max-height: 200px;
    padding: 0 1.1rem 1rem;
  }
  .team-card-detail .team-bio { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

  /* ── BLOG ── */
  .blog-block { padding: 50px 1rem; }
  .blog-grid { grid-template-columns: 1fr; }

  /* ── FAQ ── */
  .faq-block { padding: 50px 1rem 60px; }
  .faq-cta { flex-direction: column; text-align: center; }

  /* ── CERTIFICACIONES ── */
  .cert-section { padding: 60px 1rem 0; }
  .cert-card { flex-direction: column; }
  .cert-card-left { width: 100%; flex-direction: row; padding: 1rem 1.2rem; border-right: none; border-bottom: 1px solid rgba(27,43,94,0.08); gap: 1rem; }
  .cert-coming-grid { grid-template-columns: 1fr; }
  .cert-notify-strip { flex-direction: column; text-align: center; }
  .cert-authority-badge { flex-direction: column; text-align: center; gap: 0.8rem; }

  /* ── PLATFORM TEASER ── */
  .platform-teaser { padding: 60px 1rem; }
  .platform-teaser-inner { grid-template-columns: 1fr; gap: 2rem; }
  .platform-teaser-visual { display: none; }

  /* ── CONTACT ── */
  .contact-section { padding: 60px 1rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-form-row { grid-template-columns: 1fr; }


}

/* Team card accordion — desktop always shows bio */
@media (min-width: 769px) {
  .team-card-trigger { cursor: default; }
  .team-card-chevron { display: none; }
  .team-card-detail { max-height: none !important; padding: 0 1.1rem 1rem !important; overflow: visible; }
  .team-card-trigger { padding: 1.1rem 1.1rem 0.3rem; }
}


/* ── Mobile course cards — compact horizontal strip ── */
@media (max-width: 768px) {
  .course-card {
    flex-direction: row;
    min-height: auto;
  }
  .card-accent {
    width: 64px;
    min-width: 64px;
    height: auto;
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 0;
    gap: 0.3rem;
  }
  .card-level-badge { font-size: 0.95rem; }
  .card-level-sub {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.48rem;
    letter-spacing: 0.1em;
  }
  .card-level-badge::after { display: none; }
  .card-body {
    padding: 0.7rem 0.8rem 0.5rem;
    gap: 0.3rem;
  }
  .card-title { font-size: 0.9rem; margin-bottom: 0; }
  .card-cefr { font-size: 0.58rem; }
  .card-description { display: none; } /* hide long description on mobile */
  .card-for { padding: 0.25rem 0.5rem; }
  .for-label { font-size: 0.58rem; }
  .for-text { font-size: 0.68rem; }
  .card-meta { padding: 0.4rem 0 0; }
  .meta-label { font-size: 0.55rem; }
  .meta-value { font-size: 0.8rem; }
  .card-package-note { font-size: 0.62rem; }
  .card-footer { padding: 0 0.8rem 0.7rem; }
  .btn-card { padding: 0.5rem; font-size: 0.65rem; }
  .course-card.featured .card-body { padding-top: 1.4rem; }
  .card-featured-tag { font-size: 0.52rem; padding: 3px 8px 3px 8px; }
}

/* Páginas internas: deja espacio para el menú fijo de arriba */
.page-main { padding-top: 80px; }

/* Resumen de cursos en la página de inicio */
.courses-teaser { padding-bottom: 100px; }
.courses-teaser .courses-header { margin-bottom: 0; }
.courses-teaser .btn { margin-top: 2rem; }
@media (max-width: 768px) { .courses-teaser { padding-bottom: 60px; } }

/* Resumen de certificaciones en la página de inicio */
.cert-teaser { padding-bottom: 100px; }
.cert-teaser .btn { margin-top: 2rem; }
@media (max-width: 768px) { .cert-teaser { padding-bottom: 60px; } }

/* Resumen de Nosotros en la página de inicio (fondo blanco para alternar) */
.home-teaser--nosotros { background: var(--white); }
