:root {
  --operadora-blue: #0a85c2;
  --operadora-blue-dark: #0873a5;
  --operadora-navy: #1e2a4a;
  --operadora-orange: #e86f3a;
  --operadora-sky: #f0f4f8;
  --operadora-border: rgba(10, 133, 194, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  background: #ffffff;
  color: var(--operadora-navy);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

a {
  text-decoration: none;
}

.section {
  padding: 1.5rem;
}

.m-4 {
  margin: 1.5rem;
}

.mt-0 {
  margin-top: 0;
}

.p-3 {
  padding: 0.75rem;
}

.pr-0 {
  padding-right: 0;
}

.pb-3 {
  padding-bottom: 0.75rem;
}

.pt-6 {
  padding-top: 3rem;
}

.is-flex {
  display: flex;
}

.is-flex-direction-column {
  flex-direction: column;
}

.is-justify-content-center {
  justify-content: center;
}

.is-align-items-center {
  align-items: center;
}

.root-section {
  color: var(--operadora-navy);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  max-height: none;
}

.menu-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 0;
  padding-right: 0;
  padding-top: 0.5rem;
}

.full-width {
  width: 100%;
}

.titulo {
  border-left: 7px solid var(--operadora-orange);
  margin-bottom: 0.5rem;
  overflow: hidden;
  position: relative;
}

.titulo::after {
  background: linear-gradient(
    90deg,
    var(--operadora-orange),
    var(--operadora-blue)
  );
  bottom: 0.35rem;
  content: "";
  height: 3px;
  left: 1rem;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s ease;
  width: min(260px, 55%);
}

.titulo:hover::after {
  transform: scaleX(1);
}

.ofertas {
  align-items: baseline !important;
  gap: 0.65rem;
}

.ofertas .subtitle,
.ofertas .title {
  line-height: 1 !important;
  margin: 0 !important;
}

.ofertas .subtitle {
  animation: title-soft-rise 0.42s ease both;
  color: var(--operadora-navy);
  font-size: 2rem !important;
  font-weight: 600;
  letter-spacing: 0;
  transition:
    color 0.28s ease,
    transform 0.28s ease;
}

.ofertas .title {
  animation: title-soft-rise 0.42s ease 0.08s both;
  color: var(--operadora-blue);
  font-size: 2rem !important;
  font-weight: 900;
  letter-spacing: 0;
  transition:
    color 0.28s ease,
    transform 0.28s ease,
    text-shadow 0.28s ease;
}

.titulo:hover .ofertas .subtitle {
  color: #1e2a4a;
  transform: translateX(3px);
}

.titulo:hover .ofertas .title {
  color: var(--operadora-orange);
  text-shadow: 0 8px 18px rgba(244, 122, 47, 0.18);
  transform: translateX(5px);
}

.operadora.hex2 {
  transform: translateX(-50px);
  z-index: 1;
}

ul.operadora {
  display: flex;
  left: -20px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  top: 20px;
}

ul.operadora li {
  margin-left: 2rem;
  width: 168px;
}

ul.operadora.hex1 {
  transform: translate(-50px, 19px);
}

.hexagon-item {
  cursor: pointer;
  float: left;
  height: 162px;
  margin-left: -29px;
  position: relative;
  transform: rotate(30deg);
  width: 188px;
  z-index: 0;
}

.hexagon-item:first-child {
  margin-left: 0;
}

.hexagon-item:hover {
  z-index: 1;
}

.hex-item {
  height: 198px;
  left: 56px;
  position: absolute;
  top: 0;
  width: 113px;
}

.hex-item:first-child {
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 0;
}

.hex-item:last-child {
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}

.hex-item div {
  box-sizing: border-box;
  height: 198px;
  position: absolute;
  top: 0;
  transform-origin: center center;
  width: 114px;
}

.hex-item div::before,
.hex-item div::after {
  background-color: var(--operadora-blue);
  content: "";
  height: 4px;
  position: absolute;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) 0s;
  width: 100%;
}

