/* ==========================================================================
   Tecmec SRL - Landing moderna (v2)
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-2: #f6f0e6;
  --bg-3: #ffffff;
  --dark: #17181c;
  --dark-2: #1f2024;
  --navy: #1e3054;
  --navy-2: #283b62;
  --tan: #cbb492;
  --tan-soft: #e2d4bd;
  --brown: #897252;
  --gold: #dfc733;
  --red: #e03020;
  --red-2: #e03423;
  --clients-red: #da2d1e;
  --ink: #242323;
  --text: #4a4848;
  --muted: #605e5e;
  --line: rgba(203, 180, 146, .45);
  --radius: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .14);
  --max: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* progress bar */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--tan), var(--red));
  z-index: 999; transition: width .1s linear;
}

/* ------------------------------------------------------------------ header */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px clamp(20px, 4vw, 52px);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(203, 180, 146, .35);
  transition: background .35s var(--ease), backdrop-filter .35s, padding .35s, box-shadow .35s;
}
.hdr.scrolled {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  padding-top: 12px; padding-bottom: 12px;
}
.hdr__logo img { height: 42px; }
.hdr__nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 38px); }
.hdr__nav a {
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink); position: relative; opacity: .85; transition: opacity .2s;
}
.hdr__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--tan); transition: width .3s var(--ease);
}
.hdr__nav a:hover, .hdr__nav a.active { opacity: 1; }
.hdr__nav a:hover::after, .hdr__nav a.active::after { width: 100%; }

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: #ffffff; color: var(--navy);
  padding: 12px 24px; border-radius: 6px;
  font-weight: 700; font-size: 14px; letter-spacing: .02em;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.cta:hover { background: var(--navy); color: #ffffff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .24); }
.cta.ghost {
  background: transparent; color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .45); box-shadow: none;
}
.cta.ghost:hover { border-color: var(--tan); color: var(--tan); background: transparent; }

.hdr .cta { background: var(--red); color: #ffffff; box-shadow: 0 10px 24px rgba(224, 48, 32, .28); }
.hdr .cta:hover { background: #c62817; color: #ffffff; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 2px; background: var(--ink); transition: .3s; }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 80px; overflow: hidden;
  color: #ffffff;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.06) translateY(0); } to { transform: scale(1.16) translateY(-24px); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 12% 20%, rgba(224, 48, 32, .16), transparent 60%),
    linear-gradient(180deg, rgba(11, 15, 23, .40), rgba(11, 15, 23, .84) 88%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--tan); font-weight: 700; margin-bottom: 22px;
}
.hero__eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--tan); }
.hero h1 {
  font-family: "Jost", sans-serif;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 1.02; margin: 0 0 22px; font-weight: 600;
  letter-spacing: -.01em; max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--tan); }
.hero p {
  font-size: clamp(16px, 1.9vw, 20px);
  color: rgba(255, 255, 255, .82); max-width: 60ch; margin: 0 0 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; margin-top: 64px; max-width: 760px;
}
.stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(203, 180, 146, .35);
  border-radius: 18px; padding: 18px 22px;
  backdrop-filter: blur(6px);
}
.stat b { display: block; font-family: "Jost", sans-serif; font-size: clamp(28px, 3.4vw, 42px); color: var(--tan); line-height: 1; }
.stat span { font-size: 13px; color: rgba(255, 255, 255, .72); letter-spacing: .04em; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; width: 26px; height: 44px; border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 20px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue i { width: 3px; height: 8px; background: var(--tan); border-radius: 3px; animation: cue 1.6s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; background: var(--bg); color: var(--text); }
.section.alt { background: var(--bg-2); }
.section.section--dark { background: var(--dark); color: #ffffff; }
.section.section--dark.alt { background: var(--dark-2); }
.section.section--red { background: var(--clients-red); color: #ffffff; }
.section__head { max-width: 760px; margin-bottom: 54px; }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red-2); margin-bottom: 14px;
}
.section h2 {
  font-family: "Jost", sans-serif; font-weight: 600; color: var(--ink);
  font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; margin: 0 0 16px;
}
.section__head p { color: var(--muted); font-size: 17px; margin: 0; }
.section--dark h2, .section--red h2 { color: #ffffff; }
.section--dark .kicker { color: var(--tan); }
.section--red .kicker { color: var(--gold); }
.section--dark .section__head p { color: #cfcfcf; }
.section--red .section__head p { color: rgba(255, 255, 255, .9); }

/* marquee of logos */
.marquee { border-top: 1px solid rgba(203, 180, 146, .35); border-bottom: 1px solid rgba(203, 180, 146, .35); padding: 26px 0; overflow: hidden; background: var(--navy-2); }
.marquee__track { display: flex; gap: 70px; align-items: center; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 42px; width: auto; opacity: .9; transition: .3s; }
.marquee img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* about */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 74px); align-items: center; }
.about__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about__media img { width: 100%; }
.about__badge {
  position: absolute; right: 18px; bottom: 18px;
  background: var(--red); color: #fff; border-radius: 16px;
  padding: 14px 20px; text-align: center; box-shadow: var(--shadow);
}
.about__badge b { display: block; font-family: "Sriracha", cursive; font-size: 34px; line-height: 1; }
.about__badge span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.about p { color: var(--muted); font-size: 17px; }
.about p strong { color: var(--red); }
.about__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.about__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 600; font-size: 15px; }
.about__list svg { flex: 0 0 22px; color: var(--brown); margin-top: 2px; }

