/* =========================================================
   MUNCH 2025 — Estilos principales mejorados
   ========================================================= */

/* 🎨 Variables institucionales */
:root {
  --blue: #334497;
  --blue-dark: #2a387b;
  --blue-light: #4a5bb9;
  --gold: #f7ac1d;
  --gold-dark: #e39c10;
  --light-bg: #f8f9fa;
  --dark-bg: #1a1a2e;
  --text-dark: #333;
  --text-muted: #6c757d;
  --shadow: 0 5px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

/* 🧩 Reset general mejorado */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================
 🔵 NAVBAR MEJORADA
 =========================== */
.nav-hispano {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1030;
  background-color: rgba(51, 68, 151, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
}

.nav-hispano.scrolled {
  background-color: rgba(51, 68, 151, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
}

.nav-hispano .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1.25rem;
}

.nav-hispano .navbar-brand img {
  height: 45px;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.nav-hispano .navbar-brand:hover img {
  transform: rotate(-5deg) scale(1.1);
}

.nav-hispano .nav-link {
  color: #fff !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-hispano .nav-link:hover,
.nav-hispano .nav-link.active {
  color: var(--gold) !important;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-hispano .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-hispano .nav-link:hover::after,
.nav-hispano .nav-link.active::after {
  width: 70%;
}

/* Botones de navegación */
.nav-hispano .btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--blue) !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(247, 172, 29, 0.3);
  margin-left: 1rem;
}

.nav-hispano .btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-dark), #d18c0b);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 172, 29, 0.4);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===========================
 🎞️ HERO CARRUSEL MEJORADO
 =========================== */
.hero-section {
  margin-top: 76px; /* Altura de la navbar */
  position: relative;
  overflow: hidden;
}

#heroCarousel {
  height: calc(100vh - 76px);
  min-height: 600px;
}

.carousel-item {
  height: 100%;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform 8s ease-in-out;
}

.carousel-item.active img {
  transform: scale(1.05);
}

/* Efecto de fade mejorado */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* Textos del carrusel mejorados */
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 90%;
  max-width: 800px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.carousel-caption h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.carousel-caption h2 {
  font-size: 1.6rem;
  font-weight: 400;
  color: #f8f9fa;
  margin-bottom: 2rem;
  line-height: 1.4;
}

/* Botones del carrusel */
.carousel-caption .btn {
  border-radius: 50px;
  font-weight: 600;
  padding: 12px 30px;
  margin: 0.25rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

/* Flechas de navegación mejoradas */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(247, 172, 29, 0.9);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 2rem;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 60%;
  width: 30px;
  height: 30px;
}

/* Indicadores mejorados */
.carousel-indicators {
  bottom: 2rem;
  margin: 0;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.carousel-indicators .active {
  background-color: var(--gold);
  border-color: #fff;
  transform: scale(1.2);
}

/* ===========================
 🎬 Animaciones mejoradas
 =========================== */
@keyframes fadeUp {
  0% { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.carousel-caption h1,
.carousel-caption h2,
.carousel-caption .btn {
  opacity: 0;
  transform: translateY(30px);
}

.carousel-item.active .carousel-caption h1 {
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}

.carousel-item.active .carousel-caption h2 {
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.6s;
}

.carousel-item.active .carousel-caption .btn {
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.9s;
}

/* ===========================
 📦 SECCIONES Y COMPONENTES MEJORADOS
 =========================== */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  color: var(--blue);
  font-weight: 700;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 2px;
}

/* Cards mejoradas */
.card-feature,
.comission-card,
.team-card,
.resource-card {
  border: none;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #fff;
}

.card-feature:hover,
.comission-card:hover,
.team-card:hover,
.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* Cards de características */
.card-feature {
  padding: 2.5rem 1.5rem;
  text-align: center;
  height: 100%;
  border-top: 4px solid var(--blue);
}

.card-feature i {
  font-size: 3rem;
  color: var(--blue);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-feature h5 {
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Cards de comisiones */
.comission-card {
  height: 100%;
  position: relative;
}

.comission-card .card-body {
  padding: 2rem;
  text-align: center;
}

.comission-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-low {
  background-color: #d1ecf1;
  color: #0c5460;
}

.badge-medium {
  background-color: #d4edda;
  color: #155724;
}

.badge-high {
  background-color: #f8d7da;
  color: #721c24;
}

/* Cards de equipo */
.team-card {
  height: 100%;
  text-align: center;
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 5px solid var(--blue);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.team-card:hover .team-photo {
  transform: scale(1.05);
  border-color: var(--gold);
}

.team-card .card-title {
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-card .text-primary {
  color: var(--blue) !important;
  font-weight: 500;
}

/* Cards de recursos */
.resource-card {
  height: 100%;
}

.resource-card .card-body {
  padding: 2.5rem;
}

.resource-card .card-title {
  color: var(--blue);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* ===========================
 💛 SISTEMA DE BOTONES MEJORADO
 =========================== */
.btn,
button.btn,
a.btn,
.btn-primary,
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--blue) !important;
  border: none !important;
  border-radius: 50px;
  font-weight: 600;
  padding: 12px 30px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 15px rgba(247, 172, 29, 0.3);
  position: relative;
  overflow: hidden;
}

.btn:hover,
button.btn:hover,
a.btn:hover,
.btn-primary:hover,
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-dark), #d18c0b) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 172, 29, 0.4);
}

/* Botones outline */
.btn-outline-light {
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: none;
}

.btn-outline-light:hover {
  background: var(--gold) !important;
  color: var(--blue) !important;
  border-color: var(--gold) !important;
  transform: translateY(-2px);
}

/* ===========================
 👣 FOOTER MEJORADO
 =========================== */
footer {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  padding: 60px 0 20px;
}

footer h4,
footer h5 {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

footer a:hover {
  color: var(--gold);
  transform: translateX(5px);
}

footer .list-unstyled li {
  margin-bottom: 0.5rem;
}

footer .d-flex a {
  font-size: 1.25rem;
  margin-right: 1rem;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* ===========================
 💬 BOTÓN FLOTANTE MEJORADO
 =========================== */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1020;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(247, 172, 29, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  color: white;
  box-shadow: 0 8px 25px rgba(247, 172, 29, 0.6);
}

/* ===========================
 🎭 ANIMACIONES AL SCROLL
 =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
 🎯 ESTILOS PARA FORMULARIOS
 =========================== */
.form-control {
  border-radius: 10px;
  border: 1px solid #e1e5e9;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgba(51, 68, 151, 0.25);
}

/* ===========================
 📱 RESPONSIVE MEJORADO
 =========================== */
@media (max-width: 1200px) {
  .carousel-caption h1 {
    font-size: 3rem;
  }
  
  .carousel-caption h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    margin-top: 70px;
  }
  
  #heroCarousel {
    height: calc(100vh - 70px);
    min-height: 500px;
  }
  
  .carousel-caption h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .carousel-caption h2 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .carousel-caption .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin: 0.125rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 50px;
    height: 50px;
    margin: 0 1rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .nav-hispano .navbar-brand {
    font-size: 1.1rem;
  }
  
  .nav-hispano .navbar-brand img {
    height: 35px;
  }
}

@media (max-width: 576px) {
  .carousel-caption h1 {
    font-size: 1.75rem;
  }
  
  .carousel-caption h2 {
    font-size: 1rem;
  }
  
  .carousel-caption .btn {
    display: block;
    width: 80%;
    margin: 0.5rem auto;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .card-feature,
  .comission-card,
  .team-card,
  .resource-card {
    margin-bottom: 1.5rem;
  }
}

/* ===========================
 🎨 UTILIDADES ADICIONALES
 =========================== */
.bg-light-custom {
  background-color: var(--light-bg) !important;
}

.text-gold {
  color: var(--gold) !important;
}

.border-gold {
  border-color: var(--gold) !important;
}

.rounded-lg {
  border-radius: 15px !important;
}

.shadow-custom {
  box-shadow: var(--shadow) !important;
}

/* Efecto de gradiente para textos */
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.team-photo-md {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--blue);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
/* ===== ESTILOS PARA SECRETARIOS GENERALES ===== */

.secretarios-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.secretarios-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.secretarios-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.secretarios-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.secretarios-photo {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-bottom: 5px solid var(--gold);
}

.secretarios-badge {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.secretarios-content {
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.secretarios-names {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.secretarios-letter {
  line-height: 1.7;
  color: #555;
  flex-grow: 1;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.secretarios-letter p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

.secretarios-signature {
  font-weight: 700;
  color: var(--blue);
  margin-top: 1.5rem;
  font-size: 1.1rem;
  text-align: right;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

/* Scrollbar personalizado para la carta */
.secretarios-letter::-webkit-scrollbar {
  width: 6px;
}

.secretarios-letter::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.secretarios-letter::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

.secretarios-letter::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Animación de aparición */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .secretarios-section {
    padding: 2rem 0;
  }
  
  .secretarios-content {
    padding: 1.5rem;
  }
  
  .secretarios-names {
    font-size: 1.5rem;
  }
  
  .secretarios-photo {
    height: 250px;
  }
  
  .secretarios-letter {
    max-height: 300px;
  }
}

/* Asegurar que las variables de color estén definidas */
:root {
  --blue: #0d6efd; /* o tu azul personalizado */
  --blue-dark: #0b5ed7; /* versión más oscura */
  --gold: #ffc107; /* o tu dorado personalizado */
  --gold-dark: #e0a800; /* versión más oscura */
}