/* ============================================================
   RESET / SCOPE (solo dentro del plugin)
============================================================ */

.tornado-viajes-page,
.tornado-viajes-page *,
.tvp-landing-wrapper,
.tvp-landing-wrapper * {
  box-sizing: border-box;
}

/* ============================================================
   SHORTCODE: BUSCADOR
============================================================ */

.tvp-search-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 0 32px 0;
}

.tvp-search-wrapper input {
  width: 100%;
  padding: 14px 20px;
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: border-color 180ms ease;
}

.tvp-search-wrapper input:focus {
  border-color: #ff5722;
}

/* ============================================================
   SHORTCODE: GRID DE CIUDADES
============================================================ */

.tvp-cities-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.tvp-landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
}

.tvp-city-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tvp-city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

.tvp-city-name {
  font-family: 'Rubik', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
}

.tvp-city-cta {
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ff5722;
  display: flex;
  align-items: center;
  transition: transform 180ms ease;
}

.tvp-city-card:hover .tvp-city-cta {
  transform: translateX(4px);
}

/* ============================================================
   ✨ TABS - Estilo con contraste tipo botones (sin emojis)
============================================================ */

.tvp-no-results {
  font-family: 'Rubik', sans-serif;
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 16px;
}

.tvp-tabs-wrapper {
  display: inline-flex;
  gap: 0;
  margin-bottom: 20px;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 12px;
}

.tvp-tab {
  font-family: 'Rubik', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #666;
  background: transparent;
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  position: relative;
  transition: all 220ms ease;
  border-radius: 8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tvp-tab:hover {
  color: #333;
  background: rgba(255, 87, 34, 0.08);
}

.tvp-tab.active {
  color: #222;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tvp-tab-content {
  display: none;
}

.tvp-tab-content.active {
  display: block;
  animation: fadeIn 280ms ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   WRAPPER (alineado al ancho del sitio)
============================================================ */

.tornado-viajes-page .tornado-promos-wrapper{
  width: 100%;
  max-width: none;
  margin: 40px 0;
  padding: 0;
}

/* ============================================================
   LISTA
============================================================ */

.tornado-viajes-page .tornado-promos-list{
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
}

.tornado-viajes-page .ticket-container + .ticket-container{
  margin-top: 16px;
}

/* ============================================================
   CARD (sin sombra base, sombra solo hover + subir 4px)
============================================================ */

.tornado-viajes-page .ticket-container{
  width: 100%;
  background: linear-gradient(to bottom, #f0f0f0 0%, #ffffff 48px);
  border-radius: 12px;
  overflow: hidden;

  box-shadow: none;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease;

  text-align: left !important;
}

.tornado-viajes-page .ticket-container:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

/* ============================================================
   HEADER (4 SECCIONES JUSTIFICADAS AL 100%)
   Logo | Origen | Destino | Precio
============================================================ */

.tornado-viajes-page .ticket-header{
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(18px, 3vw, 44px) !important;
  padding: 16px 20px;
  background: #fff;
}

/* ============================================================
   LOGO (bloque fijo, así NO se pega a Origen)
============================================================ */

.tornado-viajes-page .ticket-header .logo{
  flex: 0 0 180px;
  max-width: 180px;
}

.tornado-viajes-page .ticket-header .logo img{
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   INFO (Origen + Destino) ocupa TODO el espacio del medio
============================================================ */

.tornado-viajes-page .ticket-info{
  flex: 1 1 auto;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(20px, 4vw, 80px) !important;
  min-width: 0;
}

.tornado-viajes-page .ticket-info .info-section{
  flex: 1 1 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ============================================================
   TIPOGRAFÍA (weights definidos para que no se "engorde")
============================================================ */

.tornado-viajes-page .info-label{
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ff5722;
  margin: 0 0 4px 0;
  line-height: 1.1;
}

.tornado-viajes-page .info-date{
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin: 0 0 6px 0;
  line-height: 1.1;
}

.tornado-viajes-page .info-time{
  font-family: 'Rubik', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin: 0 0 4px 0;
  line-height: 1.1;
}

.tornado-viajes-page .info-location{
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  line-height: 1.1;
}

.tornado-viajes-page .info-location::before{
  content: "📍";
  font-size: 10px;
}

/* ============================================================
   PRECIO / BOTÓN (bloque fijo a la derecha)
============================================================ */

.tornado-viajes-page .price-section{
  flex: 0 0 240px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
}

.tornado-viajes-page .price{
  font-family: 'Rubik', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ff5722;
  margin: 0 0 10px 0;
}

.tornado-viajes-page .select-button{
  font-family: 'Rubik', sans-serif;
  background: #ff5722;
  color: #fff;
  padding: 10px 26px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.tornado-viajes-page .select-button::after{
  content: "›";
  font-size: 18px;
  font-weight: 700;
}

.tornado-viajes-page .select-button:hover{
  background: #f4511e;
}

.tornado-viajes-page .ticket-container:hover .select-button{
  transform: translateX(2px);
}

/* ============================================================
   RESPONSIVE - LANDING
============================================================ */

@media (max-width: 640px){
  .tvp-landing-grid {
    grid-template-columns: 1fr;
  }
  
  .tvp-landing-title {
    font-size: 24px;
  }
}

/* ============================================================
   RESPONSIVE - TABS
============================================================ */

@media (max-width: 640px){
  .tvp-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .tvp-tab {
    font-size: 14px;
    padding: 10px 16px;
    white-space: nowrap;
  }
}

/* ============================================================
   RESPONSIVE - CARDS
============================================================ */

@media (max-width: 900px){
  .tornado-viajes-page .ticket-header{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .tornado-viajes-page .ticket-info{
    width: 100%;
    justify-content: flex-start !important;
    gap: 24px !important;
  }

  .tornado-viajes-page .price-section{
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    align-items: flex-start;
    text-align: left;
  }

  .tornado-viajes-page .ticket-header .logo{
    flex: 0 0 140px;
    max-width: 140px;
  }
}

@media (max-width: 640px){
  .tornado-viajes-page .ticket-info{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .tornado-viajes-page .ticket-info .info-section{
    min-width: 0;
  }
}