/* ==========================================================================
   TRANSFER PRO MADRID - BASE
   1. Tokens   2. Reset del tema   3. Utilidades comunes
   4. Cabecera 5. Menú móvil       6. Pie          7. 404
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --tp-font: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tp-container: 1440px;      /* ancho máximo del sitio */
  --tp-container-narrow: 1200px; /* ancho de lectura en páginas de contenido */
  --tp-gutter: 32px;

  --tp-black: #0a0a0a;
  --tp-charcoal: #141416;
  --tp-surface: #18181c;
  --tp-white: #ffffff;
  --tp-bg-light: #f7f7f9;
  --tp-gray-100: #f4f4f5;
  --tp-gray-200: #e4e4e7;
  --tp-gray-300: #d4d4d8;
  --tp-gray-400: #a1a1aa;
  --tp-gray-500: #71717a;
  --tp-gray-600: #52525b;
  --tp-gray-800: #27272a;
  --tp-gold: #c5a059;
  --tp-gold-hover: #b08d48;
  --tp-gold-soft: rgba(197, 160, 89, 0.14);

  --tp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tp-header-h: 90px;
}

@media (max-width: 1024px) {
  :root { --tp-header-h: 70px; --tp-gutter: 20px; }
}

/* 2. RESET DEL TEMA -------------------------------------------------------- */
body {
  font-family: var(--tp-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  color: var(--tp-black);
  background: var(--tp-white);
}

html.tp-no-scroll { overflow: hidden; }

.tp-main { display: block; width: 100%; }

.tp-main > :first-child { margin-top: 0; }

:focus-visible { outline: 2px solid var(--tp-gold); outline-offset: 3px; }

/* Aviso de cookies (CookieYes): foco negro y visible (el CSS de serie del plugin lo pinta azul o blanco sobre blanco) */
.cky-consent-container :focus-visible,
.cky-modal :focus-visible,
.cky-preference-center :focus-visible,
.cky-btn-revisit-wrapper:focus-visible { outline: 2px solid #111111 !important; outline-offset: 2px; }
.cky-btn-revisit-wrapper:focus-visible { box-shadow: 0 0 0 5px #ffffff; }
/* Icono para reabrir las cookies en escritorio: más pequeño y pegado a la esquina para no tapar la franja de garantías de la portada */
@media (min-width: 1025px) {
  .cky-btn-revisit-wrapper { left: 4px !important; bottom: 6px !important; width: 38px; height: 38px; }
  .cky-btn-revisit-wrapper .cky-btn-revisit img { height: 26px; width: 26px; }
}
/* Interruptores del aviso de cookies: negro (el CSS de serie del plugin los pinta azul al activarlos) */
.cky-switch input[type="checkbox"]:checked,
.cky-opt-out-checkbox-wrapper input[type="checkbox"].cky-opt-out-checkbox:checked { background: #111111 !important; }

.tp-skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 3000;
  background: var(--tp-black);
  color: var(--tp-white);
  padding: 10px 16px;
  text-decoration: none;
  font-size: 14px;
  transition: top 0.2s ease;
}
.tp-skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 3. COMPONENTES COMUNES --------------------------------------------------- */
.tp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tp-gold);
}
.tp-eyebrow-dash { width: 28px; height: 1.5px; background: var(--tp-gold); display: inline-block; }

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  font-family: var(--tp-font);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--tp-ease);
}
.tp-btn--dark { background: var(--tp-black); color: var(--tp-white); border-color: var(--tp-black); }
.tp-btn--dark:hover { background: #1f1f1f; border-color: var(--tp-gold); transform: translateY(-2px); }
.tp-btn--gold { background: var(--tp-gold); color: var(--tp-black); border-color: var(--tp-gold); }
.tp-btn--gold:hover { background: var(--tp-gold-hover); border-color: var(--tp-gold-hover); transform: translateY(-2px); }
.tp-btn--outline { background: transparent; color: var(--tp-black); border-color: var(--tp-gray-300); }
.tp-btn--outline:hover { border-color: var(--tp-black); transform: translateY(-2px); }

/* 4. CABECERA -------------------------------------------------------------- */
.tp-navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  /* Barra negra con letras blancas (como la de Mallorca) */
  background: #0a0a0a;
  color: var(--tp-white); /* los elementos de menú sin enlace (Servicios) heredan este color */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.3s ease;
}
.tp-navbar.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }

