:root {
  --navy: #043d56;
  --cyan: #007aab;
  --orange: #f26a1b;
  --orange-hot: #ff7a2e;
  --ink: #042433;
  --muted: #5a7380;
  --fog: #eef5f8;
  --line: rgba(4, 61, 86, 0.12);
  --white: #fff;
  --radius: 2px;
  --font: "Poppins", sans-serif;
  --header: 88px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--navy);
}

.brand__mark {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  display: block;
  color: var(--navy);
}

.brand__text {
  display: grid;
  line-height: 1.05;
}

.brand__top {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.brand__name {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.brand__name sup {
  font-size: 0.5em;
  font-weight: 700;
  margin-left: 0.12em;
  vertical-align: super;
  line-height: 0;
}

.brand--light {
  color: var(--white);
}

.brand--light .brand__mark {
  color: var(--white);
  filter: none;
}

.brand--light .brand__top {
  color: #9fd6ef;
}

.brand--light .brand__name {
  color: var(--white);
}

.topbar__nav {
  display: none;
  align-items: center;
  gap: 1.4rem;
}

.topbar__nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--navy);
}

.topbar__nav a:hover {
  color: var(--cyan);
}

.pill {
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 999px;
}

.pill:hover {
  background: var(--cyan);
}

.menu-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
}

.menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  display: block;
  transition: transform 0.2s;
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.drawer {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.drawer[hidden] {
  display: none;
}

.drawer a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}

/* —— Split hero —— */
.split-hero {
  display: grid;
  min-height: auto;
}

.split-hero__panel {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 1.35rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
}

.eyebrow--light {
  color: #9fd6ef;
}

.split-hero__panel h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 8vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.split-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.trust-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.trust-row li {
  position: relative;
  padding-left: 0.9rem;
}

.trust-row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--orange);
}

.split-hero__visual {
  position: relative;
  height: 86vh;
  max-height: 86vh;
  background: #012a3c;
  overflow: hidden;
}

.split-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.split-hero__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--orange);
  color: var(--white);
  padding: 0.85rem 1rem;
  display: grid;
  line-height: 1.15;
}

.split-hero__badge strong {
  font-size: 1.6rem;
  font-weight: 800;
}

.split-hero__badge span {
  font-size: 0.78rem;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.3rem;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--orange {
  background: var(--orange);
  color: var(--white);
}

.btn--orange:hover {
  background: var(--orange-hot);
}

.btn--cyan {
  background: var(--cyan);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn--block {
  width: 100%;
}

/* —— Rail servicios —— */
.rail {
  padding: 4.5rem 0 3rem;
  background: var(--fog);
  width: 100%;
}

.rail__head {
  padding: 0 var(--gutter) 1.5rem;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.rail__head h2,
.band__content h2,
.sheet h2,
.contact-dark h2,
.legal-slim h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.rail__head p {
  margin: 0;
  color: var(--muted);
  max-width: 40ch;
}

.rail__track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.5rem var(--gutter) 1.5rem;
  width: 100%;
  margin: 0;
  max-width: none;
  box-sizing: border-box;
}

.rail-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
  position: relative;
}

.rail-card__num {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
}

.rail-card__media {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: #d9e6ec;
}

.rail-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.rail-card h3 {
  margin: 0.25rem 0 0;
  color: var(--navy);
  font-size: 1.2rem;
}

.rail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.rail-card a {
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}

.rail-card a:hover {
  color: var(--cyan);
}

/* —— Band nosotros —— */
.band {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(4, 61, 86, 0.94) 0%, rgba(4, 61, 86, 0.72) 48%, rgba(4, 61, 86, 0.4) 100%);
}

.band__content {
  position: relative;
  z-index: 1;
  padding: 3.5rem var(--gutter);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.band__content h2 {
  color: var(--white);
  max-width: 28ch;
}

.band__content > p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
}

.band__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  max-width: 100%;
}

.band__stats div {
  border-top: 2px solid var(--orange);
  padding-top: 0.55rem;
  display: grid;
  gap: 0.15rem;
}

.band__stats strong {
  font-size: 1.2rem;
  font-weight: 800;
}

.band__stats span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}

/* —— Quote split —— */
.quote-split {
  display: grid;
  gap: 0;
  background: var(--white);
}

.sheet {
  padding: 3rem var(--gutter);
  display: grid;
  gap: 0.9rem;
  background: var(--fog);
}

.sheet__lead {
  margin: -0.3rem 0 0.5rem;
  color: var(--muted);
}

.sheet label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}

.sheet input,
.sheet select,
.sheet textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  outline: none;
}

.sheet input:focus,
.sheet select:focus,
.sheet textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 122, 171, 0.18);
}

.sheet .is-invalid {
  border-color: #d64545;
}

.sheet__note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.sheet__note a {
  color: var(--cyan);
  font-weight: 600;
}

.sheet__ok {
  margin: 0;
  padding: 0.8rem;
  background: #dff3fb;
  color: var(--navy);
  font-weight: 600;
  text-align: center;
}

.sheet.is-success label,
.sheet.is-success .btn,
.sheet.is-success .sheet__note,
.sheet.is-success .sheet__lead,
.sheet.is-success h2 {
  display: none;
}

.tips {
  padding: 3rem var(--gutter);
  background: var(--navy);
  color: var(--white);
}

