:root {
  --ink: #14181c;
  --ink-2: #3a424a;
  --muted: #6b747d;
  --line: #e7e2d6;
  --bg: #ffffff;
  --bg-alt: #f6f3ec;
  --dark: #12161a;
  --gold: #f2b833;
  --gold-d: #c58f0c;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(20, 24, 28, .06), 0 12px 32px -12px rgba(20, 24, 28, .18);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: #fff;
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(20, 24, 28, .3); background: rgba(255, 255, 255, .96); }
.bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .02em;
  color: var(--ink-2); padding: 10px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); border-radius: 2px;
}
.nav .lang {
  margin-left: 10px; border: 1.5px solid var(--ink); font-weight: 700; font-size: 12px; letter-spacing: .08em; padding: 7px 14px;
}
.nav .lang:hover { background: var(--ink); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s, top .25s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; color: #fff; display: flex; align-items: center; overflow: hidden; background: var(--dark); }
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.1s ease;
  display: flex; align-items: center; padding-top: var(--header-h);
}
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 12, 14, .82) 0%, rgba(10, 12, 14, .5) 55%, rgba(10, 12, 14, .2) 100%); }
.slide.is-active { opacity: 1; }
.slide-inner { position: relative; width: min(1200px, 100% - 40px); margin-inline: auto; padding-bottom: 150px; }
.slide h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); font-weight: 900; max-width: 15ch; text-wrap: balance; }
.slide .lead { margin-top: 1.2em; max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 300; color: rgba(255, 255, 255, .88); }
.hero-ui { position: absolute; left: 0; right: 0; bottom: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; z-index: 2; margin-inline: auto; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.dots { display: flex; gap: 10px; }
.dots button { width: 34px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .3s, width .3s; }
.dots button.on { background: var(--gold); width: 54px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; border: 0;
  font: 700 15px/1 Roboto, sans-serif; letter-spacing: .02em; padding: 17px 28px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffc64a; box-shadow: 0 10px 28px -10px rgba(242, 184, 51, .8); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 12px 20px; font-size: 14px; margin-top: 12px; }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec-alt { background: var(--bg-alt); }
.sec-dark { background: var(--dark); color: #fff; }
.sec-slim { padding: 64px 0; background: #fff; border-top: 1px solid var(--line); }
.sec-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 16px; }
.sec-dark .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 12px; }
.sec h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); font-weight: 700; text-wrap: balance; }

.ico {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(242, 184, 51, .16); color: var(--gold-d); font-size: 24px; flex: none;
}
.sec-dark .ico { background: rgba(242, 184, 51, .14); color: var(--gold); }

/* cards empresa */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.card .ico { margin-bottom: 24px; }
.card h3 { font-size: 1.55rem; margin-bottom: 8px; }
.card-sub { font-weight: 700; color: var(--gold-d); margin-bottom: 1.1em; }
.card p { color: var(--ink-2); font-size: 16px; }

/* servicios */
.svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { padding: 32px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .25s, transform .25s, border-color .25s; }
.svc:hover { background: rgba(255, 255, 255, .09); border-color: rgba(242, 184, 51, .5); transform: translateY(-4px); }
.svc .ico { margin-bottom: 20px; }
.svc h3 { font-size: 1.2rem; margin-bottom: 10px; }
.svc p { color: rgba(255, 255, 255, .72); font-size: 15.5px; margin: 0; }

/* split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-rev { grid-template-columns: .95fr 1.05fr; }
.split-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.split-text h2 { margin-bottom: 28px; }
.split-text p { color: var(--ink-2); }
.badge-std { display: inline-flex; align-items: center; gap: 14px; margin: 4px 0 24px; padding: 14px 26px 14px 20px; background: var(--ink); color: #fff; border-radius: 999px; font-weight: 900; font-size: 1.4rem; letter-spacing: .04em; }
.badge-std i { color: var(--gold); font-size: 1.5rem; }

/* metales */
.metals { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.metal {
  text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.metal:hover, .metal:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); outline: none; }
.m-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.m-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.metal:hover .m-img img { transform: scale(1.06); }
.m-name { padding: 16px 20px 2px; font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; }
.m-list { padding: 0 20px 20px; font-size: 14px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; }

