/* Comercial Regiomontana */

:root {
  --blue: #1e3a5f;
  --blue-dark: #152c4a;
  --orange: #e85d04;
  --orange-dark: #c45203;
  --gray-50: #f8f9fb;
  --gray-100: #eef1f5;
  --text: #2d3748;
  --text-muted: #718096;
  --white: #ffffff;
  --font: 'Work Sans', sans-serif;
  --header-h: 72px;
  --max-w: 1140px;
  --gutter: 1.5rem;
  --ease: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}

.tag--light { color: var(--orange); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 2rem;
}

.section-title--light { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,93,4,0.3);
}

.btn--light {
  background: var(--white);
  color: var(--blue);
}

.btn--light:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
}

.btn--full { width: 100%; }

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--ease);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(30,58,95,0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  flex-shrink: 0;
}

.header__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex: 1;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.active { color: var(--blue); font-weight: 600; }

.header__cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  transition: var(--ease);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  padding-top: var(--header-h);
  background: var(--gray-50);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(85vh - var(--header-h));
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero__text h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero__text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 2px;
}

.hero__link:hover { color: var(--orange); border-color: var(--orange); }

.hero__media {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(30,58,95,0.15);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ── Nosotros ── */
.about {
  padding: 5rem 0;
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__copy h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.about__copy p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about__copy strong { color: var(--blue); }

.about__list {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--gray-100);
}

.about__list li {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 1rem 0;
  padding-left: 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text);
}

.about__list li:last-child { border-bottom: none; }

.about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
}

/* ── Productos ── */
.products {
  padding: 5rem 0;
  background: var(--gray-50);
}

.products__layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.products__featured {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 360px;
}

.products__featured img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.products__featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,58,95,0.92) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--white);
}

.products__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--orange);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.products__featured-overlay h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.products__featured-overlay p {
  font-size: 0.875rem;
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.products__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
}

.products__side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.products__mini {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 1.25rem;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.products__mini:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateX(4px);
}

.products__mini:hover h3 { color: var(--white); }
.products__mini:hover p { color: rgba(255,255,255,0.75); }

.products__mini h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.products__mini p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Proceso ── */
.process {
  padding: 5rem 0;
  background: var(--blue);
  color: var(--white);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process__steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(255,255,255,0.15);
  z-index: 0;
}

.process__steps article {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process__num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.process__steps h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.process__steps p {
  font-size: 0.8rem;
  opacity: 0.75;
  line-height: 1.5;
}

/* ── Clientes ── */
.clients {
  padding: 3.5rem 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}

.clients__inner { text-align: center; }

.clients__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.clients__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.clients__logos span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.35;
  transition: opacity var(--ease);
}

.clients__logos span:hover { opacity: 0.7; }

/* ── CTA ── */
.cta-band {
  background: var(--blue-dark);
  color: var(--white);
  padding: 3.5rem 0;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cta-band p {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* ── Contacto ── */
.contact {
  padding: 5rem 0;
  background: var(--gray-50);
}

.contact__pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact__pill {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(30,58,95,0.05);
}

.contact__pill strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}

.contact__form {
  background: var(--white);
  border-radius: 10px;
  padding: 2.5rem;
  border: 1px solid var(--gray-100);
  box-shadow: 0 4px 24px rgba(30,58,95,0.06);
}

.contact__form .section-title { margin-bottom: 1.5rem; }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 0.9rem;
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  background: var(--gray-50);
  color: var(--text);
  transition: border-color var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-notice {
  margin-top: 1rem;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  text-align: center;
}

.form-notice.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ── Footer ── */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}

.footer__accent {
  background: var(--orange);
  color: var(--white);
  padding: 0.85rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.footer__body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--gutter);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

.footer__nav a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--ease);
}

.footer__nav a:hover { color: var(--orange); }

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .products__layout { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .process__steps::before { display: none; }
  .contact__pills { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header__cta { display: none; }
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    padding: 1rem var(--gutter);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-110%);
    opacity: 0;
    transition: all var(--ease);
    pointer-events: none;
  }

  .nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav__link { display: block; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }

  .header__brand span:not(.header__mark) { display: none; }

  .process__steps { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__body { flex-direction: column; text-align: center; }
  .footer__nav { justify-content: center; }
}

@media (min-width: 769px) {
  .header__cta { display: inline-flex; }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
