/*
 * RODAZUL – hoja de estilos global
 *
 * Esta hoja de estilos define la apariencia y el comportamiento de
 * los diferentes componentes de todas las páginas del sitio.
 * Se ha diseñado para ser ligera, moderna y fácil de mantener.
 */

/* Reset básico y configuración global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--text-light);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

body.index-page,
body.index-page main {
  overflow-x: hidden;
  width: 100%;
}

body.darkveil-page {
  --bg-light: transparent;
  background: radial-gradient(circle at 20% 20%, rgba(53, 92, 164, 0.26), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(118, 63, 186, 0.24), transparent 40%),
    linear-gradient(160deg, #0d1428, #111a32 55%, #0f1024);
}

body.darkveil-page main,
body.darkveil-page .categories,
body.darkveil-page .blog {
  background: transparent;
}

body.darkveil-page .categories {
  color: #f5f7ff;
}

body.darkveil-page .categories h2,
body.darkveil-page .categories__title,
body.darkveil-page .blog h2 {
  color: #f5f7ff;
}

/* Variables de color y tipografía */
:root {
  --primary-color: #1767e8;
  --secondary-color: #f59e0b;
  --bg-light: #f6f7f8;
  --bg-dark: #111721;
  --text-light: #212529;
  --text-dark: #f8f9fa;
  --secondary-text: #6c757d;
  --border-radius: 0.5rem;
  --font-base: 'Inter', 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --focus-ring-color: rgba(23, 103, 232, 0.75);
  --focus-ring-offset: 4px;
  --surface-card-gradient: linear-gradient(160deg, rgba(18, 17, 32, 0.96), rgba(25, 24, 42, 0.92));
  --surface-card-outline: rgba(255, 255, 255, 0.06);
  --surface-card-border: rgba(255, 255, 255, 0.22);
  --shadow-deep: 0 24px 46px rgba(4, 8, 20, 0.32);
}

:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
}

/* Encabezado */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #d48806;
}

/* Sección de categorías */
.categories {
  padding: 4rem 1rem;
  background-color: var(--bg-light);
}

.categories h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.categories__glass-icons {
  display: none;
  max-width: min(440px, 100%);
  margin: 0 auto;
}

.glass-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 12vw, 3.5rem);
  justify-items: center;
  padding: clamp(1.5rem, 8vw, 3rem) 0;
}

.glass-icon-grid > .glass-icon-btn:last-child {
  grid-column: 1 / -1;
}

.glass-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  background: none;
  border: none;
  outline: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 18px;
  padding: 0.4rem;
}

.glass-icon-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 6px;
  border-radius: 18px;
}

.glass-icon-btn__visual {
  position: relative;
  width: 4.8rem;
  height: 4.8rem;
  perspective: 26rem;
  transform-style: preserve-3d;
}

.glass-icon-btn__back,
.glass-icon-btn__front,
.glass-icon-btn__label {
  transition: opacity 0.3s cubic-bezier(0.83, 0, 0.17, 1), transform 0.3s cubic-bezier(0.83, 0, 0.17, 1);
}

.glass-icon-btn__back,
.glass-icon-btn__front {
  border-radius: 1.25em;
  position: absolute;
  inset: 0;
}

.glass-icon-btn__back {
  background: var(--glass-icon-back, linear-gradient(145deg, rgba(104, 107, 124, 0.88), rgba(40, 44, 66, 0.9)));
  box-shadow: 0.5em -0.5em 0.75em hsla(220, 25%, 10%, 0.28);
  transform: rotate(15deg);
  transform-origin: 100% 100%;
}

.glass-icon-btn__front {
  background: hsla(225, 30%, 92%, 0.18);
  box-shadow:
    0 0 0 1px hsla(225, 40%, 96%, 0.22) inset,
    0 12px 24px rgba(13, 17, 34, 0.25);
  backdrop-filter: blur(0.75em);
  -webkit-backdrop-filter: blur(0.75em);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 80% 50%;
}

.glass-icon-btn__icon {
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 248, 255, 0.92);
}

.glass-icon-btn__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.25));
}

.glass-icon-btn__label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: center;
  color: rgba(235, 240, 255, 0.9);
  transform: translateY(0);
  opacity: 1;
}

.glass-icon-btn:hover .glass-icon-btn__back,
.glass-icon-btn:focus-visible .glass-icon-btn__back {
  transform: rotate(25deg) translate3d(-0.5em, -0.5em, 0.5em);
}

.glass-icon-btn:hover .glass-icon-btn__front,
.glass-icon-btn:focus-visible .glass-icon-btn__front {
  transform: translateZ(2em);
}

.glass-icon-btn:hover .glass-icon-btn__label,
.glass-icon-btn:focus-visible .glass-icon-btn__label {
  color: rgba(255, 255, 255, 0.98);
}

.glass-icon-btn[data-variant='accent'] .glass-icon-btn__back {
  background: linear-gradient(hsl(3, 90%, 50%), hsl(348, 90%, 50%));
}

.glass-icon-btn[data-variant='accent'] .glass-icon-btn__front {
  background: hsla(0, 0%, 100%, 0.22);
  box-shadow:
    0 0 0 1px hsla(0, 0%, 100%, 0.35) inset,
    0 16px 28px rgba(80, 3, 3, 0.35);
}

.glass-icon-btn[data-variant='accent'] .glass-icon-btn__label {
  color: rgba(255, 240, 244, 0.96);
}

.categories__desktop-grid.tilted-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

