/* VARIABLES Y PALETA DE COLORES */
:root {
    --primary: #1d3557;
    --secondary: #fed201;
    --accent: #00a8a8;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --white: #ffffff;
    --gray: #6c757d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.header__logo {
    height: 2.2rem;
    width: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo img {
    height: 100%;
    width: auto;
}


body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.hidden {
    display: none !important;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 30%;
    height: auto;
    /* Mantiene la proporción original del SVG */
    display: block;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* HERO SECTION CON SLIDER Y BUSCADOR */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 60px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 53, 87, 0.5);
    /* Overlay con color primary */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.search-box span {
    color: var(--gray);
    margin-right: 0.5rem;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: var(--text-dark);
}

/* CATEGORÍAS */
.categories-section h2,
section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    background: var(--secondary);
    color: var(--white);
}

.category-card span.material-icons {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.category-card:hover span.material-icons {
    color: var(--white);
}

/* CARDS DE PROVEEDORES */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-badge {
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    text-align: center;
}

.btn-primary:hover {
    background-color: #12223a;
}

/* FILTROS DIRECTORIO */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* MAPA INTERACTIVO */
.map-section {
    text-align: center;
}

.interactive-map-container {
    background: #e9ecef;
    height: 350px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.map-placeholder {
    color: var(--gray);
}

.map-placeholder span {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

/* MODALES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.small {
    max-width: 400px;
}

/* Popup de cotización con efecto de entrada (pop + fade) */
.cotiza-modal .modal-content {
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.cotiza-modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Tarjeta de datos del proveedor que opera el tour */
.proveedor-info {
    padding-top: 0;
}

.proveedor-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.proveedor-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 50%;
    background: #f4f4f4;
}

.proveedor-datos {
    flex: 1;
    min-width: 200px;
}

.proveedor-datos h3 {
    color: var(--primary);
    margin: 0 0 0.4rem;
}

.proveedor-contacto {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.proveedor-social {
    display: flex;
    gap: 0.75rem;
}

.proveedor-social a {
    color: var(--primary);
    display: flex;
}

.close-modal,
.close-wa-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.modal-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modal-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
}

.modal-thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.btn-paypal {
    background-color: #0070ba;
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

/* FORMULARIO WHATSAPP MODAL */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    outline: none;
}

/* FOOTER */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 1.5rem 1rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-col p {
    color: #adb5bd;
}

.footer-col a {
    display: block;
    color: #adb5bd;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    color: #adb5bd;
    font-size: 0.85rem;
}

/* PÁGINA DE DETALLE DE TOUR Y RESERVACIÓN */
.tour-detail {
    padding-top: 6rem;
}

.tour-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.tour-detail-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.tour-detail-slider {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tour-detail-slider .tour-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: none;
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.tour-detail-slider .tour-slide.active {
    opacity: 1;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.65);
}

.slider-prev {
    left: 0.75rem;
}

.slider-next {
    right: 0.75rem;
}

.slider-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    z-index: 2;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.slider-dot.active {
    background: var(--white);
}

.tour-detail-header h1 {
    color: var(--primary);
    margin: 0.75rem 0;
}

.tour-detail-desc {
    color: var(--gray);
    margin-bottom: 1rem;
}

.tour-detail-price {
    font-weight: 700;
    color: var(--secondary);
    background: var(--primary);
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
}

.wizard-breadcrumb {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.wizard-breadcrumb ol {
    display: flex;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 30px;
    padding: 0.5rem 1rem;
}

.breadcrumb-separator {
    color: #ced4da;
    font-size: 1.25rem;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
}

.step-indicator .step-icono {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: #e9ecef;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.step-indicator .step-label {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.step-indicator.active {
    color: var(--primary);
}

.step-indicator.active .step-icono {
    background: var(--primary);
    color: var(--white);
}

.step-indicator.completado {
    color: var(--accent);
}

.step-indicator.completado .step-icono {
    background: var(--accent);
    color: var(--white);
}

/* SECCIÓN DE RUTAS (MENÚ LATERAL RESPONSIVO) */
.rutas-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.rutas-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    margin-bottom: 1rem;
}

.rutas-sidebar {
    flex: 0 0 260px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}

.rutas-sidebar h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.rutas-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rutas-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.rutas-nav a:hover {
    background: var(--bg-light);
}

.rutas-nav a.active {
    background: var(--primary);
    color: var(--white);
}

.rutas-contenido {
    flex: 1;
    min-width: 0;
}

.rutas-contenido h2 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.rutas-paradas {
    list-style: none;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rutas-paradas li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.rutas-paradas li .material-icons {
    color: var(--accent);
}

@media (max-width: 900px) {
    .rutas-layout {
        flex-direction: column;
    }

    .rutas-sidebar-toggle {
        display: flex;
    }

    .rutas-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100vh;
        width: 260px;
        z-index: 1500;
        border-radius: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .rutas-sidebar.open {
        left: 0;
    }
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.wizard-nav .btn-primary,
.wizard-nav .btn-secondary {
    flex: 1;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

.reserva-block {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.reserva-block h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.reserva-help {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Tarjeta de confirmación mostrada tras registrar la reservación en el CRM */
.reserva-confirmacion {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2rem 1.5rem;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.confirmacion-icono .material-icons {
    color: var(--accent);
    font-size: 3rem;
}

.reserva-confirmacion h3 {
    color: var(--primary);
    margin: 0.5rem 0 1rem;
}

.confirmacion-folio {
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.reserva-confirmacion p {
    margin-bottom: 0.75rem;
}

.confirmacion-proveedor {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.confirmacion-resumen {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.confirmacion-resumen p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.confirmacion-resumen p:last-child {
    margin-bottom: 0;
}

.confirmacion-resumen .material-icons {
    color: var(--primary);
    font-size: 1.2rem;
}

.confirmacion-dato {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.confirmacion-dato:last-child {
    margin-bottom: 0;
}

.confirmacion-dato .material-icons {
    color: var(--primary);
    font-size: 1.2rem;
}

.btn-descarga-comprobante {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.calendario-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.calendario-titulo {
    font-weight: 700;
    color: var(--primary);
    min-width: 160px;
    text-align: center;
}

.calendario-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 500;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.dia-btn {
    background: var(--bg-light);
    border: 1px solid var(--accent);
    color: var(--primary);
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.dia-btn:hover:not(:disabled) {
    background: var(--accent);
    color: var(--white);
}

.dia-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.dia-btn.ocupado {
    background: #e9ecef;
    border-color: #ced4da;
    color: var(--gray);
    cursor: not-allowed;
    text-decoration: line-through;
}

.personas-opciones {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.radio-card {
    flex: 1;
    min-width: 200px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--bg-light);
}

.radio-card-precio {
    font-weight: 700;
    color: var(--secondary);
    background: var(--primary);
    display: inline-block;
    width: fit-content;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
}

.reserva-total {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .tour-detail-header {
        grid-template-columns: 1fr;
    }
}