/* ==========================================================================
   Acotrans — Acoples y Transmisiones S.A.S.
   Sitio estático · Paleta original del sitio (Astra/Elementor)
   ========================================================================== */

:root {
  --primary: #046bd2;
  --primary-dark: #045cb4;
  --heading: #1e293b;
  --body: #334155;
  --surface-alt: #F0F5FA;
  --white: #FFFFFF;
  --border: #D1D5DB;
  --dark: #0b1a2e;
  --dark-2: #12263f;
  --whatsapp: #25D366;
  --font-heading: 'Roboto', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --shadow-sm: 0 1px 3px rgba(15, 33, 55, .08);
  --shadow-md: 0 6px 20px rgba(15, 33, 55, .12);
  --shadow-lg: 0 18px 45px rgba(15, 33, 55, .18);
  --radius: 14px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; touch-action: manipulation; }
button { touch-action: manipulation; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--primary);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.15;
  font-weight: 700;
  text-wrap: balance;
}

.section { padding: 88px 0; }
.section--alt { background: var(--surface-alt); }

.section-eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-bottom: 18px;
}

.section-intro {
  max-width: 720px;
  font-size: 1.06rem;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

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

.btn--outline { border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--heading); }

.btn--whatsapp { background: var(--whatsapp); color: #073b1c; }
.btn--whatsapp:hover { background: #1fc25a; }

.btn--ghost { border-color: var(--primary); color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: var(--white); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.site-logo img { height: 46px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 6px; }

.site-nav a {
  padding: 10px 16px;
  color: var(--heading);
  font-weight: 500;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.site-nav a:hover { color: var(--primary); background: var(--surface-alt); }
.site-nav a[aria-current="page"] { color: var(--primary); font-weight: 700; }

.site-nav .btn { padding: 10px 22px; margin-left: 10px; font-size: .95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--heading);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(6, 16, 34, .93) 0%, rgba(6, 16, 34, .78) 40%, rgba(9, 22, 48, .28) 72%, rgba(9, 22, 48, .18) 100%),
    url("assets/img/background-banner-home.jpg") center right / cover no-repeat;
  color: var(--white);
  padding: 130px 0 140px;
  overflow: hidden;
}

.hero__content { max-width: 680px; position: relative; z-index: 1; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #bcd7f5;
  margin-bottom: 26px;
}
.hero__eyebrow img { height: 34px; width: auto; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: #6db4f7; }

.hero p {
  font-size: 1.13rem;
  color: #dbe7f5;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* --------------------------------------------------------------------------
   Cards de categorías (home)
   -------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 46px;
}

.category-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  isolation: isolate;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .4s ease;
  background: var(--white);
}
.category-card:hover img { transform: scale(1.06); }

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(6, 24, 44, .92) 12%, rgba(6, 24, 44, .25) 55%, rgba(6, 24, 44, .05));
}

.category-card__body { padding: 26px; }
.category-card h3 {
  color: var(--white);
  font-size: 1.55rem;
  margin-bottom: 6px;
}
.category-card span {
  font-size: .92rem;
  font-weight: 600;
  color: #8ec5fb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   Bloque Nosotros (home) y zigzag (nosotros)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }

.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.split__media .img-square { aspect-ratio: 1 / 1; object-fit: contain; background: var(--white); }

.split__content p { margin-bottom: 16px; }

.quote {
  margin: 26px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--primary);
  background: var(--surface-alt);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--heading);
}

/* --------------------------------------------------------------------------
   Marcas
   -------------------------------------------------------------------------- */
