/* ==========================================================================
   EXPORTADORA ERAZO — Hoja de estilos principal
   --------------------------------------------------------------------------
   TODO EL COLOR Y LA TIPOGRAFIA DEL SITIO SE CONTROLA DESDE AQUI.
   Si necesita cambiar un color en toda la pagina, cambielo en el bloque
   "COLORES DE MARCA" de abajo. No hace falta tocar nada mas.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLORES DE MARCA  (segun Manual de uso de marca corporativa)
   -------------------------------------------------------------------------- */
:root {
  --verde:            #115A02;  /* Principal: logo, titulos, fondos destacados */
  --verde-hover:      #0C3F01;  /* Version mas oscura, solo para botones al pasar el mouse */
  --amarillo:         #ECBA0E;  /* Secundario: detalles, botones, lineas, subrayados */
  --amarillo-hover:   #D4A70B;
  --verde-brillante:  #66FF66;  /* Alternativo claro: SOLO sobre fondo oscuro */
  --blanco:           #FFFFFF;
  --carbon:           #2B2B2B;  /* Fondo oscuro institucional */
  --carbon-suave:     #3A3A3A;

  /* Neutros de apoyo, derivados para textos y separadores */
  --texto:            #2B2B2B;
  --texto-suave:      #5F5F5C;
  --gris-fondo:       #F5F5F3;
  --linea:            #E2E2DE;

  /* --------------------------------------------------------------------------
     2. TIPOGRAFIA
     -------------------------------------------------------------------------- */
  --fuente: 'Montserrat', 'Segoe UI', Arial, sans-serif;

  /* --------------------------------------------------------------------------
     3. MEDIDAS
     -------------------------------------------------------------------------- */
  --ancho-maximo: 1200px;
  --alto-menu: 88px;
  --radio: 6px;
  --sombra: 0 2px 16px rgba(43, 43, 43, .09);
}

/* --------------------------------------------------------------------------
   4. BASE
   -------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.7;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--verde); text-decoration: none; transition: color .2s; }
a:hover { color: var(--amarillo-hover); }

:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 3px;
}

.contenedor {
  width: 100%;
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   5. TITULOS Y TEXTOS
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--verde);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

.texto-suave { color: var(--texto-suave); }

/* Antetitulo: etiqueta pequeña sobre los titulos de seccion */
.antetitulo {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amarillo-hover);
  margin-bottom: 10px;
  display: block;
}

/* Subrayado amarillo bajo los titulos de seccion */
.titulo-seccion { margin-bottom: 14px; }
.titulo-seccion::after {
  content: "";
  display: block;
  width: 62px;
  height: 4px;
  background: var(--amarillo);
  margin-top: 18px;
  border-radius: 2px;
}

.entradilla {
  font-size: 1.1rem;
  color: var(--texto-suave);
  max-width: 720px;
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   6. SECCIONES
   -------------------------------------------------------------------------- */
.seccion { padding: 90px 0; }
.seccion--gris { background: var(--gris-fondo); }

/* Seccion oscura: unico lugar donde se usa el verde brillante.
   Lleva la mazorca de la marca como marca de agua, igual que en el manual. */
.seccion--oscura {
  background: var(--carbon);
  color: rgba(255, 255, 255, .82);
  position: relative;
  overflow: hidden;
}
.seccion--oscura h2,
.seccion--oscura h3 { color: var(--blanco); }
.seccion--oscura .antetitulo { color: var(--verde-brillante); }
.seccion--oscura .entradilla { color: rgba(255, 255, 255, .72); }
.seccion--oscura::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -60px;
  width: 620px;
  height: 620px;
  background: url("../img/logo/isotipo-linea.png") no-repeat center / contain;
  opacity: .16;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. BOTONES
   -------------------------------------------------------------------------- */
.boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fuente);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 15px 32px;
  border: 2px solid transparent;
  border-radius: var(--radio);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.boton:hover { transform: translateY(-2px); }

.boton--principal { background: var(--verde); color: var(--blanco); }
.boton--principal:hover { background: var(--verde-hover); color: var(--blanco); }

.boton--amarillo { background: var(--amarillo); color: var(--carbon); }
.boton--amarillo:hover { background: var(--amarillo-hover); color: var(--carbon); }

.boton--linea { background: transparent; color: var(--verde); border-color: var(--verde); }
.boton--linea:hover { background: var(--verde); color: var(--blanco); }

