*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #1a3a6b;
  --navy-dark: #122c54;
  --gold:      #c8a415;
  --gold2:     #d4a017;
  --light:     #f5f5f5;
  --border:    #e0e0e0;
  --gray:      #666;
  --text:      #333;
  --white:     #fff;
  --topbar-h:  0px;
  --header-h:  130px;
  --navbar-h:  50px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--text); background: var(--white); font-size: 14px; }

/* ════ HEADER ════ */
#header {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 300;
  background: #fff;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding-top: 12px;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.logo img { height: 72px; }

.header-center { flex: 1; display: flex; justify-content: center; }
.iso-header-badge { height: 135px; }

.header-dolar {
  display: flex; align-items: center; gap: 10px;
  background: #f0f0f0; border: 1px solid #ddd;
  border-radius: 4px; padding: 8px 14px;
  color: var(--gray);
}
.header-dolar svg { color: #888; flex-shrink: 0; }
.dolar-label { font-size: .72rem; color: #888; display: block; }
.dolar-text strong { font-size: 1rem; color: var(--navy); font-weight: 700; }

/* ════ NAVBAR ════ */
#navbar {
  position: fixed;
  top: calc(var(--topbar-h) + var(--header-h));
  left: 0; right: 0; z-index: 200;
  background: #fff;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,.07);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: stretch;
}

.nav-menu { list-style: none; display: flex; align-items: stretch; flex: 1; }

.nav-item { position: relative; }
.nav-item > a {
  display: flex; align-items: center; height: var(--navbar-h);
  padding: 0 16px;
  color: var(--text);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.nav-item > a:hover   { color: var(--navy); background: var(--light); }
.nav-item.active > a  { color: var(--navy); border-bottom-color: var(--gold); }

.nav-flag img { margin-top: 2px; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #fff;
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  min-width: 600px;
  padding: 20px;
  list-style: none;
  z-index: 500;
  flex-direction: row; gap: 0;
}
.has-dropdown:hover .dropdown { display: flex; }

.dropdown-group { flex: 1; padding: 0 16px; border-right: 1px solid #eee; }
.dropdown-group:last-child { border-right: none; }
.dropdown-heading {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold2);
  padding-bottom: 8px; margin-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.dropdown-group ul { list-style: none; }
.dropdown-group a {
  display: block; padding: 5px 0;
  color: var(--text); text-decoration: none; font-size: .82rem;
  transition: color .15s, padding-left .15s;
}
.dropdown-group a:hover { color: var(--navy); padding-left: 6px; }

/* Nav search */
.nav-search {
  display: flex; align-items: center;
  border-left: 1px solid var(--border);
  padding: 0 12px;
}
.nav-search input {
  border: 1px solid #ddd; border-radius: 3px 0 0 3px;
  padding: 5px 10px; font-size: .8rem; font-family: inherit;
  outline: none; width: 140px;
}
.nav-search button {
  background: var(--navy); border: none; cursor: pointer;
  padding: 5px 9px; border-radius: 0 3px 3px 0;
  color: #fff; display: flex; align-items: center;
  transition: background .2s;
}
.nav-search button:hover { background: var(--gold); }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; margin-right: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ════ HERO ════ */
.hero {
  position: relative;
  height: calc(100vh - var(--topbar-h) - var(--header-h) - var(--navbar-h));
  min-height: 420px;
  margin-top: calc(var(--topbar-h) + var(--header-h) + var(--navbar-h));
  overflow: hidden;
}

.slides { display: flex; height: 100%; transition: transform .7s cubic-bezier(.4,0,.2,1); }

.slide {
  min-width: 100%; height: 100%;
  background-size: cover; background-position: center;
  position: relative;
  filter: grayscale(30%);
}
.slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, rgba(0,0,0,.5) 100%);
}

.slide-caption {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 20px;
  color: #fff;
}

.slide-keyword {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  margin-bottom: 12px;
}

.slide-phrase {
  background: rgba(0,0,0,.55);
  padding: 10px 24px;
  border-radius: 2px;
  font-size: clamp(.9rem, 2vw, 1.1rem);
  font-weight: 300;
  max-width: 560px;
}

.dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 8px;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: 2px solid rgba(255,255,255,.7);
  cursor: pointer; transition: background .3s;
}
.dot.active { background: var(--gold2); border-color: var(--gold2); }

