/* =====================================================
   Líneas Salmón — Frontend Styles
   Base color vars (overridden dynamically via :root block
   injected from DB in web.tmpl.htm)
   ===================================================== */

:root {
  --primary: #1c3f86;
  --primary-2: #2f6eac;
  --accent: #e6324b;
  --accent-hover: #cf233d;
  --bg-soft: #f4f7fc;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #1f2f57;
  --text-soft: #5f6f96;
  --border: rgba(28, 63, 134, 0.12);
  --shadow: 0 14px 40px rgba(28, 63, 134, 0.16);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 110, 172, 0.18), transparent 28%),
    linear-gradient(180deg, #eef4fb 0%, #f8fbff 38%, #eef4fb 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

/* ---- Layout ---------------------------------------- */
.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

/* ---- Topbar / Nav ---------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  overflow: hidden;
  background: rgba(26, 75, 122, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0e3d5e, #2c76aa);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  pointer-events: none;
}

.topbar.is-scrolled::before {
  transform: scaleX(1);
}

.topbar.is-scrolled {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 800;
  font-size: 1.6rem;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 30px;
  border-radius: 10px;
  position: relative;
  background: white;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  transform: skewX(-28deg) translateX(12%);
  transform-origin: bottom right;
}

.brand-mark::before {
  background: var(--primary);
}

.brand-mark::after {
  height: 34%;
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.nav-links a {
  opacity: 0.95;
  transition: 0.25s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---- Buttons --------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 15px 28px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  background: linear-gradient(to bottom, #97BE87, #7aaa6a);
  box-shadow: 0 8px 24px rgba(151, 190, 135, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--primary_font);
  transition: all 0.25s ease;
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-primary:active,
.hero-actions .btn-primary:focus,
.hero-actions .btn-secondary:hover,
.hero-actions .btn-secondary:active,
.hero-actions .btn-secondary:focus {
  background: linear-gradient(to bottom, #82b573, #6a9e5b);
  box-shadow: 0 12px 28px rgba(151, 190, 135, 0.45);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  box-shadow: 0 12px 26px rgba(20, 44, 95, 0.12);
}

/* ---- Hero ------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 1020px;
  /* Pull up under the fixed transparent topbar */
  margin-top: -82px;
  padding-top: 82px;
  /* background-image injected via inline style from DB */
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 280px;
  padding-bottom: 100px;
}

/* ---- Booking Card (floats between hero and services) */
.booking-card-wrap {
  position: relative;
  z-index: 10;
  margin-top: -54px;
  padding: 0 16px;
}

.hero-copy {
  max-width: 700px;
  color: #fff;
  padding-top: 34px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ---- Booking Tab Indicator (sliding pill) ---------- */
.bk-tab-indicator {
  position: absolute;
  border-radius: 999px;

  background: linear-gradient(to bottom,
      rgba(151, 190, 135, 1) 0%,
      rgba(120, 165, 104, 1) 55%,
      rgba(92, 135, 78, 1) 100%);

  box-shadow:
    0 4px 14px rgba(92, 135, 78, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);

  transition:
    left 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.38s cubic-bezier(0.4, 0, 0.2, 1);

  z-index: 0;
  pointer-events: none;
}

/* ---- Booking Service Tabs (float on top border of card) */
.bk-service-tabs {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(28, 63, 134, 0.1);
  box-shadow: 0 4px 18px rgba(28, 63, 134, 0.13);
  border-radius: 999px;
  padding: 5px;
  white-space: nowrap;
  z-index: 1;
}

.bk-service-tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 24px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-family: var(--primary_font), sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.bk-service-tab.is-active {
  color: #fff;
}

.bk-tab-icon {
  font-size: 1.05rem;
}

/* Fixed port display */
.bk-fixed-port {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  background: rgba(244, 247, 252, 0.85);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 18px;
  height: 64px;
}

.bk-fixed-port-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bk-fixed-port-value {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--primary);
}

