/* =========================================
   Grupo Jacques - Sitio Estático
   ========================================= */

/* --- Fuentes --- */
@font-face { font-family: 'Eina01'; src: url('../fonts/Eina01-Regular.ttf'); font-weight: 400; }
@font-face { font-family: 'Eina01'; src: url('../fonts/Eina01-SemiBold.ttf'); font-weight: 600; }
@font-face { font-family: 'Eina01'; src: url('../fonts/Eina01-Bold.ttf'); font-weight: 700; }
@font-face { font-family: 'Eina01'; src: url('../fonts/Eina01-Light.ttf'); font-weight: 300; }
@font-face { font-family: 'Eina02'; src: url('../fonts/Eina02-Regular.ttf'); font-weight: 400; }
@font-face { font-family: 'Eina02'; src: url('../fonts/Eina02-Bold.ttf'); font-weight: 700; }

/* --- Reset y Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Eina01', sans-serif;
  font-weight: 400;
  color: #003870;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Variables --- */
:root {
  --azul: #294F6F;
  --azul-oscuro: #032241;
  --azul-medio: #004D80;
  --azul-claro: #226183;
  --gris: #78849A;
  --gris-claro: #AAB2BD;
  --blanco: #ffffff;
  --sombra: 0 0 12px rgba(0,0,0,0.25);
}

/* --- Header --- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  height: 90px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#header .logo { width: 200px; }
#header nav { margin-left: auto; }
#header nav ul { display: flex; gap: 28px; align-items: center; }
#header nav a {
  font-family: 'Eina01', sans-serif;
  font-weight: 400;
  color: var(--azul-medio) !important;
  font-size: 1rem;
  transition: color 0.2s;
}
#header nav a:hover, #header nav a.active { color: var(--azul) !important; font-weight: 600; }
.nav-cta {
  background: var(--azul);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700 !important;
  box-shadow: var(--sombra);
  text-shadow: none;
}
.nav-cta:hover { background: var(--azul-oscuro) !important; color: #fff !important; }
/* fuerza blanco aunque herede color de nav a */
#header nav a.nav-cta,
#header nav a.nav-cta:visited { color: #fff !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; margin-left: auto; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--azul); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 8px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -8px); }

/* --- Hero Home --- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#hero video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(3, 34, 65, 0.55);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 20px;
}
.hero-content h1 {
  font-family: 'Eina01', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 24px;
}
.hero-content .btn-hero {
  display: inline-block;
  background: #fff;
  color: var(--azul);
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--sombra);
  transition: background 0.2s, color 0.2s;
}
.hero-content .btn-hero:hover { background: var(--azul); color: #fff; }

/* --- Secciones generales --- */
section { padding: 70px 40px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
  display: inline-block;
  background: var(--azul);
  color: #fff;
  padding: 12px 30px;
  border-radius: 16px;
  font-family: 'Eina01', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 40px;
}

/* --- Iconos de servicios (Home) --- */
#servicios-home {
  background: #fff;
  padding: 50px 40px;
}
.items-home {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}
.item-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 170px;
  text-align: center;
  transition: transform 0.2s;
}
.item-home:hover { transform: translateY(-6px); }
.item-home .icono {
  width: 90px; height: 90px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 14px;
}
.item-home p {
  font-family: 'Eina01', sans-serif;
  font-weight: 600;
  color: var(--azul-claro);
  font-size: 0.95rem;
}

/* --- Banner REPSE --- */
#repse {
  background: var(--azul-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
  flex-wrap: wrap;
}
#repse img { height: 80px; }
#repse p {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  max-width: 500px;
  text-align: center;
}

/* --- Galería de productos (Home) --- */
#galeria-home {
  background: #f7f8fa;
  padding: 60px 40px;
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.galeria-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--sombra);
  transition: transform 0.25s;
}
.galeria-grid img:hover { transform: scale(1.04); }

/* --- Page header (para páginas interiores) --- */
.page-hero {
  height: 380px;
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  margin-top: 90px;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(3, 34, 65, 0.4);
}
.page-hero h1 {
  position: relative;
  z-index: 1;
  color: var(--gris-claro);
  font-family: 'Eina02', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

/* --- Nosotros --- */
.historia-wrap {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}
.historia-label {
  background: var(--azul);
  color: #fff;
  padding: 20px 24px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.6rem;
  text-align: center;
}
.historia-texto {
  background: rgba(255,255,255,0.85);
  padding: 30px 50px;
  border-radius: 50px;
  box-shadow: var(--sombra);
}
.historia-texto p { color: var(--azul); margin-bottom: 14px; font-size: 1.05rem; }
.historia-texto strong { font-weight: 700; }

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mvv-card {
  background: #fff;
  padding: 30px 40px;
  border-radius: 50px;
  box-shadow: var(--sombra);
}
.mvv-card h3 {
  color: #9D8194;
  font-family: 'Eina01', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 16px;
}
.mvv-card p {
  color: var(--azul);
  font-size: 1rem;
  text-align: justify;
}
.mvv-card ul { color: var(--azul); text-align: center; }
.mvv-card ul li { padding: 4px 0; font-size: 1rem; }

/* --- Servicios --- */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.servicio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--sombra);
  transition: transform 0.2s;
  cursor: pointer;
}
.servicio-card:hover { transform: translateY(-6px); }
.servicio-card img { width: 100px; margin-bottom: 16px; }
.servicio-card h3 {
  color: var(--azul);
  font-weight: 700;
  font-size: 1.05rem;
}