@media (min-width: 769px) and (max-width: 1279px) {
  .categories__desktop-grid.tilted-card-grid {
    max-width: 1100px;
    margin: 0 auto;
  }

  .tilted-card-link {
    width: calc(33.333% - 1rem);
    display: flex;
    justify-content: center;
  }

  .tilted-card-figure {
    width: 100%;
  }
}

@media (min-width: 1280px) {
  .categories__desktop-grid.tilted-card-grid {
    max-width: 1600px;
    margin: 0 auto;
    gap: 2rem;
  }

  .tilted-card-link {
    width: calc(25% - 1.5rem);
    display: flex;
    justify-content: center;
  }

  .tilted-card-figure {
    width: 100%;
    --tilt-card-height: 200px;
  }
}

@media (max-width: 768px) {

  .categories__desktop-grid,
  .categories__desktop-grid.tilted-card-grid {
    display: none;
  }

  .categories__glass-icons {
    display: block;
  }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Oportunidades de la semana */
.opportunities {
  padding: clamp(3rem, 6vw, 5rem) 1rem;
  background-color: transparent;
}

body:not(.darkveil-page) .opportunities {
  background-color: var(--bg-light);
}

.opportunities__header {
  max-width: 820px;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.opportunities__description {
  color: rgba(234, 238, 255, 0.75);
  font-size: 1rem;
}

body:not(.darkveil-page) .opportunities__description {
  color: var(--secondary-text);
}

.opportunities .star-border-container .inner-content {
  min-width: 0;
}

.opportunities__header .star-border-container {
  width: fit-content;
}

.opportunities-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1.1rem, 2vw, 1.75rem);
  margin-bottom: clamp(1.1rem, 2vw, 1.75rem);
  /* Espaciado vertical entre filas separadas */
}

@media (max-width: 1200px) {
  .opportunities-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.1rem, 2vw, 1.75rem);
    align-content: center;
  }

  .opportunity-card {
    flex: 0 0 270px;
    max-width: min(320px, 100%);
    width: 100%;
  }
}

@media (max-width: 768px) {
  .opportunities-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0.5rem 2.5rem;
    /* Padding bottom para sombras */
    gap: 1rem;
    scrollbar-width: none;
    /* Firefox */
    margin-bottom: -1.5rem;
    /* Reducir espacio entre las dos grillas */
  }

  /* Ajuste para la segunda grilla para que no tenfa tanto espacio top si es necesario, 
     pero margin-bottom negativo ayuda a juntarlas visualmente sin afectar el scroll */


  .opportunities-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  .opportunity-card {
    flex: 0 0 280px;
    /* Ancho fijo para consistencia */
    max-width: 85vw;
    /* No exceder ancho de pantalla */
    scroll-snap-align: center;
    margin: 0;
    /* Reset margins */
  }
}

.opportunities__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.opportunities__more-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.opportunities__more-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.14);
}

.opportunity-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1.4rem;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(14, 16, 30, 0.95), rgba(34, 30, 52, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.35);
  color: #f7f8ff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.opportunity-card:hover,
.opportunity-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px rgba(3, 6, 24, 0.55);
}

.opportunity-card__media {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.opportunity-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  border-radius: inherit;
}

.opportunity-card:hover .opportunity-card__media img,
.opportunity-card:focus-visible .opportunity-card__media img {
  transform: scale(1.05);
}

.opportunity-card__badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(130deg, #ff3b30, #ff8f28);
  box-shadow:
    0 10px 26px rgba(4, 9, 18, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 2;
}

.opportunity-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.opportunity-card__body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: inherit;
}

.opportunity-card__body p {
  color: rgba(233, 236, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

.opportunity-card__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.opportunity-card__tag {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(145, 193, 255, 0.85);
}

.opportunity-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fdfdff;
  min-width: 180px;
}

body:not(.darkveil-page) .opportunity-card {
  background: #ffffff;
  border: 1px solid rgba(15, 17, 28, 0.08);
  color: var(--text-light);
  box-shadow: 0 20px 40px rgba(16, 23, 40, 0.08);
}

body:not(.darkveil-page) .opportunity-card__media {
  border: 1px solid rgba(17, 23, 33, 0.05);
}

body:not(.darkveil-page) .opportunity-card__badge {
  background: linear-gradient(125deg, rgba(59, 126, 255, 0.9), rgba(124, 91, 255, 0.86));
}

body:not(.darkveil-page) .opportunity-card__body p {
  color: var(--secondary-text);
}

body:not(.darkveil-page) .opportunity-card__tag {
  color: var(--secondary-color);
}

body:not(.darkveil-page) .opportunity-card__cta {
  background: rgba(23, 103, 232, 0.08);
  border-color: rgba(23, 103, 232, 0.3);
  color: var(--primary-color);
}

@media (max-width: 640px) {
  .opportunity-card__footer {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
}

/* Blog / consejos */
.blog {
  padding: 4rem 1rem;
  background-color: var(--bg-light);
}

.blog h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.blog-title {
  display: flex;
  justify-content: center;
}

.blog .text-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.6vw + 1.1rem, 2.5rem);
  color: var(--text-light);
  text-align: center;
}

.blog .static-text {
  white-space: nowrap;
}

.blog .carousel-wrapper {
  position: relative;
  height: 2.8rem;
  overflow: hidden;
  transition: width 0.4s ease-in-out;
}

.blog .words-list {
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.5s ease-in-out;
}

