/* ============================================================
   GEA DESIGN SYSTEM v1.1
   Customizer → Additional CSS
   Prefijo .gea- en todos los selectores.
   No modifica selectores globales del tema.
   ============================================================ */

/* --- Box-sizing encapsulado --- */
.gea-section,
.gea-section *,
.gea-block,
.gea-block * {
  box-sizing: border-box;
}

/* --- Sección a ancho completo (breakout) --- */
/* PROVISIONAL hasta validar en CMSMasters con scrollbar en distintos navegadores */
.gea-section {
  display: block;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  overflow-x: hidden;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 60px);
}

/* --- Bloque sin breakout (ancho de contenido normal) --- */
.gea-block {
  display: block;
  padding: clamp(32px, 5vw, 56px) 0;
}

/* --- Fondos de sección --- */
.gea-section--light  { background: #f9fafb; }
.gea-section--white  { background: #ffffff; }
.gea-section--border { border-bottom: 1px solid #e5e7eb; }

/* --- Contenedores centrados --- */
.gea-container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.gea-container--narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


/* ============================================================
   COMPONENTE: Navegación por categorías
   ============================================================ */

.gea-category-nav {
  all: initial;
  display: block;
}

.gea-category-nav__label {
  display: block;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.gea-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.gea-pill {
  display: inline-block;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #555555;
  background: #ffffff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  line-height: 1.2;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.gea-pill:hover {
  color: #1a7a75;
  border-color: #1a7a75;
}

.gea-pill:focus-visible {
  outline: 2px solid #1a7a75;
  outline-offset: 3px;
}

.gea-pill--active {
  font-weight: 700;
  color: #ffffff;
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.gea-pill--active:hover {
  color: #ffffff;
  background: #333333;
  border-color: #333333;
}

@media (max-width: 767px) {
  .gea-category-nav__label {
    display: none;
  }
  .gea-pill-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .gea-pill {
    text-align: center;
    font-size: 13px;
  }
}


/* ============================================================
   COMPONENTE: Intro de categoría
   ============================================================ */

.gea-intro {
  all: initial;
  display: block;
  text-align: center;
}

.gea-intro__eyebrow {
  display: block;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 16px !important;
}

.gea-intro__kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px !important;
  border-left: 3px solid #3dbfae;
  padding-left: 18px;
}

.gea-intro__kicker-num {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: clamp(52px, 7vw, 72px);
  font-weight: 800;
  color: #1a7a75;
  line-height: 1;
}

.gea-intro__kicker-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.gea-intro__kicker-label {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  line-height: 1;
}

.gea-intro__kicker-sub {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 400;
  color: #6b7280;
  line-height: 1.4;
}

.gea-intro__body {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(17px, 2vw, 19px);
  color: #555555;
  line-height: 1.75;
  margin: 0 !important;
}

.gea-intro__body + .gea-intro__body {
  margin-top: 14px !important;
}

/* Semibold encapsulado: refuerza el remate editorial sin alterar .gea-text-mix em global */
.gea-intro__body.gea-text-mix em {
  font-weight: 600;
}

@media (max-width: 767px) {
  .gea-intro { text-align: left; }
  .gea-intro__body + .gea-intro__body { margin-top: 8px !important; }
}


/* ============================================================
   COMPONENTE: Grid de actividades
   ============================================================ */


.gea-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(12px, 2vw, 20px);
}

.gea-card:nth-child(4) {
  grid-column: 2 / span 2;
}

@media (max-width: 767px) {
  .gea-grid {
    grid-template-columns: 1fr;
  }
  .gea-card,
  .gea-card:nth-child(4) {
    grid-column: span 1;
  }
}

.gea-card {
  all: initial;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  position: relative;
  grid-column: span 2;
}

.gea-card__image {
  display: block;
  position: relative;
  height: 200px;
  overflow: hidden;
}

/* Imagen real de contenido — semántica, accesible e indexable */
.gea-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gea-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.65));
}

.gea-card__label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Reemplazar la regla actual de .gea-card__image > p por estas dos: */
.gea-card__image > p {
  margin: 0;
  padding: 0;
}
.gea-card__image > p:first-child {
  display: block;
  line-height: 0;
  font-size: 0;
  height: 100%;
}

.gea-card__badge {
  position: absolute;
  top: 18px;
  right: -30px;
  z-index: 2;
  width: 120px;
  text-align: center;
  transform: rotate(45deg);
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: #f59e0b;
  padding: 5px 0;
  border-radius: 0;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.gea-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
}

/* H3 interno de componente: escala propia, no hereda Theme Fonts global */
.gea-card h3.gea-card__title {
  display: block;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.3;
  margin: 0 0 8px !important;
  padding: 0;
}

/* Acento editorial interno de card: solo para uso dentro de .gea-card__title */
.gea-card__title-accent {
  font-family: inherit;
  font-size: inherit;
  font-style: italic;
  font-weight: 600;
  color: #1a7a75;
}

