/* Grupo Beka Ludamar — site styles
   Palette: navy #1F3B63 / #152A47, orange #E07A28 / #F2A968,
   surface #FFFFFF / #F7F6F3, border #E4E2DC / #D8D5CD,
   text #3C4657 (body) / #5B6472 (muted) / #8B93A0 (faint) */

:root {
  --navy: #1F3B63;
  --navy-dark: #152A47;
  --navy-deep: #0F1A2C;
  --orange: #E07A28;
  --orange-light: #F2A968;
  --bg: #FFFFFF;
  --bg-alt: #F7F6F3;
  --border: #E4E2DC;
  --border-strong: #D8D5CD;
  --text: #3C4657;
  --text-muted: #5B6472;
  --text-faint: #8B93A0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--navy-dark);
  background: var(--bg);
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange); }

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

button { font-family: inherit; }

.mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 8px; top: -48px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: transform 320ms ease, box-shadow 320ms ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(21,42,71,0.10); }
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: none;
  padding: 0;
}
.brand img { height: 52px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-link {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-dark);
  font-family: inherit;
}
.nav-link.is-active,
.nav-link:hover { color: var(--orange); }

.nav-services {
  position: relative;
}

.mega-menu {
  position: fixed;
  top: 81px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(21,42,71,0.12);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  z-index: 60;
  width: max-content;
  max-width: min(1000px, calc(100vw - 48px));
}

.mega-menu__col { min-width: 170px; }

.mega-menu__label {
  display: block;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  transition: color 150ms ease;
}
.mega-menu__label:hover { color: #000; }

.mega-menu__item { margin-bottom: 9px; }
.mega-menu__item a,
.mega-menu__item button {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--navy-dark);
  line-height: 1.4;
  text-align: left;
  transition: color 180ms ease;
}
.mega-menu__item a::after,
.mega-menu__item button::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 220ms ease;
}
.mega-menu__item a:hover,
.mega-menu__item button:hover { color: var(--orange); }
.mega-menu__item a:hover::after,
.mega-menu__item button:hover::after { width: 100%; }

.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: transparent;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 0;
}
.lang-flag {
  display: inline-block;
  width: 26px; height: 17px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  overflow: hidden;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: none;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--navy-dark);
  margin: 4px 0;
}

/* ---------- Buttons ---------- */
.btn {
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: inline-block;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #c96a1e; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #16294a; color: #fff; }

/* ---------- Placeholder imagery ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.ph-banner { background-image: url('../assets/banner-placeholder.svg'); background-color: var(--navy-deep); }
.ph-card { background-image: url('../assets/card-placeholder.svg'); background-color: var(--bg-alt); }
.ph-tag {
  position: absolute;
  right: 10px; bottom: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(15,26,44,0.55);
  padding: 4px 8px;
  border-radius: 3px;
  pointer-events: none;
}
.ph-card .ph-tag { color: var(--text-faint); background: rgba(255,255,255,0.75); }

/* ---------- Hero / carousel ---------- */
.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-carousel__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  display: flex;
  align-items: flex-end;
  transition: opacity 900ms ease;
}
.hero-carousel__slide.is-active { opacity: 1; z-index: 1; }
.hero-carousel__slide.ph { position: absolute; }
.hero-carousel__slide video,
.hero-carousel__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-carousel__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(15,26,44,0.88) 0%, rgba(15,26,44,0.45) 55%, rgba(15,26,44,0.25) 100%);
}
.hero__inner {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 72px;
  width: 100%;
  color: #fff;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(15,26,44,0.35);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow:hover { background: rgba(15,26,44,0.6); color: #fff; }
.carousel-arrow--prev { left: 20px; }
.carousel-arrow--next { right: 20px; }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 9px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.25);
  cursor: pointer;
}
.carousel-dot.is-active { background: var(--orange); border-color: var(--orange); }
.hero__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 720px;
}
.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  max-width: 560px;
  color: #DCE3EC;
  margin: 0 0 32px;
}

