/* PUCACUNGA TOURS - Custom CSS */

/* ===== VARIABLES ===== */
:root {
    --primary-green: #228B22;
    --secondary-green: #32CD32;
    --accent-yellow: #FFD700;
    --dark-green: #006400;
    --light-green: #90EE90;
    --amazon-brown: #8B4513;
    --river-blue: #4682B4;
    --sunset-orange: #FF8C00;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green)) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-yellow) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* ===== TOURS SECTION ===== */
.tours-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.tour-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.tour-header {
    padding: 1.5rem;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tour-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.tour-body {
    padding: 2rem;
}

.tour-section h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.tour-section ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tour-section ul li:last-child {
    border-bottom: none;
}

.tour-section .fa-check {
    font-size: 0.9rem;
}

.price-box {
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
    font-weight: 500;
}

.price-box ul li {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 0;
}

/* Tour specific colors */
.tour-card.border-success .tour-header {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.tour-card.border-warning .tour-header {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.tour-card.border-info .tour-header {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('../images/hero-amazon.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.hero-overlay {
    text-align: center;
    z-index: 2;
}

.hero-section h1 {
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 30px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

/* ===== ANIMATIONS ===== */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-green);
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
    width: 100%;
}

/* Image error handling */
.card-img-top[src*="unsplash"] {
    background: linear-gradient(135deg, #228B22, #32CD32);
}

.card-img-top[src*="unsplash"]:not([src$=".jpg"]) {
    background: linear-gradient(135deg, #4682B4, #1E90FF);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* ===== LANGUAGE DROPDOWN ===== */
.language-dropdown {
    position: relative;
}

.language-dropdown .dropdown-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-dropdown .dropdown-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.language-dropdown .dropdown-menu {
    background: rgba(0,0,0,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.language-dropdown .dropdown-item {
    color: white;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.language-dropdown .dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: #ffd700;
}

.language-dropdown .dropdown-item i {
    width: 15px;
    text-align: center;
}

#currentLang {
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== AMAZON-SPECIFIC IMAGE STYLES ===== */
.card-img-top[src*="delfines"] {
    background: linear-gradient(135deg, #4682B4, #1E90FF);
}

.card-img-top[src*="aves"] {
    background: linear-gradient(135deg, #FF8C00, #FFD700);
}

.card-img-top[src*="selva"] {
    background: linear-gradient(135deg, #228B22, #32CD32);
}

.card-img-top[src*="hero"] {
    background: linear-gradient(135deg, #006400, #228B22);
}

.activity-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: all 0.3s ease;
}

.activity-card:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-5px);
}

.activity-card i {
    transition: all 0.3s ease;
}

.activity-card:hover i {
    transform: scale(1.2);
    color: var(--dark-green);
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent-yellow), #FFA500);
    color: #333;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #FFA500, var(--accent-yellow));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.4);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-green);
}

/* ===== FEATURES ===== */
.feature-box {
    text-align: center;
    padding: 30px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box i {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-box:hover i {
    transform: scale(1.2);
    color: var(--accent-yellow);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.testimonial-card .stars {
    color: var(--accent-yellow);
    margin-bottom: 15px;
}

/* ===== CONTACT FORM ===== */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(34,139,34,0.25);
}

/* ===== FLOATING BUTTONS ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-green);
    transform: translateY(-5px);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

footer a {
    color: white;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent-yellow);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float .btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .feature-box {
        padding: 20px;
    }
    
    .feature-box i {
        font-size: 2.5rem;
    }
}

/* ===== SPECIAL EFFECTS ===== */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.overlay {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
}

/* ===== LOADING ANIMATION ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

/* ===== FLOATING BUTTONS ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-float .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.language-float {
    position: fixed;
    bottom: 30px;
    right: 95px;
    z-index: 1000;
}

.language-float .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border: 2px solid white;
}

.language-float .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.language-float .dropdown-menu {
    min-width: 150px;
    margin-bottom: 10px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== GOOGLE REVIEWS STYLES ===== */
.google-reviews-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
}

.google-reviews-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.google-reviews-title h3 {
    font-size: 22px;
    font-weight: 500;
    color: #202124;
    margin: 0;
}

.google-rating-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
}

.rating-stars {
    display: flex;
    align-items: center;
}

.stars {
    color: #fbbc04;
    font-size: 16px;
    letter-spacing: 2px;
}

.rating-text {
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
}

.review-count {
    color: #70757a;
    font-size: 14px;
}

.google-review-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 0;
}

.google-review-item:last-child {
    border-bottom: none;
}

.google-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.google-review-author {
    font-weight: 500;
    color: #202124;
    font-size: 16px;
}

.google-review-date {
    color: #70757a;
    font-size: 14px;
}

.google-review-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.google-review-text {
    color: #202124;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
}

.google-review-source {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.source-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4285f4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.source-text {
    color: #70757a;
    font-size: 13px;
}

/* ===== GOOGLE REVIEWS CAROUSEL ===== */
.reviews-carousel {
    position: relative;
    margin-bottom: 20px;
}

.reviews-container {
    overflow: hidden;
    border-radius: 8px;
    max-height: 400px; /* Limitar altura para 3 reseñas visibles */
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #4285f4;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #3366cc;
    transform: scale(1.1);
}

.google-review-item {
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateX(100%);
}

.google-review-item.active {
    opacity: 1;
    transform: translateX(0);
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar, .whatsapp-float, .language-float, .back-to-top, .hero-scroll-indicator {
        display: none;
    }
    
    .hero-section {
        height: auto;
        padding: 50px 0;
    }
}