/* ---- Booking Card ---------------------------------- */
.booking-card {
  position: relative;
  width: min(100%, 1240px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 60px rgba(28, 63, 134, 0.2);
  border-radius: 26px;
  padding: 16px;
  padding-top: 40px;
}

.booking-card,
.booking-card * {
  font-family: var(--primary_font), sans-serif;
}

.booking-form {
  display: grid;
  gap: 14px;
  align-items: end;
}

.booking-form .field-label {
  display: block;
  font-family: var(--primary_font), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5f7a9a;
  margin-bottom: 6px;
}

#formRegular {
  grid-template-columns: 1.15fr 1.15fr 1fr auto;
}

#formDelfines {
  grid-template-columns: 1.5fr 1fr auto;
}

.booking-form .btn-primary {
  background: linear-gradient(to bottom, #97BE87, #7aaa6a);
  border: none;
  color: #fff;
  height: 64px;
  border-radius: 999px;
  padding: 0 28px;
  font-family: var(--primary_font), sans-serif;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(151, 190, 135, 0.35);
}

.booking-form .btn-primary:hover,
.booking-form .btn-primary:focus,
.booking-form .btn-primary:active {
  background: linear-gradient(to bottom, #82b573, #6a9e5b);
  box-shadow: 0 12px 28px rgba(151, 190, 135, 0.45);
  color: #fff;
}

.field {
  position: relative;
  min-width: 0;
}

.field input,
.field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  height: 64px;
  border-radius: 16px;
  padding: 0 18px;
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
}

.field input:focus,
.field select:focus {
  border-color: rgba(47, 110, 172, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 110, 172, 0.12);
}

/* ---- Sections -------------------------------------- */
.section {
  padding: 76px 0;
  position: relative;
}

/* First section after booking card needs extra top padding */
.section-after-booking {
  padding-top: 130px;
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(241, 246, 253, 0.9));
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.section-title p {
  margin: 12px auto 0;
  max-width: 850px;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* ---- Service / Experience Cards -------------------- */
.services-grid,
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(28, 63, 134, 0.08);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(27, 55, 114, 0.09);
  overflow: hidden;
}

.card-media {
  aspect-ratio: 16 / 9;
  background-color: var(--bg-soft);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-body {
  padding: 22px 22px 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 22px 22px;
}

.card-link {
  font-weight: 700;
  color: var(--primary);
}

/* ---- Schedule -------------------------------------- */
.schedule-panel {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(28, 63, 134, 0.08);
  box-shadow: var(--shadow);
  border-radius: 26px;
  padding: 18px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr auto;
  align-items: center;
  gap: 18px;
}

.route {
  background: rgba(244, 247, 252, 0.92);
  border-radius: 18px;
  padding: 18px 22px;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--primary);
}

.route span {
  color: #99a6c2;
  font-weight: 500;
  margin: 0 10px;
}

.times {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.time-chip {
  min-width: 90px;
  text-align: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
}

.time-chip.is-active {
  background: linear-gradient(180deg, rgba(230, 50, 75, 0.08), rgba(230, 50, 75, 0.14));
  border-color: rgba(230, 50, 75, 0.24);
  color: var(--accent);
}

/* ---- Experience Gallery ---------------------------- */
.experience-gallery {
  margin-top: 28px;
}

.experience-card {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(27, 55, 114, 0.1);
  aspect-ratio: 16 / 10;
  background-color: var(--bg-soft);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---- Features ------------------------------------- */
.features {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(28, 63, 134, 0.08);
  border-radius: 20px;
  padding: 20px 18px;
  text-align: center;
  color: var(--primary);
  font-weight: 600;
}

.feature-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(47, 110, 172, 0.14), rgba(230, 50, 75, 0.12));
  font-size: 1.35rem;
}

/* ---- CTA Band -------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  color: white;
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 72px 0;
  text-align: center;
}

.cta-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 34, 84, 0.5), rgba(11, 34, 84, 0.9));
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.03em;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

/* ---- Page Hero (inner pages) ---------------------- */
.page-hero {
  margin-top: -82px;
  padding-top: 82px;
}

/* ---- Footer --------------------------------------- */
footer {
  background: linear-gradient(135deg, #7aaa6a 0%, #5d9248 100%);
  color: #f8faf7;
  padding: 24px 0 30px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---- Mobile toggle --------------------------------- */
.mobile-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---- Responsive ------------------------------------ */
@media (max-width: 1100px) {
  #formRegular {
    grid-template-columns: 1fr 1fr;
  }

  #formDelfines {
    grid-template-columns: 1fr 1fr;
  }

  .schedule-row,
  .services-grid,
  .experience-grid,
  .features {
    grid-template-columns: 1fr 1fr;
  }

  .booking-form .btn,
  .schedule-row .btn {
    width: 100%;
  }

  .schedule-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 88px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(18, 50, 112, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-right .lang-switch {
    display: none;
  }

  .hero {
    min-height: 860px;
  }

  .hero-inner {
    padding-top: 32px;
    padding-bottom: 240px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .nav {
    min-height: 74px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .brand-mark {
    width: 36px;
    height: 26px;
  }

  .hero {
    padding-top: 110px;
  }

  .hero-inner {
    padding-top: 150px;
  }

  .hero-copy {
    padding-top: 14px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .booking-card {
    padding: 14px;
  }

  .bk-service-tabs {
    white-space: normal;
    width: calc(100% - 20px);
    justify-content: center;
  }

  .bk-service-tab {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.82rem;
    gap: 5px;
  }

  .bk-tab-icon {
    font-size: 0.9rem;
  }

  #formRegular,
  #formDelfines {
    padding-top: 50px;
  }

  #formRegular,
  #formDelfines,
  .services-grid,
  .experience-grid,
  .features {
    grid-template-columns: 1fr;
  }

  .booking-form .field {
    width: 100%;
    min-width: 0;
  }

  .field input,
  .field select {
    height: 58px;
  }

  .route {
    font-size: 1.1rem;
  }

  .times {
    gap: 12px;
  }

  .time-chip {
    min-width: unset;
    flex: 1;
    font-size: 1.1rem;
  }

  .card h3 {
    font-size: 1.35rem;
  }
}

/* ---- "Conoce nuestra historia" btn (index about section) ---- */
body#page-69de241a2897f #webid-36048828 {
  background: linear-gradient(
    180deg,
    #a8cf99 0%,
    #97be87 38%,
    #7ea96f 72%,
    #689257 100%
  ) !important;

  border: 1px solid rgba(255, 255, 255, 0.14) !important;

  color: #ffffff !important;

  box-shadow:
    0 10px 24px rgba(92, 135, 78, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08) !important;

  font-family: var(--primary_font), sans-serif !important;

  width: 100% !important;
  text-align: center !important;

  border-radius: 14px !important;

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}
body#page-69de241a2897f #webid-36048828:hover,
body#page-69de241a2897f #webid-36048828:focus {
  background: linear-gradient(to bottom, #4a9e9e, #357a7a) !important;
  box-shadow: 0 14px 28px rgba(74, 158, 158, 0.35) !important;
  color: #fff !important;
}

/* ---- Service cards — font override (index page) ---- */
body#page-69de241a2897f .service.service__style--1 .discover-btn a,
body#page-69de241a2897f .service.service__style--1 .discover-btn .btn-text {
  font-family: var(--primary_font), sans-serif;
}

/* ---- Service cards — image header (index page) ----- */
body#page-69de241a2897f .service.service__style--1 {
  padding: 0;
  overflow: hidden;
}

body#page-69de241a2897f .service-img-header {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

body#page-69de241a2897f .service-img-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: none;
  transition: transform 0.45s ease;
}

