/* ===== Variables base ==== */
:root {
  --color-primario: #004080;
  --color-secundario: #ffc300;
  --color-fondo: #f8f9fa;
  --color-texto: #212529;
  --fuente-principal: 'Inter', sans-serif;
  --sombra-suave: 0 4px 12px rgba(0, 98, 204, 0.06);
  --radio-base: 6px;
  --espaciado-seccion: 3rem 2rem;
}


/*  Tipografía y estructura base */
body {
  margin: 0;
  padding: 0;
  font-family: var(--fuente-principal);
  color: var(--color-texto);
  background-color: #ffffff;
}

h1, h2, h3 {
  color: var(--color-primario);
  margin-bottom: 1rem;
}

section {
  padding: 3rem 2rem;
}

a {
  text-decoration: none;
}

/* 🚧 Navbar */
.navbar {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--color-primario);
}

.logo img {
  height: 200px;
  object-fit: contain;
}

.nav-links {
  color: #fff;
  background-color: transparent;
  border: 2px solid transparent;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  gap: 1rem;
  list-style: none;
}


.nav-links a {
  color: #fff;
  font-weight: 500;
  padding: 0.6rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--color-secundario);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.cta {
  background-color: var(--color-secundario);
  color: var(--color-primario);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.cta:hover {
  background-color: #e5b100;
}


@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    height: auto;
    align-items: flex-start;
    padding: 1rem;
  }

  .logo img {
    height: 120px; /* Más compacto en mobile */
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0;
  }

  .nav-links a {
    padding: 0.8rem;
    width: 100%;
    text-align: left;
  }

  .cta {
    align-self: stretch;
    text-align: center;
  }
}
/* 🎨 Hero */
.hero {
  background-color: var(--color-primario);;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 2.5rem 2rem;
}

.hero h1 {
  font-size: 2rem;
  color: #f8f9fa;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/*  Botón institucional */
.btn-institucional,
.btn-producto,
.btn {
  background-color: var(--color-primario);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.btn-institucional:hover,
.btn-producto:hover,
.btn:hover {
  background-color: #00284d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/*  Beneficios institucionales */
.separador {
  width: 80px;
  height: 4px;
  background-color: var(--color-primario);
  margin: 2rem auto;
}

.beneficio-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
  list-style: none;
}

.beneficio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.icono-beneficio img {
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.85;
}


.card p {
  font-size: 0.95rem;
  color: #333;
}
.grid-beneficios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* Sección institucional de redes */
.redes-institucionales {
  padding-block: 3rem;
  border-top: 1px solid #dee2e6;
}

.redes-institucionales .contenedor {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.titulo-seccion {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.redes-institucionales p {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

/* Iconos */
.redes-sociales {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.redes-sociales a {
  display: inline-block;
  padding: 0.4rem;
  border-radius: 8px;
  background-color: #ffffff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.redes-sociales img {
  height: 40px;
  display: block;
}

.redes-sociales a:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}


/* 📦 CTA productos */
.cta-productos {
  background-image: url('assets/img/banner-colores.jpg'); /* Reemplazar con el nombre de la imagen nueva */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8rem 5rem;
  color: #fff; /* Asegura contraste del texto */
  text-align: center;
  position: relative;
}

.cta-productos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* Oscurece sutilmente para mejorar legibilidad */
  z-index: 1;
}

.cta-productos h2,
.cta-productos p,
.cta-productos .btn-institucional {
  position: relative;
  z-index: 2;
}

/* 🔗 Redes sociales */
.redes-sociales {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.redes-sociales img {
  height: 40px;
  transition: transform 0.3s;
}

.redes-sociales img:hover {
  transform: scale(1.1);
}

/* ============================================
   1. FORMULARIO INSTITUCIONAL
============================================ */
.formulario-cotizacion {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 2rem;
  background-size: cover;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 98, 204, 0.08);
}

.formulario-wrap,
.formulario-lateral {
  flex: 1 1 400px;
  max-width: 600px;
  min-width: 300px;
  padding-top: 1rem;
}

.formulario-cotizacion h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primario);
  text-align: center;
  margin-bottom: 2rem;
}

/* ============================================
   2. CAMPOS Y BOTÓN DE ENVÍO
============================================ */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.campo label {
  font-weight: 500;
}

.campo input,
.campo textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 4px;
  font-family: inherit;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.campo input:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--color-primario);
  box-shadow: 0 0 0 2px rgba(0, 98, 204, 0.15);
}

