/* ============================================================
   SPECIAL EVENTS — special_events.css
   Agregar en static/ y linkar desde special_events_hall.html
   y main_hall.html
   ============================================================ */

/* ── Banner en main hall ──────────────────────────────────── */

.eventos-banner-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 4rem;
  margin-top: 28px;
}

.eventos-banner {
  background: linear-gradient(135deg, #e85000 0%, #ff7518 50%, #f06000 100%);
  border-radius: 14px;
  padding: 20px 32px;
  min-height: 110px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: filter 180ms ease, box-shadow 180ms ease, transform 150ms ease;
  box-shadow: 0 4px 20px rgba(232, 80, 0, 0.4);
  cursor: pointer;
  border: none;
  position: relative;   /* needed to contain the absolute canvas */
  overflow: hidden;     /* clip particles to rounded corners */
}

.eventos-banner:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 32px rgba(200, 75, 0, 0.48);
  transform: translateY(-2px);
}

.eventos-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  color: #fff;
}

.eventos-banner-text {
  flex: 1;
}

.eventos-banner-text h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.eventos-banner-text p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  margin: 0;
}

.eventos-banner-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.eventos-banner-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, transform 150ms ease, box-shadow 180ms ease;
}

.eventos-banner:hover .eventos-banner-badge {
  background: #fff;
  color: #c84b00;
  transform: scale(1.06);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.eventos-banner-badge-cta {
  background: rgba(255, 255, 255, 0.9);
  color: #c84b00;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 180ms ease, transform 150ms ease, box-shadow 180ms ease;
}

.eventos-banner:hover .eventos-banner-badge-cta {
  background: #fff;
  transform: scale(1.09);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.eventos-banner-arrow {
  color: rgba(255, 255, 255, 0.75);
  font-size: 2rem;
  flex-shrink: 0;
  transition: transform 200ms ease, color 180ms ease;
}

.eventos-banner:hover .eventos-banner-arrow {
  transform: translateX(8px);
  color: #fff;
}

.eventos-banner-posters {
  display: flex;
  align-items: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.eventos-banner-thumb {
  width: 52px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  margin-left: -14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 180ms ease;
}

.eventos-banner-thumb:first-child {
  margin-left: 0;
}

.eventos-banner:hover .eventos-banner-thumb {
  transform: translateY(-3px);
}


/* ── Special Events Hall layout ───────────────────────────── */

.se-page {
  min-height: 100vh;
  background: url("assets/bg-login.jpg");
  background-size: fill;
  background-position: center;
  background-repeat: repeat;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}


.se-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.se-heading {
  text-align: center;
  margin-bottom: 40px;
}

.se-heading h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #033505;
  margin: 0 0 8px;
}

.se-heading p {
  color: #555;
  font-size: 0.95rem;
  font-style: italic;
  margin: 0;
}

/* ── Card grid ────────────────────────────────────────────── */

.se-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.se-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.se-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.se-card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.se-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(3, 30, 3, 0.88) 0%,
    rgba(3, 30, 3, 0.45) 45%,
    transparent 70%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  gap: 8px;
  transition: background 200ms ease;
}

.se-card:hover .se-card-overlay {
  background: linear-gradient(
    to top,
    rgba(3, 30, 3, 0.94) 0%,
    rgba(3, 30, 3, 0.55) 50%,
    rgba(0, 0, 0, 0.08) 75%
  );
}

.se-card-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.se-card-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  margin: 0;
}

.se-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.se-card-date {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.se-status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.se-status-badge.proximo {
  background: #1a4a8a;
  color: #cce0ff;
}

.se-status-badge.convocatoria_abierta {
  background: #046c1c;
  color: #c8f5d4;
}

.se-status-badge.en_curso {
  background: #7c3d0a;
  color: #fde8c8;
}

.se-status-badge.finalizado {
  background: #3a3a3a;
  color: #c8c8c8;
}

.se-card-cta {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms ease, transform 200ms ease, background 150ms ease;
}

.se-card:hover .se-card-cta {
  opacity: 1;
  transform: translateY(0);
}

.se-card-cta:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* Empty state */
.se-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: #777;
}

.se-empty p {
  font-size: 1rem;
  margin: 0;
}


/* ── Modal ────────────────────────────────────────────────── */

.se-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: seBackdropIn 250ms ease;
}

.se-modal-backdrop.open {
  display: flex;
}

@keyframes seBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.se-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 980px;
  width: 95%;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 44% 1fr;
  animation: seModalIn 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

@keyframes seModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);     }
}

.se-modal-poster-col {
  background: #111;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.se-modal-poster-col > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.se-modal-info-col {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.se-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  transition: background 150ms ease;
  z-index: 10;
}

.se-modal-close:hover {
  background: rgba(0, 0, 0, 0.16);
}

.se-modal-status {
  display: inline-block;
  align-self: flex-start;
}

.se-modal-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #033505;
  margin: 0;
  line-height: 1.2;
}

.se-modal-subtitle {
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
  margin: -8px 0 0;
}