body#page-69de241a2897f .service.service__style--1:hover .service-img-header img {
  transform: scale(1.05);
}

body#page-69de241a2897f .service.service__style--1 .content {
  padding: 22px 24px 24px;
}

/* ── Language Switcher dropdown ─────────────────────── */
/* ── Language switcher ─────────────────────────────────── */
.lang-sw {
  position: relative;
  display: inline-flex;
}

/* Trigger pill */
.lang-sw__trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.13);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 5px 11px 5px 8px;
  cursor: pointer;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.18s, border-color 0.18s;
  white-space: nowrap;
  user-select: none;
}

.lang-sw__trigger:hover,
.lang-sw--open .lang-sw__trigger {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.6);
}

.lang-sw__flag {
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.lang-sw__code {
  font-size: 0.73rem;
  line-height: 1;
}

.lang-sw__chevron {
  width: 9px;
  height: 9px;
  opacity: 0.8;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.lang-sw--open .lang-sw__chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.lang-sw__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
  min-width: 156px;
  overflow: hidden;
  z-index: 9999;
  padding: 5px 0;
  /* slide-down animation */
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  pointer-events: none;
}

.lang-sw--open .lang-sw__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Option rows */
.lang-sw__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #1e3a5f;
  font-size: 0.87rem;
  font-weight: 600;
  text-align: left;
  transition: background 0.13s;
}