.tips h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.tips ol {
  margin: 0 0 2rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.tips__contacts {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.tips__contacts li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tips__contacts strong {
  font-size: 0.8rem;
  color: #9fd6ef;
}

.tips__contacts a,
.tips__contacts span {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.tips__contacts a:hover {
  color: var(--orange-hot);
}

.optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}

.tips__box {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.25rem;
}

.tips__box p {
  margin: 0;
}

/* —— Highlights —— */
.highlights {
  padding: 4.5rem var(--gutter);
  background: var(--white);
}

.highlights__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  gap: 2rem;
}

.highlights__intro h2 {
  margin: 0 0 0.6rem;
  color: var(--navy);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.highlights__intro p {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
}

.highlights__grid {
  display: grid;
  gap: 1rem;
}

.highlights__grid article {
  padding: 1.35rem;
  border-left: 3px solid var(--orange);
  background: var(--fog);
}

.highlights__grid h3 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: 1.1rem;
}

.highlights__grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Blog —— */
.blog {
  padding: 4.5rem var(--gutter);
  background: var(--fog);
}

.blog__head {
  width: 100%;
  max-width: none;
  margin: 0 0 2rem;
}

.eyebrow--dark {
  color: var(--cyan);
}

.blog__head h2 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.blog__head p {
  margin: 0;
  color: var(--muted);
}

.blog__grid {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.post {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.post:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(4, 61, 86, 0.12);
}

.post__media {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: #d9e6ec;
  flex-shrink: 0;
}

.post__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease);
}

.post--viaje .post__media img {
  object-position: center 42%;
}

.post:hover .post__media img {
  transform: scale(1.04);
}

.post__tag {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
}

.post__body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.post time {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.3;
}

.post p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.post a {
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  margin-top: 0.35rem;
}

.post a:hover {
  color: var(--cyan);
}

/* —— FAQ —— */
.faq {
  padding: 4.5rem var(--gutter);
  background: var(--white);
}

.faq__inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.faq__inner h2 {
  margin: 0 0 1.5rem;
  color: var(--navy);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.faq__list {
  display: grid;
  gap: 0.75rem;
}

.faq__list details {
  border: 1px solid var(--line);
  background: var(--fog);
  padding: 0.85rem 1rem;
}

.faq__list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::after {
  content: "+";
  float: right;
  color: var(--orange);
  font-weight: 800;
}

.faq__list details[open] summary::after {
  content: "–";
}

.faq__list p {
  margin: 0.75rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Contact dark (legacy unused) —— */
.contact-dark {
  display: grid;
  background: #022c3e;
  color: var(--white);
}

.contact-dark__copy {
  padding: 3rem 1.25rem 1.5rem;
}

.contact-dark h2 {
  color: var(--white);
}

.contact-dark__copy p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-dark ul {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.contact-dark a {
  color: #9fd6ef;
  font-weight: 600;
  text-decoration: none;
}

.sheet--dark {
  background: transparent;
  padding-top: 1rem;
}

.sheet--dark label {
  color: #c5e5f2;
}

.sheet--dark input,
.sheet--dark textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.legal-slim {
  padding: 2.5rem var(--gutter) 3rem;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.legal-slim p {
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-slim a {
  color: var(--cyan);
  font-weight: 600;
}

.foot {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem var(--gutter);
  display: grid;
  gap: 1.25rem;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.foot__links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.foot__links a:hover {
  color: var(--orange-hot);
}

.foot p {
  margin: 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
}

/* consent + chat */
.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(4, 61, 86, 0.2);
}

.consent[hidden] {
  display: none;
}

.consent__inner {
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.consent__inner p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.consent__inner p:first-child {
  color: var(--ink);
}

.consent__inner a {
  color: var(--cyan);
  font-weight: 600;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 190;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.chat__fab {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(242, 106, 27, 0.35);
  display: grid;
  place-items: center;
}

.chat__fab:hover {
  background: var(--orange-hot);
}

.chat__panel {
  width: min(330px, calc(100vw - 2rem));
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(4, 61, 86, 0.22);
  overflow: hidden;
}

.chat__panel[hidden] {
  display: none;
}

.chat__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: var(--navy);
  color: var(--white);
}

.chat__head strong {
  display: block;
}

.chat__head span {
  font-size: 0.78rem;
  opacity: 0.85;
}

.chat__x {
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.chat__form {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.chat__form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.chat__form input[type="text"],
.chat__form input[type="tel"] {
  padding: 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.chat__check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500 !important;
  color: var(--muted) !important;
  font-size: 0.78rem !important;
}

body.has-consent-banner .chat {
  bottom: 7.5rem;
}

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
  }

  .topbar {
    padding: 0 var(--gutter);
  }

  .topbar__nav {
    display: flex;
  }

  .menu-btn,
  .drawer {
    display: none !important;
  }

  .split-hero {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 86vh;
  }

  .split-hero__panel {
    padding: 4rem var(--gutter);
    min-height: 86vh;
  }

  .split-hero__visual {
    height: 86vh;
    max-height: 86vh;
  }

  .split-hero__visual img {
    height: 100%;
    min-height: 0;
  }

  .rail__track {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .band__content {
    padding: 5rem var(--gutter);
  }

  .band__stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem 1.1rem;
  }

  .quote-split {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .sheet,
  .tips {
    padding: 4rem var(--gutter);
  }

  .highlights__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .consent {
    left: var(--gutter);
    right: auto;
  }

  .consent__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  body.has-consent-banner .chat {
    bottom: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .blog__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .rail__track {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .brand__mark {
    width: 48px;
    height: 48px;
  }

  .brand__name {
    font-size: 1.5rem;
  }

  .brand__top {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