.hex-item div::before {
  top: 0;
}

.hex-item div::after {
  bottom: 0;
}

.hex-item div:nth-child(1) {
  transform: rotate(0deg);
}

.hex-item div:nth-child(2) {
  transform: rotate(60deg);
}

.hex-item div:nth-child(3) {
  transform: rotate(120deg);
}

.hexagon-item:hover .hex-item:last-child {
  opacity: 1;
  transform: scale(1.18);
}

.hexagon-item:hover .hex-item:first-child {
  opacity: 1;
  transform: scale(1.1);
}

.hexagon-item:hover .hex-item:first-child div::before,
.hexagon-item:hover .hex-item:first-child div::after {
  height: 5px;
}

.hexagon-item:hover .hex-item div::before,
.hexagon-item:hover .hex-item div::after {
  background-color: var(--operadora-orange);
}

.hexagon-item:hover .hex-content svg {
  transform: scale(1.1);
}

.hex-content {
  color: #ffffff;
  display: block;
  height: 169px;
  margin: 0 auto;
  position: relative;
  text-align: center;
  transform: rotate(-30deg);
  width: 147px;
}

.hex-content .hex-content-inner {
  left: 55%;
  position: absolute;
  top: 97%;
  transform: translate(-50%, -50%);
  width: 82%;
  z-index: 2;
}

.hex-content-inner .subtitle {
  color: var(--operadora-blue-dark) !important;
  display: block;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 auto;
  max-width: 100%;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  transform: translateY(0) scale(1);
  transition:
    color 0.22s ease,
    text-shadow 0.22s ease,
    transform 0.22s ease;
  white-space: normal;
  word-break: normal;
}

.hexagon-item:hover .subtitle {
  color: var(--operadora-orange) !important;
  text-shadow: 0 3px 10px rgba(244, 122, 47, 0.22);
  transform: translateY(-4px) scale(1.04);
}

.hexagon-item:hover .hex-content-inner {
  width: 82% !important;
  top: 97%;
}

.hex-content svg {
  left: 1px;
  position: absolute;
  top: -10px;
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) 0s;
  z-index: -1;
}

