/* ============================================
   QoriCuscoTravel - Premium Tourism Template
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--qori-font-body);
    color: var(--qori-text);
    background: var(--qori-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--qori-font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--qori-dark);
}

a { text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; }

/* ---- Top Bar ---- */
.qori-topbar {
    background: var(--qori-secondary);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
    text-align: center;
}
.qori-topbar a { color: var(--qori-accent); }

/* ---- Header / Navbar ---- */
.qori-header {
    background: var(--qori-menu-bg);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: all 0.3s ease;
}
.qori-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}
.qori-navbar {
    padding: 12px 0;
}
.qori-logo {
    height: 50px;
    width: auto;
}
.qori-brand-text {
    font-family: var(--qori-font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--qori-dark);
    letter-spacing: -0.5px;
}
.qori-nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--qori-text) !important;
    padding: 8px 16px !important;
    position: relative;
}
.qori-nav-link:hover, .qori-nav-link.active {
    color: var(--qori-primary) !important;
}
.qori-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--qori-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.qori-nav-link:hover::after, .qori-nav-link.active::after {
    width: 60%;
}
.qori-btn-primary {
    background: var(--qori-btn);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.qori-btn-primary:hover {
    background: var(--qori-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201,162,39,0.3);
}
.qori-btn-outline {
    background: transparent;
    color: var(--qori-primary);
    border: 2px solid var(--qori-primary);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.qori-btn-outline:hover {
    background: var(--qori-primary);
    color: #fff;
}
.qori-btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.qori-btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-2px);
}

/* Language selector */
.qori-lang-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.85rem;
    background: transparent;
}

/* ---- Hero Section ---- */
.qori-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.qori-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.qori-hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.qori-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,25,35,0.7) 0%, rgba(26,43,60,0.5) 100%);
    z-index: 1;
}
.qori-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 750px;
}
.qori-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}
.qori-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.qori-hero .qori-btn-primary {
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Search Box */
.qori-search-box {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}
.qori-search-box input, .qori-search-box select {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
}
.qori-search-box input:focus, .qori-search-box select:focus {
    border-color: var(--qori-primary);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
    outline: none;
}

/* ---- Section Styles ---- */
.qori-section {
    padding: 80px 0;
}
.qori-section-title {
    text-align: center;
    margin-bottom: 60px;
}
.qori-section-title h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 12px;
}
.qori-section-title .subtitle {
    color: var(--qori-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: block;
}
.qori-section-title p {
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Tour Cards ---- */
.qori-tour-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.qori-tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.qori-tour-card-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.qori-tour-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.qori-tour-card:hover .qori-tour-card-img img {
    transform: scale(1.08);
}
.qori-tour-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--qori-primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.qori-tour-price-tag {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(15,25,35,0.85);
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
}
.qori-tour-price-tag .old-price {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 0.8rem;
    font-weight: 400;
}
.qori-tour-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.qori-tour-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.qori-tour-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    font-size: 0.85rem;
    color: #888;
}
.qori-tour-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.qori-tour-card-body p {
    color: #666;
    font-size: 0.9rem;
    flex: 1;
}

/* ---- Category Cards ---- */
.qori-category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    transition: all 0.4s ease;
}
.qori-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.qori-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.qori-category-card:hover img { transform: scale(1.1); }
.qori-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,25,35,0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
}
.qori-category-overlay h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 4px;
}
.qori-category-overlay p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

/* ---- Experience Icons ---- */
.qori-experience-item {
    text-align: center;
    padding: 32px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    height: 100%;
}
.qori-experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}
.qori-experience-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--qori-primary), var(--qori-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: #fff;
}

/* ---- Testimonials ---- */
.qori-testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    height: 100%;
    position: relative;
}
.qori-testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--qori-primary);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}
.qori-testimonial-stars {
    color: var(--qori-accent);
    margin-bottom: 12px;
}
.qori-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.qori-testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.qori-testimonial-author h5 {
    font-size: 0.95rem;
    margin: 0;
}
.qori-testimonial-author small {
    color: #999;
}

/* ---- FAQ Accordion ---- */
.qori-faq .accordion-item {
    border: none;
    margin-bottom: 12px;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.qori-faq .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    padding: 20px 24px;
    background: #fff;
    color: var(--qori-dark);
}
.qori-faq .accordion-button:not(.collapsed) {
    background: var(--qori-primary);
    color: #fff;
    box-shadow: none;
}
.qori-faq .accordion-button:focus {
    box-shadow: none;
}
.qori-faq .accordion-body {
    padding: 20px 24px;
    color: #666;
}

/* ---- Gallery ---- */
.qori-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.qori-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.qori-gallery-item:hover img { transform: scale(1.1); }
.qori-gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,25,35,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}
.qori-gallery-item:hover .overlay { opacity: 1; }

/* ---- Contact Form ---- */
.qori-form .form-control, .qori-form .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.qori-form .form-control:focus, .qori-form .form-select:focus {
    border-color: var(--qori-primary);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}
.qori-form label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--qori-dark);
}

/* ---- Footer ---- */
.qori-footer {
    background: var(--qori-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}
.qori-footer h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--qori-font-body);
    font-weight: 600;
}
.qori-footer a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    display: block;
    padding: 4px 0;
    transition: all 0.3s ease;
}
.qori-footer a:hover { color: var(--qori-primary); padding-left: 5px; }
.qori-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    margin-top: 40px;
    font-size: 0.85rem;
}
.qori-payment-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.qori-payment-icons i {
    font-size: 1.8rem;
    opacity: 0.7;
}