/* ---------- About / two-column sections ---------- */
.split {
  padding: 88px 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.split h2 { font-size: 32px; font-weight: 600; line-height: 1.25; margin: 0; }
.split p { font-size: 16px; line-height: 1.75; color: var(--text); margin: 0 0 20px; }

/* ---------- Divisions grid ---------- */
.section-alt { background: #6E96C8; padding: 88px 32px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-head h2 { font-size: 30px; font-weight: 600; margin: 0; }
.section-head a:not(.btn), .section-head button:not(.btn) {
  border: none; background: none; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 600; color: var(--navy-dark); padding: 0;
}
.section-head a:not(.btn):hover, .section-head button:not(.btn):hover { color: var(--orange); }

.division-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.division-card {
  background: #fff;
  padding: 32px 24px;
  cursor: pointer;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  text-align: left;
  font-family: inherit;
  transition: background 200ms ease;
}
.division-card:hover { background: var(--navy); }
.division-card:hover .division-card__index,
.division-card:hover .division-card__label,
.division-card:hover .division-card__count { color: #fff; }
.division-card__index {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--orange);
  margin-bottom: 12px;
  transition: color 200ms ease;
}
.division-card__label { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--navy-dark); transition: color 200ms ease; }
.division-card__count { font-size: 13px; color: var(--text-faint); margin-top: 16px; transition: color 200ms ease; }

/* ---------- CTA band ---------- */
.cta {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 32px;
  text-align: center;
}
.cta h2 { font-size: 30px; font-weight: 600; margin: 0 0 16px; }
.cta p { font-size: 16px; color: var(--text-muted); margin: 0 0 32px; }

/* ---------- Page headers (banner style) ---------- */
.page-banner {
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15,26,44,0.82) 0%, rgba(15,26,44,0.3) 100%);
  pointer-events: none;
}
.page-banner__inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.page-banner__back {
  position: relative;
  display: inline-block;
  pointer-events: auto;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--orange-light);
  margin-bottom: 14px;
  padding: 0;
  align-self: flex-start;
  transition: color 180ms ease;
}
.page-banner__back::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 220ms ease;
}
.page-banner__back:hover { color: #fff; }
.page-banner__back:hover::after { width: 100%; }
.page-banner h1 { font-size: 34px; font-weight: 600; margin: 0; color: #fff; max-width: 760px; }

.category-back {
  position: relative;
  display: inline-block;
  margin-top: 40px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-dark);
  padding: 0;
  transition: color 180ms ease;
}
.category-back::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 220ms ease;
}
.category-back:hover { color: var(--orange); }
.category-back:hover::after { width: 100%; }

/* ---------- Nosotros ---------- */
.page-head { padding: 76px 32px 24px; max-width: 1240px; margin: 0 auto; }
.page-head h1 { font-size: 40px; font-weight: 600; margin: 0 0 8px; max-width: 760px; }

.about-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.about-grid p { font-size: 17px; line-height: 1.8; color: var(--text); margin: 0 0 22px; }
.about-grid .ph { height: 340px; }
.about-grid__image { display: flex; }
.about-grid__image img { width: 100%; height: 100%; object-fit: contain; object-position: top center; display: block; }