.otros {
  background: linear-gradient(135deg, #ffffff 0%, var(--operadora-sky) 100%);
  border: 1px solid var(--operadora-border);
  border-radius: 8px;
  display: block !important;
  margin: 135px auto 0;
  max-width: 1050px;
  padding: 2rem !important;
  transition:
    margin-top 0.35s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

.otros.is-open {
  margin-top: 150px;
}

.hidden {
  display: none !important;
}

.visuallyhidden {
  opacity: 0;
  transform: translateY(-8px);
}

.columns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.column {
  background: transparent;
  border: 0;
  color: var(--operadora-navy);
  cursor: pointer;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.image-otros {
  transition: transform 0.2s;
}

.image-otros-width {
  border: 2px solid rgba(8, 120, 184, 0.16);
  border-radius: 8px;
  max-width: 150px;
  overflow: hidden;
  width: 150px;
}

.otros-child:hover > .image-otros {
  transform: scale(1.3);
}

.otros-child b {
  color: var(--operadora-navy);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  margin-top: 1rem;
  text-align: center;
}

.toast {
  background: var(--operadora-navy);
  border-left: 5px solid var(--operadora-orange);
  border-radius: 8px;
  bottom: 18px;
  color: #ffffff;
  font-weight: 700;
  left: 50%;
  opacity: 0;
  padding: 12px 16px;
  position: fixed;
  transform: translate(-50%, 16px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 10;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.operadora-modal {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.operadora-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.operadora-modal__backdrop {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px);
  border: 0;
  cursor: pointer;
  inset: 0;
  position: absolute;
}

.operadora-modal__dialog {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(23, 27, 54, 0.28);
  left: 50%;
  max-height: min(86vh, 760px);
  max-width: min(92vw, 1100px);
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  transition: transform 0.2s ease;
  width: 760px;
}

.operadora-modal.is-open .operadora-modal__dialog {
  transform: translate(-50%, -50%) scale(1);
}

.operadora-modal__dialog.is-wide {
  width: 1180px;
}

.operadora-modal__header {
  align-items: center;
  background: var(--operadora-blue);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.operadora-modal__header h2 {
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0;
}

.operadora-modal__close {
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  height: 32px;
  line-height: 1;
  width: 32px;
}

.operadora-modal__body {
  max-height: calc(min(86vh, 760px) - 64px);
  overflow: auto;
  padding: 1.5rem;
}

.modal-frame {
  border: 1px solid var(--operadora-border);
  border-radius: 8px;
  display: block;
  width: 100%;
}

.modal-frame--pdf {
  height: 68vh;
}

.proveedores-autos-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proveedores-autos-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--operadora-border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 27, 54, 0.1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
  min-height: 140px;
  padding: 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.proveedores-autos-card:hover {
  border-color: rgba(244, 122, 47, 0.55);
  box-shadow: 0 16px 36px rgba(23, 27, 54, 0.16);
  transform: translateY(-3px);
}

.proveedores-autos-card img {
  height: 84px;
  max-width: 220px;
  object-fit: contain;
  width: 100%;
}

.proveedores-autos-card span {
  color: var(--operadora-navy);
  font-size: 0.95rem;
  font-weight: 900;
}

.assist-card-button {
  align-items: center;
  background: rgba(229, 229, 229, 0.9);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #b8000e;
  display: flex;
  flex-direction: column;
  font-weight: 800;
  gap: 12px;
  margin: 1.5rem auto;
  max-width: 360px;
  padding: 1.5rem;
  text-align: center;
  transition:
    background-color 0.24s ease,
    color 0.24s ease,
    transform 0.24s ease;
}

.assist-card-button:hover {
  background: #b8000e;
  color: #ffffff;
  transform: scale(1.03);
}

.assist-card-button img {
  height: 50px;
  object-fit: contain;
}

.assist-card-button .logo-hover {
  display: none;
}

.assist-card-button:hover .logo-normal {
  display: none;
}

.assist-card-button:hover .logo-hover {
  display: block;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.modal-action-link,
.redirect-url-form button,
.visa-form button {
  background: var(--operadora-blue);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  padding: 0.65rem 0.9rem;
}

.modal-frame--service {
  height: min(72vh, 760px);
  width: 100%;
}

.operadora-modal__dialog.is-trains {
  background: transparent;
  box-shadow: none;
  max-height: none;
  max-width: none;
  width: min(96vw, 1380px);
}

.operadora-modal__dialog.is-trains .operadora-modal__header {
  background: transparent;
  padding: 0;
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 5;
}

.operadora-modal__dialog.is-trains .operadora-modal__header h2 {
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.operadora-modal__dialog.is-trains .operadora-modal__close {
  background: rgba(0, 0, 0, 0.48);
  border-radius: 50%;
}

.operadora-modal__dialog.is-trains.is-detail-open .operadora-modal__close {
  display: none;
}

.operadora-modal__dialog.is-trains .operadora-modal__body {
  max-height: 92vh;
  overflow: auto;
  padding: 30px;
}

.train-board {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 30px;
  margin-top: 10px;
}

.train-card-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.train-card {
  background: #ffffff;
  border: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 0 30px #949494;
  color: inherit;
  cursor: pointer;
  font: inherit;
  margin: 20px 20px 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: all 0.3s ease;
  width: 250px;
}

.train-card.is-active {
  opacity: 0.5;
}

.train-card-image {
  align-items: center;
  display: flex;
  height: 250px;
  justify-content: center;
  width: 250px;
}

.train-card-image img {
  height: 250px;
  object-fit: contain;
  padding: 30px;
  width: 250px;
}

.train-card-content {
  padding: 1.5rem;
}

.train-title {
  color: #363636;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.125;
  margin: 0;
}

.train-subtitle {
  color: #4a4a4a;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0.35rem 0 0;
}

.train-card-actions {
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 30px #949494;
  display: flex;
  gap: 6px;
  margin: 0 20px 20px;
  padding: 10px 12px 12px;
  width: 250px;
}

.train-btn {
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  padding: 10px 4px;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}

.train-btn--info {
  background: #f4f6f9;
  border: 1px solid #c9d0db;
  color: #1e2a4a;
  flex: 1.6;
}

.train-btn--info:hover {
  background: #1e2a4a;
  border-color: #1e2a4a;
  color: #fff;
}

.train-btn--quote {
  background: #e86f3a;
  border: 1px solid #e86f3a;
  color: #fff !important;
  flex: 1;
}

.train-btn--quote:hover {
  background: #0a85c2;
  border-color: #0a85c2;
  color: #fff !important;
}

.train-btn-icon {
  font-size: 11px;
  margin-left: 6px;
}

.trenes-details {
  font-family: "Roboto", sans-serif !important;
  margin-left: 0;
  margin-right: 25px;
  margin-top: 50px;
  padding: 20px;
  width: 98%;
}

.train-detail-card {
  background-color: #ffffff !important;
  box-shadow: 10px 10px 93px 0 rgba(0, 0, 0, 0.75) !important;
  height: 500px !important;
  position: relative !important;
  width: 98% !important;
}

.train-thumbnail {
  box-shadow: 10px 10px 60px 0 rgba(0, 0, 0, 0.5);
  float: left;
  height: 100%;
  left: 30px;
  overflow: hidden;
  position: relative;
  top: -30px;
  width: 530px;
}

.train-img-left {
  height: 100%;
  left: 50%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.train-img-right {
  margin-left: 590px;
  margin-right: 20px;
}

.train-detail-heading {
  align-items: center;
  display: flex;
  padding: 3px;
}

.train-detail-heading > div {
  width: 100%;
}

.train-detail-heading h1 {
  color: #4b4b4b;
  font-family: "Roboto", sans-serif !important;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  padding-top: 15px;
}

.train-author-wrap {
  display: flex;
  justify-content: flex-end;
}

.train-author {
  background-color: #9ecaff;
  border-radius: 50px;
  height: 90px;
  margin: 5px;
  width: 90px;
}

.train-author img {
  border-radius: 50%;
  float: left;
  height: 85px;
  margin-left: 5px;
  object-fit: contain;
  overflow: auto;
  padding-top: 5px;
  resize: both;
  width: 80px;
}

.train-separator {
  border: 1px solid #c3c3c3;
  margin-top: 10px;
}

.train-img-right p {
  color: #4b4b4b;
  font-size: 0.95rem;
  line-height: 150%;
  margin: 0;
  padding-top: 10px;
  text-align: justify;
}

.train-target-video {
  display: grid;
  margin-top: 3rem !important;
  place-items: center;
}

.train-target-video iframe {
  border: 0;
}

.train-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.train-detail-close {
  align-items: center;
  background: #1e2a4a;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  padding: 9px 18px;
  transition: background 0.22s ease;
}

.train-detail-close:hover {
  background: #0a85c2;
}

.visa-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.redirect-url-form {
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 620px;
}

.redirect-url-form label {
  color: var(--operadora-navy);
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 0.45rem;
}

.redirect-url-form input,
.visa-form label {
  color: var(--operadora-navy);
}

.visa-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 800;
  gap: 0.35rem;
}

.redirect-url-form input,
.visa-form input {
  border: 1px solid var(--operadora-border);
  border-radius: 999px;
  font: inherit;
  padding: 0.7rem 0.9rem;
}

.redirect-url-actions {
  display: flex;
  justify-content: flex-end;
}

.service-page {
  background: #ffffff;
  min-height: 100vh;
}

.service-view {
  padding: 1.25rem;
}

.service-hero {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #eef9fd 100%);
  border: 1px solid var(--operadora-border);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 110px 1fr;
  margin-bottom: 1rem;
  padding: 1rem;
}

.service-hero img {
  height: 92px;
  object-fit: contain;
  width: 92px;
}

.service-hero h1 {
  color: var(--operadora-blue-dark);
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
}

.service-hero p {
  color: #1e2a4a;
  line-height: 1.5;
  margin: 0;
}

.service-request {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-request label {
  color: var(--operadora-navy);
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 800;
  gap: 0.35rem;
}

.service-request input,
.service-request textarea {
  border: 1px solid var(--operadora-border);
  border-radius: 8px;
  font: inherit;
  padding: 0.7rem 0.9rem;
}

.service-request__wide {
  grid-column: 1 / -1;
}

.service-request button {
  background: var(--operadora-orange);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  justify-self: end;
  padding: 0.75rem 1rem;
}

.service-empty {
  border: 1px dashed var(--operadora-border);
  border-radius: 8px;
  color: #1e2a4a;
  line-height: 1.5;
  padding: 1.25rem;
  text-align: center;
}

.service-empty p {
  color: var(--operadora-navy);
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.service-catalog {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.service-item {
  display: contents;
}

.service-detail {
  border: 1px solid var(--operadora-border);
  border-radius: 8px;
  display: none;
  gap: 1rem;
  grid-column: 1 / -1;
  grid-template-columns: minmax(180px, 360px) 1fr;
  padding: 1rem;
}

.service-item.is-active .service-detail {
  display: grid;
  order: -1;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--operadora-border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 27, 54, 0.12);
  cursor: pointer;
  overflow: hidden;
  text-align: center;
}

.service-item.is-active .service-card {
  border-color: rgba(244, 122, 47, 0.65);
  box-shadow: 0 10px 28px rgba(244, 122, 47, 0.22);
}

.service-card img {
  height: 170px;
  object-fit: contain;
  padding: 1rem;
  width: 100%;
}

.service-card strong {
  color: var(--operadora-navy);
  display: block;
  padding: 0 1rem 0.35rem;
}

.service-card span {
  color: #1e2a4a;
  display: block;
  font-size: 0.85rem;
  padding: 0 1rem 1rem;
}

.service-detail__image {
  border-radius: 8px;
  height: 260px;
  object-fit: cover;
  width: 100%;
}

.service-detail__content {
  color: #1e2a4a;
  line-height: 1.5;
}

.service-detail__header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.service-detail__header h2 {
  color: var(--operadora-navy);
  margin: 0 0 0.5rem;
}

.service-detail__header img {
  flex: 0 0 auto;
  height: 72px;
  object-fit: contain;
  width: 120px;
}

.service-detail video {
  border-radius: 8px;
  margin-top: 1rem;
  max-height: 320px;
  width: 100%;
}

.service-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.service-detail__actions a {
  background: var(--operadora-blue);
  border-radius: 6px;
  color: #ffffff;
  font-weight: 800;
  padding: 0.65rem 0.9rem;
}

.op-page {
  background: #ffffff;
  margin: 0;
}

.op-service {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1400px;
  padding: 1rem 1.5rem 1.5rem;
}

.op-page {
  background: #f0f4f8;
  min-height: 100vh;
}

.op-service .titulo {
  align-items: center;
  display: flex;
  border-left: 5px solid #e86f3a;
  margin-bottom: 0;
  padding: 0.5rem 0 0.5rem 16px;
}

.op-service .ofertas .subtitle {
  color: #1e2a4a;
  font-size: 1.5rem !important;
  font-weight: 300;
  line-height: 1.25;
  margin: 0;
}

.op-service .ofertas strong {
  color: #1e2a4a;
  font-weight: 700;
}

.op-menu {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0.5rem 0;
  padding: 0.5rem 0;
}

.op-menu__dropdown {
  box-sizing: border-box;
  flex: 0 1 auto;
  padding: 0.25rem 0.45rem;
  position: relative;
}

.op-menu__button {
  align-items: center;
  background: #0a85c2;
  border: 1px solid #0a85c2;
  border-radius: 24px;
  box-shadow: none;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0;
  justify-content: center;
  letter-spacing: 0.3px;
  line-height: 1.5;
  min-width: 105px;
  padding: 8px 16px 8px 22px;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.op-menu__button:focus,
.op-menu__button:hover {
  background: #e86f3a;
  border-color: #e86f3a;
  color: #ffffff;
  transform: translateY(-1px);
}

.op-menu__items {
  background: #ffffff;
  border: 1px solid rgba(10, 133, 194, 0.15);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  display: none;
  left: 0;
  min-width: 220px;
  padding: 0.5rem 0;
  position: absolute;
  top: calc(100% + 4px);
  z-index: 1000000;
}

/* Puente invisible que cubre el hueco de 4px entre el botón y el panel,
   evitando que el hover se pierda al mover el cursor hacia las opciones. */
.op-menu__items::before {
  content: '';
  display: block;
  height: 8px;
  left: 0;
  position: absolute;
  right: 0;
  top: -8px;
}

.op-menu__dropdown:focus-within .op-menu__items,
.op-menu__dropdown:hover .op-menu__items {
  display: grid;
}

.op-menu__items a {
  align-items: center;
  border-radius: 0;
  color: #1e2a4a;
  display: flex;
  font-size: 0.85rem;
  font-weight: 500;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 8px 16px;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

/* ── Badges de conteo en botones del menú ── */
.op-menu__count {
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  font-size: 0.72em;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.3px;
  line-height: 1;
  margin-left: 5px;
  min-width: 28px;
  padding: 3px 7px;
  vertical-align: middle;
  white-space: nowrap;
}

.op-menu__button:hover .op-menu__count,
.op-menu__button:focus .op-menu__count {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Badge dentro del dropdown */
.op-menu__items a .op-menu__count {
  background: #e5f2fa;
  border: 1px solid rgba(10, 133, 194, 0.25);
  border-radius: 20px;
  color: #0a85c2;
  font-size: 0.75em;
  font-weight: 700;
  margin-left: 0;
  padding: 2px 7px;
}

.op-menu__items a:hover .op-menu__count {
  background: #e86f3a;
  border-color: #e86f3a;
  color: #fff;
}

.op-menu__items a:hover {
  background: #e5f2fa;
  color: #0a85c2;
}

.op-menu__items--catalog img {
  height: 48px;
  object-fit: contain;
  width: 48px;
}

.op-pagination {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin: 0.75rem 0;
}

.op-pagination a {
  align-items: center;
  border: 1px solid rgba(30, 42, 74, 0.2);
  border-radius: 999px;
  color: #1e2a4a;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 600;
  height: 2.25em;
  justify-content: center;
  min-width: 2.25em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.op-pagination a:hover {
  border-color: #0a85c2;
  color: #0a85c2;
}

.op-pagination a.is-active {
  background: #e86f3a;
  border-color: #e86f3a;
  color: #ffffff;
}

.op-package-groups {
  display: grid;
  gap: 1rem 0;
  padding: 0 1rem;
}

.op-package-row {
  align-items: stretch;
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  justify-content: center;
}

.op-package-card {
  background: #1e2a4a;
  border: 1px solid rgba(10, 133, 194, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(30, 42, 74, 0.18);
  flex: 0 1 280px;
  height: 100%;
  max-width: 280px;
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  width: 100%;
}

.op-package-card:hover {
  border-color: #e86f3a;
  box-shadow: 0 16px 48px rgba(30, 42, 74, 0.35);
  transform: translateY(-6px);
}

.op-offer {
  background: linear-gradient(135deg, #e86f3a, #d4587a);
  border-radius: 0 0 8px 0;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 14px;
  position: absolute;
  left: 0;
  top: 0;
  text-transform: uppercase;
  z-index: 2;
}

.op-card-image {
  background: #253555;
  display: block;
  height: 310px;
  overflow: hidden;
}

.op-card-image img {
  height: 310px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  max-height: 310px;
  max-width: 280px;
  transition: transform 0.4s ease;
  width: 100%;
}

.op-package-card:hover .op-card-image img {
  transform: scale(1.05);
}

.op-card-body {
  color: rgba(255, 255, 255, 0.75);
  padding: 0.35rem 0.75rem 0.5rem;
  position: relative;
}

.op-card-body h2 {
  color: #ffffff;
  display: -webkit-box;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 auto;
  max-height: 3.2em;
  min-height: 2rem;
  overflow: hidden;
  padding: 0.25rem 1rem 0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.op-destination {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
  margin: 0;
  min-height: 1rem;
  text-align: center;
}

.op-includes {
  background: rgba(30, 42, 74, 0.75);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  justify-content: center;
  min-height: 38px;
  padding: 0.5rem;
  position: absolute;
  right: 1rem;
  top: -58px;
  width: fit-content;
  z-index: 3;
}

.op-include-icon {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-size: 1.5rem;
  height: 1.5rem;
  justify-content: center;
  line-height: 1;
  width: 1.5rem;
}

.op-card-meta {
  display: grid;
  font-size: 8pt;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.15rem;
}

.op-card-meta > div {
  padding: 0.25rem 0 0.15rem;
}

.op-dates {
  text-align: right;
}

.op-dates details {
  position: relative;
}

.op-dates summary {
  color: #e86f3a;
  cursor: pointer;
  font-size: 9pt;
  list-style: none;
}

.op-dates details div {
  background: #ffffff;
  border: 1px solid var(--operadora-border);
  border-radius: 4px;
  box-shadow:
    0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1),
    0 0 0 1px rgba(10, 10, 10, 0.02);
  color: #0a85c2;
  padding: 0.75rem;
  position: absolute;
  right: 0;
  text-align: left;
  top: 1.25rem;
  width: max-content;
  z-index: 4;
}

.op-card-body hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 0.25rem;
}

.op-price {
  align-items: baseline;
  display: flex;
  gap: 0.5rem;
  font-size: 8pt;
  padding: 0.25rem 0.35rem 0;
}

.op-price b {
  color: #e86f3a;
  font-size: 14pt;
  font-weight: 900;
}

.op-more {
  align-items: center;
  color: #0a85c2;
  display: flex;
  font-size: 0.8rem;
  font-weight: 800;
  justify-content: space-between;
  margin-top: 0.15rem;
  padding: 0.25rem 0 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.op-more:hover {
  color: #e86f3a;
}

.op-empty {
  color: #1e2a4a;
  font-weight: 600;
  margin: 3rem 2rem;
  text-align: center;
  font-size: 1.1rem;
}

@media (max-width: 1540px) {
  .op-package-card {
    flex-basis: 26%;
  }
}

@media (max-width: 1500px) {
  .op-package-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .op-package-card {
    flex-basis: auto;
    justify-self: center;
    max-width: 300px;
    width: 100%;
  }
}

@media (max-width: 950px) {
  .op-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }

  .op-menu__button {
    font-size: 0.75rem;
    padding: 6px 14px;
    min-width: auto;
  }

  .op-menu__items {
    min-width: 180px;
  }
}

.op-menu__mobile-toggle {
  display: none;
}

@media (max-width: 680px) {
  .op-service {
    padding: 0.75rem 0.5rem 1rem;
  }

  .op-service .ofertas .subtitle {
    font-size: 1.1rem !important;
  }

  .op-menu {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
  }

  .op-menu__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1E2A4A;
    border: 1px solid rgba(10, 133, 194, 0.3);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 16px;
    width: 100%;
  }

  .op-menu > a.op-menu__button,
  .op-menu > .op-menu__dropdown {
    display: none;
  }

  .op-menu.is-mobile-open > a.op-menu__button,
  .op-menu.is-mobile-open > .op-menu__dropdown {
    display: block;
  }

  .op-menu.is-mobile-open > a.op-menu__button,
  .op-menu.is-mobile-open .op-menu__button {
    border-radius: 8px;
    margin: 4px 0;
    text-align: center;
    width: 100%;
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .op-menu__items {
    position: static;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    min-width: 100%;
    padding: 0;
  }

  .op-menu__dropdown:focus-within .op-menu__items,
  .op-menu__dropdown:hover .op-menu__items {
    display: none;
  }

  .op-menu.is-mobile-open .op-menu__dropdown:focus-within .op-menu__items,
  .op-menu.is-mobile-open .op-menu__dropdown:hover .op-menu__items {
    display: grid;
  }

  .op-package-groups {
    padding: 0 0.25rem;
  }

  .op-package-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .op-package-card {
    max-width: none;
    flex-basis: auto;
  }

  .op-card-image {
    height: 200px;
  }

  .op-card-image img {
    height: 200px;
    max-height: 200px;
    max-width: none;
  }

  .op-card-body h2 {
    font-size: 11px;
    min-height: 1.6rem;
  }

  .op-card-meta {
    font-size: 7pt;
  }

  .op-price b {
    font-size: 12pt;
  }

  .op-more {
    font-size: 0.7rem;
  }

  .op-pagination {
    margin: 0.5rem 0;
  }

  .op-pagination a {
    font-size: 0.7rem;
    height: 2em;
    min-width: 2em;
  }
}

@media (max-width: 400px) {
  .op-card-image {
    height: 160px;
  }

  .op-card-image img {
    height: 160px;
    max-height: 160px;
  }

  .op-card-body {
    padding: 0.25rem 0.5rem 0.4rem;
  }

  .op-card-body h2 {
    font-size: 10px;
    padding: 0.15rem 0.25rem 0;
  }

  .op-price b {
    font-size: 11pt;
  }
}

.visa-contact,
.visa-form-actions,
.visa-status {
  align-items: center;
  display: flex;
  justify-content: center;
}

.visa-contact {
  color: var(--operadora-navy);
  line-height: 1.5;
  text-align: center;
}

.visa-status {
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  grid-column: 1 / -1;
  min-height: 42px;
  padding: 0.7rem 1rem;
  text-align: center;
}

.visa-status[hidden] {
  display: none;
}

.visa-status.is-success {
  background: #e5f8ee;
  color: #17633a;
}

.visa-status.is-error {
  background: #ffe7e7;
  color: #9c1f1f;
}

.visa-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.modal-message {
  color: #1e2a4a;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

@keyframes title-soft-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 850px) {
  ul.operadora.hex2,
  ul.operadora.hex1 {
    display: grid;
    left: 0;
  }

  ul.operadora.hex1 {
    transform: translateY(19px);
  }

  .operadora.hex2 {
    transform: none;
  }

  ul.operadora li {
    padding-bottom: 2.5rem;
    padding-top: 2.5rem;
  }

  .columns {
    flex-direction: column;
  }

  .operadora-modal__dialog {
    max-height: 92vh;
    max-width: 94vw;
    width: 94vw;
  }

  .operadora-modal__body {
    max-height: calc(92vh - 64px);
  }

  .service-hero,
  .service-detail,
  .service-request,
  .visa-form {
    grid-template-columns: 1fr;
  }

  .operadora-modal__dialog.is-trains .operadora-modal__body {
    padding: 1rem;
  }

  .trenes-details {
    margin: 2rem 0 1rem;
    padding: 0;
    width: 100%;
  }

  .train-detail-card {
    display: grid;
    height: auto !important;
    min-height: 0;
    width: 100% !important;
  }

  .train-thumbnail {
    float: none;
    height: 260px;
    left: 0;
    top: 0;
    width: 100%;
  }

  .train-img-right {
    margin: 0;
    padding: 1rem;
  }

  .train-detail-heading {
    align-items: flex-start;
    gap: 1rem;
  }

  .train-board {
    margin: 1rem 0;
  }

  .proveedores-autos-grid {
    grid-template-columns: 1fr;
  }

  .op-service {
    margin: 1rem;
  }

  .op-service .titulo {
    padding-left: 0.75rem;
  }

  .op-package-groups {
    padding: 0;
  }

  .op-package-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .op-package-card {
    margin: 0 auto;
    max-width: 320px;
    width: 100%;
  }
}
