/* =================================================================
   ENEMEK Engineering Ibérica — Hoja de estilos global
   Sistema de diseño único, sin estilos inline. Mobile-first.
   Marca oficial (ENEMEK Design System): degradado verde→teal→azul,
   tinta navy, Montserrat + Mulish + IBM Plex Mono. Sin ámbar.
   Fuentes: Google Fonts (en producción, auto-alojar los .woff2).
   ================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Mulish:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ---------- 1. Tokens / variables (marca oficial ENEMEK) ---------- */
:root {
  /* Paleta de marca — verde (acción) · teal · azul · navy (tinta) */
  --green:        #66bc3c;   /* volt-500 — acción / energía */
  --green-dark:   #59a82f;   /* volt-600 — hover */
  --green-700:    #4c8f25;
  --teal:         #18aebe;   /* teal-500 — enlaces, eyebrows */
  --teal-600:     #149aa8;
  --blue:         #1b5e9e;   /* blue-600 */
  --navy:         #1e3a4c;   /* brand-700 — tinta del wordmark */
  --navy-2:       #173140;   /* brand-800 — superficies oscuras */
  --navy-900:     #102530;   /* brand-900 — barra superior */
  --amber:        #18aebe;   /* alias → teal (la marca no usa ámbar) */
  --ink:          #1e3a4c;   /* texto principal = navy */
  --muted:        #506169;   /* steel-600 — texto secundario */
  --line:         #d9e0e2;   /* steel-200 — hairlines */
  --bg:           #ffffff;
  --bg-soft:      #f0f3f4;   /* steel-100 */
  --bg-dark:      #173140;
  --white:        #ffffff;

  /* Degradado de marca (elemento central) */
  --grad-brand: linear-gradient(135deg, #66bc3c 0%, #18aebe 50%, #1b5e9e 100%);
  --grad-dark:  linear-gradient(150deg, #173140 0%, #11365e 100%);
  --grad-text:  linear-gradient(100deg, #66bc3c 0%, #18aebe 55%, #2374b8 100%);
  /* "E" tricolor del wordmark */
  --grad-e: linear-gradient(#66bc3c 0 34%, #18aebe 34% 67%, #1b5e9e 67% 100%);
  /* rejilla técnica para paneles oscuros */
  --blueprint: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
               linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);

  /* Tipografía */
  --font: "Mulish", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --h1: clamp(2.25rem, 4.5vw, 3.4rem);
  --h2: clamp(1.75rem, 3.2vw, 2.4rem);
  --h3: clamp(1.25rem, 2vw, 1.5rem);

  /* Medidas */
  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 14px rgba(18,55,72,.08), 0 1px 3px rgba(18,55,72,.06);
  --shadow-lg: 0 14px 40px rgba(18,55,72,.12), 0 4px 10px rgba(18,55,72,.06);
  --gap: clamp(1rem, 2.5vw, 2rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --header-h: 76px;
  --trans: .2s cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--green); }
ul { padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; color: var(--navy); font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
h3, h4 { font-weight: 700; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. Utilidades de layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #d8e2e8; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.narrow { max-width: 820px; margin-inline: auto; }
.center { text-align: center; }
.title-sm { font-size: var(--h3); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-weight: 500; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-600); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .6; }
.section--dark .eyebrow { color: var(--green); }
.lead { font-size: 1.12rem; color: var(--muted); }
.section--dark .lead { color: #aebecb; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.75rem}.mt-4{margin-top:2.5rem}
.grid { display: grid; gap: var(--gap); }
@media (min-width: 640px){ .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px){ .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-sm); font-family: var(--font-display);
  font-weight: 700; font-size: .98rem; border: 1px solid transparent;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans), color var(--trans);
  line-height: 1; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--green); color: #08231b; box-shadow: 0 8px 20px rgba(102,188,60,.28); }
.btn--primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(102,188,60,.38); }
.btn--ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--amber); color: var(--navy); transform: translateY(-2px); }
.btn--outline-light { border: 2px solid rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* ---------- 5. Header / Navegación ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }

/* Barra superior de utilidad (navy) */
.topbar {
  background: var(--navy-900); color: #cdd9e2; font-family: var(--font-mono);
  font-size: .78rem; letter-spacing: .02em; max-height: 40px; overflow: hidden;
  transition: max-height .3s var(--trans);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 1rem; }
