/* ========================
   Variables de Color
======================== */
:root {
  --primary-color: #b22222;   /* Rojo profundo */
  --secondary-color: #e63946; /* Rojo vibrante/acento */
  --dark-color: #1a1a1a;      /* Negro suave */
  --light-color: #f8f9fa;     /* Fondo claro */
  --gray-color: #6c757d;      /* Gris texto */
  --white: #ffffff;
}

/* ========================
   Global
======================== */
body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  color: var(--secondary-color);
}

/* ========================
   Banner superior (alerta)
======================== */
.alerts {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.7rem;
  font-weight: 600;
}

.alerts a {
  color: var(--white);
  font-weight: bold;
  margin-left: 0.5rem;
}

.alerts a:hover {
  text-decoration: underline;
}

/* ========================
   Navbar
======================== */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  color: var(--dark-color);
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

/* Botón login */
.navbar .btn, 
.button1 {
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.navbar .btn:hover, 
.button1:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* ========================
   Carrusel
======================== */
.carousel img {
  border-radius: 12px;
  max-height: 520px;
  object-fit: cover;
}

/* ========================
   Tarjetas
======================== */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(178, 34, 34, 0.3);
}

.card-title {
  color: var(--primary-color);
  font-weight: 600;
}

.card-text {
  font-size: 0.95rem;
  color: var(--gray-color);
}

.card img {
  height: 200px;
  object-fit: cover;
}

/* ========================
   Eventos
======================== */
section h2, 
section h1 {
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--secondary-color);
  display: inline-block;
  padding-bottom: 0.4rem;
}

/* ========================
   Footer
======================== */
footer {
  background-color: var(--primary-color);
  color: var(--white);
}

footer h5 {
  color: var(--secondary-color);
  font-weight: 700;
}

footer a {
  color: var(--white);
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--secondary-color);
}

footer .social-icons a {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

footer .social-icons a:hover {
  transform: scale(1.2);
  color: var(--secondary-color);
}

/* ========================
   Animaciones personalizadas
======================== */
.card-animation {
  animation: fadeUp 1s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