.se-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.se-modal-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  color: #333;
}

.se-modal-meta-label {
  color: #777;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 82px;
  padding-top: 2px;
}

.se-modal-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0;
}

.se-modal-description {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.65;
  margin: 0;
}

.se-modal-co-organizers {
  font-size: 0.78rem;
  color: #888;
  margin: 0;
}

.se-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

@keyframes seBtnPulse {
  0%   { box-shadow: 0 4px 18px rgba(200, 75, 0, 0.45); }
  50%  { box-shadow: 0 4px 28px rgba(200, 75, 0, 0.72); }
  100% { box-shadow: 0 4px 18px rgba(200, 75, 0, 0.45); }
}

.se-btn-primary {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #c84b00 0%, #e8650a 100%);
  color: #fff;
  padding: 16px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  animation: seBtnPulse 2.4s ease-in-out infinite;
  transition: transform 140ms ease, filter 140ms ease;
}

.se-btn-primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.1);
  animation: none;
  box-shadow: 0 8px 28px rgba(200, 75, 0, 0.55);
}

.se-btn-primary:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.95);
}

.se-btn-secondary {
  display: block;
  text-align: center;
  background: transparent;
  color: #033505;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1.5px solid #033505;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 160ms ease;
}

.se-btn-secondary:hover {
  background: #f0f7f0;
  color: #033505;
  text-decoration: none;
}


/* ── Responsive ───────────────────────────────────────────── */

@keyframes seScrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

.se-scroll-hint {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(3, 53, 5, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  animation: seScrollBounce 1.4s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 300ms ease;
  opacity: 1;
}

.se-scroll-hint.hidden {
  opacity: 0;
}

.se-btn-poster-mobile {
  display: block;
  text-align: center;
  background: transparent;
  color: #555;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 150ms ease, color 150ms ease;
}

.se-btn-poster-mobile:hover {
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
}


/* ── Card poster focus ────────────────────────────────────── */

.poster-focus-right {
  object-position: right center;
}


/* ── Info col fade transition ─────────────────────────────── */

.se-modal-info-col {
  transition: opacity 150ms ease;
}

.se-modal-info-col.info-fading {
  opacity: 0;
}


/* ── Poster carousel ──────────────────────────────────────── */

.poster-carousel {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#seModalCarouselImages {
  width: 100%;
  height: 100%;
}

#seModalCarouselImages img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 150ms ease;
  padding: 0;
}

.poster-nav-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.poster-nav-left  { left:  10px; }
.poster-nav-right { right: 10px; }

.poster-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  background: #111;
  flex-shrink: 0;
}

.poster-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #e8650a;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 150ms ease;
}

.poster-dot.active {
  background: #e8650a;
}