.topbar a { color: inherit; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.3rem; }
.topbar-left span, .topbar-left a { display: inline-flex; align-items: center; gap: .45rem; }
.topbar svg { width: 14px; height: 14px; opacity: .8; flex: none; }
.topbar-right a { display: inline-flex; opacity: .85; }
.topbar-right a:hover { color: #fff; opacity: 1; }
.site-header.scrolled .topbar { max-height: 0; }
@media (max-width: 1000px) { .topbar { display: none; } }

/* Fila principal del header */
.header-main {
  position: relative; background: rgba(255,255,255,.96); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line); transition: box-shadow var(--trans);
}
.header-main::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--grad-brand); }
.site-header.scrolled .header-main { box-shadow: var(--shadow); }

.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark-img { width: 42px; height: 42px; flex: none; display: block; }
.wordmark { display: inline-flex; flex-direction: column; gap: 2px; }
.wordmark .wm { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; line-height: 1; letter-spacing: .02em; color: var(--navy); }
.wordmark .tri { background: var(--grad-e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.wordmark small { font-family: var(--font-mono); font-size: .53rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.brand--light .wm { color: #fff; }
.brand--light small { color: var(--brand-200, #bdccd4); }
@media (max-width: 560px) { .wordmark small { display: none; } .wordmark .wm { font-size: 1.25rem; } .brand-mark-img { width: 36px; height: 36px; } }

/* Logo lockup completo en el header */
.brand-logo {
  height: 90px; width: auto; display: block;
  transition: opacity var(--trans);
}
.brand:hover .brand-logo { opacity: .88; }
.site-header.scrolled .brand-logo { height: 72px; }
@media (max-width: 560px) { .brand-logo { height: 65px; } }

.nav-menu { display: flex; align-items: center; gap: .35rem; }
.nav-menu > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .7rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem; color: var(--navy);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--green); background: var(--bg-soft); }
.nav-link svg { width: 14px; height: 14px; transition: transform var(--trans); }
.has-dropdown:hover .nav-link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--trans), transform var(--trans), visibility var(--trans);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: .6rem .8rem; border-radius: 7px; font-size: .92rem; color: var(--ink); font-weight: 500; }
.dropdown a:hover { background: var(--bg-soft); color: var(--green); }

.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 8px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--navy);
  position: relative; transition: var(--trans); margin-inline: auto;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta .btn { display: none; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 1rem; gap: .15rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-130%); transition: transform .35s ease; visibility: hidden;
  }
  .nav-menu.open { transform: translateY(0); visibility: visible; }
  .nav-link { padding: .8rem .6rem; font-size: 1.05rem; justify-content: space-between; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-left: 2px solid var(--line); margin: 0 0 .4rem .7rem; padding: 0 0 0 .4rem;
    display: none;
  }
  .has-dropdown.expanded .dropdown { display: block; }
  .has-dropdown.expanded .nav-link svg { transform: rotate(180deg); }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(16,37,48,.96) 0%, rgba(23,49,64,.84) 45%, rgba(27,94,158,.5) 100%),
    radial-gradient(circle at 82% 18%, rgba(24,174,190,.45), transparent 55%),
    radial-gradient(circle at 96% 92%, rgba(102,188,60,.34), transparent 50%),
    var(--navy-2);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff' stroke-width='.5'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 2; padding-block: clamp(3.5rem, 9vw, 7rem); }