.blog .words-list li {
  height: 2.8rem;
  line-height: 2.8rem;
  color: #0b4dc4;
  padding: 0 1rem;
  white-space: nowrap;
  background-color: rgba(111, 168, 255, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.darkveil-page .blog .text-container {
  color: rgba(243, 245, 255, 0.94);
}

body.darkveil-page .blog .words-list li {
  background-color: rgba(125, 209, 255, 0.18);
  color: #8cd5ff;
}

.kits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 2.25rem;
  max-width: 1180px;
  margin: 0 auto;
  justify-items: center;
}

.kit-card-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
  text-align: center;
}

.kit-card-block:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 360px;
}

.kit-card-caption {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(23, 28, 48, 0.65);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body.darkveil-page .kit-card-caption {
  color: rgba(243, 245, 255, 0.75);
}

.kit-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: var(--kit-card-aspect, 1 / 1);
  background: linear-gradient(135deg, rgba(28, 33, 55, 0.92), rgba(18, 22, 38, 0.92));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;
  border: 1px solid rgba(149, 106, 250, 0.16);
  box-shadow: 0 24px 48px rgba(8, 12, 32, 0.45);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kit-card__media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, rgba(28, 33, 55, 0.35), transparent 65%), rgba(10, 13, 26, 0.92);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.kit-card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kit-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.9rem;
  padding: 1.5rem;
  background: radial-gradient(circle at 20% 20%, rgba(72, 89, 150, 0.28), transparent 60%), rgba(10, 13, 26, 0.96);
  transform: rotateX(-90deg);
  transform-origin: bottom;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: rgba(244, 247, 255, 0.94);
  text-align: left;
  z-index: 1;
}

.kit-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.kit-card__description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(214, 222, 247, 0.85);
}

.kit-card__button {
  align-self: flex-start;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(111, 168, 255, 0.95), rgba(149, 106, 250, 0.95));
  border: none;
  color: #0b1021;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 24px rgba(33, 64, 128, 0.35);
}

.kit-card__button:hover,
.kit-card__button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(33, 64, 128, 0.4);
}

.kit-card:hover,
.kit-card:focus-within {
  transform: scale(1.035);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 18px 38px rgba(8, 12, 32, 0.55),
    0 24px 65px rgba(12, 18, 42, 0.38),
    0 0 18px rgba(255, 255, 255, 0.80);
}

.kit-card:hover .kit-card__media img,
.kit-card:focus-within .kit-card__media img {
  transform: scale(1.05);
}

.kit-card:hover .kit-card__content,
.kit-card:focus-within .kit-card__content {
  transform: rotateX(0deg);
}

.kit-card--center {
  grid-column: 2;
}