/* contacto */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 20px; align-items: flex-start; background: #fff; padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.info-card h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.info-card a:not(.btn) { text-decoration: none; font-size: 1.15rem; font-weight: 500; }
.info-card a:not(.btn):hover { color: var(--gold-d); }
.info-card address { font-style: normal; color: var(--ink-2); }
.sede { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form h3 { font-size: 1.6rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea {
  font: inherit; font-size: 16px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fcfbf8; color: var(--ink); width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(242, 184, 51, .25); }
.form .check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; font-weight: 400; }
.form .check input { width: 20px; height: 20px; accent-color: var(--gold-d); margin-top: 2px; }
.form .btn { justify-self: start; }
.form .check a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* certs + grants */
.certs { display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 56px; }
.certs img { height: 74px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.certs img:hover { filter: none; opacity: 1; }
.grants-title { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; text-align: center; font-weight: 700; }
.grants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grant { background: var(--bg-alt); border-radius: 16px; padding: 22px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.grant img { height: 52px; width: auto; margin-bottom: 14px; }
.grant p { margin: 0; }

/* footer */
.footer { background: var(--dark); color: rgba(255, 255, 255, .7); padding: 56px 0 40px; text-align: center; font-size: 14px; }
.foot img { height: 56px; width: auto; margin: 0 auto 20px; }
.foot p { margin: 0 0 6px; }
.footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.footer a:hover { color: var(--gold); }

/* modal */
.modal { border: 0; padding: 0; border-radius: 24px; width: min(860px, 94vw); overflow: hidden; background: #fff; color: var(--ink); }
.modal::backdrop { background: rgba(10, 12, 14, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal img { width: 100%; max-height: 62vh; object-fit: cover; }
.modal-t { padding: 24px 30px 30px; }
.modal-t h3 { font-size: 1.5rem; letter-spacing: .05em; margin-bottom: 10px; }
.modal-t p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.modal-x:hover { background: var(--gold); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* cookie banner colours handled by lib; keep it above header */
.cc-window { font-family: Roboto, sans-serif !important; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: 1fr; }
  .svcs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(20, 24, 28, .4);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 16px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a.active::after { display: none; }
  .nav a.active { color: var(--gold-d); }
  .nav .lang { margin: 16px 0 0; text-align: center; border-radius: 999px; }
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-img img { aspect-ratio: 16 / 11; }
  .contact-grid { grid-template-columns: 1fr; }
  .grants { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .svcs, .row2 { grid-template-columns: 1fr; }
  .slide-inner { padding-bottom: 170px; }
  .hero-ui { bottom: 32px; }
  .card { padding: 28px; }
  .btn { padding: 15px 22px; }
  .metals { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .m-name { padding: 12px 14px 2px; font-size: .95rem; }
  .m-list { padding: 0 14px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide { transition: none; }
}

/* ---------- ajustes cliente ---------- */
.sec-sub { margin-top: 18px; max-width: 62ch; font-size: 1.1rem; color: var(--ink-2); }
.sec-dark .split-text h2, .sec-dark .split-text .eyebrow { color: #fff; }
.sec-dark .split-text .eyebrow { color: var(--gold); }
.sec-dark .split-text p { color: rgba(255, 255, 255, .8); }
.split-map img { aspect-ratio: auto; object-fit: contain; background: #fff; border-radius: 20px; }
.split-text .lead-p { font-size: 1.25rem; font-weight: 500; color: var(--ink); line-height: 1.5; }
.info-line { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; }
.info-line i { color: var(--gold-d); width: 18px; text-align: center; }
.info-card address { margin-bottom: 6px; }
.m-list:empty { display: none; }
.m-name { padding-bottom: 18px; }

/* Banners: sin botones, texto del barco arriba a la derecha (zona del mar) y del medio ambiente a la derecha de la bola */
.hero-ui { justify-content: flex-start; }
.slide-ship { align-items: flex-start; }
.slide-ship::before { background: linear-gradient(270deg, rgba(10, 12, 14, .5) 0%, rgba(10, 12, 14, .15) 60%, rgba(10, 12, 14, 0) 100%); }
.slide-ship .slide-inner { text-align: right; padding-top: clamp(24px, 6vh, 80px); padding-bottom: 0; }
.slide-ship h1 { margin-left: auto; }
.slide-globe::before { background: linear-gradient(270deg, rgba(10, 12, 14, .5) 0%, rgba(10, 12, 14, .3) 55%, rgba(10, 12, 14, .05) 100%); }
.slide-globe .slide-inner { padding-left: 46%; }
@media (max-width: 760px) {
  .slide-globe .slide-inner { padding-left: 0; }
}

/* Banner 1: foto del laton desplazada a la derecha; banner 3: texto centrado */
.slide-laton { background-repeat: no-repeat; background-color: #f4f4f3; background-position: calc(50% + 18vw) center; }
.slide-globe .slide-inner { padding-left: 0; text-align: center; }
.slide-globe h1 { margin-inline: auto; }
.slide-globe::before { background: rgba(10, 12, 14, .38); }

/* Contacto: la foto baja hasta el nivel del final del formulario (sin cambiar su tamano) */
@media (min-width: 961px) {
  .contact-grid { align-items: stretch; }
  .info { align-content: space-between; }
}

/* Informacion basica de proteccion de datos bajo el formulario */
.form-legal { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.form-legal a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* Contacto: foto de la sede mas alta, pegada bajo la tarjeta de direccion y llegando al final del formulario */
@media (min-width: 961px) {
  .info { align-content: stretch; grid-template-rows: auto 1fr; }
  .sede { height: 100%; min-height: 260px; object-position: center 35%; }
}