/* --- Proceso --- */
.proceso-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  padding: 24px 16px;
  border-radius: 20px;
  box-shadow: var(--sombra);
}
.step img { width: 70px; margin-bottom: 14px; }
.step h4 { color: var(--azul); font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.step p { color: var(--gris); font-size: 0.85rem; }

/* --- Clientes --- */
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  align-items: center;
  margin-top: 30px;
}
.clientes-grid img {
  max-height: 80px;
  object-fit: contain;
  margin: 0 auto;
  filter: grayscale(30%);
  transition: filter 0.2s;
}
.clientes-grid img:hover { filter: grayscale(0%); }

/* --- Contacto --- */
.contacto-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contacto-info h2 {
  font-family: 'Eina01', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.contacto-info p {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1rem;
}
.horario-box {
  background: var(--azul-oscuro);
  border-radius: 24px;
  padding: 16px 24px;
  color: #6F9796;
  font-family: 'Eina02', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  margin-top: 12px;
  white-space: pre-line;
}
.form-box {
  background: rgba(255,255,255,0.08);
  padding: 30px;
  border-radius: 30px;
}
.form-box input,
.form-box textarea {
  width: 100%;
  background: transparent;
  border: 2px solid #CBCBCA;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  padding: 10px 16px;
  color: #CBCBCA;
  font-family: 'Eina01', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 14px;
  outline: none;
  resize: none;
}
.form-box input::placeholder, .form-box textarea::placeholder { color: #CBCBCA; }
.form-box input:focus, .form-box textarea:focus { border-color: #fff; color: #fff; }
.form-box button {
  background: #fff;
  color: var(--azul);
  padding: 8px 40px;
  border: none;
  border-radius: 20px;
  font-family: 'Eina01', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--sombra);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.form-box button:hover { background: var(--azul-oscuro); color: #fff; }
.form-success {
  display: none;
  color: #fff;
  background: var(--azul-claro);
  padding: 12px 20px;
  border-radius: 12px;
  margin-top: 12px;
  text-align: center;
}

/* --- Footer --- */
#footer {
  background-image: url('../img/footer-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
#footer img { width: 130px; }
.footer-tagline {
  text-align: center;
  flex: 1;
}
.footer-tagline .frase {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
}
.footer-tagline .aviso {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  margin-top: 6px;
}
.footer-cta {
  background: #fff;
  color: var(--azul);
  padding: 10px 22px;
  border-radius: 20px;
  font-weight: 700;
  box-shadow: var(--sombra);
  white-space: nowrap;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.footer-cta:hover { background: var(--azul); color: #fff; }
.footer-copy {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  padding: 16px;
  background: rgba(3,34,65,0.6);
}

/* --- Aviso de privacidad modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 40px;
  position: relative;
}
.modal-box h2 { color: var(--azul); margin-bottom: 16px; }
.modal-box p { color: #444; margin-bottom: 10px; font-size: 0.95rem; }
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gris);
  background: none;
  border: none;
  font-weight: 700;
}

/* --- Btn flotante --- */
.btn-flotante {
  position: fixed;
  bottom: 20px; left: 20px;
  z-index: 999;
  background: #fff;
  color: var(--azul);
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.btn-flotante:hover { opacity: 1; }

/* --- Responsive --- */
@media (max-width: 900px) {
  #header { padding: 0 20px; }
  #header nav { display: none; }
  #header nav.open { display: block; position: absolute; top: 90px; left: 0; right: 0; background: rgba(255,255,255,0.97); padding: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
  #header nav.open ul { flex-direction: column; gap: 14px; }
  .hamburger { display: flex; }
  section { padding: 50px 20px; }
  .historia-wrap { grid-template-columns: 1fr; }
  .mvv-grid { grid-template-columns: 1fr; }
  .contacto-wrap { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .proceso-steps { grid-template-columns: repeat(2, 1fr); }
  .page-hero { height: 260px; }
  #repse { flex-direction: column; text-align: center; gap: 20px; }
}
@media (max-width: 540px) {
  .proceso-steps { grid-template-columns: 1fr; }
  .items-home { flex-direction: column; align-items: center; }
  .hero-content h1 { font-size: 1.4rem; }
}