@media (max-width: 1024px) {
  .kits-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .kit-card--center {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .kits-grid {
    grid-template-columns: minmax(220px, 1fr);
    gap: 1.75rem;
  }

  .kit-card {
    max-width: 300px;
    margin: 0 auto;
    aspect-ratio: 10 / 12;
    transform: none;
    box-shadow: 0 18px 36px rgba(8, 12, 32, 0.28);
    transition: none;
    background: transparent;
    border: none;
    border-radius: 24px;
  }

  .kit-card--center {
    grid-column: auto;
  }

  .kit-card,
  .kit-card__media img,
  .kit-card__content,
  .kit-card__button {
    transition: none !important;
  }

  .kit-card__media img {
    transform: none !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .kit-card__media {
    border-radius: 24px 24px 0 0;
    background: none;
    overflow: hidden;
  }

  .kit-card__content {
    position: absolute;
    left: 0;
    right: 0;
    top: 42%;
    bottom: 0;
    transform: none;
    background: linear-gradient(180deg, rgba(24, 28, 44, 0.6), rgba(12, 14, 24, 0.9));
    border-radius: 24px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 0.75rem;
    justify-content: flex-start;
    text-align: center;
    align-items: center;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .kit-card__title {
    font-size: 1.18rem;
  }

  .kit-card__description {
    font-size: 0.93rem;
    color: rgba(222, 229, 248, 0.88);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .kit-card__button {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.85rem;
    min-height: 2.6rem;
    min-width: 7.6rem;
    white-space: nowrap;
    line-height: 1.05;
  }

  .kit-card:hover,
  .kit-card:focus-within {
    transform: none;
    box-shadow: 0 18px 36px rgba(8, 12, 32, 0.28);
  }

  .kit-card:hover .kit-card__content,
  .kit-card:focus-within .kit-card__content {
    transform: none;
  }
}

@media (max-width: 640px) {
  .kit-card-caption {
    display: none;
  }
}

@media (min-width: 641px) {

  .kit-card-block:hover .kit-card-caption,
  .kit-card-block:focus-within .kit-card-caption {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (max-width: 768px) {
  .blog .text-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1.2rem, 2.6vw + 0.95rem, 1.8rem);
  }

  .blog .carousel-wrapper {
    height: 2.2rem;
  }

  .blog .words-list li {
    height: 2.2rem;
    line-height: 2.2rem;
    padding: 0 0.75rem;
  }
}

.footer-prelude {
  background-color: var(--bg-dark);
}

.footer-prelude .cta-section {
  padding: clamp(3rem, 5vw, 4rem) 1rem 2rem;
  color: #f8f9ff;
  text-align: center;
  padding-top: 20px;
}

.footer-prelude .cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  margin-bottom: 1rem;
}

.footer-prelude .cta-section p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: rgba(226, 229, 238, 0.82);
  max-width: 640px;
  margin-inline: auto;
}

.cta-section__button {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  white-space: nowrap;
  font-weight: 700;
}

.cta-section__button:hover,
.cta-section__button:focus-visible {
  background-color: #d48806;
}

.logo-loop-section {
  background-color: var(--bg-dark);
  padding: clamp(2.5rem, 6vw, 4rem) 0 0;
  overflow: hidden;
}

.footer-prelude .logo-loop-section {
  background: transparent;
  padding: 0 0 clamp(2.5rem, 6vw, 4rem);
}

.logo-loop-section__inner {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
}

@media (max-width: 680px) {
  .logo-loop-section {
    padding: clamp(2rem, 8vw, 3rem) 0 0;
  }
}

@media (max-height: 720px) {
  .logo-loop-section {
    padding-top: clamp(3rem, 7vw, 4.75rem);
  }
}

/* Pie de página */
footer {
  background-color: #111721;
  color: #a6aebc;
  padding: 0.1rem 0;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(2.5rem, 4vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

footer h3 {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

footer a {
  color: #a6aebc;
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-nav-list,
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-list li,
.footer-contact-list li {
  margin-bottom: 0.65rem;
}

.footer-social {
  list-style: none;
  display: flex;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  justify-content: flex-start;
}

.footer-social__item {
  position: relative;
}

.footer-social__link {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(24, 28, 46, 0.85);
  color: rgba(220, 228, 255, 0.85);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(9, 12, 22, 0.35);
  color: #fff;
}

.footer-social__icon {
  width: 26px;
  height: 26px;
  position: relative;
  z-index: 1;
}

.footer-social__fill {
  position: absolute;
  inset: auto 0 0 0;
  height: 0%;
  background: rgba(17, 23, 33, 0.9);
  transition: height 0.25s ease;
  z-index: 0;
}

.footer-social__link:hover .footer-social__fill,
.footer-social__link:focus-visible .footer-social__fill {
  height: 100%;
}

.footer-social__label {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: rgba(38, 45, 68, 0.95);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

.footer-social__link:hover .footer-social__label,
.footer-social__link:focus-visible .footer-social__label {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -6px);
}

.footer-social__link[data-social='whatsapp'] .footer-social__fill,
.footer-social__link[data-social='whatsapp'] .footer-social__label {
  background: #128c7e;
}

.footer-social__link[data-social='facebook'] .footer-social__fill,
.footer-social__link[data-social='facebook'] .footer-social__label {
  background: #3b5998;
}

.footer-social__link[data-social='instagram'] .footer-social__fill,
.footer-social__link[data-social='instagram'] .footer-social__label {
  background: linear-gradient(45deg, #405de6, #5b51db, #b33ab4, #c135b4, #e1306c, #fd1f1f);
}

footer a:hover {
  color: var(--secondary-color);
}

footer .footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #6b7280;
  padding: 0 1.5rem 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 680px) {
  footer .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 2.5rem;
  }

  footer .footer-grid>div {
    max-width: 320px;
  }

  footer .footer-grid>div p {
    margin: 0 auto;
  }

  .footer-nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: center;
    justify-items: center;
    gap: 0.85rem 1.8rem;
  }

  .footer-nav-list li {
    margin: 0;
  }

  .footer-contact-list {
    text-align: center;
  }

  .footer-contact-list li {
    margin: 0.4rem 0;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Página sobre la empresa */
.company-journey {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem clamp(6rem, 10vw, 9rem);
  color: var(--text-dark);
}

.company-journey__intro {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(3.5rem, 7vw, 5rem);
}

.company-journey__intro-inner {
  max-width: 760px;
  background: linear-gradient(155deg, rgba(12, 17, 28, 0.82), rgba(23, 32, 52, 0.68));
  border: 1px solid rgba(231, 243, 255, 0.08);
  border-radius: clamp(1.5rem, 5vw, 2.5rem);
  padding: clamp(2.5rem, 6vw, 3.25rem) clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 40px 80px rgba(4, 8, 20, 0.35);
  backdrop-filter: blur(18px);
  text-align: center;
}

.company-journey__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(143, 182, 255, 0.95);
  background: rgba(45, 118, 255, 0.18);
  border: 1px solid rgba(76, 161, 255, 0.35);
  margin-bottom: 1.25rem;
}

.company-journey__intro-inner h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: #f5f7ff;
  margin-bottom: 1rem;
}

.company-journey__intro-inner p {
  font-size: 1.05rem;
  color: rgba(224, 232, 255, 0.78);
  line-height: 1.8;
}

.company-timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.company-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(94, 153, 255, 0) 0%, rgba(94, 153, 255, 0.35) 40%, rgba(94, 153, 255, 0.55) 50%, rgba(94, 153, 255, 0.35) 60%, rgba(94, 153, 255, 0) 100%);
  border-radius: 999px;
}

.company-timeline__item {
  position: relative;
  width: 50%;
  padding: 0 2.5rem clamp(3.5rem, 7vw, 4.5rem);
  opacity: 0;
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

.company-timeline__item:nth-child(odd) {
  margin-left: 0;
  padding-right: 3rem;
  text-align: right;
  transform: translateX(-40px);
}

.company-timeline__item:nth-child(even) {
  margin-left: 50%;
  padding-left: 3rem;
  text-align: left;
  transform: translateX(40px);
}

.company-timeline__item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.company-timeline__card {
  position: relative;
  background: linear-gradient(155deg, rgba(15, 20, 32, 0.7), rgba(19, 28, 46, 0.54));
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 22px 52px rgba(4, 8, 20, 0.3);
  padding: 1.9rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: blur(16px);
}

.company-timeline__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(80, 138, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.company-timeline__card:hover::after {
  opacity: 1;
}

.company-timeline__time {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(166, 198, 255, 0.74);
  font-weight: 700;
}

.company-timeline__card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f2f6ff;
}

.company-timeline__card p {
  color: rgba(214, 227, 255, 0.68);
  font-size: 1rem;
  line-height: 1.7;
}

.company-timeline__dot {
  position: absolute;
  top: 1.75rem;
  width: 22px;
  height: 22px;
  background-color: rgba(12, 16, 28, 0.9);
  border: 4px solid rgba(94, 153, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(94, 153, 255, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.company-timeline__item:nth-child(odd) .company-timeline__dot {
  right: -11px;
}

.company-timeline__item:nth-child(even) .company-timeline__dot {
  left: -11px;
}

.company-timeline__card:hover+.company-timeline__dot,
.company-timeline__item:hover .company-timeline__dot {
  transform: scale(1.12);
  box-shadow: 0 0 0 9px rgba(94, 153, 255, 0.24);
}

.company-timeline__item.is-visible .company-timeline__dot {
  box-shadow: 0 0 0 9px rgba(94, 153, 255, 0.24);
}

@media (max-width: 900px) {
  .company-timeline::before {
    left: 22px;
  }

  .company-timeline__item,
  .company-timeline__item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 clamp(3rem, 8vw, 4rem) 2.6rem;
    text-align: left;
    transform: none;
  }

  .company-timeline__dot,
  .company-timeline__item:nth-child(even) .company-timeline__dot {
    left: 0;
    right: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 600px) {
  .company-journey {
    padding: 3.25rem 1rem 5rem;
  }

  .company-journey__intro-inner {
    padding: 2.25rem 1.75rem;
  }

  .company-timeline::before {
    left: 18px;
  }

  .company-timeline__item {
    padding-left: 2.4rem;
    transform: none;
  }

}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Página de contacto */
.contact-hub {
  padding: clamp(3rem, 6vw, 4.5rem) 1rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.contact-hub__pill {
  background: linear-gradient(145deg, rgba(5, 11, 32, 0.78), rgba(33, 23, 58, 0.82));
  border-radius: clamp(1.8rem, 5vw, 3.75rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: clamp(2rem, 5vw, 3.8rem);
  box-shadow: 0 45px 90px rgba(2, 4, 24, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.2rem);
}

body:not(.darkveil-page) .contact-hub__pill {
  background: #ffffff;
  border-color: rgba(15, 17, 28, 0.08);
  box-shadow: 0 35px 60px rgba(12, 16, 35, 0.18);
}

.contact-hub__intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-hub__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: rgba(140, 198, 255, 0.85);
  display: inline-flex;
  align-self: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 0.35rem;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 38px rgba(3, 6, 24, 0.35);
}

body:not(.darkveil-page) .contact-hub__eyebrow {
  color: var(--primary-color);
  background: rgba(23, 103, 232, 0.08);
  border-color: rgba(23, 103, 232, 0.25);
  box-shadow: 0 20px 32px rgba(12, 16, 35, 0.12);
}

.contact-hub__intro h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0;
  color: var(--text-light);
}

body.darkveil-page .contact-hub__intro h1 {
  color: #f7f8ff;
}

.contact-hub__intro p {
  color: rgba(234, 238, 255, 0.8);
  font-size: 1rem;
}

body:not(.darkveil-page) .contact-hub__intro p {
  color: var(--secondary-text);
}

.contact-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
}

.channel-card {
  background: linear-gradient(160deg, rgba(16, 18, 32, 0.92), rgba(34, 31, 55, 0.9));
  border-radius: 1.25rem;
  padding: 1.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 48px rgba(3, 6, 24, 0.45);
  color: #f8f9ff;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.channel-card:hover,
.channel-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(3, 6, 24, 0.6);
}

body:not(.darkveil-page) .channel-card {
  background: #ffffff;
  border: 1px solid rgba(15, 17, 28, 0.08);
  color: var(--text-light);
  box-shadow: 0 20px 40px rgba(12, 16, 35, 0.1);
}

.channel-card__icon {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f8f9ff;
  font-size: 1.75rem;
}

body:not(.darkveil-page) .channel-card__icon {
  background: rgba(23, 103, 232, 0.08);
  color: var(--primary-color);
}

.channel-card h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0;
}

.channel-card p {
  margin: 0;
  color: rgba(234, 238, 255, 0.82);
  line-height: 1.5;
}

body:not(.darkveil-page) .channel-card p {
  color: var(--secondary-text);
}

.channel-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.channel-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.45rem, 1vw, 0.7rem) clamp(1.25rem, 2vw + 0.6rem, 1.95rem);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.08);
  min-height: 2.45rem;
  font-size: clamp(0.78rem, 0.6vw + 0.62rem, 0.95rem);
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: 0 18px 32px rgba(4, 6, 24, 0.4);
}

.channel-card__actions a:hover,
.channel-card__actions a:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
}

