/* --- Declaración de la Fuente Personalizada --- */
@font-face {
  font-family: "Exo 2.0 Regular"; /* Nombre que usarás para referenciar la fuente */
  src: url("/fonts/EXO2.0-REGULAR.OTF") format("opentype"); /* Ruta y formato de la fuente */
  font-weight: normal; /* Peso de la fuente, si es regular */
  font-style: normal; /* Estilo de la fuente, si es normal */
  font-display: swap; /* Estrategia de carga de la fuente */
}
/* --- Reseteo Básico y Variables --- */
:root {
  --primary-color: #ed1c24;
  --primary-color-selected: #a8000e;
  --primary-text-color: #333;
  --secondary-color: #f4f4f4;
  --light-color: #fafafa;
  --dark-color: #151515;
  --header-height-initial: 120px;
  --header-height-scrolled: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Agregado para smooth scroll */
  scroll-behavior: smooth;
}

body {
  font-family: "Exo 2.0 Regular", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--secondary-color);
  padding-top: var(
    --header-height-initial
  ); /* Espacio para el header inicial */
  transition: padding-top 0.3s ease-in-out;
}

h3 {
  color: var(--primary-color);
  margin-top: 0.8rem;
  margin-bottom: 0.2rem;
}

.container {
  margin: 0 auto;
  padding-top: 5rem;
  padding-left: 3vw;
  padding-right: 3vw;
  max-width: 1200px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

li > a:hover {
  /* give some space between the link and the underline */
  padding-bottom: 0.2rem;
  border-bottom: 3px solid var(--primary-color);
  color: var(--primary-color-selected);
}

.prodLinks {
  max-width: 50%;
  width: 400px;
  height: auto;
  transition: all 0.3s ease-in-out;
  border: 3px solid transparent;
  padding: 0.5rem;
}

.prodLinks:hover {
  border: 3px solid var(--primary-color);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.no-radius {
  border-radius: 0;
}

.social-icon {
  color: var(--dark-color);
  margin: 0 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease-in-out;
  align-items: center;
  justify-content: center;
  display: flex;

  border-radius: 0.5rem;
  padding: 0.2rem;
  border: 2px solid var(--dark-color);
}

.social-icon:hover {
  color: var(--light-color);
  background: -webkit-linear-gradient(var(--dark-color), var(--primary-color));
  -webkit-text-fill-color: opaque;
}

.social-icon > svg {
  width: 2rem;
  height: 2rem;
}

.social-icon > svg:hover {
  fill: var(--light-color);
}

.details {
  font-size: 0.8rem;
  color: var(--dark-color);
  text-align: left;
}
.details::first-line {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.border-radious {
  border-radius: 1rem;
  width: 100%;
  overflow: clip;
}

/* --- Header --- */
#main-header {
  background-color: rgba(
    255,
    255,
    255,
    0.8
  ); /* Fondo inicial semi-transparente */
  width: 100%;
  height: var(--header-height-initial);
  position: fixed; /* Lo hacemos fijo desde el inicio */
  top: 0;
  left: 0;
  z-index: 1000;
  transition: height 0.3s ease-in-out, background-color 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
  border-bottom: 1px solid transparent; /* Borde inicial transparente */
}

#main-header.scrolled {
  height: var(--header-height-scrolled);
  background-color: rgba(
    255,
    255,
    255,
    0.6
  ); /* Fondo más transparente al hacer scroll */
  backdrop-filter: blur(5px); /* Efecto blur */
  -webkit-backdrop-filter: blur(5px); /* Para Safari */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sombra */
  border-bottom: 1px solid #eee; /* Borde sutil */
}

body.scrolled {
  padding-top: var(
    --header-height-scrolled
  ); /* Ajustar padding del body al hacer scroll */
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: fill;
}

.header-content {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 100%;
  margin: 0 2rem;
}

.logo a {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--dark-color);
  transition: font-size 0.3s ease-in-out;
}

#main-header.scrolled .logo a {
  font-size: 1.5em;
}

.main-nav ul {
  list-style: none;
  display: flex;
}

.main-nav ul li {
  margin-left: 25px;
}

.main-nav ul li a {
  color: var(--dark-color);
  font-weight: bold;
  transition: color 0.3s ease;
}

.main-nav ul li a:hover {
  color: var(--primary-color);
}

.contact-info {
  font-size: 0.9em;
  color: var(--secondary-color);
}