.quote-band {
  background: var(--navy);
  padding: 68px 32px;
  text-align: center;
}
.quote-band p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  color: #fff;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---------- Servicios overview ---------- */
.services-hero { height: 300px; }
.services-hero p { font-size: 16px; line-height: 1.6; color: #DCE3EC; max-width: 620px; margin: 0; }

.overview-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 68px 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.overview-card {
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0;
  text-align: left;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.overview-card .ph { flex-shrink: 0; }
.overview-card:hover { border-color: var(--border-strong); }
.overview-card .ph { height: 200px; transition: background-size 400ms ease; }
.overview-card:hover .ph { background-size: 112%; }
.overview-card__body { padding: 22px 24px; }
.overview-card__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--orange);
  margin-bottom: 10px;
}
.overview-card h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; color: var(--navy-dark); }
.overview-card p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* ---------- Categoria ---------- */
.category-banner { height: 280px; }
.category-intro {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 32px 88px;
}
.category-intro > p { font-size: 16px; line-height: 1.7; color: var(--text-muted); max-width: 640px; margin: 0 0 44px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0;
  text-align: left;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.service-card .ph { flex-shrink: 0; }
.service-card:hover { border-color: var(--border-strong); }
.service-card .ph { height: 148px; transition: background-size 400ms ease; }
.service-card:hover .ph { background-size: 112%; }
.service-card__body { padding: 18px 20px; }
.service-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; color: var(--navy-dark); }
.service-card p { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); margin: 0; }

/* ---------- Servicio detail ---------- */
.service-banner { height: 320px; }
.service-detail {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 32px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.service-detail p { font-size: 17px; line-height: 1.75; color: var(--text); margin: 0; }

.bullet-list { margin: 0; padding: 0; list-style: none; }
.bullet-list li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--border);
  position: relative;
}
.bullet-list li::before { content: '–'; position: absolute; left: 0; top: 12px; color: var(--orange); }

.service-cta { max-width: 1240px; margin: 0 auto; padding: 20px 32px 88px; }

/* ---------- Contacto ---------- */
.contact-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 76px 32px 88px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact-grid h1 { font-size: 36px; font-weight: 600; margin: 0 0 20px; }
.contact-grid > div:first-child > p { font-size: 16px; line-height: 1.7; color: var(--text-muted); margin: 0 0 36px; }

.contact-block { border-top: 1px solid var(--border); padding-top: 26px; }
.contact-block__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 20px 0 10px;
}
.contact-block__label:first-child { margin-top: 0; }
.contact-block a { display: block; font-size: 16px; margin-bottom: 6px; }

.contact-form-panel { background: var(--bg-alt); padding: 36px; border: 1px solid var(--border); }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--navy-dark); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }

.form-sent { padding: 36px 0; text-align: center; }
.form-sent__title { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--navy); }
.form-sent p { font-size: 15px; color: var(--text-muted); }

.form-error {
  font-size: 13px;
  color: #b3401e;
  margin: -10px 0 18px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 4px solid var(--orange);
  background: var(--navy);
  padding: 40px 32px;
}
.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-badge {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  border: none;
  padding: 10px;
  cursor: pointer;
  transition: opacity 180ms ease;
}
.footer-badge:hover { opacity: 0.7; }
.footer-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-footer__copy { font-size: 13px; color: rgba(255,255,255,0.65); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split,
  .about-grid,
  .contact-grid,
  .service-detail { grid-template-columns: 1fr; gap: 32px; }
  .division-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: fixed;
    top: 81px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    z-index: 55;
    box-shadow: 0 16px 30px rgba(21,42,71,0.1);
  }
  .main-nav.is-open .nav-link { padding: 10px 0; width: 100%; }
  .main-nav.is-open .nav-services { width: 100%; }
  .mega-menu {
    position: static;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 6px 0 6px 12px;
    width: 100%;
    max-width: none;
  }
  .menu-toggle { display: inline-block; }
  .hero-carousel { min-height: 460px; }
  .carousel-arrow { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .contact-form-panel { padding: 24px; }
}

@media (max-width: 520px) {
  .container, .split, .section-alt, .cta,
  .page-head, .about-grid, .overview-grid,
  .category-intro, .service-detail, .service-cta,
  .contact-grid { padding-left: 20px; padding-right: 20px; }
  .division-grid { grid-template-columns: 1fr; }
  .hero__inner { padding-left: 20px; padding-right: 20px; }
}

@media print {
  .site-header, .menu-toggle, .lang-switch { position: static; }
}
