/* ===== Grupo MAC Pinotepa — paleta inspirada en Truper ===== */
:root {
  --orange: #F47216;
  --orange-dark: #D85F08;
  --orange-light: #FFF1E6;
  --black: #1A1A1A;
  --charcoal: #2B2B2B;
  --gray: #5F5F5F;
  --gray-light: #F4F4F2;
  --white: #FFFFFF;
  --wa: #25D366;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .95rem;
  color: var(--orange);
  margin-bottom: .4em;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  padding: .75em 1.5em; border-radius: 6px; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, transform .15s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--lg { font-size: 1.2rem; padding: .85em 1.7em; }
.btn--sm { font-size: 1rem; padding: .5em 1.1em; }
.btn--block { width: 100%; }
.icon { width: 1.25em; height: 1.25em; }

/* ===== Barra superior ===== */
.topbar { background: var(--black); color: #ddd; font-size: .88rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: 6px; padding-bottom: 6px; }
.topbar__phone { color: var(--orange); font-weight: 600; text-decoration: none; }

/* ===== Encabezado ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 4px solid var(--orange);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, .1); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: auto; height: 68px; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  color: var(--charcoal); position: relative;
}
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 3px; background: var(--orange); transition: right .2s;
}
.nav a:not(.btn):hover::after { right: 0; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--black); transition: transform .2s, opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    linear-gradient(115deg, rgba(26,26,26,.97) 0%, rgba(26,26,26,.92) 55%, rgba(244,114,22,.9) 55.1%, var(--orange) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .06;
  background-image: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 22px);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem;
  align-items: center; padding-top: 90px; padding-bottom: 100px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; font-weight: 800; }
.hero h1 span { color: var(--orange); }
.hero__lead { font-size: 1.15rem; color: #d8d8d8; max-width: 31em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.hero__stats li {
  background: rgba(26,26,26,.88); border-left: 5px solid var(--orange);
  padding: 1.1rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.hero__stats strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--orange); }
.hero__stats span { color: #ccc; }
.hero__stripe {
  position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 18px, var(--black) 18px 36px);
}

/* ===== Secciones ===== */
.section { padding: 90px 0; }
.section--alt { background: var(--gray-light); }
.section--dark { background: var(--black); color: var(--white); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section__head p:last-child { color: var(--gray); }
.section__head h2::after {
  content: ''; display: block; width: 70px; height: 5px; background: var(--orange); margin: .35em auto 0;
}

/* ===== Tarjetas de productos ===== */
.grid { display: grid; gap: 1.4rem; }
.cards { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid #e6e6e6; border-radius: var(--radius);
  padding: 1.8rem 1.5rem; transition: transform .2s, box-shadow .2s, border-color .2s;
  border-top: 5px solid var(--orange);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--gray); font-size: .97rem; margin: 0; }
.card__icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--orange-light);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card__icon svg { width: 28px; height: 28px; fill: var(--orange); stroke: var(--orange); stroke-width: .5; stroke-linejoin: round; }

/* ===== Acerca de ===== */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.about__text p { color: #cfcfcf; }
.about__text strong { color: var(--white); }
.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.values li { padding-left: 1.6rem; position: relative; color: #cfcfcf; }
.values li::before {
  content: ''; position: absolute; left: 0; top: .45em; width: 12px; height: 12px;
  background: var(--orange); transform: rotate(45deg);
}
.values strong { display: block; font-family: var(--font-head); font-size: 1.25rem; text-transform: uppercase; color: var(--orange); }
.about__card { position: relative; background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: 14px 14px 0 var(--orange); }
.about__badge {
  position: absolute; right: -18px; bottom: -28px; width: 120px; height: 120px; border-radius: 50%;
  background: var(--orange); color: var(--white); display: grid; place-items: center; text-align: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; line-height: 1.1; text-transform: uppercase;
  border: 5px solid var(--black);
}

/* ===== Ubicación ===== */
.location { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; align-items: stretch; }
.location__info { display: flex; flex-direction: column; gap: 1.6rem; align-items: flex-start; }
.info-item h3 { color: var(--orange); text-transform: uppercase; margin-bottom: .3em; }
.info-item p { margin: 0; }
.hours { border-collapse: collapse; }
.hours td { padding: .25rem 1.5rem .25rem 0; }
.hours td:last-child { font-weight: 600; }
.location__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; border: 4px solid var(--orange); }
.location__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ===== Contacto ===== */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.contact__channels { display: grid; gap: 1rem; }
.channel {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  background: var(--white); padding: 1.1rem 1.3rem; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .2s; word-break: break-word;
}
.channel:hover { transform: translateX(4px); }
.channel strong { display: block; font-family: var(--font-head); font-size: 1.2rem; text-transform: uppercase; }
.channel__icon {
  flex: 0 0 50px; width: 50px; height: 50px; border-radius: 50%; background: var(--orange);
  display: grid; place-items: center; color: var(--white);
}
.channel__icon svg { width: 24px; height: 24px; fill: currentColor; }
.channel__icon--wa { background: var(--wa); }

.contact__form { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--orange); }
.contact__form label { display: block; font-weight: 600; margin-bottom: 1rem; }
.contact__form .opt { font-weight: 400; color: var(--gray); }
.contact__form input, .contact__form textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .75rem .9rem;
  font: inherit; border: 2px solid #ddd; border-radius: 6px; background: #fcfcfc; resize: vertical;
}
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--orange); background: var(--white); }
.contact__form .is-invalid { border-color: #D93025; }
.form-note { font-size: .88rem; color: var(--gray); text-align: center; margin: .8rem 0 0; }

/* ===== Footer ===== */
.footer { background: var(--black); color: #bbb; padding: 50px 0 30px; border-top: 6px solid var(--orange); font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; }
.footer strong { color: var(--white); font-family: var(--font-head); font-size: 1.4rem; text-transform: uppercase; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--orange); }
.footer__copy { grid-column: 1 / -1; border-top: 1px solid #333; padding-top: 1.2rem; margin: 0; font-size: .85rem; }

/* ===== Botón flotante WhatsApp ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  display: flex; align-items: center; gap: .6rem;
  background: var(--wa); color: var(--white); text-decoration: none;
  padding: 12px; border-radius: 50px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  font-weight: 600; transition: transform .2s;
  animation: wa-pulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 34px; height: 34px; }
.wa-float__label { padding-right: .5rem; }
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55), 0 6px 20px rgba(0,0,0,.25); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 6px 20px rgba(0,0,0,.25); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 6px 20px rgba(0,0,0,.25); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { height: 56px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 4px solid var(--orange);
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.is-open { max-height: 420px; }
  .nav a:not(.btn) { padding: .9rem 20px; border-top: 1px solid #eee; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin: .9rem 20px; }
  .hero { background: linear-gradient(160deg, rgba(26,26,26,.97) 0%, rgba(26,26,26,.94) 70%, var(--orange) 100%); }
  .hero__inner, .about, .location, .contact { grid-template-columns: 1fr; }
  .hero__inner { padding-top: 60px; padding-bottom: 80px; gap: 2rem; }
  .about { gap: 3.5rem; }
  .about__card { max-width: 460px; margin: 0 auto 1rem; }
  .topbar__hours { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .topbar__inner { font-size: .82rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .wa-float__label { display: none; }
  .about__badge { width: 96px; height: 96px; font-size: .95rem; right: -6px; }
}
