/* Variables de color - Paleta profesional y moderna */
:root {
  --primary-color: #2c5f2d;
  --primary-light: #4a8c4f;
  --primary-dark: #1a3d1b;
  --secondary-color: #546e7a;
  --accent-color: #7cb342;
  --text-dark: #263238;
  --text-light: #546e7a;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
}

/* Navegación mejorada */
.navbar {
  background-color: var(--bg-white) !important;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--primary-light) !important;
  transform: scale(1.05);
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link:hover::after {
  width: 80%;
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.container {
  animation: fadeIn 0.6s ease-out;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h2.text-primary {
  color: var(--primary-color) !important;
  position: relative;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0.5rem;
}

h2.text-primary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
  border-radius: 2px;
}


.titulo-verde {
    color: #2c5f2d !important;
}

/* Párrafos */
.lead {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Tarjetas mejoradas */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  background: var(--bg-white);
  animation: fadeInUp 0.6s ease-out;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px var(--shadow);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-light);
  line-height: 1.7;
}

/* Bordes de tarjetas con colores sutiles */
.border-primary {
  border-left: 4px solid var(--primary-color) !important;
}

.border-success {
  border-left: 4px solid var(--accent-color) !important;
}

.border-info {
  border-left: 4px solid var(--secondary-color) !important;
}

/* Carrusel mejorado */
.carousel {
  border-radius: 12px;
  overflow: hidden;
}

.carousel-item img {
  filter: brightness(0.85);
  transition: var(--transition);
}

.carousel-item:hover img {
  filter: brightness(0.95);
}

.carousel-caption {
  background: rgba(44, 95, 45, 0.85) !important;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 1.5rem !important;
}

.carousel-caption h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.carousel-caption p {
  color: rgba(255, 255, 255, 0.95);
}

/* Botones mejorados */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(44, 95, 45, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 95, 45, 0.4);
}

/* Acordeón mejorado */
.accordion-button {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-weight: 600;
  border: none;
  transition: var(--transition);
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-light);
}

.accordion-body {
  background-color: var(--bg-white);
  color: var(--text-light);
  line-height: 1.8;
  padding: 1.5rem;
}

/* Iconos decorativos */
.display-4 {
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Footer mejorado */
footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

footer p {
  margin: 0;
  font-weight: 500;
}

/* Sombras sutiles */
.shadow, .shadow-sm {
  box-shadow: 0 4px 12px var(--shadow) !important;
}

/* Efectos de hover en imágenes */
img {
  transition: var(--transition);
}

.card img:hover {
  transform: scale(1.05);
}

/* Dropdown mejorado */
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px var(--shadow);
  border-radius: 8px;
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: 6px;
  transition: var(--transition);
  color: var(--text-light);
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: white;
}

/* Separadores de sección */
.row.mb-4, .row.mb-5 {
  animation: fadeInUp 0.6s ease-out;
}

/* Tabla de contenido */
.table-container {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px var(--shadow);
  margin: 2rem 0;
}

/* Enlaces de referencias */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Listas estilizadas */
ul.styled-list {
  list-style: none;
  padding-left: 0;
}

ul.styled-list li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
}

ul.styled-list li::before {
  content: '🌱';
  position: absolute;
  left: 0;
}

/* Responsive */
@media (max-width: 768px) {
  h2 {
    font-size: 1.75rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
}

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  margin: 100px auto;
  border: 4px solid var(--bg-light);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}



@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}