.gea-card__text {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: #6b7280;
  line-height: 1.65;
  flex: 1;
  margin: 0 0 14px !important;
}

/* Este patrón se reutiliza puntualmente como CTA editorial fuera de cards.
   Si aparece un segundo uso externo, extraer a utilidad global .gea-link-arrow. */
.gea-card__link {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a7a75 !important;
  text-decoration: none;
  transition: color .2s ease;
}

.gea-card__link:hover {
  color: #155f5a !important;
}

.gea-card__link:focus-visible {
  outline: 2px solid #1a7a75;
  outline-offset: 3px;
}


/* ============================================================
   RECURSOS EDITORIALES REUTILIZABLES
   Opcionales. Usar con criterio para crear ritmo y jerarquía
   en puntos concretos, no de forma sistemática.
   ============================================================ */

/* Etiqueta en mayúsculas encima de un heading */
.gea-eyebrow {
  display: block;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a7a75;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* Línea editorial en cursiva debajo de un heading */
.gea-subtitle {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(15px, 1.6vw, 17px);
  font-style: italic;
  font-weight: 400;
  color: #6b7280;
  margin: 6px 0 0;
  line-height: 1.5;
}

/* Fragmento inline en color corporativo */
.gea-highlight {
  color: #1a7a75;
}

/* Heading con mezcla tipográfica: em en teal cursiva, strong en negro */
.gea-text-mix em {
  font-style: italic;
  color: #1a7a75;
}

.gea-text-mix strong {
  font-weight: 700;
  color: #1a1a1a;
}

/* Subrayado gráfico en teal claro — acento visual sin cambiar color del texto */
.gea-accent {
  background-image: linear-gradient(#3dbfae, #3dbfae);
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 4px;
}

/* Variantes para fondo oscuro */
.gea-subtitle.gea-subtitle--light {
  color: #D9E1DF;
  text-align: center;
}

.gea-eyebrow--light {
  color: #3dbfae;
}

.gea-subtitle.gea-subtitle--white {
  color: #ffffff;
  text-align: center;
  font-size: clamp(20px, 2.2vw, 25px);
}


/* ============================================================
   COMPONENTE: ¿Por qué Gea? (bloques editoriales alternados)
   ============================================================ */

/* Contenedor de texto en bloques 1 y 2 */
.gea-why-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
}

/* Párrafo de los bloques 1 y 2 sobre fondo oscuro.
   Tipografía (familia, tamaño, line-height) hereda Theme Fonts. */
.gea-why-body {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* Bloque 3 — cierre emocional
   Background image gestionada por Content Composer en el Row.
   Section ID del Row: closerrow */

/* Establece stacking context y altura mínima */
#closerrow {
  position: relative;
  min-height: 440px;
}

/* Overlay sobre la fotografía de fondo del Row */
#closerrow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.62), rgba(0,0,0,0.78));
  z-index: 0;
}

/* Levanta el contenido interno de CMSMasters por encima del overlay */
#closerrow .cmsmasters_row_outer_parent {
  position: relative;
  z-index: 1;
}

.gea-closer__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 60px) clamp(24px, 4vw, 48px);
}

/* Excepción tipográfica deliberada: H3 editorial protagonista.
   No redefine el H3 global — aplica únicamente dentro de .gea-closer. */
.gea-closer__title {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  margin: 0 0 20px !important;
  padding: 0;
}

/* Em dentro del título del closer: teal claro (más legible que #1a7a75 sobre foto oscura) */
.gea-closer__title.gea-text-mix em {
  color: #3dbfae;
}

/* Párrafo del bloque 3 sobre foto con overlay.
   Tipografía hereda Theme Fonts. */