body:not(.darkveil-page) .channel-card__actions a {
  border-color: rgba(23, 103, 232, 0.25);
  background: rgba(23, 103, 232, 0.08);
  color: var(--primary-color);
  box-shadow: 0 14px 24px rgba(12, 16, 35, 0.15);
}

.channel-card__actions--stack {
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.channel-card__actions--stack a {
  width: auto;
}

.channel-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
  color: rgba(234, 238, 255, 0.8);
}

@media (max-width: 360px) {
  .channel-card__actions {
    justify-content: flex-start;
    gap: 0.6rem;
  }

  .channel-card__actions a {
    white-space: normal;
    padding: 0.5rem 0.95rem;
    min-height: 2.2rem;
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  .channel-card__actions--stack {
    align-items: stretch;
  }
}

body:not(.darkveil-page) .channel-card__meta {
  color: var(--secondary-text);
}

@media (max-width: 600px) {
  .contact-hub {
    padding: clamp(2.5rem, 10vw, 3.5rem) 1rem;
  }
}

.whatsapp-floating {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
  z-index: 9999;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.whatsapp-floating:hover {
  transform: scale(1.1);
}

.whatsapp-floating img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* Utilidades */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
  }
}

/* Destacados intermedios */
.mid-highlights {
  padding: 3.5rem 1rem 3rem;
  display: flex;
  justify-content: center;
}

