/* ¡CORRECCIÓN CLAVE! Esto asegura que el padding, el border y el width (25%)
   sean calculados de forma perfecta por el navegador, eliminando el error de cálculo. */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 1. Definición de la animación para <hr> */
@keyframes expandir-hr {
  0% {
    width: 0%; 
  }
  100% {
    width: 80%; 
  }
}

/* 2. Aplicación de la animación a <hr> */
hr {
  border: none;
  height: 2px;
  background-color: #00000021;
  width: 80%; 
  margin: 10px auto; 
  
  /* Propiedades de animación */
  animation-name: expandir-hr;
  animation-duration: 1s; 
  animation-timing-function: ease; 
  animation-fill-mode: forwards;
}

h1 {
  text-align: center;
}

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

button {
  display: block;
  margin: 0 auto;
}

.img-grande {
  height: 15vh;
  image-rendering: pixelated; 
  image-rendering: crisp-edges;
}

.boton-transparente {
  background-color: transparent;
  border: none;
  color: #333; 
  padding: 10px 20px; 
  cursor: pointer;
  font-size: 16px;
}

/* --- ESTILOS DE LOGOS DE REDES SOCIALES --- */
.red-logo img {
  width: 4vw;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4); 
  border-radius: 8px; 
  transition: box-shadow 0.3s ease-in-out, transform 0.2s ease-out;
}

.red-logo img:hover {
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.8), 0 0 10px rgba(0, 123, 255, 0.5);
  transform: scale(1.05); 
}

.fondo-sutil {
  background-color: #EEEEEE; 
  border-radius: 15px; 
  padding: 20px 30px; 
  display: inline-block; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
} 

.bloque-centro {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contenedor-botones-horizontales {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* --- SLIDER DE AMIGOS --- */
.slider-container {
  width: 100%;
  overflow: hidden; 
  background-color: rgba(107, 51, 51, 0.9);
  padding: 20px 0;
  border-radius: 100px;
}

.slider-track {
  display: flex;
  /* ¡CORRECCIÓN DE ANIMACIÓN! Esto fuerza la aceleración de hardware para un movimiento suave */
  transform: translateZ(0); 
  animation: scroll-left 25s linear infinite;
}

.slide {
  flex-shrink: 0; 
  width: 25%;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  padding: 10px 5px; 
}

/* Estilo de la imagen del amigo (Avatar) */
.slide img {
  width: 10vw;
  height: 10vw;
  object-fit: cover; 
  border-radius: 50%; 
  margin: 0; 
  margin-bottom: 5px; 
  transition: transform 0.3s ease-out;
  border: 5px solid #000000;
}

/* Efecto de agrandar la imagen al hacer hover */
.slide a:hover img {
    transform: scale(1.1);
}

/* Estilo del nombre del amigo */
.nombre-amigo {
    font-size: 1.5vw;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

@keyframes scroll-left {
  0% { 
    transform: translateX(0%); 
  }
  100% { 
    /* Mueve la distancia de 4 slides (25% * 4 = 100%) */
    transform: translateX(-100%); 
  } 
}

/* Opcional: Detener al pasar el ratón */
.slider-container:hover .slider-track {
  animation-play-state: paused;
}

body {
  text-align: center;
  background-color:#ed1c24
}

/* --- ESTILO DEL CRÉDITO (AUTOR) CORREGIDO --- */
.autor {
  text-align: center;
  font-size: 14px;
  color: #600a0a;
  margin-top: 10px;
  
  /* Sombra de texto (ya existía) */
  text-shadow: #00000095 2px 3px 3px; 
  
  /* ¡SOMBRA DEL BLOQUE AÑADIDA! (box-shadow) */
  background-color: #f7f7f7; /* Fondo sutil para que la sombra se vea */
  padding: 5px 15px; 
  border-radius: 5px; 
  display: inline-block; /* Hace que la caja se ajuste al tamaño del texto */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* La sombra oscura que solicitaste */
}