:root {
  --main-color: #15222b;
  --accent-color: #f7941e;
  --bg-gradient: linear-gradient(135deg, #15222b 40%, #243747 100%);
  --section-bg: #fff;
  --shadow-sm: 0 2px 12px rgba(21, 34, 43, 0.09);
  --shadow-md: 0 4px 24px rgba(21, 34, 43, 0.12);
  --shadow-lg: 0 8px 32px rgba(247, 148, 30, 0.13), 0 4px 18px rgba(21, 34, 43, 0.18);
  --radius: 14px;
  --radius-sm: 6px;
  --radius-pill: 99px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --bg-overlay: rgba(2, 2, 2, 0.6), rgba(0, 0, 0, 0.8);
}

/* Base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background:
    linear-gradient(var(--bg-overlay)),
    url("../img/banner.jpg") center top / cover no-repeat fixed;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--main-color);
  margin: 0;
  min-height: 100vh;
  /* padding-top: 56px; */
  overflow-x: hidden;
}

/* Header */


/* Navigation */
.navbar {
  background: rgba(21, 34, 43, 0.98);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

.navbar-brand img {
  height: 48px;
  transition: transform 0.2s ease;
  will-change: transform;
}

.navbar-brand:hover img {
  transform: scale(1.06);
}

.navbar-nav .nav-link {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-color);
}


/* Catálogo */
.catalogo-list {
  display: grid;
  gap: 2rem;
  padding: 1rem;
}

.catalogo-evento {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  align-items: stretch;
  background: #f8f9fa;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  border-left: 7px solid var(--accent-color);
  will-change: transform, box-shadow;
}

.catalogo-evento:hover {
  box-shadow: var(--shadow-lg);
  border-left-color: var(--main-color);
  transform: translateY(-4px) scale(1.01);
}

/* Image container */
.catalogo-evento-img {
  background: var(--section-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
}

.catalogo-evento-img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  will-change: transform;
}

.catalogo-evento:hover .catalogo-evento-img img {
  transform: scale(1.04);
}

/* Event body */
.catalogo-evento-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 2rem 1.5rem 1.2rem;
}

/* Event elements */
.catalogo-evento-modalidad {
  color: var(--section-bg);
  background: var(--accent-color);
  display: inline-block;
  padding: 0.25em 0.8em;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.catalogo-evento-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.7rem 0;
  color: var(--main-color);
  line-height: 1.3;
}

.catalogo-evento-link {
  color: var(--accent-color);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 1.04rem;
}

.catalogo-evento-link:hover {
  color: var(--main-color);
  text-decoration: none;
}

/* Event data */
.catalogo-evento-datos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.2rem 0 0.2rem 0;
}

.catalogo-evento-dato {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  font-size: 1rem;
  background: var(--section-bg);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-sm);
  min-width: 120px;
}

.catalogo-evento-dato i {
  color: var(--accent-color);
  font-size: 1.2em;
  flex-shrink: 0;
}

/* Action button */
.catalogo-evento-accion {
  margin-top: 1.5rem;
}

.catalogo-evento-registro {
  display: inline-block;
  background: var(--main-color);
  color: var(--section-bg);
  font-size: 1rem;
  border-radius: var(--radius-pill);
  padding: 0.75rem 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.5px;
  will-change: transform, background-color;
}

.catalogo-evento-registro:hover {
  background: var(--accent-color);
  color: var(--main-color);
  transform: scale(1.04);
  text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
  .catalogo-evento {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .catalogo-evento-img {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }

  .catalogo-evento-body {
    padding: 1rem;
  }

  .catalogo-evento-datos {
    justify-content: center;
    gap: 0.5rem;
  }

  .catalogo-evento-dato {
    min-width: auto;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/**
* Botones flotantes
*/
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.18), 0 2px 8px rgba(21, 34, 43, 0.10);
  font-size: 2.2rem;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  background: #1ebe5d;
  color: #fff;
  transform: scale(1.07);
  text-decoration: none;
}

.whatsapp-float i {
  line-height: 1;
}

@media (max-width: 575.98px) {
  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    right: 14px;
    bottom: 14px;
  }
}

