/* Secciones específicas */
.hero-section {
  background-image: url("/images/fondo1.png");
  background-size: cover;
  
  text-align: center;
  padding: 100px 20px;
  padding-bottom: 250px;
}

.hero-section h1 {
  color: #333;
  font-size: 2rem;
  margin-bottom: 0;
}

.hero-section h3 {
  font-size: 2rem;
}

.info-benefits-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.info-text {
  flex: 1 1 300px;
  max-width: 600px;
}

.info-text p {
  font-size: 16px;
  margin-bottom: 16px;
  color: #000;
  text-align: left;
}

.benefits-grid {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* solo 2 columnas adaptables */
  gap: 20px;
  width: 100%;
}

.benefit-card {
  width: 100%;
  aspect-ratio: 4 / 2.5;
  overflow: hidden;
  border-radius: 12px;
}

.benefit-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/*inicio bloque forms*/
.models-section {
  background-image: url("/images/fondo2.png");
  background-repeat: no-repeat;
}

.models-section h2 {
  color: white;
}

.scoobic-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  padding: 0px;
  align-items: start;
}

.side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vehicle-card {
  border-radius: 16px;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-family: sans-serif;
  color: #0072ce;
}

.full-width {
  width: 100%;
  max-width: none;
  padding: 0 20px;
  margin: 0 auto;
}

.center-column {
  padding: 10px;
}

.form-card h2 {
  margin-top: 0;
  font-family: sans-serif;
}

.trabaja-con-nosotros {
  background-image: url("/images/fondo4.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.trabaja-con-nosotros .section-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap; /* para que sea responsive */
}

.trabaja-con-nosotros .section-container > div:first-child {
  flex: 1 1 50%;
}

.trabaja-con-nosotros .section-container > div:last-child {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trabaja-con-nosotros img {
  max-width: 100%;
  height: auto;
  display: block;
}

.equipo h3 {
  color: #76b72a ;
  padding: 0;
}

.equipo p {
  color: #0055b8;
  
}

.equipo a{
  text-decoration: none;
  color: #0055b8;
}

@media (max-width: 768px) {
  .trabaja-con-nosotros .section-container {
    flex-direction: column;
    text-align: center;
  }

  .trabaja-con-nosotros .section-container > div:first-child,
  .trabaja-con-nosotros .section-container > div:last-child {
    flex: 1 1 100%;
  }
}


@media (max-width: 768px) {
  .scoobic-grid {
    grid-template-columns: 1fr;
  }

  .left-column,
  .right-column {
    order: -1; /* se muestran arriba */
  }

  .center-column {
    order: 0;
  }
}
/*fin bloque form*/

.carousel {
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.carousel-slide {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* Flechas */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.6);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  z-index: 2;
  transition: background 0.2s ease;
}

.arrow:hover {
  background: rgba(255,255,255,0.9);
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}


.alliances-section {
  background-color: white;
}

.alianzas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 104px;
  align-items: center;
  justify-items: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.alianza-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%); /* opcional: estilo escala de grises */
  transition: filter 0.3s ease;
}

.gobierno-logo img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.alianza-logo img:hover {
  filter: grayscale(0%);
}



.product-hero {
  background-image: url("");
  color: white;
  text-align: left;
  padding: 80px 20px;
}


.product-hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 0;
}

.product-features,
.product-dimensions,
.product-specs {
  background-color: white;
  border-bottom: 1px solid #e9ecef;
}

.product-dimensions h2 {
  text-align: left;
  font-size: 40px;
  padding: 0;
  gap: 0;
  margin: 0;

}

.product-specs h2 {
  text-align: left;
  font-size: 40px;
  padding: 0;
  gap: 0;
  margin: 0;

}

.proddimensions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  
}

.proddimensions img {
  max-width: 100%;
}

.about-section,
.work-section,
.legal-section {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.about-section h1,
.work-section h1,
.legal-section h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 0;
}

/*Pagina quienes somos*/


/* Página de lista de productos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-card-placeholder {
    height: 350px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: bold;
    width: 100%;
}

/* Fondo general con imagen */

.page{
  background-image: url("/images/fondo_quienes_somos.png");
  background-repeat: no-repeat;
  background-size: cover;
}


/* Fila superior */
.grid-top{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap);
  background: url('/images/fondo.jpg') no-repeat center/cover;
  padding: clamp(20px, 4vw, 40px) 0;
  padding-left: 5rem;
  padding-right: 5rem;
}
@media (max-width: 960px){
  .grid-top{ grid-template-columns: 1fr;
    padding: 1rem;
    color: #000;
  }
  .grid-bottom { padding: 0rem;}
}

/* About */
.about{
  
  padding: 2rem;
}

.about p{
  margin:10px 0;
  font-size: 20px;
}
.about p strong{ color:#000; }

/* Formulario incrustado */
.form-card{
  min-height: 520px;
  display:flex;
  align-items:center;
  justify-content:center;
}



/* Fila inferior */
.grid-bottom{
  display:grid;
  grid-template-columns: 1fr 1fr;
  
  align-items: stretch;
  padding: 5rem;
}
@media (max-width: 960px){
  .grid-bottom{ grid-template-columns: 1fr; }
}

/* CTA */
.cta{
  display:flex;
  align-items:center;
  background-color: #0055b8;
  color:#ffffff;
  border-radius: 20px;

}
.cta .thumb{
  border-radius: 14px;
  display:grid;
  place-items:center;
}
.cta .thumb img{
  width:70%; height:auto;
}
.cta p{
  margin:0;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 600;
}

/* Foto */
.photo{
  margin:0;
  border-radius: var(--radius);
  padding-left: 5rem;
}
.photo img{
  display:block;
  height:100%;
  max-height: 400px;
  
  border-radius: 20px;
}


/* Mini l2 */

.mini-l2 {
  background-repeat: no-repeat;
  background-size: cover;
  background-color: rgb(0, 86, 184);
  background-image: linear-gradient(rgba(0, 87, 184, 0.8)), url("/images/mini-l2/imagen2.png") !important;
  background-position: center;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.mini-l2 p {
  font-size: 24px;
}

.izq {
  flex: 1;
}

.der {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.der img {
  max-width: 60%;
  height: auto;
  border-radius: 20px;
}

.product-features {
  padding: 1rem;
  align-items: start;
  text-align: center;
}

.product-specs {
  padding: 2rem;
}

.product-specs > div {
  display: flex;
  justify-content: space-between; /* separa izquierda y derecha */
  align-items: center; /* centra verticalmente */
  gap: 20px; /* espacio entre las dos columnas */
}

.product-specs .izq {
  flex: 1;
}

.product-specs .der {
  flex: 1;
  display: flex;
  justify-content: center; /* centrar imagen horizontalmente */
}

.product-specs img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .mini-l2 {
    flex-direction: column;
  }
   .product-specs > div {
    flex-direction: column;
    text-align: center;
   }
    .proddimensions {
    flex-direction: column;   /* fuerza columna */
    align-items: center;
    padding: 2rem;
  }
  .photo {
    padding: 0;
    padding-top: 1rem;
  }

  .photo img {
    max-width: 100%;
  }
}