.lang-sw__opt:hover {
  background: #f0f5ff;
}

.lang-sw__opt--active {
  background: #eef3ff;
  color: #1d4ed8;
  cursor: default;
}

.lang-sw__opt--active:hover {
  background: #eef3ff;
}

.lang-sw__opt-flag {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.lang-sw__opt-name {
  flex: 1;
}

.lang-sw__check {
  width: 13px;
  height: 13px;
  color: #1d4ed8;
  flex-shrink: 0;
  stroke: currentColor;
}

@media (max-width: 480px) {
  #formRegular,
  #formDelfines {
    grid-template-columns: 1fr;
  }

  .lang-sw__code {
    display: none;
  }

  .lang-sw__trigger {
    padding: 5px 8px;
  }
}

/* ── Lang switcher inside mobile sidenav ───────────────── */
.mobile-nav__lang {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0 4px;
  margin-bottom: 0;
}

/* Show panel as flat inline row — no dropdown */
.mobile-nav__lang .lang-sw {
  display: flex;
  width: 100%;
}

.mobile-nav__lang .lang-sw__trigger {
  display: none;
}

.mobile-nav__lang .lang-sw__panel {
  position: static;
  display: flex;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
  gap: 4px;
}

.mobile-nav__lang .lang-sw__opt {
  width: 100%;
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  gap: 10px;
}

.mobile-nav__lang .lang-sw__opt:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.mobile-nav__lang .lang-sw__opt--active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: default;
}

.mobile-nav__lang .lang-sw__opt--active:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mobile-nav__lang .lang-sw__check {
  color: rgba(255, 255, 255, 0.8);
  width: 11px;
  height: 11px;
}

/* ── Topbar mobile fix ──────────────────────────────── */
@media (max-width: 991px) {
  .main-menu__wrapper .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .main-menu__logo a img {
    width: 80px !important;
  }

  .main-menu__logo a {
    background: #fff;
    border-radius: 8px;
    padding: 4px 10px;
    display: inline-block;
  }

  .mobile-nav__toggler {
    margin-left: auto;
    margin-right: 0;
    padding: 8px 12px;
    font-size: 1.3rem;
  }

  .main-menu__right {
    margin-left: 12px;
  }
}

/* ---- "Descubre nuestra historia" button override ---- */
.read-more-btn .tmp-btn {
  background: linear-gradient(to bottom, #97BE87, #7aaa6a) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 24px rgba(151, 190, 135, 0.35);
  font-weight: 700;
}
.read-more-btn .tmp-btn::after {
  background: #7aaa6a !important;
  border-radius: 999px;
}
/* Fun-facts stat cards: prevent line break on large numbers */
.signle-fun-facts-one .title {
  white-space: nowrap;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.read-more-btn .tmp-btn:hover {
  background: linear-gradient(to bottom, #82b573, #6a9e5b) !important;
  box-shadow: 0 12px 28px rgba(151, 190, 135, 0.45) !important;
  color: #fff !important;
}