/* =====================================================
   WanderJoy - Estilos de Páginas Públicas
   (index, paquetes, detalle, vehiculos, nosotros, login, registro)
   ===================================================== */

/* ========== HERO (index) ========== */
.hero {
    background: #5f5c5c; /* Fondo negro base para oscurecer el video */
    padding: 120px 0 140px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.65; /* Ajusta la opacidad para el color deseado */
    will-change: transform, opacity;
}
/* Overlay removido para optimizar el scroll */
.hero-overlay {
    display: none;
}
/* Destellos eliminados por solicitud del usuario */
.hero::before, .hero::after {
    display: none;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5); /* Sombra para legibilidad */
}
.hero h1 em { 
    font-style: normal; 
    color: #ffdb28; /* Color amarillo del tema para contraste */
}
.hero p {
    font-size: 18px;
    color: rgb(255, 255, 255);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4); /* Sombra para legibilidad */
}

/* ========== SEARCH CARD (index) ========== */
.search-wrapper {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}
.search-card {
    background: #fff;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
}
.sf-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 6px;
    display: block;
}
.sf-input {
    border: none;
    outline: none;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    color: var(--text);
    background: transparent;
}
.sf-input:focus { box-shadow: none; }
.sf-select {
    border: none;
    outline: none;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    color: var(--text);
    background: transparent;
    appearance: auto;
    -webkit-appearance: auto;
    cursor: pointer;
    padding: 4px 0;
}
.sf-select:focus { box-shadow: none; outline: none; }
.sf-col {
    padding: 8px 24px;
    border-right: 1px solid var(--border);
}
.sf-col:last-child { border-right: none; }
.search-btn {
    background: #ffdb28;
    color: #3c3a3a;
    border: none;
    padding: 16px 36px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    transition: all .2s;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.search-btn:hover {
    background: #fad20a;
    transform: translateY(-2px);
}

/* ========== CATEGORY CHIPS ========== */
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
    margin-right: 12px;
    text-decoration: none;
}
.cat-chip:hover, .cat-chip.active {
    border-color: #fad20a;
    color: var(--gray-lt);
    background: #ffe357;
}

/* ========== PACKAGE CARDS ========== */
.pkg-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pkg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
}
.pkg-img {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #2b2727, #1a1717);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, .3);
}
.pkg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.pkg-card:hover .pkg-img img {
    transform: scale(1.08);
}
.pkg-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.pkg-card:hover .pkg-bg { transform: scale(1.08); }
.p-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
}
.badge-red {
    background: #dc2626;
    color: #fff;
    border: 1px solid rgba(0,0,0,0.08);
}
.badge-green {
    /* Verde de la bandera de México */
    background: #006847;
    color: #fff;
    border: 1px solid rgba(0,0,0,0.08);
}

/* Bandera (icono) dentro de badges */
.flag-icon {
    width: 18px;
    height: 12px;
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block;
    background: #fff; /* caja blanca para que el verde no se pierda */
    padding: 2px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.04) inset;
}
.p-dur {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.p-region {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 8px;
}
.p-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}
.tag {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    display: inline-block;
    margin: 0 4px 8px 0;
}
.p-btn {
    background: var(--primary-lt);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    transition: all .2s;
    text-decoration: none;
    display: inline-block;
}
.p-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ========== CTA BANNER ========== */
.cta-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, #fad20a 100%);
    border-radius: 24px;
    padding: 48px;
    color: white;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dk), var(--primary));
    padding: 60px 0;
    color: #fff;
    text-align: center;
}
.page-header h1 { font-weight: 800; font-size: 2.5rem; }
.page-header p { color: rgba(255, 255, 255, .7); font-size: 1.1rem; }

.page-header-simple {
    background: linear-gradient(135deg, var(--primary-dk), var(--primary));
    padding: 40px 0;
    color: #fff;
}

/* ========== FILTER BAR (paquetes) ========== */
.filter-bar {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    margin-top: -30px;
    position: relative;
    z-index: 5;
}
.chip-filter {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid var(--border);
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: all .2s;
    margin: 4px;
}
.chip-filter:hover, .chip-filter.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-lt);
}

/* ========== DETALLE PAQUETE ========== */
.detail-header {
    background: linear-gradient(135deg, #2b2727, #1a1717);
    padding: 48px 0 32px;
    color: #fff;
}
.detail-img {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(155deg, #2b2727, #1a1717);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255, 255, 255, .3);
}
.detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
    border: 1px solid var(--border);
}
.include-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}
.include-item:last-child { border-bottom: none; }
.include-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-lt);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== COTIZADOR ========== */
.cotizador-card, .cotizar-box {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
    z-index: 10;
}
.counter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
.counter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.counter-val {
    font-size: 18px;
    font-weight: 800;
    min-width: 30px;
    text-align: center;
}
.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}
.price-row.total {
    border-top: 2px solid var(--border);
    padding-top: 14px;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}


/* ========== NO RESULTS ========== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}
.no-results i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

/* ========== AUTH FORMS (login/registro) ========== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 40px 20px;
}
.auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 48px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
    border: 1px solid var(--border);
}

/* ========== VEHÍCULOS (público) ========== */
.vehicle-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
}
.vehicle-img {
    height: 160px;
    background: linear-gradient(155deg, #2b2727, #1a1717);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    position: relative;
    overflow: hidden;
}
.vehicle-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(26, 23, 23, .6));
}
.vehicle-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.vehicle-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin-bottom: 6px;
}
.vehicle-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}
.vehicle-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}
.vehicle-price small {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.vehicle-plate {
    display: inline-block;
    background: #1e293b;
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.btn-rent {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), #e05549);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all .2s;
    margin-top: auto;
}
.btn-rent:hover {
    background: linear-gradient(135deg, var(--primary-dk), var(--primary));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(210, 69, 57, .3);
}

/* ========== RESERVACIÓN CARD (cliente) ========== */
.res-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    transition: all .3s;
}
.res-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}
.res-estado {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* ========== HOW IT WORKS (index) ========== */
.how-section {
    padding: 100px 0;
    background: #f8fafc;
}
.how-header {
    text-align: center;
    margin-bottom: 80px;
}
.how-header h2 {
    font-weight: 800;
    color: #0f172a;
    font-size: 2.8rem;
    margin-bottom: 15px;
}
.how-header p {
    color: #64748b;
    font-size: 1.2rem;
    font-weight: 500;
}
.steps-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}
.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(to right, #e2e8f0 0, #e2e8f0 10px, transparent 10px, transparent 20px);
    z-index: 1;
}
.step-item {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
}
.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 3px solid #d24539;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    box-shadow: 0 0 0 10px #f8fafc;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.step-icon-inner {
    width: 60px;
    height: 60px;
    background: #d24539;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: all 0.4s ease;
}
.step-item:hover .step-icon-wrapper {
    transform: translateY(-10px);
    border-color: #d24539;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.2), 0 0 0 10px #f8fafc;
}
.step-item:hover .step-icon-inner {
    background: #d24539;
    transform: rotate(10deg);
}
.step-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}
.step-content p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 180px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .steps-container::before {
        display: none;
    }
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }
    .step-content p {
        max-width: 300px;
    }
}
