/*
Theme Name: Marine Cargo Logistics
Theme URI: https://www.mcl-peru.com/
Author: Marine Cargo Logistics
Description: Portada, blog y páginas de Marine Cargo Logistics. El mismo tema se sube al hosting y se edita con usuario y contraseña.
Version: 1.2.5
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: marine-cargo
*/

/* =========================================================
   Marine Cargo Logistics — estilos
   Breakpoints: móvil < 768 · tablet 768–1099 · escritorio ≥ 1100
   ========================================================= */

:root {
  --blue: #10128c;
  --blue-700: #0b0d6b;
  --navy: #121a35;
  --ink: #12142b;
  --text: #4a4f63;
  --muted: #6b7084;
  --line: #dde0e8;
  --tint: #eef0f5;
  --white: #fff;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(20px, 4.5vw, 44px);
  --max: 1200px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 15px/1.6 var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 14px; transition: top 160ms var(--ease-out); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Tipografía ---------- */
.display, .display-2, .service h3, .steps h3, .tariff-table th[scope="row"], .footer-brand, .trust strong, .step-num {
  font-family: var(--font-display);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.display { font-size: clamp(48px, 7.4vw, 84px); line-height: 0.95; font-weight: 700; color: var(--blue); }
.display-2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.02; font-weight: 600; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.eyebrow-light { color: rgba(255,255,255,0.7); }
.lead { font-size: 16px; max-width: 42ch; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.fineprint { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px;
  font: 600 13.5px/1 var(--font-body);
  text-decoration: none; border: 1.5px solid transparent; border-radius: 0;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-light { background: #fff; color: var(--blue); }
.btn-wide { width: 100%; justify-content: space-between; }
.btn .arrow { display: inline-block; transition: transform 200ms var(--ease-out); }
.link-arrow { color: var(--blue); font-weight: 600; font-size: 13px; text-decoration: none; display: inline-flex; gap: 6px; }
.link-arrow span { display: inline-block; transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-700); }
  .btn-outline:hover { background: var(--blue); color: #fff; }
  .btn-light:hover { background: #e8eaff; }
  .btn:hover .arrow, .link-arrow:hover span { transform: translate(2px, -2px); }
  .link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(18,26,53,0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.header-tools { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch button {
  border: 0; background: none; padding: 6px 7px; cursor: pointer;
  font: 600 12px/1 var(--font-body); letter-spacing: 0.04em; color: var(--muted);
}
.lang-switch button.is-active { color: var(--blue); }
.lang-switch button:active { transform: scale(0.97); }
#google_translate_element { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body { top: 0 !important; }
iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); }
.brand-logo { display: block; height: 48px; width: auto; aspect-ratio: 1700 / 440; fill: currentColor; }
@media (max-width: 767px) { .brand-logo { height: 34px; } }
.contact-data .directions { display: inline-flex; margin-top: 10px; font-size: 13px; color: var(--blue); text-decoration: none !important; }

.main-nav ul { display: flex; gap: 36px; }
.main-nav a:not(.btn) { font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; position: relative; padding: 6px 0; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .main-nav a:not(.btn):hover::after { transform: scaleX(1); } }
.main-nav { display: flex; align-items: center; gap: 48px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding-block: 48px 64px; }
.hero-copy .display { margin-bottom: 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-tags { margin-top: 18px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* La foto termina en el mismo borde que el botón «Cotizar ahora» de la cabecera */
.hero-media {
  position: relative; margin: 0; min-height: 560px; overflow: hidden; background: var(--navy);
}
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Recuadro azul encajado en la esquina inferior de la foto */
.hero-media figcaption {
  position: absolute; left: auto; right: 0; bottom: 0;
  width: min(58%, 380px);
  background: var(--blue); color: #fff; padding: 14px 22px 16px; font-size: 13px; line-height: 1.4;
}
.hero-media figcaption span { display: block; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-bottom: 2px; }

/* ---------- Confianza ---------- */
.trust { background: var(--tint); }
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 22px; }
.trust li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; }
.trust a strong { text-decoration: underline; text-underline-offset: 3px; }
.trust strong { font-size: 19px; font-weight: 600; color: var(--blue); text-transform: none; }
.trust span { font-size: 11.5px; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 8vw, 96px); }
.tint { background: var(--tint); }
.section-head { margin-bottom: 32px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.split > p { max-width: 46ch; }

/* ---------- Servicios ---------- */
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto);
  gap: 0 40px;
}
.service-feature { grid-row: 1 / span 3; }
.service-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
button.service-link {
  width: 100%; margin: 0; padding: 0; border: 0; background: none;
  font: inherit; text-align: left; color: inherit; cursor: pointer;
}
.service-feature .service-img { flex: 1; min-height: 300px; overflow: hidden; position: relative; }
.service-feature .service-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-feature .service-body { background: var(--blue); color: rgba(255,255,255,0.85); padding: 22px 24px 24px; }
.service-feature h3 { color: #fff; display: flex; align-items: center; gap: 12px; }
.service-feature h3 .arrow { margin-left: auto; font-size: 18px; }
.service-img img { transition: transform 600ms var(--ease-out); }

/* Filas de servicio (02–04): toda la fila es un enlace */
.service:not(.service-feature) { position: relative; border-bottom: 1px solid var(--line); }
.service:not(.service-feature) .service-link {
  display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center;
  padding-block: 22px;
}
/* Línea inferior que se rellena de azul al pasar el ratón */
.service:not(.service-feature)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out);
  pointer-events: none;
}
.service:not(.service-feature) .service-img { aspect-ratio: 3 / 2; overflow: hidden; }
.service:not(.service-feature) .service-img img { width: 100%; height: 100%; object-fit: cover; }
.service h3 {
  font-size: 22px; font-weight: 600; line-height: 1.05; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
  transition: color 200ms ease;
}
.service h3 .num { color: inherit; margin-right: 2px; }
.service h3 .arrow { display: inline-block; font-size: 0.8em; color: var(--blue); transition: transform 200ms var(--ease-out), opacity 200ms ease; }
.service-feature h3 .arrow { color: #fff; }
.service p { font-size: 13px; max-width: 38ch; }

/* Respuesta al presionar (móvil y escritorio) */
.service-link { transition: transform 160ms var(--ease-out); }
.service-link:active { transform: scale(0.985); }
.service-feature .service-body { transition: background-color 200ms ease; }
.service-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  /* En escritorio la flecha aparece solo al pasar el ratón */
  .service:not(.service-feature) h3 .arrow { opacity: 0; transform: translate(-4px, 4px); }

  .service-link:hover .service-img img { transform: scale(1.05); }
  .service-link:hover h3 { color: var(--blue); }
  .service-link:hover h3 .arrow { opacity: 1; transform: translate(2px, -2px); }
  .service:not(.service-feature):hover::after { transform: scaleX(1); }

  .service-feature .service-link:hover .service-body { background: var(--blue-700); }
  .service-feature .service-link:hover h3 { color: #fff; }
  .service-feature .service-link:hover h3 .arrow { transform: translate(4px, -4px); }
}
/* Mismo estado al navegar con teclado */
.service-link:focus-visible h3 { color: var(--blue); }
.service-feature .service-link:focus-visible h3 { color: #fff; }
.service-link:focus-visible h3 .arrow { opacity: 1; }

/* ---------- Proceso ---------- */
.process .display-2 { margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.steps li { position: relative; padding-top: 18px; border-top: 1px solid #c9cddb; }
.steps li::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease-in-out);
  transition-delay: inherit;
}
.steps li.is-visible::before { transform: scaleX(1); }
.step-num { display: block; font-size: 30px; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.steps h3 { font-size: 17px; font-weight: 600; text-transform: none; margin-bottom: 6px; }
.steps p { font-size: 13px; color: var(--muted); max-width: 28ch; }

/* ---------- Tarifas ---------- */
.note { font-size: 12.5px; color: var(--muted); justify-self: end; }
.note strong { color: var(--blue); font-weight: 600; }
.tariff-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tariff-table thead th { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tariff-table tbody tr { border-bottom: 1px solid var(--line); transition: background-color 200ms ease; }
.tariff-table th[scope="row"] { font-size: 18px; font-weight: 600; text-align: left; padding: 16px 12px; width: 30%; }
.tariff-table td { padding: 16px 12px; color: var(--muted); }
.tariff-table td:last-child, .tariff-table thead th:last-child { text-align: right; }
@media (hover: hover) and (pointer: fine) { .tariff-table tbody tr:hover { background: var(--tint); } }
.tariff-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.service-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  margin: auto; padding: 22px 24px 28px;
  border: 0; background: #fff; color: var(--text);
}
.service-dialog::backdrop { background: rgba(18, 26, 53, 0.55); }
.service-dialog-bar { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.service-dialog-close {
  border: 0; background: none; padding: 6px 0; cursor: pointer;
  font: 600 13px var(--font-body); color: var(--blue);
}
.service-detail { margin: 18px 0 8px; }
.service-detail h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  text-transform: uppercase; color: var(--ink); margin: 18px 0 6px;
}
.service-detail p { margin: 0 0 10px; max-width: 62ch; }

.tariff-page .lead { max-width: 62ch; }
.tariff-board { display: flex; flex-direction: column; gap: 56px; margin-top: 48px; }
.tariff-group { scroll-margin-top: calc(var(--header-h) + 16px); }
.tariff-group h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3vw, 36px); font-weight: 600;
  text-transform: uppercase; color: var(--ink); letter-spacing: 0.005em;
}
.tariff-group > p { margin-top: 8px; max-width: 62ch; }
.tariff-accs { margin-top: 18px; border-top: 1px solid var(--line); }
.tariff-acc { border-bottom: 1px solid var(--line); background: #fff; }
.tariff-acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 4px; cursor: pointer; list-style: none;
  font: 600 13.5px var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink);
}
.tariff-acc summary::-webkit-details-marker { display: none; }
.tariff-acc summary::after { content: "▾"; color: var(--blue); font-size: 14px; }
.tariff-acc[open] summary::after { content: "▴"; }
.tariff-body { padding: 0 0 18px; overflow-x: auto; }
.tariff-page .tariff-body.entry-content { max-width: none; font-size: 14px; }
.tariff-body table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; }
.tariff-body th, .tariff-body td {
  border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top;
}
.tariff-body th { background: var(--tint); color: var(--ink); font-weight: 600; }
.tariff-body figure { margin: 0; }

.tariff-page .elementor-accordion .elementor-accordion-item {
  border-color: var(--line);
}
.tariff-page .elementor-accordion .elementor-tab-title {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tariff-page .elementor-accordion .elementor-tab-title.elementor-active {
  color: var(--blue);
}
.tariff-page .elementor-accordion .elementor-accordion-icon { color: var(--blue); }
.tariff-page .elementor-tab-content { border-color: var(--line); overflow-x: auto; padding: 12px 8px 16px; }
.tariff-page .elementor-tab-content table,
.tariff-page .elementor-widget-text-editor table {
  width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px;
  border: 1px solid #e1e4ea; background: #fff;
}
.tariff-page .elementor-tab-content th,
.tariff-page .elementor-tab-content td,
.tariff-page .elementor-widget-text-editor th,
.tariff-page .elementor-widget-text-editor td {
  border: 1px solid #e1e4ea; padding: 10px 12px; text-align: left; vertical-align: middle;
  color: var(--ink); background: #fff; line-height: 1.35;
}
.tariff-page .elementor-tab-content table > thead > tr > th,
.tariff-page .elementor-tab-content table > tbody > tr:first-child > td,
.tariff-page .elementor-tab-content table > tbody > tr:first-child > th,
.tariff-page .elementor-widget-text-editor table > thead > tr > th,
.tariff-page .elementor-widget-text-editor table > tbody > tr:first-child > td,
.tariff-page .elementor-tab-content td:has(> strong:only-child),
.tariff-page .elementor-tab-content td:has(> b:only-child) {
  background: #f4f5f7; font-weight: 600; font-size: 12px; letter-spacing: 0.03em;
}
.tariff-page .elementor-heading-title {
  font-family: var(--font-display); text-transform: uppercase; color: var(--ink); letter-spacing: 0.005em;
}

/* ---------- Rastreo ---------- */
.tracking { background: var(--navy); color: rgba(255,255,255,0.78); padding-block: clamp(56px, 7vw, 80px); }
.tracking .display-2 { color: #fff; }
.tracking-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; margin-bottom: 22px; }
.tracking-head p { margin: 0; }
.tracking-frame {
  width: 100%; height: min(78vh, 820px); min-height: 640px;
  border: 0; border-radius: 16px; background: #fff;
}
.doc-viewer { margin-top: 22px; }
.doc-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.doc-switch button {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font: 600 13px/1.2 var(--font-body); cursor: pointer;
}
.doc-switch button.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.doc-frame { width: 100%; height: min(82vh, 960px); min-height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.entry-content:has(.doc-viewer) { max-width: none; }

/* ---------- Cotizador ---------- */
/* Mismo fondo que la sección de Contacto */
.quote-grid { display: grid; grid-template-columns: minmax(300px, 1fr) 2fr; background: var(--tint); }
.quote-aside {
  background: var(--blue); color: rgba(255,255,255,0.85);
  padding: clamp(48px, 6vw, 72px) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.quote-aside .display-2 { color: #fff; font-size: clamp(32px, 3.8vw, 46px); margin-bottom: 26px; }
.quote-aside p { max-width: 30ch; }
.quote-meta { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

.quote-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; align-content: start;
  padding: clamp(40px, 5vw, 64px) var(--gutter); max-width: 820px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink); }
.field input, .field select, .input-prefix {
  width: 100%; min-height: 44px; padding: 0 14px;
  font: 400 13.5px var(--font-body); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7084' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field input::placeholder { color: #9a9eb0; }
.field input:focus, .field select:focus, .input-prefix:focus-within { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(16,18,140,0.12); }
.input-prefix { display: flex; align-items: center; gap: 10px; padding: 0 0 0 14px; }
.input-prefix span { color: var(--muted); font-size: 13px; padding-right: 10px; border-right: 1px solid var(--line); }
.input-prefix input { border: 0; min-height: 42px; padding-left: 0; box-shadow: none !important; }
.field.has-error input, .field.has-error select, .field.has-error .input-prefix { border-color: #c0392b; }

.form-legal { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.form-legal a { color: var(--blue); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-actions .btn { min-width: 240px; }
.form-status { grid-column: 1 / -1; font-size: 13px; color: var(--blue); min-height: 1.4em; }
.btn-label { transition: filter 200ms ease, opacity 200ms ease; }
.is-sending .btn-label { filter: blur(2px); opacity: 0.6; }

/* ---------- Nosotros ---------- */
.about .split { align-items: start; }
.about p + p { margin-top: 22px; }
.links-row { display: flex; flex-wrap: wrap; gap: 40px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.contact-grid .display-2 { margin-bottom: 28px; }
.contact-grid .btn-wide { max-width: 360px; }
.contact-data { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-data .label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-data a { display: block; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 14.5px; line-height: 1.7; }
.contact-data div:last-child a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.contact-data .muted { font-size: 12.5px; margin-top: 8px; }
.map { position: relative; height: clamp(280px, 30vw, 380px); overflow: hidden; background: #dfe3ea; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.85); }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.6); padding-block: 40px 24px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { color: #fff; font-size: 22px; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; font-size: 12px; }
.footer-links .link-arrow { color: #fff; }
.footer-links span { display: flex; gap: 18px; }
.footer-links span a { text-decoration: none; }
.copyright { margin-top: 28px; color: rgba(255,255,255,0.4); }

/* =========================================================
   Animaciones
   ========================================================= */

/* Entrada del hero: escalonada, una vez */
.js [data-intro] { opacity: 0; transform: translateY(14px); }
.js.is-ready [data-intro] {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
}
.js.is-ready [data-intro]:nth-child(1) { transition-delay: 60ms; }
.js.is-ready [data-intro]:nth-child(2) { transition-delay: 120ms; }
.js.is-ready [data-intro]:nth-child(3) { transition-delay: 210ms; }
.js.is-ready [data-intro]:nth-child(4) { transition-delay: 270ms; }
.js.is-ready [data-intro]:nth-child(5) { transition-delay: 340ms; }

/* Imagen del hero: se revela de abajo hacia arriba */
.js [data-hero-media] { clip-path: inset(100% 0 0 0); }
.js [data-hero-media] img { transform: scale(1.08); }
.js.is-ready [data-hero-media] { clip-path: inset(0 0 0 0); transition: clip-path 1100ms var(--ease-in-out) 100ms; }
.js.is-ready [data-hero-media] img { transform: scale(1); transition: transform 1600ms var(--ease-out) 100ms; }

/* Aparición al hacer scroll */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
}

/* =========================================================
   Tablet (768–1099)
   ========================================================= */
@media (max-width: 1099px) {
  .main-nav ul { gap: 22px; }
  .main-nav { gap: 24px; }

  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-block: 32px 40px; }
  .hero-media figcaption { width: min(70%, 380px); }
  .hero-media { min-height: 0; aspect-ratio: 16 / 9; margin-inline: 0; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .service-feature { grid-row: auto; grid-column: 1 / -1; }
  .service-feature .service-img { min-height: 0; aspect-ratio: 16 / 7; flex: none; }
  .service:not(.service-feature) .service-link { grid-template-columns: 1fr; gap: 16px; padding-block: 0 20px; align-items: start; }
  .service:last-child { grid-column: 1 / -1; }
  .service:last-child .service-link { grid-template-columns: 220px 1fr !important; align-items: center !important; }

  .steps { grid-template-columns: 1fr 1fr; gap: 36px 32px; }

  .quote-grid { grid-template-columns: 1fr; }
  .quote-aside { flex-direction: row; align-items: end; }
  .quote-form { max-width: none; }

  .contact-grid { grid-template-columns: 1fr; }
}

/* Menú desplegable en tablet chico y móvil */
@media (max-width: 899px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 0; padding: 10px 0 10px 12px;
    font: 600 14px var(--font-body); color: var(--blue); cursor: pointer;
  }
  .menu-toggle:active { transform: scale(0.97); }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(18,26,53,0.35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 200ms var(--ease-out), opacity 160ms ease, visibility 0s linear 200ms;
  }
  .main-nav.is-open {
    transform: none; opacity: 1; visibility: visible;
    transition: transform 280ms var(--ease-drawer), opacity 200ms ease;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a:not(.btn) { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .main-nav li a::after { display: none; }
  .nav-cta { margin-top: 18px; }
}

/* =========================================================
   Móvil (< 768)
   ========================================================= */
@media (max-width: 767px) {
  body { font-size: 14.5px; }
  :root { --header-h: 58px; }

  .hero { padding-top: 12px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .hero-media { aspect-ratio: 4 / 3; }

  .trust-list { grid-template-columns: 1fr; gap: 0; padding-block: 8px; }
  .trust li { flex-direction: row; justify-content: flex-start; text-align: left; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
  .trust li:last-child { border-bottom: 0; }
  .trust strong { flex: 0 0 46%; font-size: 17px; }

  .split { grid-template-columns: 1fr; gap: 16px; }
  .note { justify-self: start; }

  .services-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-feature .service-img { aspect-ratio: 4 / 3; }
  .service:not(.service-feature) .service-link, .service:last-child .service-link {
    grid-template-columns: 120px 1fr !important; gap: 16px; align-items: start !important; padding-bottom: 22px;
  }
  .service h3 { font-size: 20px; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 54px 1fr; column-gap: 12px; padding-block: 18px; border-top: 0; border-bottom: 1px solid #c9cddb; }
  .steps li::before { display: none; }
  .step-num { grid-row: span 2; font-size: 26px; margin: 0; }

  .tariff-table thead { display: none; }
  .tariff-table tbody tr { display: grid; grid-template-columns: 1fr auto; padding-block: 14px; }
  .tariff-table th[scope="row"], .tariff-table td { padding: 0; width: auto; }
  .tariff-table td:nth-child(2) { grid-row: 2; font-size: 12px; }
  .tariff-table td:last-child { grid-row: 1; grid-column: 2; }

  .tracking-head { grid-template-columns: 1fr; gap: 12px; }
  .tracking-frame, .doc-frame { min-height: 520px; height: 72vh; }

  .quote-aside { flex-direction: column; align-items: start; gap: 8px; }
  .quote-meta { display: none; }
  .quote-form { grid-template-columns: 1fr; gap: 18px; }
  .form-actions .btn { width: 100%; }

  .contact-data { grid-template-columns: 1fr; }
  .map { height: 320px; }

  .footer-grid { flex-direction: column; }
  .footer-links { align-items: flex-start; }
  .links-row { gap: 16px; flex-direction: column; }
}

/* =========================================================
   Movimiento reducido: solo fundidos, sin desplazamientos
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-intro], .js [data-reveal] { transform: none !important; }
  .js [data-hero-media] { clip-path: none !important; }
  .js [data-hero-media] img { transform: none !important; }
  .js.is-ready [data-intro], .js [data-reveal].is-visible { transition: opacity 300ms ease !important; }
  .service-img img, .steps li::before { transition: none !important; }
}

/* ---------- Blog y páginas ---------- */
.page-hero { padding-top: clamp(36px, 5vw, 56px); }
.page-hero .lead { margin-top: 12px; }
.entry-list { display: grid; gap: 0; }
.entry-card {
  display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center;
  padding-block: 28px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.entry-card img { width: 100%; height: 160px; object-fit: cover; background: var(--tint); }
.entry-card h2 {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.005em;
  font-size: clamp(26px, 3vw, 34px); line-height: 1.02; color: var(--ink); font-weight: 600; margin-bottom: 8px;
}
.entry-meta { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.entry-card p { font-size: 14.5px; max-width: 62ch; }
.entry-content { max-width: 68ch; font-size: 16.5px; }
.libro-page .entry-content { max-width: none; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2, .entry-content h3 {
  font-family: var(--font-display); text-transform: uppercase; color: var(--ink); letter-spacing: 0.005em;
}
.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 22px; }
.entry-content a { color: var(--blue); }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li { margin: 0.35em 0; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.page-note { background: var(--tint); padding: 14px 16px; font-size: 13.5px; color: var(--muted); }
.empty-state { background: var(--tint); padding: 28px 24px; }
.empty-state p + p { margin-top: 8px; }
.post-hero-img { margin: 8px 0 28px; }
.post-hero-img img { width: 100%; max-height: 460px; object-fit: cover; }
.back-link { display: inline-flex; margin-bottom: 18px; }
.current-menu-item > a:not(.btn)::after, .current-menu-item > a::after { transform: scaleX(1); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status.is-error { color: #9b2c2c; }
.blog-section .section-head { margin-bottom: 8px; }
.blog-section .entry-card h3 {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.005em;
  font-size: clamp(26px, 3vw, 34px); line-height: 1.02; color: var(--ink); font-weight: 600; margin-bottom: 8px;
}

@media (max-width: 767px) {
  .entry-card { grid-template-columns: 1fr; gap: 14px; }
  .entry-card img { height: 200px; }
}