.mid-highlights__frame {
  width: min(1120px, 100%);
  --mid-frame-radius: 32px;
  border-radius: var(--mid-frame-radius);
  padding: 3px;
  background: rgba(13, 16, 28, 0.16);
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 14px 38px rgba(6, 12, 32, 0.26);
  isolation: isolate;
}

.mid-highlights__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)) padding-box,
    linear-gradient(128deg, #4c9bff, #8f63ff) border-box;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.mid-highlights__frame::after {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: calc(var(--mid-frame-radius) + 24px);
  border: 24px solid transparent;
  background:
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)) padding-box,
    linear-gradient(128deg, rgba(76, 155, 255, 0.65), rgba(143, 99, 255, 0.55)) border-box;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  pointer-events: none;
  filter: blur(32px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.mid-highlights__frame:hover,
.mid-highlights__frame:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 32px 96px rgba(12, 20, 46, 0.48);
}

.mid-highlights__frame:hover::before,
.mid-highlights__frame:focus-within::before,
.mid-highlights__frame:hover::after,
.mid-highlights__frame:focus-within::after {
  opacity: 1;
}

body:not(.darkveil-page) .mid-highlights__frame {
  background: rgba(248, 249, 255, 0.58);
  box-shadow: 0 20px 52px rgba(16, 26, 46, 0.2);
}

body:not(.darkveil-page) .mid-highlights__frame::before {
  background:
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)) padding-box,
    linear-gradient(128deg, #4c9bff, #8f63ff) border-box;
}

body:not(.darkveil-page) .mid-highlights__frame::after {
  background:
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)) padding-box,
    linear-gradient(128deg, rgba(76, 155, 255, 0.58), rgba(143, 99, 255, 0.42)) border-box;
}

.mid-highlights__surface {
  width: 100%;
  padding: 2.75rem clamp(1.75rem, 5vw, 3.5rem);
  border-radius: 30px;
  background: rgba(14, 19, 32, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  /* ===== MODIFICACIÓN AQUÍ ===== */
  /* Agregamos una transición para el color de fondo */
  transition: background-color 0.35s ease;
}

/* ===== NUEVA REGLA AQUÍ ===== */
/* Esta regla hace que el fondo sea opaco en hover, bloqueando el brillo interno */
.mid-highlights__frame:hover .mid-highlights__surface,
.mid-highlights__frame:focus-within .mid-highlights__surface {
  background-color: rgba(14, 19, 32, 0.9);
  /* Usamos el mismo color base pero opaco */
}


body:not(.darkveil-page) .mid-highlights__surface {
  background: rgba(248, 249, 255, 0.86);
}

/* ===== NUEVA REGLA AQUÍ (para el modo claro) ===== */
/* Hacemos lo mismo para el modo claro, si es que lo usas */
body:not(.darkveil-page) .mid-highlights__frame:hover .mid-highlights__surface,
body:not(.darkveil-page) .mid-highlights__frame:focus-within .mid-highlights__surface {
  background: rgb(248, 249, 255);
  /* Fondo opaco para el modo claro */
}


.mid-highlights__items {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(2.75rem, 6vw, 3.75rem);
  flex-wrap: wrap;
  width: 100%;
}

.mid-highlights__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  min-width: 260px;
  flex: 1 1 320px;
  max-width: 560px;
  width: 100%;
}

.mid-highlights__eyebrow {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(214, 227, 255, 0.78);
  text-align: center;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.mid-highlights__eyebrow::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  color: transparent;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0) 70%);
  background-size: 60% 100%;
  background-repeat: no-repeat;
  background-position: -150% 0;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  pointer-events: none;
  will-change: background-position, opacity;
}

.mid-highlights__eyebrow.is-visible::after {
  opacity: 1;
  animation: mid-highlight-shimmer 4.6s ease-in-out infinite;
}

body:not(.darkveil-page) .mid-highlights__eyebrow {
  color: rgba(20, 33, 62, 0.65);
}

body:not(.darkveil-page) .mid-highlights__eyebrow::after {
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0) 25%, rgba(17, 26, 46, 0.2) 50%, rgba(255, 255, 255, 0) 75%);
}