.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; background: rgba(255,255,255,.15); border: none;
  color: #fff; font-size: 1.4rem; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: background .2s; backdrop-filter: blur(4px);
}
.arrow:hover { background: rgba(255,255,255,.3); }
.arrow-prev { left: 16px; }
.arrow-next { right: 16px; }

/* ════ SECTIONS ════ */
section { padding: 64px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-title-center {
  text-align: center;
  font-size: 1.1rem; font-weight: 700; letter-spacing: .08em;
  color: #888; margin-bottom: 36px;
}
.section-title-left {
  font-size: 1.05rem; font-weight: 700; letter-spacing: .06em;
  color: var(--navy); margin-bottom: 12px;
}

.gold-bar { width: 44px; height: 3px; background: var(--gold); margin-bottom: 24px; }

/* ════ LÍNEAS DE PRODUCTOS ════ */
#productos { background: var(--light); }

.lineas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.linea-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 10px;
  background: transparent; border: none;
  transition: transform .25s;
  cursor: default;
}
.linea-card:hover { transform: translateY(-4px); }

.linea-img {
  width: 160px; height: 160px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  background-color: #ccc;
  filter: grayscale(100%);
  transition: filter .4s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  border: 4px solid #fff;
  outline: 2px solid var(--border);
}
.linea-card:hover .linea-img { filter: grayscale(0%); }

.linea-label {
  margin-top: 14px;
  font-size: .82rem; font-weight: 700; color: var(--navy);
  text-align: center; line-height: 1.4;
}

.lineas-pending {
  text-align: center; font-size: .85rem; color: var(--gray);
  padding: 16px; background: #fff; border: 1px dashed #ccc; border-radius: 4px;
}
.lineas-pending a {
  color: var(--navy); margin-left: 8px; text-decoration: none; font-weight: 600;
}
.lineas-pending a:hover { text-decoration: underline; }

/* ════ EMPRESA ════ */
.empresa-section { background: var(--light); }

/* Títulos */
.emp-titulo {
  font-size: 1.4rem; font-weight: 700; letter-spacing: .06em;
  color: var(--navy); margin-bottom: 12px;
}
.emp-subtitulo-grande {
  font-size: 1rem; font-weight: 700; letter-spacing: .08em;
  color: var(--navy); margin-bottom: 12px; text-transform: uppercase;
}

/* Bloque genérico */
.empresa-bloque { margin-bottom: 48px; }
.empresa-bloque p, .empresa-cl-grid p, .empresa-reclamos p {
  font-size: .9rem; color: var(--gray); line-height: 1.9; margin-bottom: 12px;
}
.empresa-reclamos a { color: var(--navy); font-weight: 600; }
.empresa-reclamos a:hover { color: var(--gold); }

/* Visión / Misión */
.empresa-vm-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 48px;
}
.emp-vm-card {
  background: #fff; border-radius: 6px; padding: 28px 24px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.emp-vm-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.emp-subtitulo {
  font-size: .88rem; font-weight: 700; letter-spacing: .1em;
  color: var(--navy); text-transform: uppercase; margin-bottom: 10px;
}
.emp-vm-card p { font-size: .88rem; color: var(--gray); line-height: 1.8; margin: 0; }

/* Valores */
.valores-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 4px;
}
.valor-item {
  background: #fff; border-radius: 6px; padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border-left: 4px solid var(--navy);
}
.valor-titulo {
  font-size: .82rem; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px;
}
.valor-item p { font-size: .82rem; color: var(--gray); line-height: 1.7; margin: 0; }

/* Clientes / Logística */
.empresa-cl-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.logistica-promesa {
  font-weight: 700; color: var(--navy); font-size: .9rem !important;
  border-left: 3px solid var(--gold); padding-left: 12px; margin: 14px 0 !important;
}