.boton--claro { background: transparent; color: var(--blanco); border-color: rgba(255,255,255,.5); }
.boton--claro:hover { background: var(--blanco); color: var(--verde); border-color: var(--blanco); }

/* --------------------------------------------------------------------------
   8. ESPACIOS RESERVADOS PARA IMAGENES
   Se reemplazan por la foto real cuando este disponible.
   -------------------------------------------------------------------------- */
.espacio-imagen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  background: repeating-linear-gradient(45deg, #EDEDE9 0 12px, #E6E6E1 12px 24px);
  border: 2px dashed #C6C6C0;
  border-radius: var(--radio);
  color: #7A7A74;
  padding: 24px;
  min-height: 180px;
}
.espacio-imagen strong {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #56564F;
}
.espacio-imagen span { font-size: .78rem; line-height: 1.5; }

/* --------------------------------------------------------------------------
   9. MENU PRINCIPAL FIJO
   -------------------------------------------------------------------------- */
.menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--alto-menu);
  background: var(--blanco);
  border-bottom: 1px solid var(--linea);
  z-index: 900;
  transition: box-shadow .25s;
}
.menu.desplazado { box-shadow: var(--sombra); }
.menu .contenedor {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.menu__logo img { height: 58px; width: auto; }

.menu__enlaces { display: flex; align-items: center; gap: 34px; list-style: none; }
.menu__enlaces a {
  font-size: .93rem;
  font-weight: 600;
  color: var(--texto);
  padding: 6px 0;
  position: relative;
}
.menu__enlaces a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 3px;
  background: var(--amarillo);
  transition: width .25s;
}
.menu__enlaces a:hover,
.menu__enlaces a.activo { color: var(--verde); }
.menu__enlaces a:hover::after,
.menu__enlaces a.activo::after { width: 100%; }

.menu__idiomas select {
  font-family: var(--fuente);
  font-size: .85rem;
  font-weight: 600;
  color: var(--texto);
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 8px 12px;
  cursor: pointer;
}

.menu__boton-movil {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.menu__boton-movil span {
  display: block;
  width: 26px; height: 2px;
  background: var(--verde);
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

/* Empuja el contenido para que no quede debajo del menu fijo */
.espacio-menu { height: var(--alto-menu); }

/* --------------------------------------------------------------------------
   10. TARJETAS
   -------------------------------------------------------------------------- */
.tarjeta {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra);
  border-color: var(--amarillo);
}
.tarjeta__cuerpo { padding: 26px; }

/* Bloques internos de la tarjeta de producto */
.bloque-dato { border-top: 1px solid var(--linea); padding: 18px 0; }
.bloque-dato:first-of-type { border-top: 0; padding-top: 0; }
.bloque-dato__titulo {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amarillo-hover);
  margin-bottom: 12px;
}
.dato { display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; padding: 4px 0; }
.dato dt { color: var(--texto-suave); }
.dato dd { font-weight: 700; color: var(--texto); text-align: right; }

.etiqueta {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--verde);
  color: var(--blanco);
  padding: 6px 12px;
  border-radius: 3px;
}
.etiqueta--amarilla { background: var(--amarillo); color: var(--carbon); }

/* --------------------------------------------------------------------------
   11. REJILLAS
   -------------------------------------------------------------------------- */
.rejilla { display: grid; gap: 26px; }
.rejilla--2 { grid-template-columns: repeat(2, 1fr); }
.rejilla--3 { grid-template-columns: repeat(3, 1fr); }
.rejilla--4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   12. BOTON FIJO DE COTIZACION
   -------------------------------------------------------------------------- */
