/* =========================================================
   Euro Tech Ve — Hoja de estilos
   ========================================================= */
:root {
  --bg: #12100e;
  --bg-alt: #191613;
  --surface: #211d19;
  --surface-2: #29241f;
  --border: rgba(255, 255, 255, .09);
  --text: #f3efe9;
  --muted: #b0a599;
  --accent: #d49456;
  --accent-2: #9a6230;
  --accent-glow: rgba(212, 148, 86, .34);
  --wa: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --header-h: 76px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::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: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2.5rem); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--accent); color: #000; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon--lg { width: 2rem; height: 2rem; }

.gradient-text {
  background: linear-gradient(90deg, #e7b580, #a86d37);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, #d89b5e, #9c6230);
  color: #12100e; box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn--primary:hover { box-shadow: 0 14px 36px -8px var(--accent-glow); }
a[href*="wa.me"].btn:hover,
a[href*="wa.me"].btn:focus-visible,
#contact-form button[type="submit"]:hover,
#contact-form button[type="submit"]:focus-visible {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 36px -8px rgba(37, 211, 102, .5);
}
.btn--ghost { border-color: rgba(255,255,255,.22); color: var(--text); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--accent); background: rgba(212,148,86,.08); }
.btn--sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Encabezado ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.header.is-scrolled {
  background: rgba(18, 16, 14, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header__logo img { width: 127px; height: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.6rem; }
.nav__link { font-size: .92rem; font-weight: 500; color: var(--muted); position: relative; transition: color .2s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: calc(var(--header-h) + 3rem) 0 5rem; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18,16,14,.96) 0%, rgba(18,16,14,.84) 44%, rgba(18,16,14,.38) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url("../assets/hero.jpg") center right / cover no-repeat;
  animation: heroZoom 18s ease-out both;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23d49456' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M0 24h36l16 16h28M80 40v32l16 16h64M0 112h48l24-24h40l16 16h32M40 0v24M120 0v48l-16 16v32'/%3E%3Ccircle cx='80' cy='40' r='2.5' fill='%23d49456' fill-opacity='.14'/%3E%3Ccircle cx='48' cy='112' r='2.5' fill='%23d49456' fill-opacity='.14'/%3E%3Ccircle cx='120' cy='48' r='2.5' fill='%23d49456' fill-opacity='.14'/%3E%3Crect x='92' y='84' width='8' height='8' rx='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 160px;
  mask-image: radial-gradient(ellipse at 18% 50%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse at 18% 50%, #000 0%, transparent 68%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__content { max-width: 1200px; }
.hero__title { font-size: clamp(2.3rem, 5.5vw, 4.2rem); font-weight: 800; max-width: 15ch; letter-spacing: -.02em; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 58ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; color: var(--muted); font-size: .92rem; }
.hero__badges li { display: flex; align-items: center; gap: .5rem; }
.hero__badges .icon { color: var(--accent); }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--accent); border-radius: 2px; animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 1rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Franja de confianza ---------- */
.trust { border-block: 1px solid var(--border); background: var(--bg-alt); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; align-items: center; gap: 1rem; padding: 1.75rem 1.25rem; }
.trust__item + .trust__item { border-left: 1px solid var(--border); }
.trust__item .icon { color: var(--accent); }
.trust__item strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.trust__item span { font-size: .85rem; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--alt {
  background: var(--bg-alt);
  background-image: radial-gradient(rgba(212,148,86,.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.section__head { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; letter-spacing: -.015em; }
.section__lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Tarjetas de servicio ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  position: relative; padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(212,148,86,.4); box-shadow: var(--shadow); }
.card--featured { border-color: rgba(212,148,86,.45); box-shadow: 0 0 0 1px rgba(212,148,86,.15), var(--shadow); }
.card__tag {
  position: absolute; top: 1.25rem; right: 1.25rem; font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; padding: .3rem .7rem; border-radius: 999px;
  background: rgba(212,148,86,.12); color: var(--accent);
}
.card__icon {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 1.4rem;
  background: linear-gradient(135deg, rgba(212,148,86,.18), rgba(154,98,48,.12)); color: var(--accent);
}
.card__icon .icon { width: 28px; height: 28px; }
.card__title { font-size: 1.2rem; font-weight: 600; }
.card p { color: var(--muted); font-size: .95rem; }
.card__list { border-top: 1px solid var(--border); padding-top: 1rem; display: grid; gap: .45rem; }
.card__list li { position: relative; padding-left: 1.2rem; font-size: .9rem; color: var(--text); }
.card__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.lab-banner {
  margin-top: 2rem; padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.lab-banner h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.lab-banner p { margin: 0; color: var(--muted); max-width: 62ch; }
.hero--lab .hero__bg--lab {
  background:
    linear-gradient(90deg, rgba(18,16,14,.96) 0%, rgba(18,16,14,.82) 45%, rgba(18,16,14,.38) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url("../assets/lab.jpg") center right / cover no-repeat;
}

/* ---------- Bloques de texto + imagen ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); width: 100%; }
.split__text p { color: var(--muted); }
.split__text strong { color: var(--text); }
.brands { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 2rem; }
.brand-chip {
  padding: .45rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 500;
  background: rgba(212,148,86,.1); border: 1px solid rgba(212,148,86,.3); color: var(--text);
}
.brand-chip--muted { background: transparent; border-color: var(--border); color: var(--muted); }
.checklist { display: grid; gap: .75rem; margin: 1.5rem 0 2rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist .icon { color: var(--accent); margin-top: .2rem; }
.split__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step {
  position: relative; padding: 2rem 1.75rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.step__num {
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; line-height: 1;
  display: block; margin-bottom: 1rem;
  background: linear-gradient(180deg, var(--accent), rgba(212,148,86,.15));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .9rem; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s; }
.faq__item[open] { border-color: rgba(212,148,86,.4); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 1.2rem 3.2rem 1.2rem 1.4rem; position: relative;
  font-family: var(--font-head); font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 1.4rem; top: 50%; translate: 0 -50%;
  font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .25s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { display: grid; gap: 1.25rem; margin-top: 2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: center; }
.contact__icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; flex-shrink: 0;
  background: rgba(212,148,86,.12); color: var(--accent);
}
.contact__list small { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact__list a { font-weight: 500; transition: color .2s; }
.contact__list a:hover { color: var(--accent); }

.form { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.form__title { font-size: 1.35rem; margin-bottom: .3rem; }
.form__hint { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__row--3 { grid-template-columns: 1fr 1fr 110px; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field span { font-size: .85rem; font-weight: 500; color: var(--muted); }
.field__hint { font-size: .78rem; color: var(--muted); margin-top: .1rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,148,86,.18); }
.field .is-invalid { border-color: #ff5d5d; }
.form__error { color: #ff7b7b; font-size: .9rem; }

.map { position: relative; margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 380px; }
.map iframe { width: 100%; height: 100%; border: 0; pointer-events: none; filter: grayscale(1) invert(.92) contrast(.92); }
.map__link { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-end; padding: 1rem; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.45) 100%); transition: background .25s; }
.map__link:hover { background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.55) 100%); }
.map__badge { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; font-family: var(--font-head); font-size: .86rem; font-weight: 600; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.map__link:hover .map__badge { transform: translateY(-2px); border-color: var(--accent); }

/* ---------- Pie de página ---------- */
.footer { background: #0d0b0a; border-top: 1px solid var(--border); padding-top: 4rem; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer__grid img { width: 150px; margin-bottom: 1.2rem; }
.footer__text { color: var(--muted); max-width: 42ch; }
.footer h4 { font-size: 1rem; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .55rem; color: var(--muted); }
.footer ul a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid var(--border); padding: 1.5rem 6rem 1.5rem 0; color: var(--muted); font-size: .85rem; }
.footer__bottom p { margin: 0; }
.footer__bottom a:hover { color: var(--accent); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 30px -6px rgba(37,211,102,.6);
  transition: transform .2s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Página legal ---------- */
.legal { padding: calc(var(--header-h) + 3rem) 0 5rem; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.legal a { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .nav__list { gap: 1.1rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2.5rem;
    background: rgba(18,16,14,.98); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 1.6rem; }
  .nav__link { font-size: 1.3rem; color: var(--text); }
  .split, .contact { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 600px) {
  .cards, .steps, .trust__grid { grid-template-columns: 1fr; }
  .trust__item + .trust__item { border-left: 0; border-top: 1px solid var(--border); }
  .form__row, .form__row--3 { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__scroll { display: none; }
  .hide-sm { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .map { height: 300px; }
  .wa-float { width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
  .wa-float .icon { width: 26px; height: 26px; }
  .footer__bottom { padding-bottom: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
