:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --background: #ffffff;
    --background-light: #f8fafc;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --yellow: #f5c02c;
    --green:#0b7544;
}

body {
     font-family: 'Segoe UI', sans-serif;
    background-color: #f4f6f8;
    color: #2c3e50;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Hero Section */
.Aboutus {
    text-align: justify;      
    color: #2c3e50;         
    font-size: 1rem;           
    line-height: 1.7;         
    font-weight: 500;          
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    padding-bottom: 30px;
}

.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 50px 0 80px;
    margin-top: 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons .btn-secondary a{
    text-decoration: none;
  color: var(--primary-color);
}

.hero-image{
  background: #cbd5e1;
  height: 300px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: 500;
  overflow: hidden; 
}

/* Opción A: que la imagen llene el contenedor recortando (ideal para banners) */
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* cover recorta manteniendo el aspecto y centrado */
  object-position: center center;
  display: block;
  border-radius: inherit; /* opcional, pero redundante por overflow:hidden */
}


/* Ajustes responsivos opcionales */
@media (max-width:600px){
  .hero-image{ height: 200px; }
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--background-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
}

/* Collaborators Section */
.collaborators {
    padding: 80px 0;
}

.collaborators-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.collaborators-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.collaborators-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.collaborators-list {
    list-style: none;
}

.collaborators-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.collaborators-image {
  background: #e2e8f0;
  height: clamp(180px, 25vh, 360px); /* altura responsiva */
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: 500;
  overflow: hidden; 
  position: relative;
}

/* Imagen que llena y se recorta manteniendo proporciones */
.collaborators-image img {
  position: absolute;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  object-fit: cover;        /* rellena el contenedor, recortando si es necesario */
  object-position: center;  /* centra el foco de la imagen */
  display: block;
  -o-object-fit: cover;
  -o-object-position: center;
}

/* Superposición opcional de contenido centrado dentro del contenedor */
.collaborators-image .content {
  position: relative; /* sobre la imagen absoluta */
  z-index: 1;
  padding: 1rem;
  text-align: center;
  color: inherit;
}

/* Versión alternativa para mostrar la imagen completa (sin recortes) en pantallas muy pequeñas */
@media (max-width: 420px) {
  .collaborators-image {
    height: auto;
    aspect-ratio: 16/9; /* mantiene proporción cuando la imagen no debe recortarse */
  }
  .collaborators-image img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* Ajustes finos para tablets/desktop */
@media (min-width: 421px) and (max-width: 1024px) {
  .collaborators-image {
    height: clamp(200px, 32vh, 320px);
  }
}

@media (min-width: 1025px) {
  .collaborators-image {
    height: clamp(240px, 28vh, 360px);
  }
}


/* Responsive */
@media (max-width: 768px) {
    .header .container {
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .collaborators-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}



/* BICICLETAS */
/* Sección general */
.bike-types {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.bike-types h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color: #333;
}

/* Grid para las tarjetas */
.bike-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* Estilo de cada tarjeta */
.bike-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 25px;
  flex: 1 1 500px;
  max-width: 500px;
  transition: transform 0.3s ease;
}

.bike-card:hover {
  transform: translateY(-5px);
}

/* Imágenes */
.bike-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Título y texto */
.bike-card h3 {
  color: #2c3e50;
  margin-top: 0;
  font-size: 1.5em;
}

.bike-card p {
  color: #555;
  line-height: 1.6;
  margin: 8px 0;
}

.bike-card ul {
  padding-left: 20px;
  margin: 15px 0;
}

.bike-card ul li {
  margin-bottom: 8px;
  color: #444;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .bike-grid {
    flex-direction: column;
    align-items: center;
  }

  .bike-card {
    max-width: 100%;
  }
}


/* MISION Y VISION */

.about-us-full {
  width: 100%;
  min-height: 810px;
  background: linear-gradient(135deg, #f1fdf6 0%, #e5f2ef 100%);

  box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.03);
  position: relative;
}

/* CONTENIDO CENTRADO DENTRO DEL BLOQUE COMPLETO */
.about-us-content {
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .about-us-content {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box; /* Evita que el padding rompa el ancho total */
  }
}

/* TÍTULO */
.about-us-content h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 50px;
  color: #2c3e50;
}

/* Misión y Visión */
.mission-vision {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 60px;
}