/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 700px) {
  .se-grid {
    grid-template-columns: 1fr;
  }

  .se-card {
    aspect-ratio: 4 / 5;
  }

  .se-modal {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  .se-modal-poster-col {
    border-radius: 16px 16px 0 0;
    max-height: 280px;
  }

  .poster-nav-arrow {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .se-modal-info-col {
    padding: 24px 20px;
  }

  .se-modal-title {
    font-size: 1.2rem;
  }

  /* ── Banner mobile fix ──────────────────────────────────── */
  .eventos-banner {
    flex-wrap: wrap;          /* allow wrapping to second row */
    padding: 16px 16px;
    gap: 12px;
    min-height: unset;
  }

  .eventos-banner-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .eventos-banner-text {
    flex: 1;                  /* take remaining space on first row */
    min-width: 0;
  }

  .eventos-banner-text h3 {
    font-size: 0.95rem;
  }

  .eventos-banner-text p {
    font-size: 0.8rem;
  }

  /* Banner mobile fix v5.2:
     Restaurar layout 2-rows del banner: row 1 [icon + text completo],
     row 2 [badges + arrow juntos].
     Las badges usan width: calc(100% - 48px) para reservar 48px al final
     del row 2 donde la flecha cabe en el mismo wrap-row. */
  .eventos-banner-badges {
    width: calc(100% - 48px);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    padding-left: 56px;
  }

  .eventos-banner-arrow {
    font-size: 1.5rem;
    flex-shrink: 0;
    align-self: center;
  }

  .eventos-banner-posters {
    display: none;
  }

  .se-btn-poster-mobile {
    display: block;
  }
}

@media (max-width: 480px) {
  .se-body {
    padding: 32px 16px 48px;
  }

  .se-heading h1 {
    font-size: 1.6rem;
  }

  /* Banner naranja en mobile pequeño: anular el indent de 56px que roba
     espacio horizontal y puede causar overflow de las badges. */
  .eventos-banner-badges {
    padding-left: 0;
  }

  /* Ribbon G2STEM en mobile pequeño: reducir label y ocultar elementos
     secundarios para evitar overflow horizontal en viewports <480px. */
  .g2stem-ribbon-label {
    font-size: 1rem;
  }

  .g2stem-ribbon-tagline,
  .g2stem-ribbon-cta-text {
    display: none;
  }
}


/* ── Eventos Pasados ──────────────────────────────────────── */

.evento-pasado {
  filter: grayscale(80%);
  opacity: 0.7;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.evento-pasado:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.eventos-pasados-title {
  text-align: center;
  color: #888;
  font-size: 1.3rem;
  font-weight: 500;
  margin: 40px 0 20px 0;
  padding-top: 30px;
  border-top: 1px solid rgba(136, 136, 136, 0.3);
}

.se-status-badge.pasado {
  background: #2e2e2e;
  color: #aaa;
}

.se-btn-primary-disabled {
  display: block;
  text-align: center;
  background: #c0c0c0;
  color: #fff;
  padding: 16px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  cursor: not-allowed;
  opacity: 0.75;
  animation: none;
  box-shadow: none;
}


/* ============================================================
   G2STEM RIBBON VERTICAL — main hall sidebar CTA
   ============================================================ */

.events-wall-wrapper {
  position: relative;
  /* min-height matches el alto del ribbon (668px) para que el wrapper conserve
     su footprint vertical aunque el ribbon esté en position: absolute.
     Esto restaura el "respiro" entre el events-wall y el footer que se
     perdió al sacar el ribbon del flujo normal. */
  min-height: 668px;
  padding-bottom: 32px;
}

/* En mobile/tablet el ribbon colapsa a horizontal y entra al flujo, así que
   el wrapper ya no necesita min-height forzado. */
@media (max-width: 1100px) {
  .events-wall-wrapper {
    min-height: 0;
    /* Padding-bottom de respaldo para que en mobile el ribbon colapsado
       tenga respiro adicional antes del events-wall, sin depender solo del
       margin-bottom del ribbon-link (que puede ser colapsado por el
       margin del primer hijo del wrapper). */
    padding-bottom: 1rem;
  }
}

.g2stem-ribbon-link {
  position: absolute;
  left: -130px;
  top: 0;
  text-decoration: none;
  color: inherit;
  z-index: 5;
  display: block;
}

.g2stem-ribbon {
  width: 110px;
  height: 668px;
  background: linear-gradient(180deg, #4a1c5c 0%, #7c2d6f 35%, #b1408a 70%, #c44d8e 100%);
  border-radius: 14px 14px 0 0;
  padding: 24px 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(124, 45, 111, 0.4);
  transition: filter 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  border: none;
  /* Bookmark V invertida pronunciada (~28px de profundidad) en el bottom */
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    50% calc(100% - 28px),
    0 100%
  );
}

.g2stem-ribbon::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px,
      rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 16px 16px;
  opacity: 0.5;
  pointer-events: none;
}

.g2stem-ribbon-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
}

.g2stem-ribbon-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  transition: transform 180ms ease, background 180ms ease;
}

.g2stem-ribbon-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: center;
}

.g2stem-ribbon-label,
.g2stem-ribbon-tagline {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.g2stem-ribbon-label {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.g2stem-ribbon-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.g2stem-ribbon-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  flex-shrink: 0;
}

.g2stem-ribbon-cta-text {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.g2stem-ribbon-cta-arrow {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  transition: transform 200ms ease, color 180ms ease;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Hover — patrón reutilizado del banner naranja */
.g2stem-ribbon:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 32px rgba(124, 45, 111, 0.55);
  transform: translateX(-2px);
}

.g2stem-ribbon:hover .g2stem-ribbon-icon {
  background: #fff;
  color: #7c2d6f;
  transform: scale(1.06);
}

.g2stem-ribbon:hover .g2stem-ribbon-cta-arrow {
  transform: rotate(180deg) translateY(-6px);
  color: #fff;
}

/* Responsive — colapsar a banner horizontal en mobile/tablet (C2) */
@media (max-width: 1100px) {
  .g2stem-ribbon-link {
    position: static;
    margin-bottom: 3rem;
    display: block;
  }

  .g2stem-ribbon {
    width: 100%;
    height: auto;
    min-height: 90px;
    padding: 16px 24px;
    flex-direction: row;
    border-radius: 14px;
    clip-path: none;
  }

  .g2stem-ribbon-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  /* Stack vertical (label arriba, tagline abajo) con texto horizontal —
     evita que ambos compitan por la misma fila y causen overflow. */
  .g2stem-ribbon-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .g2stem-ribbon-label,
  .g2stem-ribbon-tagline,
  .g2stem-ribbon-cta-text,
  .g2stem-ribbon-cta-arrow {
    writing-mode: horizontal-tb;
    transform: none;
  }

  /* Permitir wrap natural — anula el `white-space: nowrap` heredado del
     desktop que está fuera del media query (línea 951-956). */
  .g2stem-ribbon-label,
  .g2stem-ribbon-tagline {
    white-space: normal;
  }

  .g2stem-ribbon-cta {
    flex-direction: row;
    gap: 8px;
  }

  .g2stem-ribbon:hover {
    transform: translateY(-2px);
  }

  .g2stem-ribbon:hover .g2stem-ribbon-cta-arrow {
    transform: translateX(8px);
  }
}