.boton-flotante {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 880;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--verde);
  color: var(--blanco);
  font-size: .92rem;
  font-weight: 700;
  padding: 15px 24px;
  border-radius: 50px;
  box-shadow: 0 6px 22px rgba(17, 90, 2, .32);
  transition: background .2s, transform .2s;
}
.boton-flotante:hover { background: var(--verde-hover); color: var(--blanco); transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   13. AVISO DE COOKIES
   -------------------------------------------------------------------------- */
.cookies {
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  max-width: 660px;
  margin: 0 auto;
  background: var(--carbon);
  color: rgba(255,255,255,.86);
  border-radius: var(--radio);
  padding: 22px 26px;
  box-shadow: 0 10px 40px rgba(0,0,0,.28);
  z-index: 950;
  font-size: .88rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.cookies.oculto { display: none; }
.cookies p { flex: 1 1 300px; margin: 0; line-height: 1.55; }
.cookies a { color: var(--verde-brillante); text-decoration: underline; }
.cookies__acciones { display: flex; gap: 10px; }
.cookies .boton { padding: 11px 20px; font-size: .84rem; }

/* --------------------------------------------------------------------------
   14. PIE DE PAGINA
   -------------------------------------------------------------------------- */
.pie { background: var(--carbon); color: rgba(255,255,255,.72); padding: 64px 0 0; font-size: .92rem; }
.pie h4 { color: var(--blanco); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.pie a { color: rgba(255,255,255,.72); }
.pie a:hover { color: var(--verde-brillante); }
.pie ul { list-style: none; }
.pie li { margin-bottom: 9px; }
.pie__legal {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 52px;
  padding: 22px 0;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   15. ANIMACION DE APARICION AL BAJAR
   -------------------------------------------------------------------------- */
.aparece { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.aparece.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .aparece { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   16. ADAPTACION A TABLET Y CELULAR
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .rejilla--4 { grid-template-columns: repeat(2, 1fr); }
  .rejilla--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .seccion { padding: 62px 0; }
  .rejilla--2, .rejilla--3, .rejilla--4 { grid-template-columns: 1fr; }

  .menu__boton-movil { display: block; }
  .menu__enlaces {
    position: fixed;
    top: var(--alto-menu); left: 0; right: 0;
    background: var(--blanco);
    border-bottom: 1px solid var(--linea);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 22px;
    display: none;
  }
  .menu__enlaces.abierto { display: flex; }
  .menu__enlaces li { width: 100%; border-bottom: 1px solid var(--linea); }
  .menu__enlaces a { display: block; padding: 15px 0; }

  .boton-flotante { right: 16px; bottom: 16px; padding: 13px 20px; font-size: .86rem; }
  .cookies { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .seccion--oscura::before { width: 380px; height: 380px; right: -100px; }
}

/* ==========================================================================
   17. BANNER DE INICIO
   ========================================================================== */
.banner {
  position: relative;
  min-height: calc(100vh - var(--alto-menu));
  display: flex;
  align-items: center;
  background: var(--carbon);
  overflow: hidden;
}
.banner__fondo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.banner__fondo .espacio-imagen {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: repeating-linear-gradient(45deg, #3A3A3A 0 14px, #333 14px 28px);
  color: rgba(255,255,255,.5);
}
.banner__fondo .espacio-imagen strong { color: rgba(255,255,255,.72); }
.banner__velo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(20,20,20,.88) 0%, rgba(20,20,20,.7) 45%, rgba(20,20,20,.35) 100%);
}
.banner .contenedor { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.banner__texto { max-width: 720px; }
.banner h1 { color: var(--blanco); margin-bottom: 22px; }
.banner h1 em { font-style: normal; color: var(--amarillo); }
.banner p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  max-width: 580px;
  margin-bottom: 34px;
}
.banner__acciones { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   18. ENCABEZADO DE PAGINAS INTERNAS
   ========================================================================== */
.encabezado {
  background: var(--verde);
  color: var(--blanco);
  padding: 74px 0;
  position: relative;
  overflow: hidden;
}
.encabezado::before {
  content: "";
  position: absolute;
  right: -80px; bottom: -160px;
  width: 520px; height: 520px;
  background: url("../img/logo/isotipo-linea.png") no-repeat center / contain;
  opacity: .13;
  pointer-events: none;
}
.encabezado .contenedor { position: relative; z-index: 1; }
.encabezado h1 { color: var(--blanco); margin-bottom: 14px; }
.encabezado p { color: rgba(255,255,255,.82); max-width: 680px; font-size: 1.08rem; margin: 0; }
.encabezado .antetitulo { color: var(--amarillo); }

/* ==========================================================================
   19. BLOQUE DE IMAGEN Y TEXTO
   ========================================================================== */
.bloque-doble {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.bloque-doble--invertido { grid-template-columns: 1.1fr 1fr; }
.bloque-doble--invertido .bloque-doble__imagen { order: 2; }

/* ==========================================================================
   20. PROCESOS DE CALIDAD (secuencia numerada)
   ========================================================================== */
.proceso { border-top: 1px solid var(--linea); padding: 32px 0; display: grid; grid-template-columns: 86px 1fr; gap: 28px; }
.proceso:last-child { border-bottom: 1px solid var(--linea); }
.proceso__numero {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--amarillo);
}
.proceso h3 { margin-bottom: 8px; }
.proceso p { color: var(--texto-suave); margin: 0; }

/* ==========================================================================
   21. GALERIAS
   ========================================================================== */
.galeria { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.galeria .espacio-imagen { min-height: 230px; transition: transform .3s, border-color .3s; }
.galeria .espacio-imagen:hover { transform: scale(1.02); border-color: var(--amarillo); }

.tira-clientes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tira-clientes .espacio-imagen { min-height: 120px; background: var(--blanco); border-style: dashed; }

/* Espacio reservado para el video corporativo */
.espacio-video {
  aspect-ratio: 16 / 9;
  min-height: 320px;
  background: var(--carbon-suave);
  border: 2px dashed rgba(255,255,255,.28);
  border-radius: var(--radio);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: rgba(255,255,255,.6);
  padding: 30px;
}
.espacio-video strong { color: var(--verde-brillante); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.espacio-video span { font-size: .82rem; line-height: 1.55; }

/* ==========================================================================
   22. FORMULARIO
   ========================================================================== */
.formulario { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.campo { display: flex; flex-direction: column; gap: 7px; }
.campo--ancho { grid-column: 1 / -1; }
.campo label { font-size: .85rem; font-weight: 700; color: var(--texto); }
.campo label span { color: #B33; }
.campo input,
.campo select,
.campo textarea {
  font-family: var(--fuente);
  font-size: .95rem;
  font-weight: 500;
  color: var(--texto);
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s;
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(17,90,2,.12);
}
.campo textarea { resize: vertical; min-height: 140px; }
.campo__error { font-size: .82rem; color: #B33; display: none; }
.campo.con-error input,
.campo.con-error select,
.campo.con-error textarea { border-color: #B33; }
.campo.con-error .campo__error { display: block; }

.aviso-envio {
  display: none;
  background: #EAF5E4;
  border-left: 4px solid var(--verde);
  border-radius: 0 var(--radio) var(--radio) 0;
  padding: 22px 26px;
  margin-bottom: 26px;
}
.aviso-envio.visible { display: block; }
.aviso-envio strong { color: var(--verde); display: block; margin-bottom: 4px; }

/* Datos de contacto en columna */
.dato-contacto { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--linea); }
.dato-contacto:last-child { border-bottom: 0; }
.dato-contacto__etiqueta {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amarillo-hover);
  min-width: 108px;
  padding-top: 3px;
}
.dato-contacto__valor { font-size: .96rem; }

/* ==========================================================================
   23. AJUSTES RESPONSIVE DE LOS BLOQUES NUEVOS
   ========================================================================== */
@media (max-width: 980px) {
  .galeria { grid-template-columns: repeat(2, 1fr); }
  .tira-clientes { grid-template-columns: repeat(3, 1fr); }
  .bloque-doble, .bloque-doble--invertido { grid-template-columns: 1fr; gap: 34px; }
  .bloque-doble--invertido .bloque-doble__imagen { order: 0; }
}

@media (max-width: 760px) {
  .banner { min-height: auto; padding: 70px 0; }
  .banner p { font-size: 1.02rem; }
  .encabezado { padding: 54px 0; }
  .galeria { grid-template-columns: 1fr; }
  .tira-clientes { grid-template-columns: repeat(2, 1fr); }
  .formulario { grid-template-columns: 1fr; }
  .proceso { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .proceso__numero { font-size: 2rem; }
  .dato-contacto { flex-direction: column; gap: 4px; }
}

.bloque-doble__imagen img,
.espacio-imagen img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.galeria img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.galeria img {
  border: 3px solid transparent;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.galeria img:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  border-color: #115A02;
}

.mapa-ubicacion {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
}

.mapa-ubicacion iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   24. AVISO EMERGENTE DE ENVIO DEL FORMULARIO
   ========================================================================== */
.modal-envio {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  padding: 20px;
}
.modal-envio.oculto { display: none; }
.modal-envio__caja {
  background: var(--blanco);
  border-radius: 14px;
  padding: 34px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}
.modal-envio__caja h3 { margin-bottom: 10px; font-size: 1.3rem; }
.modal-envio__caja p { margin-bottom: 22px; }

/* Sello 10 años en el menú */
.menu__sello img{
  width: 132px;
  height: 44px;
  display: block;
  object-fit: contain;
}
@media (max-width: 900px){
  .menu__sello img{ width: 108px; height: 36px; }
}