/* RV Industrial Services, S.A. — estilos de la landing */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #08263d;
  --navy-2: #0c3150;
  --navy-3: #12405f;
  --gold: #cd942d;
  --gold-2: #e3ae4c;
  --ink: #16222d;
  --slate: #56636f;
  --line: #dfe5ea;
  --bg: #f4f6f8;
  --white: #ffffff;
  --wa: #1fa855;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(8, 38, 61, .10);
  --wrap: 1200px;
  --header-h: 76px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; letter-spacing: .01em;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-2); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #18914a; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 38, 61, .97);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 12px; color: #dce5ec; text-decoration: none;
  font-weight: 600; font-size: .9rem; border-radius: 8px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.header__tools { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 40px;
  padding: 0 10px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: .8rem; letter-spacing: .06em;
}
.lang:hover { border-color: var(--gold); color: var(--gold-2); }
.header .btn { min-height: 42px; padding: 0 18px; font-size: .88rem; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 8px;
  background: transparent; color: #fff; align-items: center; justify-content: center;
}
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(205, 148, 45, .16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px;
  border: 70px solid rgba(205, 148, 45, .07); transform: rotate(45deg); pointer-events: none;
}
.hero__in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding: 72px 20px 88px; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2);
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--gold); border-radius: 2px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); font-weight: 800; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero__lead { font-size: 1.1rem; color: #c9d5df; max-width: 36em; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem; font-weight: 600; color: #e6edf2;
}
.chips svg { width: 18px; height: 18px; color: var(--gold-2); }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.hero__media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 3px solid var(--gold);
  border-radius: 18px; z-index: -1;
}
.hero__badge {
  position: absolute; left: -26px; bottom: 28px; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--navy); padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow);
  font-weight: 700; font-size: .88rem; line-height: 1.3; max-width: 260px;
}
.hero__badge svg { width: 34px; height: 34px; color: var(--gold); flex: none; }

/* ---------- Franja de experiencia ---------- */
.strip { background: var(--bg); border-bottom: 1px solid var(--line); }
.strip__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 22px 20px; }
.strip__label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.strip li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: .95rem; }
.strip li::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg); }
.section--navy { background: var(--navy); color: #fff; }
.head { max-width: 760px; margin-bottom: 52px; }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head--center .eyebrow { justify-content: center; }
.head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; color: var(--navy); }
.section--navy .head h2 { color: #fff; }
.head p { color: var(--slate); font-size: 1.05rem; margin: 0; }
.section--navy .head p { color: #c9d5df; }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about__media img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.about__media img:first-child { margin-top: 48px; }
.about__text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; color: var(--navy); }
.about__text > p { color: var(--slate); font-size: 1.04rem; }
.mv { display: grid; gap: 14px; margin: 28px 0; }
.mv__item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; background: var(--bg); border-radius: var(--radius); border-left: 4px solid var(--gold); }
.mv__item b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--gold-2); font-size: 1.1rem; }
.mv__item h3 { font-size: 1rem; margin-bottom: 4px; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; }
.mv__item p { margin: 0; color: var(--slate); font-size: .95rem; }
.quote { font-weight: 800; color: var(--navy); font-size: 1.05rem; letter-spacing: .02em; }
.quote span { color: var(--gold); }
.quote--light { color: #fff; }

/* Especialidades (4 principales) */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 56px; }
.spec {
  position: relative; overflow: hidden; border-radius: var(--radius); min-height: 280px;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.spec img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.spec::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 38, 61, .05) 20%, rgba(8, 38, 61, .92) 100%); }
.spec:hover img { transform: scale(1.05); }
.spec__body { padding: 22px; }
.spec__body svg { width: 34px; height: 34px; color: var(--gold-2); margin-bottom: 10px; }
.spec h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.spec p { font-size: .88rem; color: #d7e0e7; margin: 0; }

/* Servicios (6) */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  position: relative; padding: 30px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.service__n {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--navy); color: var(--gold-2); font-weight: 800; margin-bottom: 18px;
}
.service h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.service p { color: var(--slate); margin: 0; font-size: .95rem; }
.services__note { margin-top: 40px; text-align: center; font-weight: 800; color: var(--navy); letter-spacing: .03em; }
.services__note small { display: block; font-weight: 500; color: var(--slate); letter-spacing: 0; margin-top: 4px; font-size: .95rem; }

