/* Custom CSS for ECORUTA TOURS */

/* Variables de diseño */
:root {
    --primary-green: #00BE7F;
    --primary-blue: #60B6FE;
    --white: #FFFFFF;
    --text-gray: #666666;
    --background-light: #F9FAF9;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --transition-default: all 0.3s ease;
}

/* Fuentes globales */
body {
    font-family: 'Gotham', 'Poppins', sans-serif;
    color: var(--text-gray);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Hatsch Sans', 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Header scroll effect */
.header-scrolled {
    background-color: rgba(249, 250, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 190, 127, 0.1);
}

/* Hero section parallax effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Package card hover effects */
.package-card {
    transition: var(--transition-default);
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Button animations */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: var(--transition-default);
    background-color: var(--primary-green);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover:before {
    left: 100%;
}

/* Gallery image overlay */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 190, 127, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover:before {
    opacity: 1;
}

.gallery-item:after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover:after {
    opacity: 1;
}

/* Testimonial cards */
.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--background-light) 100%);
    border-left: 4px solid var(--primary-green);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition-default);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* FAQ accordion */
.faq-item {
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

.faq-question {
    cursor: pointer;
    transition: var(--transition-default);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: var(--primary-green);
    background-color: var(--background-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.faq-answer.active {
    max-height: 500px;
    padding-bottom: 1rem;
}

/* Loading spinner */
.spinner {
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* WhatsApp button pulse */
.whatsapp-pulse {
    animation: pulse 2s infinite;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: var(--primary-green);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-default);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

/* Custom aspect ratios */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.aspect-w-16 > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Form styles */
.form-input {
    transition: var(--transition-default);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    width: 100%;
    outline: none;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 190, 127, 0.1);
    border-color: var(--primary-green);
}

.form-label {
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    display: block;
}

/* Package price highlight */
.price-highlight {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #4097E0 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(96, 182, 254, 0.2);
}

/* Service icons */
.service-icon {
    transition: var(--transition-default);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-icon:hover {
    transform: rotate(10deg) scale(1.1);
}

/* Destination cards */
.destination-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition-default);
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.destination-overlay {
    background: linear-gradient(45deg, rgba(0, 190, 127, 0.8), rgba(96, 182, 254, 0.8));
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
}

/* Stats counter animation */
.counter {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-green);
    font-family: 'Hatsch Sans', 'Montserrat', sans-serif;
}

/* Image lazy loading placeholder */
.img-placeholder {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Newsletter signup */
.newsletter-form {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    box-shadow: 0 8px 16px rgba(0, 190, 127, 0.15);
}

/* Social media hover effects */
.social-link {
    transition: var(--transition-default);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-100);
    color: var(--text-dark);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    background-color: var(--primary-blue);
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
        color: black;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-light {
        color: #000000;
    }
    
    .bg-light {
        background-color: #ffffff;
    }
}

/* Estilos para tarjetas de valor */
.value-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition-default);
    text-align: center;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition-default);
    background-color: var(--primary-blue);
    color: white;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    background-color: var(--primary-green);
}

/* Botones y acciones */
.btn {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: var(--transition-default);
}

.btn-eco {
    background-color: var(--primary-green);
    color: white;
}

.btn-eco:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 190, 127, 0.2);
}

.btn-eco-outline {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    background-color: transparent;
}

.btn-eco-outline:hover {
    background-color: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

.btn-eco-blue {
    background-color: var(--primary-blue);
    color: white;
}

.btn-eco-blue:hover {
    background-color: #4097E0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(96, 182, 254, 0.2);
}

/* Secciones y contenedores */
.section {
    padding: 5rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.section-title h2 span {
    color: var(--primary-green);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
}

.section-description {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-gray);
}

/* Estilos para el menú desplegable del usuario */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.user-dropdown-btn:hover {
    background-color: var(--gray-100);
}

.user-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    width: 200px;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 50;
    overflow: hidden;
    transform-origin: top right;
    transition: all 0.2s ease;
}

.user-dropdown-menu.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.user-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-gray);
    transition: all 0.2s ease;
}

.user-dropdown-menu a:hover {
    background-color: var(--gray-100);
}

.user-dropdown-menu a i {
    width: 1.5rem;
    text-align: center;
    margin-right: 0.5rem;
}

.user-dropdown-menu a.logout {
    color: #ef4444;
    border-top: 1px solid var(--gray-200);
}

.user-dropdown-menu a.logout:hover {
    background-color: #fee2e2;
}