/* Footer */
#footer {
  background: var(--main-color);
  color: #fff;
  font-size: 14px;
  position: relative;
}

#footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(247, 148, 30, 0.05) 0%, rgba(36, 55, 71, 0.1) 100%);
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 2;
  padding: 60px 0 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top .container {
  position: relative;
}

/* Footer Info */
.footer-info {
  margin-bottom: 30px;
}

.footer-info .logo img {
  max-height: 60px;
  width: auto;
  transition: var(--transition-fast);
  filter: brightness(1.1);
}

.footer-info .logo:hover img {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.footer-info p {
  font-size: 14px;
  line-height: 26px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-info p strong {
  color: var(--accent-color);
  font-weight: 600;
  margin-top: 15px;
  display: inline-block;
}

.footer-info p a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.footer-info p a:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* Social Links */
.social-links {
  margin-top: 25px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  margin-right: 10px;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--accent-color);
  color: var(--main-color);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(247, 148, 30, 0.3);
  border-color: var(--accent-color);
}

/* Footer Links */
.footer-links {
  margin-bottom: 30px;
}

.footer-links h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-color);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 40px;
  background: var(--accent-color);
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.footer-links ul li:last-child {
  border-bottom: none;
}

.footer-links ul li:hover {
  padding-left: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.footer-links ul a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-links ul a:hover {
  color: var(--accent-color);
}

.footer-links ul i {
  padding-right: 8px;
  color: var(--accent-color);
  font-size: 12px;
  line-height: 0;
  transition: var(--transition-fast);
}

.footer-links ul a:hover i {
  transform: translateX(5px);
}

/* Newsletter Section (Hidden) */
.footer-newsletter {
  margin-bottom: 30px;
}

.footer-newsletter h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-color);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 25px;
}

.footer-newsletter form {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.footer-newsletter form input[type="email"] {
  border: 0;
  padding: 8px;
  width: calc(100% - 120px);
  background: transparent;
  color: #fff;
  outline: none;
}

.footer-newsletter form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter form input[type="submit"] {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  background: var(--accent-color);
  color: var(--main-color);
  padding: 0 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.footer-newsletter form input[type="submit"]:hover {
  background: #fff;
  transform: scale(1.02);
}


/* Copyright */
.copyright {
  text-align: center;
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  position: relative;
  z-index: 2;
}

.copyright strong {
  color: var(--accent-color);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-top {
    padding: 40px 0 30px 0;
  }

  .footer-info {
    text-align: center;
    margin-bottom: 40px;
  }

  .footer-links {
    text-align: center;
    margin-bottom: 40px;
  }

  .footer-links h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-top+.container {
    padding: 30px 0 20px 0;
  }

  .footer-top+.container .col-lg-3 {
    margin-bottom: 15px;
  }

  .footer-top+.container img {
    max-width: 100px;
  }

  .social-links {
    justify-content: center;
    display: flex;
  }

  .copyright {
    padding: 20px 0;
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .footer-info p {
    font-size: 13px;
    line-height: 22px;
  }

  .footer-links h4 {
    font-size: 16px;
  }

  .footer-links ul a {
    font-size: 13px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin-right: 8px;
  }

  .footer-top+.container h6 {
    font-size: 14px;
  }

  .footer-top+.container img {
    max-width: 80px;
  }
}

/* Dark mode improvements */
@media (prefers-color-scheme: dark) {
  #footer {
    background: #0a0f14;
  }

  .footer-info p a:hover {
    color: #ffa726;
  }

  .social-links a:hover {
    background: #ffa726;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  #footer {
    border-top: 2px solid var(--accent-color);
  }

  .footer-links ul li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
  }

  .social-links a {
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

  .footer-info .logo img,
  .social-links a,
  .footer-links ul li,
  .footer-top+.container img {
    transition: none;
  }

  .social-links a:hover,
  .footer-top+.container img:hover {
    transform: none;
  }
}