/* Proyectos */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project {
  overflow: hidden; border-top: 3px solid var(--gold);
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius);
}
.project__body { padding: 24px 26px; }
.project__year {
  display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 6px;
  background: rgba(205, 148, 45, .16); color: var(--gold-2); font-size: .78rem; font-weight: 700; letter-spacing: .06em;
}
.project h3 { font-size: 1.12rem; font-weight: 800; }
.project p { margin: 0; color: #c9d5df; font-size: .94rem; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.gallery li:nth-child(1), .gallery li:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.gallery li:nth-child(7) { grid-column: span 2; }
.gallery button {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  background: var(--line); position: relative;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery button:hover img { transform: scale(1.06); }
.gallery button::after {
  content: ""; position: absolute; inset: 0; background: rgba(8, 38, 61, 0); transition: background .25s ease;
}
.gallery button:hover::after { background: rgba(8, 38, 61, .18); }

.lightbox {
  width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; background: #000; color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(4, 18, 30, .88); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; background: #000; }
.lightbox figcaption { padding: 12px 18px; font-size: .9rem; color: #d7e0e7; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff;
}
.lightbox__close { top: 10px; right: 10px; }
.lightbox__nav { top: calc(50% - 40px); }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
.lightbox svg { width: 22px; height: 22px; }

/* Valores */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center; }
.value svg { width: 46px; height: 46px; color: var(--gold); margin-bottom: 14px; }
.value h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .08em; }
.value p { color: var(--slate); margin: 0; font-size: .95rem; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 700; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--slate); }

/* Contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact__info h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
.contact__info > p { color: #c9d5df; }
.contact__list { display: grid; gap: 14px; margin: 28px 0; }
.contact__list > a, .contact__list > div {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); text-decoration: none;
}
.contact__list a:hover { border-color: var(--gold); }
.contact__list svg { width: 26px; height: 26px; color: var(--gold-2); flex: none; }
.contact__list small { display: block; font-size: .75rem; color: #9fb0bf; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.contact__txt { display: block; min-width: 0; }
.contact__list span span { display: block; font-weight: 700; word-break: break-word; }

.form { background: #fff; color: var(--ink); border-radius: 18px; padding: 34px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.form h3 { color: var(--navy); font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.form > p { color: var(--slate); font-size: .94rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fbfcfd;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(205, 148, 45, .18); }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.form__actions .btn { flex: 1 1 200px; }
.form__hint { margin: 14px 0 0; font-size: .8rem; color: var(--slate); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__ts { margin-top: 16px; }
.form__ts:empty { margin-top: 0; }
.form__status { margin: 14px 0 0; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form__status:empty { margin: 0; min-height: 0; }
.form__status.is-ok { color: #157a3d; }
.form__status.is-error { color: #b42318; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* Footer */
.footer { background: #051a2b; color: #aebdca; padding: 56px 0 28px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer img { height: 64px; width: auto; margin-bottom: 16px; }
.footer h2 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-2); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; font-size: .84rem; }
.footer__values { color: var(--gold-2); font-weight: 700; letter-spacing: .14em; }

/* Página 404 */
.e404 { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.e404 .wrap { padding-top: 48px; padding-bottom: 48px; }
.e404 img { height: 110px; width: auto; margin: 0 auto 32px; }
.e404 .eyebrow, .e404 .hero__cta { justify-content: center; }
.e404 .hero__lead { margin: 0 auto 28px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }

/* Animación de entrada */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 10px 8px; font-size: .85rem; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .brand img { height: 44px; }
  .menu-btn { display: inline-flex; }
  .header .btn--gold { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .08); padding: 10px 20px 22px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 14px 6px; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
  .header__tools { margin-left: auto; }
  .hero__in { grid-template-columns: 1fr; gap: 48px; padding: 48px 20px 72px; }
  .hero__media { max-width: 560px; margin-right: 22px; }
  .hero__badge { left: 12px; bottom: -22px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__media { order: 2; }
  .projects { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .values { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .wrap, .hero__in, .strip__in { padding-left: 16px; padding-right: 16px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .specs, .services { grid-template-columns: 1fr; }
  .spec { min-height: 230px; }
  .gallery { grid-auto-rows: 140px; gap: 10px; }
  .form { padding: 24px 18px; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .lang { min-width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .header, .wa-float, .form, .lightbox { display: none !important; }
  .section { padding: 24px 0; }
}