.mission-box, .vision-box {
  background-color: #ffffffee;
  border-left: 6px solid #27ae60;
  border-radius: 12px;
  padding: 25px;
  flex: 1 1 480px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.mission-box h3, .vision-box h3 {
  margin-top: 0;
  color: #34495e;
  font-size: 1.4em;
}

/* Valores */
.values h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.6em;
  color: #2c3e50;
}

.value-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.value-card {
  background-color: #ffffff;
  border-top: 4px solid #27ae60;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  flex: 1 1 220px;
  max-width: 260px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-icon {
  font-size: 2em;
  margin-bottom: 10px;
  color: #27ae60;
}

.value-card p {
  color: #555;
  font-size: 0.95em;
  line-height: 1.5;
}



/* Pantallas muy pequeñas */
@media (max-width: 400px) {
  .values h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
  }

  .value-card {
    padding: 15px;
  }
}

/* RESPONSIVE */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
  .value-card {
    flex: 1 1 45%; /* 2 columnas */
    max-width: 45%;
  }
}

/* Móviles */
@media (max-width: 600px) {
  .value-card {
    flex: 1 1 90%; /* 1 columna */
    max-width: 90%;
  }

  .value-icon {
    font-size: 1.8em;
  }

  .value-card p {
    font-size: 0.9em;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 400px) {
  .values h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
  }

  .value-card {
    padding: 15px;
  }
}

/* HISTORIA  */


/* SECCIÓN NUESTRA HISTORIA */
.our-history {
  width: 100%;
  background-color: #fdfdfd;
  /* padding: 80px 20px; */
}

.history-container {
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .history-container {
    padding-left: 35px;
    padding-right: 35px;
    box-sizing: border-box; /* Evita que el padding rompa el ancho total */

  }
  
 .history-text p {
  color: #555;
  font-size: 1.2em !important;
  line-height: 1.9;
 text-align: justify;

}
}

.our-history h2 {
  text-align: center;
  font-size: 2.2em;
  color: #2c3e50;
  margin-bottom: 60px;
}

/* Línea de tiempo */
.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.history-block {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.history-block.reverse {
  flex-direction: row-reverse;
}

/* Imagen */
.history-block img {
  flex: 1 1 45%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Texto */
.history-text {
  flex: 1 1 50%;
}

.history-text h3 {
  font-size: 1.4em;
  color: #27ae60;
  margin-bottom: 10px;
}

.history-text p {
  color: #555;
  font-size: 1em;
  line-height: 1.6;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .history-block {
    flex-direction: column;
  }

  .history-block.reverse {
    flex-direction: column;
  }

  .history-block img {
    max-width: 100%;
  }
}



/* GALERÍA */
/* Galería base */
.gallery-section {
  background-color: #f6faf9;
  padding: 80px 20px;
  width: 90%;
  margin: 0 auto;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-section h2 {
  text-align: center;
  font-size: 2.4em;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Grid de imágenes */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox.hidden {
  display: none;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.5em;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

@media (max-width: 600px) {
  .gallery-section h2 {
    font-size: 1.6em;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 180px;
  }
}


.gallery-intro {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 50px;
  font-size: 1.2em;
  line-height: 1.75;
  color: #3a5a40; 
  font-weight: 500;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #d9f0e8; 
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(58, 90, 64, 0.15);
  letter-spacing: 0.03em;
  user-select: none; 
  transition: background-color 0.3s ease;
}

.gallery-intro strong {
  color: #2c593f;
  font-weight: 700;
}

.gallery-intro:hover {
  background: #c1dfd2;
  cursor: default;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 30px; /* Ajuste superior e inferior */
}

.pagination a {
  background-color: #2c3e50;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-width: 45px; /* Para botones uniformes */
  text-align: center;
  text-decoration: none; /* Quitar subrayado de enlaces */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination a:hover,
.pagination a.active {
  background-color: #1abc9c;
  transform: scale(1.05); /* efecto pequeño al pasar el mouse */
}


@media (max-width: 480px) {
  .pagination button {
    padding: 8px 12px;
    font-size: 0.9em;
    min-width: 35px;
  }
}


.lightbox-arrow {
  position: absolute;
  top: 50%;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  display: none; /* se muestra solo en móvil vía JS */
  z-index: 10;
}
.lightbox-arrow.left {
  left: 10px;
}
.lightbox-arrow.right {
  right: 10px;
}

.gallery-intro .leoncillos{
  color: blue;
}