/* services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: #ffffff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--tan), var(--red));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: var(--tan); box-shadow: 0 18px 40px rgba(0, 0, 0, .12); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(203, 180, 146, .2); color: var(--brown); margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-family: "Jost", sans-serif; color: var(--navy-2); font-size: 21px; margin: 0 0 8px; font-weight: 600; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.card ul li { margin-bottom: 4px; }

/* projects */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 340px; display: flex; align-items: flex-end;
  box-shadow: var(--shadow);
}
.project.tall { min-height: 520px; }
.project img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.project:hover img { transform: scale(1.07); }
.project::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 23, .1), rgba(11, 15, 23, .92));
}
.project__body { position: relative; z-index: 2; padding: 30px; }
.project__body .tag { display: inline-block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--tan); margin-bottom: 8px; }
.project__body h3 { font-family: "Jost", sans-serif; font-size: clamp(20px, 2.2vw, 28px); margin: 0 0 8px; font-weight: 600; }
.project__body p { color: #cfd5df; font-size: 14px; margin: 0; max-width: 46ch; }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 34px; border-top: 1px solid rgba(255, 255, 255, .18); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -26px; left: 0; font-family: "Jost", sans-serif;
  font-size: 54px; font-weight: 600; color: rgba(203, 180, 146, .38);
}
.step h3 { font-family: "Jost", sans-serif; color: #ffffff; font-size: 19px; margin: 0 0 8px; font-weight: 600; }
.step p { color: #cfcfcf; font-size: 14px; margin: 0; }

/* clients */
.clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.client {
  background: #ffffff; border: 1px solid rgba(203, 180, 146, .6); border-radius: 16px;
  padding: 26px 18px; display: grid; place-items: center; min-height: 130px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  transition: transform .3s var(--ease), border-color .3s;
}
.client:hover { transform: translateY(-6px); border-color: var(--navy-2); }
.client img { max-height: 60px; width: auto; opacity: .95; }
.client span { display: block; margin-top: 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.section--red .client { background: transparent; border: 1px solid rgba(255, 255, 255, .45); box-shadow: none; }
.section--red .client:hover { border-color: #ffffff; }
.section--red .client span { color: rgba(255, 255, 255, .9); }

/* contact / cta */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 60px); align-items: start; }
.contact__card {
  background: linear-gradient(160deg, rgba(30, 48, 84, .93), rgba(30, 48, 84, .88)), url("assets/fondo-azul.jpg") center/cover no-repeat;
  border: 1px solid rgba(203, 180, 146, .35); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px);
  color: #ffffff; box-shadow: var(--shadow);
}
.contact__card .role { color: var(--tan); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin: 22px 0 4px; }
.contact__card .role:first-child { margin-top: 0; }
.contact__card .person { font-weight: 700; color: #ffffff; }
.contact__card a { color: var(--tan); }
.contact__card a:hover { text-decoration: underline; }
.contact__card .company { font-family: "Jost", sans-serif; font-size: 30px; letter-spacing: .08em; margin: 26px 0 6px; }
.contact__form {
  background: linear-gradient(160deg, rgba(30, 48, 84, .96), rgba(30, 48, 84, .9)), url("assets/fondo-azul.jpg") center/cover no-repeat;
  border: 1px solid rgba(203, 180, 146, .35); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow);
}
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 0; }
.contact__actions span { color: #ffffff; }
.btn-wa, .btn-call {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px; border: 1px solid transparent;
  font-size: 13px; font-weight: 700; letter-spacing: .03em; line-height: 1;
  text-decoration: none !important; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s;
}
.btn-wa svg, .btn-call svg { width: 15px; height: 15px; fill: currentColor; }
.btn-wa { background: #25d366; color: #06331a !important; }
.btn-wa:hover { background: #1ebe5a; transform: translateY(-2px); }
.btn-call { border-color: var(--tan); color: var(--tan) !important; background: rgba(203, 180, 146, .08); }
.btn-call:hover { background: rgba(203, 180, 146, .18); transform: translateY(-2px); }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--tan); font-weight: 700; }
.field input, .field textarea {
  background: rgba(96, 94, 94, .45); border: 1px solid rgba(203, 180, 146, .35);
  border-radius: 10px; padding: 14px 16px; color: #ffffff;
  font-family: inherit; font-size: 15px; outline: none; transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { border-color: #ffffff; background: rgba(96, 94, 94, .6); }
.field input::placeholder, .field textarea::placeholder { color: #b9b9b9; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { color: #ffffff; font-weight: 700; margin: 0; display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.footer { background: var(--tan); color: #5a4630; padding: 60px 0 0; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: "Jost", sans-serif; color: var(--navy-dark, #1e3054); font-weight: 600; font-size: 16px; margin: 0 0 16px; letter-spacing: .04em; }
.footer p, .footer a { color: #5a4630; font-size: 14px; }
.footer a:hover { color: var(--navy-2); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__logo { height: 46px; margin-bottom: 16px; }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social img { width: 34px; height: 34px; }
.footer__band { background: var(--red); margin-top: 46px; }
.footer__bottom {
  padding: 20px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #ffffff; font-size: 13px;
}

/* reveal animation */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- responsive */
/* anclas no quedan debajo del header fijo */
section[id] { scroll-margin-top: 84px; }
img { height: auto; }

/* ---- PC grande (>1440): contenedor un poco mas amplio ---- */
@media (min-width: 1441px) {
  :root { --max: 1300px; }
}

/* ---- Tablet horizontal / laptop chica (1025-1200) ---- */
@media (max-width: 1200px) {
  .cards { gap: 18px; }
  .clients { gap: 14px; }
}

/* ---- Tablet (721-1024) ---- */
@media (max-width: 1024px) {
  .about, .contact { grid-template-columns: 1fr; }
  .about { gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 46px; }
  .hero { min-height: 92vh; }
  .projects { grid-template-columns: 1fr 1fr; }
  .project.tall { min-height: 420px; }
}

/* ---- Tablet vertical / celular grande (481-720) ---- */
@media (max-width: 860px) {
  .hdr > .cta { display: none; }
  .hdr__nav {
    position: fixed; inset: 0; height: 100%;
    flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(8, 11, 17, .98);
    transform: translateX(100%); transition: transform .35s var(--ease);
    pointer-events: none;
  }
  .hdr__nav.open { transform: none; pointer-events: auto; }
  .hdr__nav a { font-size: 22px; color: #ffffff; }
  .burger { display: flex; z-index: 950; }
  .burger.open span { background: #ffffff; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .hero { min-height: auto; padding: 130px 0 70px; }
  .hero h1 { max-width: none; }
  .hero__stats { grid-template-columns: 1fr; margin-top: 44px; }
  .hero__actions { gap: 12px; }
  .cards, .projects, .clients, .steps, .form-row, .footer__top { grid-template-columns: 1fr; }
  .project, .project.tall { min-height: 300px; }
  .section { padding: 60px 0; }
  .marquee__track { gap: 44px; }
  .marquee img { height: 34px; }
}

/* ---- Celular (<=480) ---- */
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero__actions .cta { width: 100%; justify-content: center; }
  .hero__eyebrow { font-size: 11px; letter-spacing: .16em; }
  .card, .contact__card { padding: 22px; border-radius: 18px; }
  .stat { padding: 15px 18px; }
  .about__badge b { font-size: 28px; }
  .about__badge { padding: 10px 15px; }
  .project__body { padding: 22px; }
  .step::before { font-size: 44px; top: -22px; }
  .footer__bottom { flex-direction: column; }
}