.gea-closer__body {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.gea-closer__body strong {
  color: #ffffff;
  font-weight: 600;
}

/* ============================================================
   COMPONENTE: Botones
   Base compartida + modificadores de color.
   Variantes disponibles:
   --outline-teal, --solid-teal, --solid-white, --outline-white
   ============================================================ */

.gea-btn {
  display: inline-block;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 12px 28px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}

.gea-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.gea-btn--outline-teal {
  color: #1a7a75;
  background: transparent;
  border-color: #1a7a75;
}
.gea-btn--outline-teal:hover { background: #1a7a75; color: #ffffff; border-color: #1a7a75; }

.gea-btn--solid-teal {
  color: #ffffff;
  background: #1a7a75;
  border-color: #1a7a75;
}
.gea-btn--solid-teal:hover { background: #155f5a; border-color: #155f5a; color: #ffffff; }

.gea-btn--solid-white {
  color: #1a7a75;
  background: #ffffff;
  border-color: #ffffff;
}
.gea-btn--solid-white:hover { background: #f0faf9; border-color: #f0faf9; color: #1a7a75; }

.gea-btn--outline-white {
  color: #ffffff;
  background: transparent;
  border-color: #ffffff;
}
.gea-btn--outline-white:hover { background: rgba(255,255,255,0.12); color: #ffffff; border-color: #ffffff; }

/* Contenedor de grupo de botones */
.gea-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* FORMACIÓN — CTA botón centrado */
.gea-training-cta {
  text-align: center;
  margin-top: 28px;
}
.gea-training-cta p {
  margin: 0;
  padding: 0;
}


/* ============================================================
   BLOQUE: Formación profesional relacionada
   ============================================================ */

/* H2 manual con escala reducida respecto al H2 global (42px → 34px).
   Solo font-size; resto hereda de Theme Fonts. */
.gea-training-title {
  font-size: 34px;
}

@media (max-width: 767px) {
  .gea-training-title {
    font-size: 26px;
  }
}

/* Especificidad reforzada para teal en em sobre H2 con color de tema */
.gea-training-title.gea-text-mix em {
  color: #1a7a75;
  text-decoration: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='6' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M0,4 C8,5 19,2 31,4 C43,5 52,3 64,4 C76,5 88,3 100,4' stroke='%233dbfae' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 6px;
  padding-bottom: 5px;
}

/* ============================================================
   BLOQUE: CTA Final
   ============================================================ */

/* Heading editorial sobre fondo teal.
   Em en #3dbfae — mismo patrón que .gea-closer__title y .gea-why-title. */
.gea-cta-title {
  color: #ffffff;
  font-size: 34px;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  margin: 0 0 14px !important;
  padding: 0;
}

.gea-cta-title.gea-text-mix em {
  color: #3dbfae;
}

@media (max-width: 767px) {
  .gea-cta-title {
    font-size: 30px;
  }
}


/* Recurso tipográfico de modalidades — CTA Final */
.gea-cta-modes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-align: center;
}

.gea-cta-modes__online {
  color: rgba(255,255,255,0.75);
}

.gea-cta-modes__label {
  color: #3dbfae;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .gea-cta-modes { 
  	flex-direction: row;
    gap: 0;
    justify-content: center; }
  .gea-cta-modes__presencial::after {
    content: ' | ';
    padding: 0 14px;
    color: rgba(255,255,255,0.3);
  }
}


/* UTILIDAD: #reversemobile
   Aplicar como Section ID en el Row de CMSMasters (no como clase, solo como ID).
   En desktop no hace nada — el orden de columnas se define en Content Composer.
   En móvil (≤767px) invierte el orden de las dos columnas del Row.
   Limitación: un ID es único por página. Si se necesita en varios Rows
   de la misma página, estudiar una solución reutilizable en ese momento. */
@media (max-width: 767px) {
  #reversemobile .cmsmasters_row_margin {
    display: flex;
    flex-direction: column-reverse;
  }
}

/* Color blanco para h3 manual en fondo oscuro de ¿Por qué Gea? */
.gea-why-title {
  color: #ffffff;
}

/* Em en teal claro sobre fondo oscuro */
.gea-why-title.gea-text-mix em {
  color: #3dbfae;
}

@media (max-width: 767px) {
  .gea-why-text {
    padding: clamp(16px, 4vw, 24px);
  }
  #closerrow {
    min-height: 320px;
  }
}

/* CODA EDITORIAL */
.gea-coda {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  max-width: 600px;
  margin-top: 40px;
  padding-left: 20px;
  border-left: 4px solid #3dbfae;
}

/* BLOQUE RESEÑAS */
.gea-reviews-section,
.gea-reviews-section * { box-sizing: border-box; }

.gea-reviews-section {
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 60px);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Neutralizar padding-bottom global del tema sobre <p> */
.gea-reviews-section p         { padding: 0; }
.gea-reviews-section p:empty   { display: none; }

/* Cabecera */
.gea-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.gea-reviews-header__h2 {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: #1a1a1a !important;
  line-height: 1.2;
  margin: 8px 0 0 !important;
  padding: 0;
}

/* Badge Google */
.gea-reviews-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}
.gea-reviews-badge img { 
  display: block;
  width: 100px;
  height: auto; 
}
.gea-reviews-badge__rating {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}
.gea-reviews-badge__stars { color: #f59e0b; }
.gea-reviews-badge__link {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  color: #1a7a75;
  text-decoration: none;
}
.gea-reviews-badge__link:hover { text-decoration: underline; }

/* Grid */
.gea-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Cards */
.gea-review-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.gea-review-card__quote {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: #3dbfae;
  line-height: 1;
  display: block;
}
.gea-review-card__text {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  color: #555555;
  line-height: 1.75;
  flex: 1;
  margin: 0 0 20px;
}
.gea-review-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gea-review-card__name {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.2;
}
.gea-review-card__discipline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  font-style: italic;
  color: #6b7280;
  line-height: 0;
}

/* Mobile */
@media (max-width: 767px) {
  .gea-reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }
  .gea-reviews-badge { align-items: flex-start; }
  .gea-reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .gea-review-card__text {
    font-size: 16px;
  }

  .gea-reviews-badge img {
    width: 100px;
    height: auto;
  }
}