.mid-highlights__caption {
  font-size: 0.78rem;
  color: var(--secondary-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.mid-highlights__caption--accent {
  display: none;
  letter-spacing: 0.06em;
  color: #1aa37a;
}

body.darkveil-page .mid-highlights__caption {
  color: rgba(255, 255, 255, 0.7);
}

body.darkveil-page .mid-highlights__caption--accent {
  color: rgba(132, 245, 198, 0.88);
}

/* From Uiverse.io by vinodjangid07 */
.loader {
  width: fit-content;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
}

.truckWrapper {
  width: 200px;
  height: 100px;
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  justify-content: flex-end;
  overflow-x: hidden;
}

.truckBody {
  width: 130px;
  height: fit-content;
  margin-bottom: 6px;
  animation: motion 1s linear infinite;
}

@keyframes motion {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(3px);
  }

  100% {
    transform: translateY(0px);
  }
}

.truckTires {
  width: 130px;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 15px;
  position: absolute;
  bottom: 0;
}

.truckTires svg {
  width: 24px;
}

.road {
  width: 100%;
  height: 1.5px;
  background-color: #ffffff;
  position: relative;
  bottom: 0;
  align-self: flex-end;
  border-radius: 3px;
}

.road::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 100%;
  background-color: #282828;
  right: -50%;
  border-radius: 3px;
  animation: roadAnimation 1.4s linear infinite;
  border-left: 10px solid white;
}

.road::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 100%;
  background-color: #282828;
  right: -65%;
  border-radius: 3px;
  animation: roadAnimation 1.4s linear infinite;
  border-left: 4px solid white;
}

.lampPost {
  position: absolute;
  bottom: 0;
  right: -90%;
  height: 90px;
  animation: roadAnimation 1.4s linear infinite;
}

.mid-highlights__item--shipping .truckBody,
.mid-highlights__item--shipping .road::before,
.mid-highlights__item--shipping .road::after,
.mid-highlights__item--shipping .lampPost {
  animation-play-state: paused;
}

.mid-highlights__item--shipping.is-visible .truckBody,
.mid-highlights__item--shipping.is-visible .road::before,
.mid-highlights__item--shipping.is-visible .road::after,
.mid-highlights__item--shipping.is-visible .lampPost {
  animation-play-state: running;
}

@keyframes mid-highlight-shimmer {
  0% {
    background-position: -160% 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  45% {
    background-position: 160% 0;
    opacity: 1;
  }

  60% {
    opacity: 0;
  }

  100% {
    background-position: 160% 0;
    opacity: 0;
  }
}

@keyframes roadAnimation {
  0% {
    transform: translateX(0px);
  }

  100% {
    transform: translateX(-350px);
  }
}

/* From Uiverse.io by Admin12121 (adaptado) */
.secure-transaction {
  background: linear-gradient(135deg, rgba(18, 26, 46, 0.92), rgba(12, 18, 34, 0.68));
  border: 1px solid rgba(105, 178, 255, 0.2);
  display: flex;
  width: min(540px, 100%);
  height: 128px;
  position: relative;
  border-radius: 22px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 24px 48px rgba(5, 12, 28, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body:not(.darkveil-page) .secure-transaction {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 255, 0.72));
  border-color: rgba(16, 26, 46, 0.12);
  box-shadow: 0 20px 46px rgba(17, 26, 46, 0.18);
}

.secure-transaction:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 32px 72px rgba(5, 12, 28, 0.5);
}

.secure-transaction__left {
  background: linear-gradient(130deg, #5de2a3, #3cc788);
  flex: 0 0 144px;
  height: 128px;
  border-radius: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: flex-basis 0.3s ease-in-out;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.secure-transaction:hover .secure-transaction__left {
  flex-basis: 100%;
}

.secure-transaction__right {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  white-space: nowrap;
  transition: background-color 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  color: #f1f4ff;
}

.secure-transaction__right:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.secure-transaction:hover .secure-transaction__right {
  opacity: 0;
  transform: translateX(24px);
}

.secure-transaction__arrow {
  width: 20px;
  height: 20px;
  margin-left: 16px;
  flex-shrink: 0;
}

.secure-transaction__arrow path {
  fill: rgba(255, 255, 255, 0.68);
}

.secure-transaction__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 22px;
  font-family: "Lexend Deca", var(--font-heading);
  color: #f7fbff;
  letter-spacing: 0.02em;
}

body:not(.darkveil-page) .secure-transaction__right {
  color: #121726;
}

body:not(.darkveil-page) .secure-transaction__title {
  color: #101828;
}

body:not(.darkveil-page) .secure-transaction__arrow path {
  fill: rgba(17, 26, 46, 0.45);
}

.secure-transaction__card {
  width: 70px;
  height: 46px;
  background-color: #c7ffbc;
  border-radius: 6px;
  position: absolute;
  display: flex;
  z-index: 10;
  flex-direction: column;
  align-items: center;
  box-shadow: 9px 9px 9px -2px rgba(77, 200, 143, 0.72);
}

.secure-transaction__card-line {
  width: 65px;
  height: 13px;
  background-color: #80ea69;
  border-radius: 2px;
  margin-top: 7px;
}

.secure-transaction__buttons {
  width: 8px;
  height: 8px;
  background-color: #379e1f;
  box-shadow: 0 -10px 0 0 #26850e, 0 10px 0 0 #56be3e;
  border-radius: 50%;
  margin-top: 5px;
  transform: rotate(90deg);
  margin: 10px 0 0 -30px;
}

.secure-transaction__post {
  width: 63px;
  height: 75px;
  background-color: #dddde0;
  position: absolute;
  z-index: 11;
  bottom: 10px;
  top: 120px;
  border-radius: 6px;
  overflow: hidden;
}

.secure-transaction:hover .secure-transaction__card {
  animation: secure-transaction-slide-top 1.2s cubic-bezier(0.645, 0.045, 0.355, 1) both;
}

.secure-transaction:hover .secure-transaction__post {
  animation: secure-transaction-slide-post 1s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

.secure-transaction__post-line {
  width: 47px;
  height: 9px;
  background-color: #545354;
  position: absolute;
  border-radius: 0 0 3px 3px;
  right: 8px;
  top: 8px;
}

.secure-transaction__post-line::before {
  content: "";
  position: absolute;
  width: 47px;
  height: 9px;
  background-color: #757375;
  top: -8px;
}

.secure-transaction__screen {
  width: 47px;
  height: 23px;
  background-color: #ffffff;
  position: absolute;
  top: 22px;
  right: 8px;
  border-radius: 3px;
}

.secure-transaction__numbers {
  width: 12px;
  height: 12px;
  background-color: #838183;
  box-shadow: 0 -18px 0 0 #838183, 0 18px 0 0 #838183;
  border-radius: 2px;
  position: absolute;
  transform: rotate(90deg);
  left: 25px;
  top: 52px;
}

.secure-transaction__numbers-line2 {
  width: 12px;
  height: 12px;
  background-color: #aaa9ab;
  box-shadow: 0 -18px 0 0 #aaa9ab, 0 18px 0 0 #aaa9ab;
  border-radius: 2px;
  position: absolute;
  transform: rotate(90deg);
  left: 25px;
  top: 68px;
}

@keyframes secure-transaction-slide-top {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-70px) rotate(90deg);
  }

  60% {
    transform: translateY(-70px) rotate(90deg);
  }

  100% {
    transform: translateY(-8px) rotate(90deg);
  }
}

