/* =========================
   Projects – Swipers (limpio, sin recortes)
   ========================= */

/* Contenedor Swiper: transparente, sin cromado, sin recortes */
#main .project-swiper {
  /* altura máxima configurable por carrusel */
  --maxH: clamp(200px, 36vh, 440px);

  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 1rem;

  /* contenedor “desnudo” (solo flechas/paginación) */
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0;
  overflow: visible; /* deja que las flechas respiren */
  height: auto !important; /* autoHeight en JS manda */
  box-sizing: border-box;
}

/* Alturas máximas específicas */
#swiper-ecommerce {
  --maxH: clamp(150px, 28vh, 320px);
}
#swiper-headstarter {
  --maxH: clamp(150px, 28vh, 330px);
}
#swiper-ecoventus {
  --maxH: clamp(200px, 36vh, 460px);
}

/* Pista y slides: que el contenido defina el alto */
#main .project-swiper .swiper-wrapper {
  height: auto !important;
  display: flex;
  align-items: stretch;
  background: transparent !important;
}
#main .project-swiper .swiper-slide {
  height: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.15rem;
  box-sizing: border-box;
  background: transparent !important;
}

/* Imágenes: jamás recortar */
#main .project-swiper .swiper-slide img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: var(--maxH);
  object-fit: contain !important;
  object-position: center !important;

  background: transparent !important; /* sin letterbox */
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);

  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

/* Controles compactos (flechas y bullets) */
#main .project-swiper .swiper-pagination-bullets {
  bottom: 6px !important;
}
#main .project-swiper .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  opacity: 0.7;
}
#main .project-swiper .swiper-pagination-bullet-active {
  background: #fff;
  opacity: 1;
}

#main .project-swiper .swiper-button-prev,
#main .project-swiper .swiper-button-next {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}
#main .project-swiper .swiper-button-prev::after,
#main .project-swiper .swiper-button-next::after {
  font-size: 12px;
}
#main .project-swiper .swiper-button-prev:hover,
#main .project-swiper .swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.55);
}

/* Lazy (opcional) */
#main .project-swiper .swiper-lazy {
  filter: blur(2px);
}
#main .project-swiper .swiper-lazy-loaded {
  filter: none;
  transition: filter 0.25s ease;
}
/* =====================================================
   Links Row – pills con buen contraste
   ===================================================== */
.links-row {
  --lr-gap: .5rem;
  --lr-bg: rgba(255,255,255,0.04);
  --lr-border: rgba(255,255,255,0.12);
  --lr-text: #fff;
  --lr-hover: rgba(255,255,255,0.09);

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--lr-gap);
  margin: .6rem 0 0;
}

.links-row .link-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  border: 1px solid var(--lr-border);
  border-radius: 999px;
  background: var(--lr-bg);
  color: var(--lr-text);
  text-decoration: none;
  line-height: 1;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s ease, border-color .2s ease,
              transform .15s ease, box-shadow .2s ease;
  backdrop-filter: blur(2px);
  -webkit-tap-highlight-color: transparent;
}
.links-row .link-btn:hover {
  background: var(--lr-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.links-row .link-btn:active { transform: translateY(0); }
.links-row .link-btn:focus-visible {
  outline: 3px solid #61dafb;
  outline-offset: 2px;
}
.links-row .link-btn i { font-size: 1rem; line-height: 0; opacity: .95; }
.links-row.compact .link-btn { padding: .38rem .7rem; font-size: .9rem; }
.links-row.block   .link-btn { flex: 1 1 auto; justify-content: center; min-width: 180px; }

/* =========================
   Upcoming – panel compacto con fondo blanco
   ========================= */
#upcoming-projects.upcoming-compact {
  --up-scale: 1; /* ajusta si lo quieres aún más chico: .85, .75, .6... */
  margin: 0 auto 1.5rem;
  text-align: center;
  display: grid;
  place-items: center;
  padding: 0;
}

#upcoming-projects.upcoming-compact .upcoming-scale {
  font-size: calc(1rem * var(--up-scale));
  line-height: 1.3;

  width: min(640px, 92vw);
  margin: 0 auto;
  padding: calc(1rem * var(--up-scale));

  background: #fff; /* fondo blanco */
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

#upcoming-projects.upcoming-compact h2 {
  font-size: 1.6em;
  margin: 0 0 0.6em;
  line-height: 1.2;
}

#upcoming-projects.upcoming-compact ul {
  list-style: none;
  padding: 0;
  margin: 0.5em 0 0;
  font-size: 1em;
}

#upcoming-projects.upcoming-compact strong {
  font-size: 1em;
}

#upcoming-projects.upcoming-compact #appleAnimation {
  width: 5em;
  height: 5em;
  margin: 0.4em auto 0;
  background: transparent;
  display: grid;
  place-items: center;
}
#upcoming-projects.upcoming-compact #appleAnimation svg {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}

/* Legibilidad en pantallas muy pequeñas */
@media (max-width: 420px) {
  #upcoming-projects.upcoming-compact {
    --up-scale: 0.6;
  }
}