.tp-nav-container {
  max-width: var(--tp-container);
  margin: 0 auto;
  padding: 0 40px;
  height: var(--tp-header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  box-sizing: border-box;
}

/* Menú en el centro y logo a la izquierda (Xevo, 30-oct) */
.tp-nav-left { display: flex; align-items: center; justify-content: center; }
.tp-nav-left ul { list-style: none; margin: 0; padding: 0; }
.tp-nav-left > ul,
.tp-nav-left .tp-menu-list { display: flex; align-items: center; gap: 28px; }
.tp-nav-left li { position: relative; margin: 0; padding: 0; }

.tp-nav-left a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tp-white);
  text-decoration: none;
  transition: color 0.25s ease;
}
.tp-nav-left a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--tp-white);
  transition: width 0.3s var(--tp-ease);
}
.tp-nav-left a:hover::after,
.tp-nav-left .current-menu-item > a::after,
.tp-nav-left .current-menu-ancestor > a::after { width: 100%; }
/* Un enlace a una parte de la portada (Flota en Mallorca: #fleet-overview) no se marca como página actual */
.tp-nav-left .current-menu-item > a[href*="#"]:not(:hover)::after { width: 0; }

/* Submenú desplegable (también por teclado) */
.tp-nav-left .sub-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  width: 270px;
  padding: 12px 0;
  background: var(--tp-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s var(--tp-ease);
}
.tp-nav-left .menu-item-has-children:hover > .sub-menu,
.tp-nav-left .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tp-nav-left .sub-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.tp-nav-left .sub-menu a::after { display: none; }
.tp-nav-left .sub-menu a:hover { background: rgba(255, 255, 255, 0.08); }

/* Logo */
.tp-nav-center { display: flex; justify-content: flex-start; align-items: center; order: -1; }
.tp-logo { display: inline-block; text-decoration: none; text-align: center; transition: transform 0.25s ease; }
.tp-logo:hover { transform: scale(1.02); }
.tp-logo-main {
  display: block;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--tp-black);
}

/* Logo en imagen (SVG con las letras de Xevo y MADRID debajo): mismo sitio y ancho visual que el texto de antes */
.tp-logo-img { display: block; height: 44px; width: auto; max-width: 100%; }

/* Acciones derecha */
.tp-nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }

/* Selector de idioma */
.tp-lang { position: relative; }
.tp-lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  font-family: var(--tp-font);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--tp-white);
  cursor: pointer;
  transition: border-color 0.2s ease;
  touch-action: manipulation;
}
.tp-lang-btn:hover,
.tp-lang-btn:focus,
.tp-lang-btn[aria-expanded="true"] { border-color: var(--tp-white); background: rgba(255, 255, 255, 0.1); color: var(--tp-white); }
/* El CSS de serie del tema base pinta los botones en rosa al pulsarlos: en la barra negra se quedan transparentes */
.tp-hamburger:hover,
.tp-hamburger:focus,
.tp-drawer-close:hover,
.tp-drawer-close:focus { background: transparent; color: var(--tp-white); }
.tp-icon-chevron { width: 8px; height: 5px; transition: transform 0.25s ease; }
.tp-lang.is-open .tp-icon-chevron { transform: rotate(180deg); }

.tp-lang-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1005;
  min-width: 140px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--tp-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
}
.tp-lang.is-open .tp-lang-list { opacity: 1; visibility: visible; transform: translateY(0); }
.tp-lang-option {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tp-gray-300);
  text-decoration: none;
}
.tp-lang-option:hover { background: rgba(255, 255, 255, 0.08); color: var(--tp-white); }
.tp-lang-option.is-active { font-weight: 700; color: var(--tp-white); }

/* Botón Booking */
.tp-btn-booking {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--tp-white);
  color: var(--tp-black);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.3s var(--tp-ease);
}
.tp-btn-booking:hover { background: var(--tp-gray-200); color: var(--tp-black); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.tp-booking-arrow { width: 12px; height: 12px; transition: transform 0.3s ease; }
.tp-btn-booking:hover .tp-booking-arrow { transform: translateX(3px); }

/* Hamburguesa */
.tp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}
.tp-burger-line { display: block; width: 22px; height: 2px; background: var(--tp-white); border-radius: 1px; }

@media (max-width: 1024px) {
  .tp-nav-left { display: none; }
  .tp-nav-container { grid-template-columns: auto 1fr; gap: 16px; padding: 0 20px; }
  .tp-nav-center { justify-content: flex-start; }
  .tp-logo-main { font-size: 19px; }
  .tp-logo-img { height: 32px; }
  .tp-btn-booking { display: none; }
  .tp-hamburger { display: flex; }
}

/* 5. MENÚ MÓVIL ------------------------------------------------------------ */
.tp-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.4s ease;
}
.tp-drawer.is-open { visibility: visible; pointer-events: auto; }

.tp-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.tp-drawer.is-open .tp-drawer-backdrop { opacity: 1; }

.tp-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 360px;
  height: 100%;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  background: #0a0a0a;
  color: var(--tp-white);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform 0.4s var(--tp-ease);
}
.tp-drawer.is-open .tp-drawer-panel { transform: translateX(0); }

.tp-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.tp-drawer-header .tp-logo-main { font-size: 20px; }
.tp-drawer-header .tp-logo-img { height: 32px; }
.tp-drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--tp-white);
  cursor: pointer;
}