/* ✅ Botón de envío */
.btn-enviar {
  background-color: var(--color-primario);
  color: #fff;
  border: none;
  padding: 0.8rem 1.2rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-enviar:hover {
  background-color: #005fa3;
}

.btn-enviar svg {
  transition: transform 0.3s ease;
}

.btn-enviar.enviando {
  background-color: #3366cc;
}

.btn-enviar.enviando svg {
  transform: rotate(20deg);
}

.mensaje-enviado {
  background-color: #e6f8ec;
  color: #006633;
  padding: 1rem 1.5rem;
  border: 1px solid #b6e0c2;
  border-radius: 6px;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
  animation: fadeIn 0.4s ease forwards;
}



/* ============================================
   3. CONTACTO LATERAL
============================================ */
.contacto-directo {
  margin-top: 0;
}

.contacto-directo h3 {
  font-size: 1.5rem;
  color: var(--color-primario);
 
  text-align: center;
}

.contacto-directo ul {
  list-style: none;
  padding: 0;

}

.contacto-directo li {
  margin-bottom: 0.6rem;

}

.contacto-directo a {
  color: var(--color-primario);
  text-decoration: none;
}

.contacto-directo a:hover {
  text-decoration: underline;
}

/* ============================================
   4. BOTÓN WHATSAPP
============================================ */
.btn-whatsapp {
  display: block;
  background-color: #25d366;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  margin: 2rem auto;
  width: fit-content;
}

/* ============================================
   5. RESEÑAS GOOGLE
============================================ */
.reseñas-google {
  margin-top: 2.5rem;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 98, 204, 0.05);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.estrella-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--color-primario);
}

.btn-google-review {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  background-color: var(--color-primario);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-google-review:hover {
  background-color: #005fa3;
}

/* ============================================
   6. CARDS DE CLIENTES
============================================ */
.reseñas-destacadas {
  margin-top: 3rem;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 98, 204, 0.06);
  text-align: center;
}

.reseñas-destacadas h3 {
  font-size: 1.5rem;
  color: var(--color-primario);
  margin-bottom: 2rem;
}