.secure-transaction__dollar {
  position: absolute;
  font-size: 16px;
  font-family: "Lexend Deca", var(--font-heading);
  width: 100%;
  left: 0;
  top: 0;
  color: #4b953b;
  text-align: center;
}

.secure-transaction:hover .secure-transaction__dollar {
  animation: secure-transaction-fade-in 0.3s 1s backwards;
}

@keyframes secure-transaction-slide-post {
  50% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-70px);
  }
}

@keyframes secure-transaction-fade-in {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .mid-highlights__surface {
    padding: 2.5rem 2.25rem;
  }
}

@media (max-width: 768px) {
  .mid-highlights {
    padding: 3rem 1rem 2.5rem;
  }

  .mid-highlights__frame {
    --mid-frame-radius: 28px;
    border-radius: var(--mid-frame-radius);
  }

  .mid-highlights__surface {
    padding: 2rem 1.5rem;
    border-radius: 24px;
    gap: 2rem;
  }

  .mid-highlights__items {
    gap: 2.25rem;
  }

  .mid-highlights__item {
    min-width: 100%;
  }

  .secure-transaction {
    width: 100%;
    height: 170px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.75rem 1.5rem;
    transform: none;
    box-shadow: 0 20px 48px rgba(5, 12, 28, 0.45);
  }

  .secure-transaction:hover {
    transform: none;
    box-shadow: 0 20px 48px rgba(5, 12, 28, 0.45);
  }

  .secure-transaction__left {
    flex-basis: 100%;
    width: 100%;
    height: 100%;
    border-radius: 18px;
  }

  .secure-transaction__card,
  .secure-transaction__post {
    animation: none;
  }

  .secure-transaction__left {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 140px;
    padding: 0 1rem;
  }

  .secure-transaction__card {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg) scale(1.08);
    transform-origin: center;
  }

  .secure-transaction__post {
    position: absolute;
    top: 68%;
    left: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
  }

  .secure-transaction__right {
    display: none;
  }

  .mid-highlights__caption {
    font-size: 0.75rem;
  }

  .mid-highlights__caption--accent {
    display: block;
    color: rgba(132, 245, 198, 0.88);
  }
}

@media (max-width: 480px) {
  .mid-highlights__frame {
    --mid-frame-radius: 24px;
    border-radius: var(--mid-frame-radius);
  }

  .mid-highlights__surface {
    padding: 1.75rem 1.25rem;
    gap: 1.75rem;
  }

  .mid-highlights__items {
    gap: 1.75rem;
  }

  .loader {
    transform: scale(0.85);
  }

  .secure-transaction {
    height: 150px;
    padding: 1.5rem 1.25rem;
  }

  .secure-transaction__title {
    font-size: 20px;
  }
}
/* Contenedor de borde animado para la grilla de kits */
/* Spotlight effect logic */
.kits-border-container {
  display: block !important;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 24px;
  position: relative;
  overflow: hidden; /* Ensure spotlight doesn't spill */
  --mouse-x: 0px;
  --mouse-y: 0px;
  --spotlight-opacity: 0;
}

.kits-border-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y), 
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  opacity: var(--spotlight-opacity);
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1; /* Above background, below interactive content if possible, or handle via pointer-events */
}

/* Ensure inner content sits on top but background is visible */
.kits-border-container .inner-content {
  position: relative;
  display: block !important;
  min-width: 0;
  width: 100%;
  padding: 2.5rem 1.5rem;
  background: rgba(13, 16, 28, 0.4);
  border-radius: 24px;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.08); 
  text-shadow: none;
  z-index: 2; /* Content above spotlight */
  text-transform: none;
}

@media (max-width: 640px) {
  .kits-border-container .inner-content {
    padding: 1.5rem 0.5rem;
  }
}