.brands { text-align: center; }
.brands__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px 54px;
  margin-top: 40px;
}
.brands__grid img {
  height: 84px;
  width: auto;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
.brands__grid img:hover { filter: none; opacity: 1; transform: scale(1.06); }

/* --------------------------------------------------------------------------
   CTA WhatsApp
   -------------------------------------------------------------------------- */
.cta {
  background: linear-gradient(120deg, var(--dark) 20%, var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 84px 0;
}
.cta h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}
.cta p {
  max-width: 560px;
  margin: 0 auto 30px;
  color: #d5e4f5;
  font-size: 1.08rem;
}

/* --------------------------------------------------------------------------
   Page hero interno (productos / nosotros)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(115deg, rgba(4, 20, 39, .95) 30%, rgba(4, 92, 180, .85)), var(--dark);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 92px 0 76px;
  text-align: center;
}
.page-hero--nosotros {
  background:
    linear-gradient(115deg, rgba(4, 20, 39, .93) 30%, rgba(4, 92, 180, .8)),
    url("assets/img/scraped/cheerful-business-people-job-is-done-group-office-workers-happy-hit-their-own-records-being-successful-2048x1367.jpg") center/cover no-repeat;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 16px;
}
.page-hero p {
  max-width: 700px;
  margin: 0 auto 28px;
  color: #dbe7f5;
  font-size: 1.1rem;
}
.page-hero .contact-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: .98rem;
  color: #a9c9ec;
  margin-bottom: 26px;
}
.page-hero .contact-line a { color: #cfe3f9; font-weight: 600; }

/* --------------------------------------------------------------------------
   Grid de productos
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.product-card__media {
  background: var(--surface-alt);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.05); }

.product-card__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.product-card p { flex: 1; margin-bottom: 20px; font-size: .98rem; }
.product-card .btn { align-self: flex-start; padding: 11px 24px; font-size: .93rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: #c3d3e6;
  padding: 70px 0 0;
}
.site-footer a { color: #8ec5fb; }
.site-footer a:hover { color: var(--white); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 50px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1.25rem;
  letter-spacing: .02em;
  margin-bottom: 18px;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: .97rem; }

.site-footer__brand img { height: 44px; width: auto; margin-bottom: 16px; background: var(--white); padding: 6px 10px; border-radius: 8px; }
.site-footer__brand p { max-width: 320px; font-size: .95rem; }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0;
  text-align: center;
  font-size: .88rem;
  color: #8ba3bf;
}

/* --------------------------------------------------------------------------
   Botón flotante WhatsApp
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(18, 140, 60, .45);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; fill: var(--white); }

/* --------------------------------------------------------------------------
   Animaciones on-scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--reverse .split__media { order: 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }

  /* Menú móvil */
  .nav-toggle { display: block; min-width: 44px; min-height: 44px; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 4% 18px;
    gap: 0;
    display: none;
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; animation: nav-drop .22s ease-out; }
  .site-nav a:not(.btn) {
    padding: 15px 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: 0;
    border-bottom: 1px solid var(--surface-alt);
    font-size: 1.05rem;
  }
  .site-nav a:not(.btn):last-of-type { border-bottom: 0; }
  .site-nav .btn { margin: 14px 0 4px; justify-content: center; min-height: 48px; }

  /* Hero: overlay uniforme para que el texto se lea sobre el banner */
  .hero {
    padding: 72px 0 84px;
    background:
      linear-gradient(rgba(6, 16, 34, .82), rgba(9, 22, 48, .78)),
      url("assets/img/background-banner-home.jpg") center / cover no-repeat;
  }
  .hero__eyebrow { font-size: .82rem; gap: 10px; margin-bottom: 18px; }
  .hero__eyebrow img { height: 26px; }
  .hero p { font-size: 1.02rem; margin-bottom: 28px; }

  .page-hero { padding: 60px 0 52px; }
  .cta { padding: 60px 0; }

  .category-grid, .product-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
  .category-card { min-height: 240px; }
  .split { gap: 26px; }
  .quote { font-size: 1.15rem; padding: 14px 18px; }

  .brands__grid { gap: 22px 32px; margin-top: 28px; }
  .brands__grid img { height: 58px; filter: none; opacity: 1; }

  .site-footer { padding-top: 52px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 36px; }
  /* que el botón flotante no tape el copyright */
  .site-footer__bottom { padding-bottom: 92px; }

  .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav.is-open { animation: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .page-hero .btn, .cta .btn { width: 100%; max-width: 340px; justify-content: center; }
  .product-card__body { padding: 20px; }
  .product-card .btn { align-self: stretch; justify-content: center; }
  .contact-line { flex-direction: column; gap: 6px; }
}
