/* Importar fuentes profesionales */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Variables CSS para colores profesionales */
:root {
  --primary-color: #f59e0b;
  --primary-dark: #d97706;
  --secondary-color: #0f172a;
  --accent-color: #fbbf24;
  --success-color: #059669;
  --warning-color: #d97706;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --background-light: #f8fafc;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

/* Container general */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Barra superior de contacto */
#barra-superior {
  background: var(--secondary-color);
  color: var(--white);
  padding: 12px 0;
  font-size: 0.9rem;
}

.contenedor-barra {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.info-contacto-top {
  display: flex;
  gap: 30px;
}

.info-contacto-top span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-contacto-top i {
  color: var(--accent-color);
  font-size: 0.8rem;
}

/* Estilos del encabezado */
#encabezado {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 15px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

#logo-cooperativa {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.2;
}

.subtitulo {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  font-weight: 400;
}

#menu-navegacion {
  display: flex;
  align-items: center;
  gap: 30px;
}

.enlace-menu {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: all 0.3s ease;
}

.enlace-menu:hover {
  color: var(--primary-color);
}

.enlace-menu.active {
  color: var(--primary-color);
}

.enlace-menu.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.btn-login {
  background: var(--primary-color);
  color: var(--white) !important;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
}

.btn-login:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Hero section */
#hero-paradas {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Sección información de la cooperativa */
#info-cooperativa {
  padding: 80px 0;
  background: var(--white);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 30px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 2px;
}

.info-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 40px;
}

.info-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--background-light);
  border-radius: 15px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.coop-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

/* Sección de paradas */
#paradas-section {
  padding: 80px 0;
  background: var(--background-light);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.paradas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.parada-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.parada-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.parada-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.parada-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.parada-card:hover .parada-img {
  transform: scale(1.05);
}

.parada-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-color);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.parada-content {
  padding: 30px;
}

.parada-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.parada-info {
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.info-item i {
  color: var(--primary-color);
  width: 16px;
}

.parada-description {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Sección de contacto rápido */
#contacto-rapido {
  padding: 80px 0;
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.contacto-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contacto-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contacto-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-contacto {
  background: var(--white);
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-contacto:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-contacto-secondary {
  background: transparent;
  color: var(--white);
  padding: 15px 30px;
  border: 2px solid var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-contacto-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Footer */
#pie-pagina {
  background: #1a1a1a;
  color: white;
  padding: 60px 0 20px;
  margin: 0;
  margin-top: 60px;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

#contenido-footer {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  margin-bottom: 40px;
  padding: 0 20px;
}

.columna-footer {
  padding: 0 20px;
}

.titulo-footer {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 15px;
}

.titulo-footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.lista-footer {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-footer li {
  margin-bottom: 12px;
}

.enlace-footer {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: block;
  padding: 5px 0;
}

.enlace-footer:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.redes-sociales {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.red-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.red-social.facebook { background: #3b5998; color: white; }
.red-social.twitter { background: #1da1f2; color: white; }
.red-social.instagram { background: #e4405f; color: white; }
.red-social.whatsapp { background: #25d366; color: white; }

.red-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.texto-footer {
  line-height: 1.7;
  color: #cccccc;
  font-size: 0.95rem;
  margin-top: 20px;
}

#copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  color: #888;
}

#copyright p {
  margin: 8px 0;
  font-size: 0.9rem;
}

.desarrollado-por {
  font-size: 0.85rem;
  margin-top: 10px;
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Aplicar animaciones a las secciones */
#hero-paradas {
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

#info-cooperativa {
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.info-text {
  animation: fadeInLeft 0.6s ease-out;
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

.info-image {
  animation: fadeInRight 0.6s ease-out;
  animation-delay: 0.6s;
  animation-fill-mode: both;
}

#paradas-section .section-title {
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 0.8s;
  animation-fill-mode: both;
}

#paradas-section .section-subtitle {
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 1.0s;
  animation-fill-mode: both;
}

.parada-card:nth-child(1) {
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 1.2s;
  animation-fill-mode: both;
}

.parada-card:nth-child(2) {
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 1.4s;
  animation-fill-mode: both;
}

.parada-card:nth-child(3) {
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 1.6s;
  animation-fill-mode: both;
}

.parada-card:nth-child(4) {
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 1.8s;
  animation-fill-mode: both;
}

.parada-card:nth-child(5) {
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 2.0s;
  animation-fill-mode: both;
}

#contacto-rapido {
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 2.2s;
  animation-fill-mode: both;
}

#pie-pagina {
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 2.4s;
  animation-fill-mode: both;
}

/* Estados iniciales para elementos animados */
#info-cooperativa,
.info-text,
.info-image,
#paradas-section .section-title,
#paradas-section .section-subtitle,
.parada-card,
#contacto-rapido,
#pie-pagina {
  opacity: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .info-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .paradas-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contacto-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 20px;
  }
  
  #menu-navegacion {
    gap: 15px;
  }
  
  #familia-section .slider-container {
    max-width: 600px;
    margin: 0 auto;
  }
  
  #familia-section .slider-wrapper {
    height: 300px;
  }
  
  #familia-section .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  #familia-section .prev-btn {
    left: 10px;
  }
  
  #familia-section .next-btn {
    right: 10px;
  }
  
  #familia-section .indicator {
    width: 8px;
    height: 8px;
  }
}

/* Estilos para la sección de familia */
#familia-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

#familia-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  animation: floating 20s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(10px) rotate(1deg); }
}

/* Slider de imágenes - Enfoque simplificado */
#familia-section .slider-container {
  max-width: 800px;
  margin: 50px auto 0;
  position: relative;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  padding: 0;
}

#familia-section .slider-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  background: #f0f0f0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

#familia-section .slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

#familia-section .slider-track .slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

#familia-section .slider-track .slider-image.active {
  opacity: 1;
  z-index: 2;
}

/* Botones de navegación simplificados */
#familia-section .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(245, 158, 11, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#familia-section .slider-btn:hover {
  background: #f59e0b;
  transform: translateY(-50%) scale(1.1);
}

#familia-section .prev-btn {
  left: 15px;
}

#familia-section .next-btn {
  right: 15px;
}

/* Indicadores simplificados */
#familia-section .slider-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
  padding: 0 20px;
}

#familia-section .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

#familia-section .indicator.active {
  background: #000000;
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#familia-section .indicator:hover:not(.active) {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}

/* Animación de entrada */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#familia-section .section-title,
#familia-section .section-subtitle {
  animation: slideInUp 0.8s ease-out;
}

.slider-container {
  animation: slideInUp 1s ease-out 0.3s both;
}