/* ---- WhatsApp Float ---- */
.qori-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    z-index: 1040;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
.qori-whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

/* ---- Page Header (inner pages) ---- */
.qori-page-header {
    background: linear-gradient(135deg, var(--qori-dark) 0%, var(--qori-secondary) 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.qori-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.05;
}
.qori-page-header h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    position: relative;
}
.qori-breadcrumb {
    position: relative;
    font-size: 0.9rem;
    opacity: 0.8;
}
.qori-breadcrumb a { color: var(--qori-accent); }

/* ---- Tour Detail ---- */
.qori-tour-gallery-main {
    border-radius: 16px;
    overflow: hidden;
    height: 450px;
}
.qori-tour-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.qori-tour-info-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 100px;
}
.qori-tour-info-box .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--qori-primary);
}
.qori-tour-tabs .nav-link {
    color: var(--qori-text);
    font-weight: 600;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
}
.qori-tour-tabs .nav-link.active {
    background: var(--qori-primary);
    color: #fff;
}
.qori-itinerary-day {
    border-left: 3px solid var(--qori-primary);
    padding-left: 24px;
    margin-bottom: 24px;
    position: relative;
}
.qori-itinerary-day::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 13px;
    height: 13px;
    background: var(--qori-primary);
    border-radius: 50%;
}

/* ---- Blog Cards ---- */
.qori-blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
}
.qori-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.qori-blog-card-img {
    height: 220px;
    overflow: hidden;
}
.qori-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.qori-blog-card:hover .qori-blog-card-img img { transform: scale(1.05); }
.qori-blog-card-body { padding: 24px; }
.qori-blog-date {
    font-size: 0.8rem;
    color: var(--qori-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Destination Cards ---- */
.qori-dest-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 350px;
    cursor: pointer;
    transition: all 0.4s ease;
}
.qori-dest-card:hover { transform: translateY(-5px); }
.qori-dest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.qori-dest-card:hover img { transform: scale(1.08); }
.qori-dest-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,25,35,0.9) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: #fff;
}
.qori-dest-card .overlay h3 { color: #fff; }

/* ---- Reservation Success ---- */
.qori-reservation-success {
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.qori-reservation-success .icon {
    width: 80px;
    height: 80px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: #28a745;
}
.qori-reservation-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--qori-primary);
    letter-spacing: 2px;
}

/* ---- Lazy Load Placeholder ---- */
.qori-lazy {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.qori-lazy.loaded { animation: none; background: none; }

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 6px 30px rgba(37,211,102,0.6); }
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .qori-hero { min-height: 70vh; }
    .qori-section { padding: 50px 0; }
    .qori-tour-gallery-main { height: 300px; }
    .qori-tour-info-box { position: static; margin-top: 24px; }
}
@media (max-width: 767px) {
    .qori-hero { min-height: 60vh; }
    .qori-hero h1 { font-size: 2rem; }
    .qori-category-card { height: 200px; }
    .qori-dest-card { height: 250px; }
    .qori-search-box { padding: 16px; }
}

/* ---- GERCETUR Footer Extensions ---- */
.qori-cert-badge {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    padding: 4px 10px;
    border-radius: 6px;
    color: rgba(255,255,255,0.85);
    transition: all 0.2s;
}
.qori-cert-badge:hover { background: var(--qori-primary); color: #fff; }
.qori-footer-legal-info p { font-size: 0.85rem; line-height: 1.6; }
.qori-payment-item {
    display: inline-block;
    text-align: center;
    margin: 4px 8px 4px 0;
    opacity: 0.8;
}
.qori-payment-item small { font-size: 0.65rem; display: block; }
.qori-libro-reclamaciones-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201,162,39,0.15);
    color: var(--qori-accent);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(201,162,39,0.3);
}
.qori-libro-reclamaciones-btn:hover { background: var(--qori-primary); color: #fff; }

/* ---- Accesibilidad ---- */
.qori-a11y-toolbar {
    position: fixed;
    bottom: 100px;
    left: 16px;
    z-index: 1035;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.qori-a11y-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--qori-secondary);
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s;
}
.qori-a11y-btn:hover { background: var(--qori-primary); transform: scale(1.05); }

/* ---- Cookie Consent ---- */
.qori-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--qori-dark);
    color: #fff;
    z-index: 1060;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.qori-cookie-consent a { color: var(--qori-accent); }

/* ---- Modo oscuro / Alto contraste ---- */
body.qori-dark-mode {
    --qori-light: #1a1a2e;
    --qori-text: #e0e0e0;
    --qori-menu-bg: #16213e;
    --qori-dark: #0a0a14;
    background: #1a1a2e;
    color: #e0e0e0;
}
body.qori-dark-mode .qori-tour-card,
body.qori-dark-mode .qori-experience-item,
body.qori-dark-mode .admin-card,
body.qori-dark-mode .bg-white {
    background: #16213e !important;
    color: #e0e0e0;
}
body.qori-high-contrast {
    --qori-primary: #ffff00;
    --qori-text: #000;
    --qori-light: #fff;
    filter: contrast(1.4);
}
body.qori-font-lg { font-size: 118%; }
body.qori-font-xl { font-size: 135%; }