.tp-drawer-menu { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-direction: column; gap: 6px; }
.tp-drawer-menu li { margin: 0; padding: 0; }
.tp-drawer-menu > li > a {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tp-white);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.tp-drawer-menu > li > a:hover { color: var(--tp-gold); transform: translateX(3px); }

.tp-drawer-menu .sub-menu {
  list-style: none;
  margin: 4px 0 14px 6px;
  padding: 6px 0 6px 18px;
  border-left: 2px solid var(--tp-gold);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tp-drawer-menu .sub-menu a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-gray-300);
  text-decoration: none;
  transition: all 0.2s ease;
}
.tp-drawer-menu .sub-menu a::before {
  content: '';
  width: 10px;
  height: 1.5px;
  background: var(--tp-gold);
  flex-shrink: 0;
  transition: width 0.2s ease, background-color 0.2s ease;
}
.tp-drawer-menu .sub-menu a:hover { color: var(--tp-white); transform: translateX(4px); }
.tp-drawer-menu .sub-menu a:hover::before { width: 16px; background: var(--tp-white); }

.tp-drawer-footer { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.tp-drawer-cta {
  padding: 14px 20px;
  background: var(--tp-white);
  color: var(--tp-black);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.tp-drawer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.tp-drawer-contact a { color: var(--tp-gray-300); text-decoration: none; }
.tp-drawer-contact a:first-child { color: var(--tp-white); font-weight: 600; }

/* 6. PIE ------------------------------------------------------------------- */
.tp-footer {
  width: 100%;
  padding: 85px 0 0;
  background: var(--tp-black);
  color: var(--tp-white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}
.tp-footer *, .tp-footer *::before, .tp-footer *::after { box-sizing: border-box; }

.tp-footer-container { width: 100%; max-width: var(--tp-container); margin: 0 auto; padding: 0 48px; }

.tp-footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 36px;
  margin-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tp-footer-logo-img { display: block; height: 56px; width: auto; max-width: 100%; }
.tp-footer-logo {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--tp-white);
  text-decoration: none;
}
.tp-footer-brand-desc { max-width: 640px; margin: 0; font-size: 15px; line-height: 1.65; color: var(--tp-gray-400); }

.tp-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.25fr; gap: 40px; padding-bottom: 60px; }

.tp-footer-heading {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tp-white);
}
.tp-footer-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 24px; height: 2px; background: var(--tp-gold); }

.tp-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.tp-footer-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--tp-gray-400);
  text-decoration: none;
  transition: all 0.25s ease;
}
.tp-footer-menu a:hover { color: var(--tp-white); transform: translateX(4px); }

.tp-footer-contact-list { display: flex; flex-direction: column; gap: 16px; }
.tp-footer-contact-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: all 0.25s var(--tp-ease);
}
.tp-footer-contact-card:hover { background: rgba(197, 160, 89, 0.08); border-color: var(--tp-gold); transform: translateY(-2px); }

.tp-fcontact-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tp-gold); }
.tp-fcontact-main { font-size: 15px; font-weight: 700; letter-spacing: 0.05em; line-height: 1.3; color: var(--tp-white); }

.tp-footer-contact-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.tp-footer-contact-link .tp-fcontact-main { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--tp-gray-300); transition: color 0.25s ease; }
.tp-footer-contact-link:hover .tp-fcontact-main { color: var(--tp-gold); }

.tp-footer-mallorca { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.tp-footer-mallorca a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--tp-gray-300); text-decoration: none; transition: color 0.25s ease; }
.tp-footer-mallorca a > * { white-space: nowrap; }
.tp-footer-mallorca a:hover { color: var(--tp-white); }
.tp-farrow { color: var(--tp-gold); transition: transform 0.2s ease; }
.tp-footer-mallorca a:hover .tp-farrow { transform: translateX(4px); }

.tp-footer-bottom { padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.tp-footer-bottom p { margin: 0; font-size: 13px; color: var(--tp-gray-400); }
.tp-footer-bottom strong { color: var(--tp-white); letter-spacing: 0.06em; }

@media (max-width: 1200px) { .tp-footer-grid { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
@media (max-width: 768px) {
  .tp-footer-container { padding: 0 32px; }
  .tp-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .tp-footer-top { padding-bottom: 28px; margin-bottom: 34px; }
}
@media (max-width: 540px) {
  .tp-footer { padding-top: 55px; }
  .tp-footer-container { padding: 0 20px; }
  .tp-footer-grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
}

/* 7. 404 ------------------------------------------------------------------- */
.tp-404 { padding: 120px var(--tp-gutter); background: var(--tp-bg-light); }
.tp-404-inner { max-width: 760px; margin: 0 auto; text-align: left; }
.tp-404-title { margin: 0 0 18px; font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.tp-404-text { margin: 0 0 34px; font-size: 17px; line-height: 1.65; color: var(--tp-gray-600); }
.tp-404-actions { display: flex; flex-wrap: wrap; gap: 14px; }
