/* LEUNA Internacionalización — hoja de estilos común (portada, India, México) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Marca: naranja del logotipo de Leuna (ya usado en la web anterior) */
  --orange: #E8450A;
  --orange-dark: #B53406;   /* para texto naranja sobre blanco (contraste AA) */
  --ink: #13212E;           /* azul muy oscuro de la web anterior, ajustado */
  --steel: #4A5561;         /* texto secundario */
  --line: #D6DBE0;
  --mist: #EEF1F3;          /* fondo gris frío para bandas */
  --paper: #FFFFFF;

  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: 0; }

.lead { font-size: 1.1875rem; color: var(--steel); max-width: 38em; }
.prose p { max-width: 36em; color: var(--steel); }
.prose p + p { margin-top: 1rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px;
}
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav .btn { padding: 0.6rem 1.1rem; border-bottom: 0; color: #fff; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 3px;
  font: 500 0.95rem var(--font-body); color: var(--ink); padding: 0.5rem 0.8rem; cursor: pointer;
}

@media (max-width: 820px) {
  .brand img { height: 38px; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--orange-dark); }
  .nav .btn { margin-top: 1rem; text-align: center; padding: 0.85rem; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  background: var(--orange); color: #fff;
  font: 500 1rem var(--font-body);
  text-decoration: none; border: 0; border-radius: 3px;
  padding: 0.9rem 1.5rem; cursor: pointer;
}
.btn:hover { background: var(--orange-dark); }
.btn-plain {
  display: inline-block; font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 5px; text-decoration-thickness: 2px;
  padding: 0.9rem 0;
}
.btn-plain:hover { text-decoration-color: var(--orange); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 2rem; }

