:root {
  --rojo: #d71920;
  --rojo-oscuro: #a91117;
  --negro: #08121c;
  --negro-suave: #111;
  --gris: #f5f5f5;
  --gris-medio: #e9e9e9;
  --texto: #222;
  --blanco: #fff;
  --sombra: 0 8px 22px rgba(0,0,0,.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.5;
}

/* TOPBAR */

.topbar {
  background: var(--negro-suave);
  color: white;
  padding: 8px 8%;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* NAVBAR */

.navbar {
  background: white;
  border-bottom: 4px solid var(--rojo);
  padding: 16px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo img {
  max-height: 72px;
  width: auto;
  display: block;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
}

.menu a {
  color: var(--negro-suave);
  text-decoration: none;
  font-weight: bold;
  transition: .25s;
}

.menu a:hover,
.active-link {
  color: var(--rojo) !important;
}

.home-icon {
  font-size: 22px;
}

/* DROPDOWN */

.dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.dropdown-btn {
  background: var(--rojo);
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 7px;
  font-size: 15px;
  transition: .25s;
}

.dropdown-btn:hover {
  background: var(--rojo-oscuro);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  background: white;
  min-width: 270px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,.22);
  overflow: hidden;
  z-index: 9999;
}

.dropdown-content a {
  display: block;
  padding: 16px 20px;
  color: var(--negro-suave);
  text-decoration: none;
  font-weight: bold;
  line-height: 1.2;
}

.dropdown-content a:hover {
  background: var(--rojo);
  color: white !important;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* HERO */

.hero {
  min-height: 420px;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("../img/banner1.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  padding: 90px 8%;
}

.hero-text {
  max-width: 780px;
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 14px;
}

.hero-text p {
  font-size: 20px;
  margin-bottom: 26px;
}

/* GENERAL */

.section {
  padding: 70px 8%;
}

.gray {
  background: var(--gris);
}

.section h2,
.page-header h1 {
  font-size: 34px;
  margin-bottom: 22px;
  color: var(--negro);
  border-left: 6px solid var(--rojo);
  padding-left: 14px;
}

.section p {
  font-size: 17px;
  margin-bottom: 12px;
}

.page-header {
  background: var(--gris);
  padding: 75px 8%;
  border-bottom: 4px solid var(--rojo);
}

.page-header p {
  font-size: 18px;
}

/* LAYOUTS */

.two-columns {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 35px;
  align-items: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* CARDS */

.card {
  background: white;
  padding: 28px;
  border-radius: 14px;
  border-top: 4px solid var(--rojo);
  box-shadow: var(--sombra);
  transition: .25s;
}

.card:hover {
  transform: translateY(-4px);
}

.card h2,
.card h3 {
  margin-bottom: 12px;
  color: var(--negro);
}

.highlight-card {
  background: linear-gradient(180deg, #ffffff, #f8f8f8);
}

.disabled {
  opacity: .55;
  filter: grayscale(1);
}

/* BUTTONS */

.btn-primary,
.btn-secondary,
.disabled button {
  display: inline-block;
  margin-top: 18px;
  background: var(--rojo);
  color: white;
  padding: 13px 22px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: .25s;
}

.btn-primary:hover,
.btn-secondary:hover {
  background: var(--rojo-oscuro);
  transform: translateY(-2px);
}

/* CAROUSEL */

.carousel {
  position: relative;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  background: #ddd;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.55);
  color: white;
  border: none;
  font-size: 42px;
  padding: 8px 16px;
  cursor: pointer;
  transition: .25s;
}

.carousel-btn:hover {
  background: var(--rojo);
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

/* EVENTS */

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.event-card {
  background: white;
  border-left: 6px solid var(--rojo);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--sombra);
  transition: .25s;
}

.event-card:hover {
  transform: translateY(-4px);
}

.date {
  color: var(--rojo);
  font-weight: bold;
  font-size: 14px;
}

/* TAGS */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tag-list span {
  background: var(--negro);
  color: white;
  padding: 12px 18px;
  border-radius: 30px;
  font-weight: bold;
}

/* LISTS */

.custom-list {
  padding-left: 20px;
}

.custom-list li {
  margin-bottom: 10px;
}

/* FOOTER */

.footer {
  background: rgba(0, 10, 25, 0.96);
  color: white;
  padding-top: 50px;
  margin-top: 0;
}

.footer-container {
  width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  padding-bottom: 45px;
}

.footer-column h3 {
  font-size: 26px;
  margin-bottom: 25px;
  color: white;
}

.footer-column p {
  margin-bottom: 18px;
  line-height: 1.7;
  color: #ddd;
}

.footer-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-btn {
  background: var(--rojo);
  color: white;
  padding: 12px 18px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: .25s;
}

.footer-btn:hover {
  background: var(--rojo-oscuro);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.social-links a {
  color: white;
  text-decoration: none;
  transition: .25s;
  font-weight: bold;
}

.social-links a:hover {
  color: var(--rojo);
}

.footer-bottom {
  background: rgba(0,0,0,.35);
  text-align: center;
  padding: 22px;
  font-size: 15px;
  color: #ddd;
}

/* CHATBOT */

df-messenger {
  --df-messenger-button-titlebar-color: #d71920;
  --df-messenger-chat-background-color: #ffffff;
  --df-messenger-font-color: #222;
  --df-messenger-send-icon: #d71920;
  z-index: 999;
}

/* RESPONSIVE */

@media (max-width: 950px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu {
    margin-top: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .dropdown-content {
    position: static;
    margin-top: 8px;
  }

  .two-columns,
  .cards-grid,
  .calendar-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 17px;
  }

  .carousel {
    height: 260px;
  }
}

@media (max-width: 600px) {
  .topbar {
    font-size: 13px;
  }

  .section,
  .page-header,
  .hero {
    padding-left: 6%;
    padding-right: 6%;
  }

  .section h2,
  .page-header h1 {
    font-size: 28px;
  }

  .footer-column h3 {
    font-size: 22px;
  }
}