/* Reclamos */
.empresa-reclamos {
  background: #fff; border-radius: 6px; padding: 28px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* Viejos estilos empresa (calidad/compromisos) */
.empresa-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.calidad-col p {
  font-size: .88rem; color: var(--gray); line-height: 1.85; margin-bottom: 12px;
}

.compromiso {
  display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start;
}
.compromiso-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.compromiso strong { font-size: .88rem; color: var(--navy); display: block; margin-bottom: 3px; }
.compromiso p { font-size: .82rem; color: var(--gray); line-height: 1.6; margin: 0; }

.haciendo-box {
  margin-top: 20px; padding: 16px 18px;
  background: var(--navy); border-radius: 4px; color: #fff;
}
.haciendo-box strong { display: block; font-size: .85rem; color: var(--gold2); margin-bottom: 10px; }
.haciendo-box ul { padding-left: 18px; }
.haciendo-box li { font-size: .82rem; color: rgba(255,255,255,.85); line-height: 1.7; }

/* ════ CONTACTO ════ */
.contacto-section { background: var(--navy-dark); color: #fff; }
.contacto-section .section-title-left { color: #fff; }
.contacto-section .gold-bar { background: var(--gold); }

/* Formulario */
.contacto-form-wrap {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.contacto-form-wrap .emp-subtitulo-grande { color: #fff; }

.contacto-form { margin-top: 4px; }

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.form-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.65);
}
.req { color: var(--gold2); }

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: .88rem;
  font-family: inherit;
  color: #fff;
  outline: none;
  transition: border-color .2s, background .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold2);
  background: rgba(255,255,255,.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.form-nota { font-size: .75rem; color: rgba(255,255,255,.45); }

/* Grid info/devoluciones */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.info-item { display: flex; gap: 12px; margin-bottom: 20px; align-items: flex-start; }
.info-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
}
.info-item h4 {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold2); margin-bottom: 4px;
}
.info-item p, .info-item a {
  font-size: .85rem; color: rgba(255,255,255,.8); text-decoration: none;
  line-height: 1.65; display: block;
}
.info-item a:hover { color: var(--gold2); }

.dev-intro { font-size: .85rem; color: rgba(255,255,255,.75); line-height: 1.65; margin-bottom: 14px; }
.dev-lista { padding-left: 18px; margin-bottom: 20px; }
.dev-lista li { font-size: .83rem; color: rgba(255,255,255,.7); line-height: 1.7; }

.nuestros-horarios {
  padding: 14px 16px;
  background: rgba(255,255,255,.08); border-radius: 4px;
  border-left: 3px solid var(--gold);
}
.nuestros-horarios strong { font-size: .82rem; color: var(--gold2); display: block; margin-bottom: 8px; }
.nuestros-horarios p { font-size: .8rem; color: rgba(255,255,255,.7); line-height: 1.65; margin-bottom: 4px; }

/* ════ FOOTER ════ */
footer {
  background: #fff;
  color: var(--navy);
  border-top: 2px solid var(--border);
  text-align: center;
  padding: 28px 24px;
  font-size: .82rem;
  font-weight: 600;
}
.footer-logo { height: 40px; margin: 0 auto 12px; display: block; }
/* ════ RESPONSIVE ════ */
@media (max-width: 1024px) {
  .lineas-grid { grid-template-columns: repeat(2, 1fr); }
  .empresa-grid { grid-template-columns: 1fr; gap: 40px; }
  .empresa-vm-grid { grid-template-columns: 1fr 1fr; }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
  .empresa-cl-grid { grid-template-columns: 1fr; gap: 32px; }
  .contacto-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --topbar-h: 0px; --header-h: 80px; --navbar-h: 48px; }

  .header-center { display: none; }
  .iso-header-badge { display: none; }
  .logo img { height: 52px; }

  #navbar .nav-menu {
    display: none; flex-direction: column; position: absolute;
    top: var(--navbar-h); left: 0; right: 0;
    background: #fff; border-bottom: 2px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,.1); padding: 8px 0;
  }
  #navbar .nav-menu.open { display: flex; }
  .nav-item > a { height: 44px; border-bottom: none; border-top: 1px solid #f0f0f0; }
  .has-dropdown .dropdown { display: none !important; }
  .nav-search { display: none; }
  .burger { display: flex; }

  .lineas-grid { grid-template-columns: repeat(2, 1fr); }
  .empresa-vm-grid { grid-template-columns: 1fr; }
  .valores-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  section { padding: 48px 16px; }
}

@media (max-width: 480px) {
  .lineas-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .linea-img { height: 110px; }
}
