html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: var(--blanco);
  color: var(--negro);
}
section {
padding: 6rem 2rem;
}
.hexasphere-hero {
  background-image: url('assets/fondohexasphere.png'); 
  background-size: cover;
  background-position: center;
  height: 110vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  background: rgba(0, 0, 0, 0.7);
  padding: 3rem;
  text-align: center;
  color: var(--blanco);
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.hero-content h1 {
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  font-size: 3.5rem; /* antes: 2.5rem */
  margin-bottom: 1rem;
  color: var(--amarillo2);
}
.hero-content h1 {
  font-size: 3.5rem;
  color: white;
  font-weight: 800;
  margin-bottom: 1.2rem;
  text-align: center;
  line-height: 1.2;
}

.hero-content .highlight {
  color: var(--amarillo2); /* o #FFD700 */
}

.hero-content .sub {
  font-size:  20px;
  color: #e0e0e0;
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.6;
}

.btn-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 2rem;
  color: var(--azul); /* define si no está */
  text-decoration: underline;
  transition: 0.3s ease;
}

.btn-link:hover {
  color: var(--rojoVino);
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
}
.hero-content a {
  background-color: var(--amarillo2);
  color: var(--rojoVino);
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}
.hero-content a:hover {
  background-color: var(--blanco);
}

.intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 2.1rem;
}
#categorias {
  margin-top: 1rem; /* antes 3rem */
  padding-top: 0;   /* elimina relleno extra */
}
.categorias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* Solo 2 tarjetas por fila */
  gap: 2rem;
  margin: 1rem auto 3rem auto;
  padding: 0 2rem;
}

/* Tarjeta estilo horizontal */
.categoria-card {
  position: relative;
  display: flex;
  align-items: stretch;
  background-color: var(--rojoVinoClaro); /* Puedes cambiar a blanco si prefieres */
  color: var(--blanco);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  
  min-height: 220px; /* Altura uniforme */

  opacity: 0;
  transform: translateY(50px);
  will-change: transform;
  animation: fadeSlideBlur 1s ease forwards;

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.categoria-card:nth-child(1) { animation-delay: 0.1s; }
.categoria-card:nth-child(2) { animation-delay: 0.3s; }
.categoria-card:nth-child(3) { animation-delay: 0.5s; }
.categoria-card:nth-child(4) { animation-delay: 0.7s; }
.categoria-card:nth-child(5) { animation-delay: 0.9s; }
.categoria-card:nth-child(6) { animation-delay: 1.1s; }
.categoria-card:nth-child(7) { animation-delay: 1.3s; }
.categoria-card:nth-child(8) { animation-delay: 1.5s; }

.categoria-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(12px);
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.categoria-card:hover::before {
  opacity: 0.25; /* Glow sutil */
}

.categoria-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.categoria-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}
/* Imagen a la izquierda */
.categoria-card img {
  width: 40%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease, filter 0.3s ease;
  flex-shrink: 0;
}

/* Contenido a la derecha */
.contenido-texto {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  flex: 1;
}

/* Texto */
.contenido-texto h3 {
  color: var(--amarillo);
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

.contenido-texto p {
  margin: 0.5rem 0 1rem;
  font-size: 1.7rem;
  line-height: 1.4;
  color: var(--blanco);
  flex-grow: 1; /* Empuja el botón al final */
}

/* Botón */
.btn-ver-mas {
  color: var(--amarillo2);
  border-radius: 12px;
  align-self: flex-start;
  border: 1px solid var(--amarillo2);
  padding: 0.5rem 1.5rem;
  box-shadow: var(--negro) 0px 10px 15px -3px, var(--boxShadow2) 0px 4px 6px -2px;
  transition-property: all;
  transition-duration: 0.5s;
}

.btn-ver-mas:hover {
  color: var(--rojoVinoClaro);
  background-color: var(--amarillo2);
}
/* Animación Keyframes Premium */
@keyframes fadeSlideBlur {
  0% {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(8px);
  }
  70% {
    opacity: 1;
    transform: none;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Sección final tipo hero */
.seccion-final {
  position: relative;
  width: 100%;
  height: 60vh; /* Ajusta la altura */
  background: url('assets/cerebrot.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8%;
  overflow: hidden;
}

/* Overlay oscuro para mejorar legibilidad */
.seccion-final .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Oscurece la imagen */
  z-index: 1;
}

/* Contenido encima de la imagen */
.contenido-final {
  position: relative;
  z-index: 2;
  color: var(--blanco);
  max-width: 550px;
}

.contenido-final h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contenido-final p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Botón */
.btn-final {
  color: var(--amarillo2);
  border-radius: 12px;
  align-self: flex-start;
  border: 1px solid var(--amarillo2);
  padding: 0.5rem 1.5rem;
  box-shadow: var(--negro) 0px 10px 15px -3px, var(--boxShadow2) 0px 4px 6px -2px;
  transition-property: all;
  transition-duration: 0.5s;
}

.btn-final:hover {
  color: var(--rojoVinoClaro);
  background-color: var(--amarillo2);
}

/* Responsive */
@media (max-width: 768px) {
  .seccion-final {
    height: 50vh;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
  }
  .contenido-final {
    max-width: 100%;
  }
}