/* --- Menú Hamburguesa (Responsive) --- */
.menu-toggle {
  display: none; /* Oculto por defecto en pantallas grandes */
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 0;
}

.hero h1 {
  font-size: 3em;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

/* --- Botón CTA con efecto --- */
.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none; /* Asegura que no haya subrayado */

  /* Sombra inicial sutil (el brillo base) */
  /* offset-x | offset-y | blur-radius | spread-radius | color */
  box-shadow: 0 0 0 0 rgba(230, 0, 18, 0.7); /* rgba del primary-color con opacidad */

  /* Transiciones para todas las propiedades que cambian */
  transition: background-color 0.3s ease, color 0.3s ease,
    box-shadow 0.3s ease-in-out; /* Más lento para la pulsación */
}

.cta-button:hover {
  background-color: var(
    --dark-color
  ); /* Color de fondo del botón al hacer hover */
  color: var(--light-color); /* Color del texto al hacer hover */
  box-shadow: 0 0 1px 1px var(--primary-color) inset; /* mismo primary-color con opacidad */
}

/* --- Content Sections --- */

.content-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.5em;
}

.bg-light {
  background-color: var(--light-color);
}

/* --- Footer --- */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  text-align: center;
  padding: 20px 0;
  margin-top: 40px; /* Margen para separar del último contenido */
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .main-nav,
  .contact-info {
    display: none; /* Ocultar nav y contacto */
  }

  .menu-toggle {
    display: flex; /* Mostrar botón hamburguesa */
  }

  .header-content {
    justify-content: space-between;
  }

  .main-nav.active {
    display: flex;
    position: absolute;
    top: var(--header-height-scrolled); /* Debajo del header scrolleado */
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  #main-header.scrolled .main-nav.active {
    top: var(--header-height-scrolled);
  }
  #main-header .main-nav.active {
    top: var(--header-height-initial);
  }

  .main-nav.active ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav.active ul li {
    margin: 15px 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .content-section h2 {
    font-size: 2em;
  }

  /* Animación hamburguesa a X */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

.logo-img {
  max-width: 80%;
  height: auto;
  transition: transform 0.3s ease-in-out;
  border-radius: 0;
}

/* estilo de tablas */
table {
  width: 90%;
  border-collapse: collapse;
  margin: 0 auto;
  margin-bottom: 20px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.477);
}

th,
td {
  padding: 0.8rem;
  border-bottom: 2px solid var(--dark-color);
}

tr:nth-child(even) {
  background-color: #00000025;
}

tr:nth-child(odd) {
  background-color: #00000050;
}

th {
  background-color: var(--dark-color);
  color: var(--light-color);
}

/* Estilo para la lista */
.list {
  list-style: none; /* Elimina las viñetas por defecto */
  padding-left: 20px; /* Ajusta el padding para el icono */
  margin: 20px 0; /* Margen para separar la lista del contenido circundante */
}

.list li {
  position: relative; /* Necesario para posicionar el pseudo-elemento */
  padding-left: 25px; /* Espacio para el icono personalizado */
  margin-bottom: 10px; /* Espacio entre los elementos de la lista */
  line-height: 1.5; /* Altura de línea para mejor legibilidad */
  color: var(--primary-text-color); /* Color del texto de la lista */
}

.list li::before {
  content: "\2771"; /* Código Unicode para un asterisco o estrella pequeña. Puedes cambiarlo. */
  /* Otros ejemplos de iconos UTF-8:
       '\2713' (✓) - Tickmark
       '\25B6' (▶) - Triángulo derecho
       '\2605' (★) - Estrella
       '\2726' (✦) - Estrella de ocho puntas
       '\2022' (•) - Círculo negro (la viñeta por defecto)
    */

  position: absolute; /* Posicionamiento absoluto respecto al 'li' */
  left: 0; /* Alinea el icono al inicio del padding-left del 'li' */
  top: 0; /* Alinea el icono con la parte superior del texto */

  font-size: 1.2em; /* Tamaño del icono. Ajusta si es necesario. */
  color: var(--primary-color); /* Color del icono (tu color primario) */
  font-weight: bold; /* Hacer el icono más llamativo */
  line-height: 1.5; /* Coincide con el line-height del 'li' para alineación */
}

.content-columns-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 0 auto;

  padding: 0 1rem;
}

.cols-2-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.cols-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.bg-about {
  background-size: cover;
  background-position: center;
  width: 100%;

  justify-content: center;
  align-items: center;
}