/* Vídeo de fondo del hero (movimiento, como en enemek.com) */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; border: 0; pointer-events: none;
}
.hero--home::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(120deg, rgba(16,37,48,.84) 0%, rgba(23,49,64,.68) 45%, rgba(27,94,158,.45) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero h1 { color: #fff; font-size: var(--h1); max-width: 16ch; }
.hero p { font-size: 1.18rem; color: #cdd9e2; max-width: 56ch; margin-top: 1.2rem; }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero--page .container { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.hero--page h1 { max-width: 24ch; }
/* Portada: fondo fotográfico bajo el degradado oscuro */
.hero--home {
  background:
    linear-gradient(120deg, rgba(16,37,48,.93) 0%, rgba(23,49,64,.82) 45%, rgba(27,94,158,.55) 100%),
    url("../img/solar-wind.jpg") center / cover no-repeat,
    var(--navy-2);
}

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: #aebecb; margin-bottom: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a { color: #cdd9e2; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: var(--amber); }

/* ---------- 7. Media placeholders ---------- */
.media {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
  aspect-ratio: 16 / 10; box-shadow: var(--shadow);
}
.media--tall { aspect-ratio: 4 / 5; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-ph {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 1rem;
  color: #fff; font-weight: 700; letter-spacing: .03em; font-family: var(--font-display);
  background: var(--blueprint), linear-gradient(135deg, var(--navy-2), #2a4e62);
  background-size: 26px 26px, cover;
}
.media-ph svg { width: 46px; height: 46px; opacity: .85; margin-bottom: .5rem; }
.media-ph small { display: block; font-weight: 500; font-size: .8rem; opacity: .8; margin-top: .25rem; }

/* ---------- 8. Tarjetas ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow); transition: transform var(--trans), box-shadow var(--trans);
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: var(--h3); margin-bottom: .5rem; }
.card p { color: var(--muted); }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(20,133,95,.14), rgba(20,133,95,.05)); color: var(--green);
}
.card .icon svg { width: 28px; height: 28px; }
.card .card-link { margin-top: auto; padding-top: 1rem; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.card-link svg { width: 16px; height: 16px; transition: transform var(--trans); }
.card-link:hover svg { transform: translateX(4px); }

/* Tarjeta de servicio destacada con imagen */
.service-card { padding: 0; overflow: hidden; }
.service-card .media { border-radius: 0; box-shadow: none; aspect-ratio: 16/9; }
.service-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }

/* ---------- 9. Proyectos ---------- */
.project {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform var(--trans), box-shadow var(--trans); height: 100%;
  display: flex; flex-direction: column;
}
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project .media { border-radius: 0; box-shadow: none; aspect-ratio: 16/10; }
.project .body { padding: 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.project h3 { font-size: 1.18rem; }
.badge {
  display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px;
  background: rgba(20,133,95,.12); color: var(--green-dark);
}
.badge--amber { background: rgba(246,161,43,.18); color: #9a610a; }
.project dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; font-size: .9rem; margin-top: .3rem; }
.project dt { color: var(--muted); font-weight: 600; }
.project dd { color: var(--ink); }
.project .status { margin-top: auto; padding-top: .6rem; font-weight: 700; font-size: .85rem; }
.status--done { color: var(--green); }
.status--wip { color: var(--amber); }

/* ---------- 10. Stats ---------- */
.stats { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px){ .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: var(--white); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.section:not(.section--dark) .stat .num { color: var(--green-700); }
.stat .label { margin-top: .5rem; font-size: .95rem; opacity: .85; }

/* ---------- 11. Split (texto + media) ---------- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px){ .split { grid-template-columns: 1fr 1fr; } .split--media-first .media-col { order: -1; } }
.split ul.checks { margin-top: 1.2rem; display: grid; gap: .65rem; }
ul.checks li { display: flex; gap: .7rem; align-items: flex-start; }
ul.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: .15rem;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- 12. Pilares / valores ---------- */
.pillar { text-align: center; padding: 1.5rem; }
.pillar .icon { margin-inline: auto; }

/* ---------- 13. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem .2rem; font-weight: 700; font-size: 1.05rem; color: var(--navy);
}
.faq-q .plus { flex: none; width: 26px; height: 26px; position: relative; transition: transform var(--trans); }
.faq-q .plus::before, .faq-q .plus::after { content:""; position: absolute; inset: 0; margin: auto; background: var(--green); }
.faq-q .plus::before { width: 14px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 14px; transition: transform var(--trans); }
.faq-q[aria-expanded="true"] .plus::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 .2rem 1.2rem; color: var(--muted); }

/* ---------- 14. CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--green-dark), var(--navy));
  color: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0d8; max-width: 50ch; margin: .8rem auto 0; }
.cta-band .btn-row { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- 15. Formulario ---------- */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px){ .form-grid .col-2 { grid-template-columns: 1fr 1fr; display: grid; gap: 1.1rem; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color var(--trans), box-shadow var(--trans);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(20,133,95,.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .error-msg { color: #c0392b; font-size: .82rem; margin-top: .3rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.field.invalid .error-msg { display: block; }
.checkbox-field { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.checkbox-field input { width: auto; margin-top: .25rem; flex: none; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success {
  display: none; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: rgba(20,133,95,.12);
  color: var(--green-700); font-weight: 600; border: 1px solid rgba(20,133,95,.3);
}
.form-success.show { display: block; }

/* Contacto info */
.contact-info { display: grid; gap: 1.2rem; }
.contact-item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-item .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(20,133,95,.12); color: var(--green); }
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1.02rem; }
.contact-item a, .contact-item p { color: var(--muted); }

/* ---------- 16. Empleo / vacantes ---------- */
.job {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.job-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.3rem 1.6rem; text-align: left;
}
.job-head h3 { font-size: 1.2rem; }
.job-head .meta { font-size: .85rem; color: var(--muted); margin-top: .2rem; font-weight: 500; }
.job-head .toggle { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; transition: var(--trans); }
.job-head .toggle svg { width: 18px; height: 18px; color: var(--green); transition: transform var(--trans); }
.job-head[aria-expanded="true"] .toggle { background: var(--green); }
.job-head[aria-expanded="true"] .toggle svg { color: #fff; transform: rotate(180deg); }
.job-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; border-top: 0 solid var(--line); }
.job-body-inner { padding: 0 1.6rem 1.6rem; }
.job-body h4 { margin: 1.1rem 0 .4rem; text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; color: var(--green); }
.job-body ul { display: grid; gap: .4rem; }
.job-body ul li { padding-left: 1.2rem; position: relative; color: var(--muted); }
.job-body ul li::before { content: "—"; position: absolute; left: 0; color: var(--green); }

/* ---------- 17. Tabla comparativa (crecimiento) ---------- */
.compare { display: grid; gap: 1.2rem; }
@media (min-width: 760px){ .compare { grid-template-columns: 1fr auto 1fr; align-items: center; } }
.compare-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.compare-card.big { background: linear-gradient(135deg, var(--green-dark), var(--navy)); color: #fff; border: none; }
.compare-card.big h3 { color: #fff; }
.compare-card ul { margin-top: .8rem; display: grid; gap: .5rem; font-size: .92rem; }
.compare-card.big ul li { color: #d8e2e8; }
.compare-arrow { display: grid; place-items: center; color: var(--green); font-size: 2rem; }
@media (max-width: 759px){ .compare-arrow { transform: rotate(90deg); } }

/* ---------- 18. Documento legal ---------- */
.doc { max-width: 820px; margin-inline: auto; }
.doc h2 { font-size: var(--h3); margin: 2rem 0 .8rem; }
.doc h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.doc p, .doc li { color: var(--ink); margin-bottom: .8rem; }
.doc ul { list-style: disc; padding-left: 1.3rem; }
.doc ul li { margin-bottom: .4rem; }
.doc .updated { color: var(--muted); font-size: .9rem; }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--navy); color: #aebecb; padding-block: clamp(2.5rem,5vw,4rem) 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 680px){ .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 980px){ .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #7e93a3; }
.footer-about p { margin-top: 1rem; font-size: .92rem; max-width: 38ch; }
.footer-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { color: #aebecb; font-size: .92rem; }
.footer-col a:hover { color: var(--amber); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; margin-bottom: .6rem; }
.footer-contact svg { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: .2rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.socials a:hover { background: var(--green); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center;
  font-size: .85rem;
}
.footer-bottom a { color: #aebecb; }
.footer-bottom a:hover { color: var(--amber); }

/* ---------- 20. Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; max-width: 540px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1.3rem 1.4rem; transform: translateY(160%); transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: .9rem; color: var(--muted); }
.cookie-banner h4 { margin-bottom: .4rem; }
.cookie-banner .btn-row { display: flex; gap: .7rem; margin-top: 1rem; flex-wrap: wrap; }
.cookie-banner .btn { padding: .6rem 1.2rem; font-size: .9rem; }

/* ---------- 21. Back to top ---------- */
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--trans);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-dark); color: #fff; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- 22. Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- 23. Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 300; background: var(--green); color: #fff;
  padding: .7rem 1.2rem; border-radius: 8px; font-weight: 700; transition: top var(--trans);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- 24. Logos / clientes ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: center; }
.logo-chip {
  font-weight: 800; letter-spacing: .04em; color: var(--muted); font-size: 1.15rem; opacity: .75;
  padding: .4rem .2rem;
}

/* ---------- 25. Mapa de Google (carga bajo demanda) ---------- */
.map-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 7; min-height: 320px;
  border-radius: 16px; overflow: hidden; background: #dfe7ec;
  box-shadow: 0 14px 34px rgba(13, 38, 53, .12);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1rem; text-align: center; padding: 1.5rem;
}
.map-placeholder p { max-width: 46ch; color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .map-embed { aspect-ratio: 4 / 3; } }

/* ---------- 26. Selector de idiomas (enlaces reales) ---------- */
.lang-select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink, #1e3a4c);
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%231e3a4c' stroke-width='1.6' fill='none'/></svg>") no-repeat right .6rem center;
  border: 1px solid rgba(30, 58, 76, .25); border-radius: 8px;
  padding: .42rem 1.7rem .42rem .7rem; cursor: pointer; max-width: 130px;
}
.lang-select:focus-visible { outline: 2px solid var(--green, #66bc3c); outline-offset: 2px; }

/* ---------- 27. Honeypot anti-spam (oculto para personas) ---------- */
.hp-field {
  position: absolute !important; left: -9999px !important; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}