.cards-reseña {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.card {
  background-color: #fff;
  border-radius: 6px;
  padding: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 98, 204, 0.05);
  max-width: 280px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.card .texto {
  font-style: italic;
  margin-bottom: 0.8rem;
}

.card .autor {
  font-weight: 600;
  color: #333;
}

/* ============================================
   7. RESPONSIVE
============================================ */
@media (max-width: 768px) {
  .formulario-cotizacion {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .formulario-wrap,
  .formulario-lateral {
    flex: 1 1 48%;
    min-width: 300px;
  }

  .cards-reseña {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  main section {
    margin-bottom: 3rem;
  }
}

/* 📦 Sección productos */
.productos-tecnicos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.producto-tecnico {
  background-color: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}


.producto-tecnico img {
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  width: 100%;
  height: 300px;
  object-fit: cover;
  background-color: white;
  display: block;
}



.producto-tecnico:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}


.contenido-producto {
  padding: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.8rem;
  color: #004080;
}

.descripcion-tecnica {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
}

.btn-tecnica {
  display: inline-block;
  position: relative;
  text-decoration: none;
  background-color: #004080;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.btn-tecnica:hover .flecha {
  transform: translateX(4px);
  transition: transform 0.3s ease;
}


/* Estado cuando se envía */
.btn-tecnica.enviado {
  background-color: #00a859;
  pointer-events: none;
}

/* Spinner visual (oculto por defecto) */
.btn-tecnica .spinner {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: girar 0.8s linear infinite;
  display: none;
}

.btn-tecnica.enviado .spinner {
  display: inline-block;
}

/* Animación de giro */
@keyframes girar {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}




/* 🏢 Footer base institucional */
.footer {
  background-color: var(--color-primario);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/*  Columna principal */
.footer-columna {
  flex: 1;
  min-width: 200px;
  padding: 0 1rem;
}

.footer-columna h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-columna p,
.footer-columna a {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #fff;
  text-decoration: none;
}

/*  Créditos y cierre institucional */
.footer-copy {
  margin-top: 2rem;
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.8;
}


/* BLOQUE IDENTIDAD INSTITUCIONAL */
.bloque-identidad {
  background-color: #f4f7fb;
  border-radius: 12px;
  padding: 3rem 2rem;
  box-shadow: 0 8px 24px rgba(0, 98, 204, 0.05);
  font-size: 1rem;
  line-height: 1.8;
  color: #2e2e2e;
  max-width: 900px;
  margin: 3rem auto;
  transition: background 0.3s ease;
}

.bloque-identidad h2 {
  font-size: 2rem;
  color: var(--color-primario);
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.bloque-identidad h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primario);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.bloque-identidad p {
  margin-bottom: 1.5rem;
}

.bloque-identidad .frase-final {
  text-align: center;
  font-style: italic;
  color: #555;
  margin-top: 2rem;
  font-size: 1.1rem;
}

/* BLOQUE LÍNEA DE TIEMPO */
.linea-tiempo-cooperativa {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  background-color: #ffffff;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 98, 204, 0.04);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.linea-tiempo-cooperativa h2 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--color-primario);
  margin-bottom: 2rem;
  position: relative;
}

.linea-tiempo-cooperativa h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-primario);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem;
}

.timeline li {
  display: grid;
  -colgrid-templateumns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.fecha {
  font-weight: 600;
  color: var(--color-primario);
  font-size: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.evento {
  background-color: #f9fbfe;
  border: 1px solid #dfe6f1;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 98, 204, 0.05);
}

/* OPCIONAL: animación suave al pasar */
.evento:hover {
  background-color: #f0f4fa;
  transition: background 0.3s ease;
}

.galeria-multimedia {
  padding: 3rem 2rem;
  background-color: #f4f7fb;
  border-radius: 12px;
  max-width: 1000px;
  margin: 4rem auto;
  text-align: center;
}

.galeria-multimedia h2 {
  font-size: 2rem;
  color: var(--color-primario);
  margin-bottom: 0.5rem;
}

.descripcion-galeria {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}

.grid-multimedia {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-multimedia img,
.grid-multimedia video {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 98, 204, 0.08);
  transition: transform 0.3s ease;
}

.grid-multimedia img:hover,
.grid-multimedia video:hover {
  transform: scale(1.02);
}

.error {
  border: 2px solid #cc0000;
  background-color: #fff3f3;
}

.mensaje-error {
  color: #cc0000;
  font-size: 0.85rem;
  margin-top: 0.4rem;
  display: block;
}

.cartel-trabajando {
  background-color: #f3f3f3;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
  color: #333;
}


/* 📱 Responsive */
@media screen and (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .grid-beneficios,
  .grid-productos {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }


  .bloque-identidad {
    padding: 2rem 1rem;
  }

  .linea-tiempo-cooperativa {
    padding: 1.5rem;
  }

  .timeline li {
    flex-direction: column;
  }

  .fecha {
    width: auto;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 600px) {
  .cta-productos {
    padding: 3rem 1.5rem;
    background-position: center top;
  }

  .cta-productos h2 {
    font-size: 1.5rem;
  }

  .cta-productos p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .cta-productos .btn-institucional {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }
}

/*     CARTA DE COLORESSSSS */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.color-item {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.color-muestra {
  width: 100%;
  height: 80px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  background-color: var(--color);
  border: 1px solid #ccc;
}

.color-nombre {
  font-weight: 600;
  display: block;
}

.color-codigo {
  font-family: monospace;
  font-size: 0.9rem;
  color: #666;
}


.carta-colores h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #00284d; /* tono institucional */
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carta-colores p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.carta-colores p em {
  color: #777;
  font-size: 0.95rem;
  display: block;
  margin-top: 0.4rem;
  font-style: italic;
}



/* MAPAAAAA */

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* relación 16:9 */
  height: 0;
  overflow: hidden;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