/* ---------- Secciones ---------- */
.band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.band-mist { background: var(--mist); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink .prose p, .band-ink .lead { color: rgba(255,255,255,0.78); }

/* ---------- Portada: cabecera ---------- */
.intro { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.intro h1 { max-width: 15em; margin-bottom: 1.25rem; }

/* Los dos destinos: el elemento principal de la portada */
.destinations {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.destination {
  display: grid; grid-template-rows: auto 1fr;
  color: var(--ink); text-decoration: none;
}
.destination + .destination { border-left: 1px solid var(--line); }
.destination-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.destination-photo img { width: 100%; height: 100%; object-fit: cover; }
.destination-text { padding: 1.75rem var(--gutter) 2.25rem; }
.destination-country {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em;
}
.destination-city { color: var(--steel); margin-top: 0.5rem; }
.destination-link {
  display: inline-block; margin-top: 1.25rem; font-weight: 500; color: var(--orange-dark);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.destination:hover .destination-country { color: var(--orange-dark); }

@media (max-width: 720px) {
  .destinations { grid-template-columns: 1fr; }
  .destination + .destination { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Páginas de país: cabecera ---------- */
.country-hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 560px; border-bottom: 1px solid var(--line); }
.country-hero-text {
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(3rem, 6vw, 4rem);
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex; flex-direction: column; justify-content: center;
}
.country-hero-text .place { color: var(--steel); font-weight: 500; margin-bottom: 1rem; }
.country-hero-text h1 { margin-bottom: 1.25rem; max-width: 13em; }
.country-hero-photo { position: relative; background: var(--mist); }
.country-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .country-hero { grid-template-columns: 1fr; min-height: 0; }
  .country-hero-photo { aspect-ratio: 16 / 10; order: -1; }
  .country-hero-text { padding-left: var(--gutter); }
}

/* Datos de India */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 1.5rem 1.25rem 1.5rem 0; }
.fact + .fact { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--font-head); font-size: 1.75rem; font-weight: 600; line-height: 1.1; }
.fact span { display: block; color: var(--steel); font-size: 0.95rem; margin-top: 0.35rem; }
@media (max-width: 820px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.wolco-note { border-bottom: 1px solid var(--line); padding: 1rem 0; font-size: 0.98rem; color: var(--steel); }

/* ---------- Galería ---------- */
.gallery { display: grid; gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 300px; object-fit: cover; border-radius: 2px; }
.gallery figcaption { font-size: 0.9rem; color: var(--steel); margin-top: 0.5rem; }
.gallery-2 { grid-template-columns: 1.6fr 1fr; }
.gallery-pair { grid-template-columns: 1fr 1fr; max-width: 760px; }
@media (max-width: 820px) {
  .gallery-2 { grid-template-columns: 1fr; }
  .gallery img { height: 240px; }
}
@media (max-width: 520px) {
  .gallery-pair { grid-template-columns: 1fr; }
}

/* ---------- Servicios ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem 4rem; align-items: end; margin-bottom: 3rem; }
.section-head p { color: var(--steel); max-width: 34em; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; margin-bottom: 2rem; } }

.services { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 3rem; }
.service { border-top: 2px solid var(--ink); padding: 1.25rem 0 2.5rem; }
.service h3 { margin-bottom: 0.6rem; }
.service p { color: var(--steel); font-size: 1rem; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .service { padding-bottom: 1.75rem; } }

/* ---------- Por qué / respaldo ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.reasons { display: grid; gap: 1.75rem; }
.reasons h3 { margin-bottom: 0.35rem; }
.reasons p { color: var(--steel); }
.band-ink .reasons p { color: rgba(255,255,255,0.72); }
.band-ink .reasons h3 { color: #fff; }
.reasons > div { padding-left: 1.1rem; border-left: 3px solid var(--orange); }

.photo-block img { width: 100%; border-radius: 2px; }
.photo-block figcaption { font-size: 0.9rem; color: var(--steel); margin-top: 0.6rem; }
.band-ink .photo-block figcaption { color: rgba(255,255,255,0.6); }

/* ---------- Proceso (secuencia real: numeración justificada) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps li { counter-increment: step; padding: 0 1.5rem 0 0; position: relative; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 2px solid var(--orange); color: var(--orange-dark); background: var(--paper);
  font: 600 1.05rem var(--font-head);
  position: relative; z-index: 1; margin-bottom: 1rem;
}
.band-mist .steps li::before { background: var(--mist); }
.steps li::after {
  content: ''; position: absolute; top: 1.25rem; left: 2.5rem; right: 0; height: 2px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--steel); font-size: 1rem; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 1.75rem 3.75rem; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li::after { top: 2.5rem; bottom: 0; left: calc(1.25rem - 1px); right: auto; width: 2px; height: auto; }
}

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-points { list-style: none; margin-top: 1.75rem; border-top: 1px solid var(--line); }
.contact-points li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }

form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
label { font-weight: 500; font-size: 0.95rem; }
label .opt { font-weight: 400; color: var(--steel); }
input, select, textarea {
  font: 400 1rem var(--font-body); color: var(--ink);
  background: var(--paper); border: 1px solid #B9C1C9; border-radius: 3px;
  padding: 0.75rem 0.9rem; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(232,69,10,0.18); }
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.9rem; color: var(--steel); }
form .btn { justify-self: start; }

/* ---------- Otro destino ---------- */
.crosslink { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.crosslink p { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; }

/* ---------- Pie ---------- */
.site-footer { background: var(--paper); color: var(--steel); padding: 3rem 0 2.5rem; font-size: 0.95rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 2rem 4rem; align-items: center; }
.footer-logos { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.footer-logos .leuna { height: 48px; width: auto; }
.footer-logos .wolco { height: 40px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; justify-content: flex-end; list-style: none; }
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--orange-dark); }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.footer-legal a { color: var(--ink); }
@media (max-width: 720px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

/* ---------- Casilla de privacidad ---------- */
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--orange); }
.check label { font-weight: 400; font-size: 0.98rem; }
.form-note a { color: var(--orange-dark); }

/* ---------- Pie: enlaces legales ---------- */
.footer-legal a + a { margin-left: 1.25rem; }

/* ---------- Enlace a mapa ---------- */
.map-link { margin-top: 1rem; color: var(--steel); font-size: 0.95rem; }

/* ---------- Páginas legales ---------- */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 0.75rem; }
.legal .updated { color: var(--steel); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { max-width: 40em; color: var(--ink); }
.legal p + p { margin-top: 0.9rem; }
.legal ul { padding-left: 1.2rem; margin-top: 0.6rem; }
.legal li + li { margin-top: 0.4rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; max-width: 40em; border-top: 1px solid var(--line); padding-top: 1rem; }
.legal dt { color: var(--steel); }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 0.1rem; } .legal dd { margin-bottom: 0.6rem; } }