.bg-dark-shaded {
  width: 100%;
  padding: 1rem 2rem;
  color: #fff;
  backdrop-filter: brightness(20%) contrast(150%) opacity(80%) blur(5px);
}

.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-left {
  text-align: left;
}

/* view() animations */
.autoRotate {
  animation: autoRotateAnimation;
  animation-timeline: view();
}
@keyframes autoRotateAnimation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.autoShow {
  animation: autoShowAnimation both;
  animation-timeline: view(85% 15%);
}
@keyframes autoShowAnimation {
  from {
    opacity: 0;
    transform: translateY(200px) scale(0.3);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.autoBlur {
  animation: autoBlurAnimation both;
  animation-timeline: view(70% 10%);
}
.autoBlur50 {
  animation: autoBlurAnimation both;
  animation-timeline: view(50% auto);
}
@keyframes autoBlurAnimation {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* timeline */
.timeline-container {
  width: 90%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  /* hide elements that overflows the container even with position absolute */
}

.timeline-component {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  position: relative;
}

.timeline-item {
  z-index: 2;
  grid-column-gap: 0;
  grid-row-gap: 0;
  grid-template-rows: auto;
  grid-template-columns: 1fr 30px 2fr;
  /* grid-auto-columns: 1fr; */

  display: grid;
  position: relative;
}

.timeline-left {
  text-align: right;
  align-items: stretch;
  height: 100%;
}

.timeline-center {
  justify-content: center;
  display: flex;
  /* vertical gradient transparent primary transparent */
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 40%,
    var(--primary-color) 43%,
    var(--primary-color) 58%,
    rgba(255, 255, 255, 0) 60%
  );
  height: 100%;
}

.timeline-date-text {
  color: var(--primary-color);
  letter-spacing: -0.03em;
  position: sticky;
  font-weight: bolder;
  font-size: 1.4rem;
  text-shadow: 1px 1px 3px #000000be;
  top: 50%;
  padding: 0.5rem;
  border-radius: 10px;
}

.timeline-text {
  color: #000000;
  letter-spacing: -0.03em;
  position: sticky;
  /* background color use --light color with opacity + blur */
  backdrop-filter: brightness(90%);
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 10px;
}

.timeline-circle {
  border-radius: 100%;
  background-color: var(--primary-color);
  width: 15px;
  height: 15px;
  position: sticky;
  top: 53%;
  box-shadow: 0px 0px 0px 5px #000000;
}

.timeline-progress {
  z-index: -2;
  background-color: var(--primary-color);
  width: 5px;
  position: absolute;
  height: 100%;
}

.section-timeline {
  z-index: -3;
  position: relative;
}

.margin-bottom-xlarge {
  margin-bottom: 0rem;
}

.shadow {
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.25);
}

/* 1. Preparamos el contenedor principal */
.products-container {
  display: flex; /* Activamos Flexbox */
  flex-wrap: wrap; /* Permitimos que los productos pasen a la siguiente línea */
  justify-content: center; /* Centramos las filas de productos */
  margin-left: auto; /* Estas dos líneas son la clave para centrar */
  margin-right: auto; /* un elemento de bloque. */
  padding: 0em 0; /* Un poco de espacio vertical */
}
/* 2. Definimos un tamaño base para cada producto */
.product {
  flex-basis: 40%; /* Cada producto ocupa un poco menos de la mitad para dejar espacio */
  margin: 0em; /* Un pequeño margen para que no estén pegados */
  box-sizing: border-box;
  text-align: center;
  width: 100%;
}
/* 3. Creamos el arco moviendo los productos con transform */
/* Fila 1: Los más cercanos al centro */
.product:nth-child(1) {
  transform: translateX(20%); /* Mueve el primer product 25% a la derecha */
}
.product:nth-child(2) {
  transform: translateX(-20%); /* Mueve el segundo product 25% a la izquierda */
}
/* Fila 2: Un poco más separados */
.product:nth-child(3) {
  transform: translateX(0%);
}
.product:nth-child(4) {
  transform: translateX(0%);
}
/* Fila 3: Aún más separados */
.product:nth-child(5) {
  transform: translateX(-20%);
}
.product:nth-child(6) {
  transform: translateX(20%);
}
/* Fila 4 y siguientes (opcional): Se mostrarían sin transformación, en su
      posición natural */
.product:nth-child(7) {
  transform: translateX(-35%);
}
.product:nth-child(8) {
  transform: translateX(35%);
}
