/* 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;
  --info-color: #3b82f6;
  --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);
  --shadow-colored: 0 10px 25px rgba(245, 158, 11, 0.2);
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #1e293b 100%);
}

/* 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: var(--background-light);
  overflow-x: hidden;
}

/* Barra superior de contacto */
#barra-superior {
  background: var(--gradient-secondary);
  padding: 10px 0;
  border-bottom: 3px solid var(--primary-color);
}

.contenedor-barra {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.info-contacto-top {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.info-contacto-top span {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-contacto-top i {
  color: var(--primary-color);
  font-size: 1rem;
}

/* Encabezado */
#encabezado {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.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;
}

.subtitulo {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  font-weight: 500;
}

#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);
}

/* Sección Hero */
#hero-paradas {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero-paradas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Secciones de información */
.info-section {
  padding: 80px 0;
}

.info-section.alternate {
  background: rgba(245, 158, 11, 0.02);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-content.reverse {
  grid-template-columns: 1fr 1fr;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-icon {
  color: var(--primary-color);
  font-size: 2rem;
}

.content-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.section-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 30px;
}

.section-image {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  box-shadow: var(--shadow-lg);
}

/* Específico para la sección de historia */
#historia-section .section-image {
  display: inline-block;
  width: fit-content;
  margin: 0 auto;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.info-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 20px;
}

.logo-historia {
  object-fit: contain;
  background: var(--white);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  width: 90%;
  border-radius: 20px;
  display: block;
  margin: 0 auto;
}

.section-image:hover .logo-historia {
  transform: scale(1.02);
}

.section-image:hover .info-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 30px 20px;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.overlay-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  display: block;
  line-height: 1.4;
  margin: 0;
}

/* Highlight Box */
.highlight-box {
  background: rgba(245, 158, 11, 0.05);
  padding: 25px;
  border-radius: 15px;
  border-left: 4px solid var(--primary-color);
  margin-top: 20px;
}

.highlight-box h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.commitment-list {
  list-style: none;
}

.commitment-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-dark);
}

.commitment-list i {
  color: var(--success-color);
  font-size: 1rem;
}

/* Estadísticas del equipo */
.team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-box {
  text-align: center;
  padding: 25px;
  background: rgba(245, 158, 11, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Timeline */
.timeline {
  margin-top: 30px;
}

.timeline-item {
  display: flex;
  gap: 25px;
  margin-bottom: 30px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 45px;
  top: 50px;
  width: 2px;
  height: 60px;
  background: var(--border-color);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-year {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  min-width: 80px;
  height: fit-content;
}

.timeline-content {
  flex: 1;
}

.timeline-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Grid de valores */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.valor-item {
  text-align: center;
  padding: 30px 20px;
  background: rgba(245, 158, 11, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  transition: all 0.3s ease;
}

.valor-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary-color);
}

.valor-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
}

.valor-icon i {
  font-size: 2rem;
  color: var(--white);
}

.valor-item h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.valor-item p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* Sección de contacto rápido */
#contacto-rapido {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.contacto-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.contacto-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.contacto-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-contacto {
  background: var(--white);
  color: var(--primary-color);
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.btn-contacto:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--background-light);
}

/* Pie de página */
#pie-pagina {
  background: var(--gradient-secondary);
  color: var(--white);
  padding: 60px 0 20px;
}

#contenido-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.titulo-footer {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lista-footer {
  list-style: none;
}

.lista-footer li {
  margin-bottom: 12px;
}

.enlace-footer {
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.enlace-footer:hover {
  color: var(--primary-color);
  opacity: 1;
  padding-left: 5px;
}

.redes-sociales {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.red-social {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.red-social:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.texto-footer {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

#copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

#copyright p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.highlight {
  color: var(--primary-color);
  font-weight: 700;
}

/* Efectos de navegación suave */
.scroll-link {
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-link:hover {
  transform: translateX(5px);
  color: var(--primary-color) !important;
}

/* Efecto de resaltado para secciones */
.info-section {
  transition: all 0.3s ease;
}

.info-section.highlighted {
  background: rgba(245, 158, 11, 0.1);
  border-radius: 10px;
  transform: scale(1.01);
}

/* Animaciones para el hero y las secciones */
#hero-paradas {
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

/* Animación de entrada para las secciones */
.info-section {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.info-section:nth-child(1) { animation-delay: 0.1s; }
.info-section:nth-child(2) { animation-delay: 0.2s; }
.info-section:nth-child(3) { animation-delay: 0.3s; }
.info-section:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Indicador visual para secciones activas */
.section-active {
  position: relative;
}

.section-active::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    height: 0;
    top: 50%;
  }
  to {
    height: 100%;
    top: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .info-contacto-top {
    gap: 15px;
    text-align: center;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 20px;
  }
  
  #menu-navegacion {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .page-subtitle {
    font-size: 1.1rem;
  }
  
  .section-content,
  .section-content.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .content-card {
    padding: 30px 25px;
  }
  
  .team-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .valores-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  #contenido-footer {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .redes-sociales {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .info-contacto-top {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-content {
    padding: 0 15px;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .section-title {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .content-card {
    padding: 25px 20px;
  }
  
  .timeline-item {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .timeline-item::before {
    display: none;
  }
  
  .contacto-content h2 {
    font-size: 2rem;
  }
  
  .btn-contacto {
    padding: 12px 25px;
    font-size: 1rem;
  }
}
