/* ===========================
   RESET
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

  @media (max-width: 768px) {
  h1, .big-title {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 0.9rem;
  }

  h3 {
    font-size: 1.9rem;
  }

  p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  h1, .big-title {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 0.9rem;
  }

  p {
    font-size: 0.9rem;
  }
}



  .card {
      width: 100% !important;
      margin: 0 auto;
  }
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  color: #ffffff;
}

/* ===========================
   LAYOUT GENERAL
=========================== */

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: radial-gradient(circle at top, #020617 0, #02010a 55%, #000 100%);
}
.page {
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
}


.layout {
  width: 100%;
  max-width: 1200px;
  padding: 32px 24px 40px;
  margin: 0 auto;
}

/* ===========================
   HERO
=========================== */

.hero {
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, .5vw, 2.5rem);
  text-align: center;
  letter-spacing: 0.04em;
  font-family: "Raleway", sans-serif;
  font-weight: 300; /* más fino */
  color: rgba(255, 255, 255, 0.8);
}

.hero p {
  margin-top: 8px;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ===========================
   GRID DE CARDS
=========================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 130px; /* unidad base de altura */
  gap: 18px;
}

/* ===========================
   CARD – GLASS + GRANO SUTIL
=========================== */

.card {
  /* tamaño editable */
  --w: 1;
  --h: 1;

  grid-column: span var(--w);
  grid-row: span var(--h);

  position: relative;
  border-radius: 22px;

  /* base oscura */
  background: #000000;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);

  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

/* granulado sutil en escala de grises */
.card::before {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;

  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.03) 0 1px,
      transparent 1px 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.35) 0 1px,
      transparent 1px px
    );
  mix-blend-mode: soft-light;
  opacity: 0.22;
}


/* highlight muy suave arriba */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.06),
    transparent 35%
  );
  opacity: 0.7;
  pointer-events: none;
}

/* contenido siempre sobre el grano */
.card > * {
  position: relative;
  z-index: 1;
}

/* hover discreto */
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 244, 246, 0.7);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.95);
}

/* ===========================
   CONTENIDO DE CARD
=========================== */

.card__pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0);
  border: 1px solid rgba(156, 163, 175, 0.336);
}

.card__title {
  margin-top: 6px;
  font-size: 0.76rem;
  font-weight: 20;
  letter-spacing: 0.02em;
  text-align: justify;
  color: rgba(255, 255, 255, 0.9);
  max-width: auto;
}

.card__text {
  margin-top: 6px;
  font-size: 0.76rem;
  font-weight: 20;
    letter-spacing: 0.02em;
    text-align: justify;
  color: rgba(255, 255, 255, 0.9);
  max-width: auto;
}

/* ===========================
   GRADIENTES MINIMALISTAS POR CARD
   (todos en azules / grises, muy suaves)
=========================== */

.card1 {
  background:
    radial-gradient(circle at 0% 0%, rgba(148, 163, 184, 0.28), transparent 60%),
    #000000;
}

.card2 {
  background:
    radial-gradient(circle at 50% 0%, rgba(156, 163, 175, 0.32), transparent 65%),
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.35), transparent 65%),
    #000000;
}

.card3 {
  background:
    radial-gradient(circle at 0% 100%, rgba(156, 163, 175, 0.32), transparent 55%),
    #000000;
}

.card4 {
  background:
    radial-gradient(circle at 100% 0%, rgba(156, 163, 175, 0.32), transparent 55%),
    #000000;
}

.card5 {
  background:
    radial-gradient(circle at 0% 0%, rgba(156, 163, 175, 0.32), transparent 60%),
    #000000;
}

.card6 {
  background:
    radial-gradient(circle at 100% 100%, rgba(156, 163, 175, 0.32), transparent 60%),
    #000000;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .layout {
    padding: 24px 16px 28px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .card {
    grid-column: span 1 !important;
    grid-row: auto !important;
    min-height: 180px;
  }
}



/* ===========================
   PROGRESS BAR
=========================== */

.progress-wrapper {
  margin-top: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(158, 158, 158, 0.08);
  overflow: hidden;
  margin-right: 10px;
  position: relative;
}

.progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f3f4f6, #9ca3af);
  border-radius: 999px;
  opacity: 0.9;
  transition: width 2s ease-in-out;
}

.progress__number {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgb(255, 255, 255);
  min-width: 42px;
  text-align: right;
}

/* ===========================
   CAROUSEL MINIMALISTA OSCURO
=========================== */

.carousel {
    --items: 6;                     /* cantidad de imágenes */
    --carousel-duration: 35s;       /* velocidad */
    --carousel-width: min(85vw, 1200px);
    --carousel-item-width: 260px;
    --carousel-item-height: 380px;
    --carousel-item-gap: 2rem;

    position: relative;
    width: var(--carousel-width);
    height: var(--carousel-item-height);
    overflow: clip;
}

/* Fade en los laterales */
.carousel[mask] {
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10% 90%,
        transparent
    );
}

.carousel > article {
    position: absolute;
    top: 0;
    left: calc(100% + var(--carousel-item-gap));
    width: var(--carousel-item-width);
    height: var(--carousel-item-height);

    border-radius: 12px;
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 2px 6px rgba(0,0,0,0.55);

    animation: carousel-move var(--carousel-duration) linear infinite;
    will-change: transform;

    /* Delays según posición */
}
.carousel > article:nth-child(1) { --i: 0; }
.carousel > article:nth-child(2) { --i: 1; }
.carousel > article:nth-child(3) { --i: 2; }
.carousel > article:nth-child(4) { --i: 3; }
.carousel > article:nth-child(5) { --i: 4; }
.carousel > article:nth-child(6) { --i: 5; }
.carousel > article:nth-child(7) { --i: 6; }
.carousel > article:nth-child(8) { --i: 7; }

.carousel > article {
    animation-delay: calc(
        var(--carousel-duration) / var(--items) * var(--i) * -1
    );
}

/* IMÁGENES */
.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel {
    margin-top: clamp(30px, 4vw, 60px);
    margin-bottom: clamp(40px, 6vw, 100px);
}



/* Animación */
@keyframes carousel-move {
    100% {
        transform: translateX(
            calc(
                (var(--items) * (var(--carousel-item-width) + var(--carousel-item-gap))) * -1
            )
        );
    }
}


.carousel-btn-container {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.carousel-btn {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(0, 0, 0, 0.08);
  color: #f1f5f9;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.144);
  text-decoration: none;
  font-weight: 500;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: all 0.25s ease;
  cursor: pointer;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.carousel-btn:active {
  transform: scale(0.96);
}
