/* Mochileros Travel Deals Plugin Styles */

.mochileros-deals-signup {
    max-width: 1200px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.signup-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.signup-content {
    padding: 3rem;
    text-align: center;
}

.signup-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.price-highlight {
    display: inline-flex;
    align-items: baseline;
    background: rgba(255,255,255,0.15);
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #4ade80;
}

.period {
    font-size: 1.2rem;
    margin-left: 0.5rem;
    opacity: 0.8;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.benefit-text span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-section {
    margin: 3rem 0;
}

.signup-button {
    display: inline-block;
    background: #4ade80;
    color: #1e3c72;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(74, 222, 128, 0.3);
    margin-bottom: 1rem;
}

.signup-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(74, 222, 128, 0.4);
    text-decoration: none;
    color: #1e3c72;
}

.guarantee, .cancel-anytime {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0.5rem 0;
}

.social-proof {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.8rem;
    color: #4ade80;
    font-weight: 800;
}

.stat span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Dashboard Styles */
.mochileros-deals-dashboard {
    max-width: 1200px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h2 {
    font-size: 2rem;
    color: #1e3c72;
    margin: 0;
}

.member-badge {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid #4ade80;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1e3c72;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
}

.filters-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.filters-section h3 {
    margin-bottom: 1rem;
    color: #1e3c72;
}

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

.filter-select, .filter-input {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: #4ade80;
}

.deals-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.section-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-button {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-button.active {
    background: white;
    color: #1e3c72;
    border-bottom: 3px solid #4ade80;
}

.deals-grid {
    padding: 2rem;
    display: grid;
    gap: 2rem;
}

.deals-grid.hidden {
    display: none;
}

.deal-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.deal-card:hover {
    border-color: #4ade80;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.deal-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.error-fare {
    background: #fee2e2;
    color: #dc2626;
}

.badge.flash-offer {
    background: #fef3c7;
    color: #d97706;
}

.badge.verified {
    background: #dcfce7;
    color: #16a34a;
}

.time-left {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
}

.flight-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.airport {
    text-align: center;
}

.airport-code {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e3c72;
}

.airport-city {
    font-size: 0.85rem;
    color: #64748b;
}

.flight-line {
    flex: 1;
    position: relative;
    height: 2px;
    background: #e2e8f0;
    margin: 0 1rem;
}

.plane-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0.25rem;
    font-size: 1.2rem;
}

.deal-details {
    text-align: center;
    margin-bottom: 1.5rem;
}

.airline {
    color: #64748b;
    font-size: 0.9rem;
}

.deal-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.original-price {
    text-decoration: line-through;
    color: #64748b;
    font-size: 0.9rem;
}

.deal-price {
    font-size: 2rem;
    font-weight: 800;
    color: #16a34a;
}

.savings {
    color: #16a34a;
    font-weight: 600;
    font-size: 0.9rem;
}

.view-deal-btn {
    background: #1e3c72;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.view-deal-btn:hover {
    background: #2a5298;
}

/* Hotel Deal Styles */
.hotel-deal {
    display: flex;
    gap: 1rem;
}

.hotel-image {
    position: relative;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #dc2626;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.hotel-content {
    flex: 1;
}

.hotel-content h4 {
    font-size: 1.3rem;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.hotel-location, .hotel-rating {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hotel-pricing {
    margin-top: 1rem;
}

/* Community Section */
.community-section {
    margin-top: 2rem;
}

.community-card {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.community-card h3 {
    margin-bottom: 1rem;
    color: white;
}

.community-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.community-btn {
    background: white;
    color: #22c55e;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

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

/* Premium Content Lock */
.premium-content-locked.mochileros-style {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
}

.lock-container {
    max-width: 400px;
    margin: 0 auto;
}

.lock-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.premium-content-locked h4 {
    color: #1e3c72;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.premium-content-locked p {
    color: #64748b;
    margin-bottom: 2rem;
}

.unlock-benefits {
    margin: 2rem 0;
}

.benefit {
    padding: 0.5rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.unlock-button {
    display: inline-block;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
    margin-bottom: 1rem;
}

.unlock-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.guarantee-small {
    font-size: 0.8rem;
    color: #64748b;
}

/* Auth UI */
.mtd-auth-wrapper {
    max-width: 1000px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mtd-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.mtd-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.mtd-card--secondary {
    opacity: 0.85;
}

.mtd-field {
    margin-bottom: 1rem;
}

.mtd-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #1e3c72;
}

.mtd-field input,
.mtd-field select {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

.mtd-check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1rem;
    font-size: 0.95rem;
    color: #475569;
}

.mtd-btn {
    background: #1e3c72;
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.mtd-btn:hover {
    background: #2a5298;
}

.mtd-btn.mtd-btn--ghost {
    background: #eef2ff;
    color: #1e3c72;
}

.mtd-alert {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #92400e;
}

.mtd-account {
    max-width: 800px;
    margin: 2rem auto;
}

.mtd-kv {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mtd-kv li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.mtd-badge {
    background: #dcfce7;
    color: #166534;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.mtd-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 900px) {
    .mtd-auth-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .signup-content {
        padding: 2rem 1.5rem;
    }
    
    .signup-hero h2 {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .flight-route {
        flex-direction: column;
        gap: 1rem;
    }
    
    .flight-line {
        width: 2px;
        height: 30px;
        margin: 0;
    }
    
    .deal-pricing {
        flex-direction: column;
        text-align: center;
    }
    
    .hotel-deal {
        flex-direction: column;
    }
    
    .hotel-image {
        width: 100%;
        height: 200px;
    }

  .airport-code { font-size: 1.6rem; }
}

/* === Overrides de contraste y estilos (agosto 2025) === */

/* 1) Texto blanco en todos los botones del plugin */
.mtd-btn,
.signup-button,
.unlock-button,
.view-deal-btn {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
}
.mtd-btn:hover,
.signup-button:hover,
.unlock-button:hover,
.view-deal-btn:hover {
  color: #fff !important;
  opacity: .95;
}

/* 2) CTA hero (ver comunidad) con texto blanco y mejor contraste */
.signup-button.primary,
.signup-button {
  background: linear-gradient(135deg, #16a34a, #22c55e) !important; /* verde accesible */
  color: #fff !important;
  border: 0;
}

/* 3) Botón "Ver oferta" con azul oscuro y esquinas suaves */
.view-deal-btn {
  background: #1e3a8a; /* azul oscuro */
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 6px 18px rgba(30,58,138,0.15);
}

/* 4) Botones genéricos del plugin */
.mtd-btn {
  background: #1e3a8a; /* unificar branding */
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(30,58,138,0.12);
}
.mtd-btn.mtd-btn--ghost {
  background: #1e40af1a; /* sutil */
  color: #1e3a8a !important;
}

/* 5) Tarjetas de vuelos estilo limpio (como la captura) */
.deal-card {
  background: #fff;
  border: 1px solid #e5edf7;
  border-radius: 12px;
  padding: 1.25rem;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.deal-card:hover {
  border-color: #cfe0f3;
  box-shadow: 0 8px 28px rgba(2, 6, 23, 0.06);
  transform: translateY(-1px);
}

.deal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.deal-badges { display: flex; gap: .5rem; flex-wrap: wrap; }

.badge { border-radius: 9999px; padding: .35rem .7rem; font-weight: 600; }
.badge.error-fare { background: #fee2e2; color: #dc2626; }
.badge.flash-offer { background: #fef3c7; color: #b45309; }
.badge.verified { background: #dcfce7; color: #16a34a; }

/* Contador rojo */
.time-left { color: #dc2626; font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }

/* Ruta de vuelo */
.flight-route { display: flex; align-items: center; justify-content: space-between; margin: 1.25rem 0; }
.flight-line {
  flex: 1;
  position: relative;
  height: 2px;
  background: #e5e7eb;
  margin: 0 1rem;
}
.plane-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  font-size: 1.1rem;
  padding: .15rem;
  border-radius: 6px;
  color: #2563eb;
  box-shadow: 0 0 0 2px #fff;
}
.airport { text-align: center; }
.airport-code { font-size: 2rem; font-weight: 800; color: #0f172a; letter-spacing: .5px; }
.airport-city { font-size: .9rem; color: #64748b; }

/* Línea de detalles */
.deal-details { text-align: center; margin-bottom: 1rem; color: #64748b; }

/* Precios y ahorro */
.deal-pricing { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.original-price { color: #94a3b8; text-decoration: line-through; font-size: .95rem; }
.deal-price { color: #16a34a; font-size: 2rem; font-weight: 800; line-height: 1; }
.savings { color: #16a34a; font-weight: 700; font-size: .95rem; }

/* 6) Sección de features (como la captura 2) */
.mtd-features {
  max-width: 1200px;
  margin: 2.5rem auto;
  text-align: center;
  padding: 0 1rem;
}
.mtd-features h2 {
  font-size: 2.1rem;
  color: #0f172a;
  margin-bottom: .35rem;
  font-weight: 800;
}
.mtd-features .subtitle {
  color: #475569;
  margin-bottom: 1.75rem;
}
.mtd-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1rem;
}
.mtd-feature-card {
  background: #fff;
  border: 1px solid #e5edf7;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: left;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.mtd-feature-card:hover {
  border-color: #cfe0f3;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
  transform: translateY(-2px);
}
.mtd-feature-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 22px;
  border: 2px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  margin-bottom: .75rem;
}
.mtd-feature-card h4 { margin: 0 0 .25rem 0; color: #0f172a; font-size: 1.1rem; }
.mtd-feature-card p  { margin: 0; color: #64748b; font-size: .95rem; }
