/* MalacaraEsquí Custom Styles */

:root {
    --primary-color: #1e293b;
    --secondary-color: #334155;
    --accent-color: #06b6d4;
    --dark-color: #0f172a;
    --light-color: #f1f5f9;
    --neutral-color: #cbd5e1;
    --background-main: #f1f5f9;
    --text-muted: #64748b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--background-main);
    color: var(--primary-color);
}

/* Header and Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Cards and Components */
.card {
    border: 1px solid var(--neutral-color);
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.1);
    transform: translateY(-5px);
}

.btn {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0891b2 100%);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

/* Activity Cards */
.activity-card {
    border: 1px solid var(--neutral-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.activity-card:hover {
    box-shadow: 0 12px 28px rgba(30, 41, 59, 0.12);
    border-color: var(--accent-color);
}

.activity-icon {
    padding: 1rem;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.activity-card:hover .activity-icon {
    background: rgba(6, 182, 212, 0.2);
    transform: scale(1.1);
}

/* Resort Cards */
.resort-card {
    border: 1px solid var(--neutral-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #f8fafc;
}

.resort-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 41, 59, 0.15);
    border-color: var(--accent-color);
}

.resort-card img {
    transition: transform 0.4s ease;
}

.resort-card:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline;
}

footer .input-group-sm input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

footer .input-group-sm input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

footer .input-group-sm input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    color: white;
    box-shadow: none;
}

/* Footer Columns */
.footer-column {
    transition: all 0.3s ease;
}

.footer-column h5,
.footer-column h6 {
    color: white;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.footer-column h5 i,
.footer-column h6 i {
    vertical-align: middle;
}

/* Footer Links */
.footer-links a {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
}

.footer-links a span {
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-links a:hover span {
    transform: translateX(3px);
}

/* Footer Info */
.footer-info {
    line-height: 1.8;
}

.footer-info a {
    transition: all 0.3s ease;
}

.footer-info a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline;
}

/* Footer Hours */
.footer-hours {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 10px;
}

.footer-hours p {
    margin: 0;
}

.footer-hours strong {
    color: var(--accent-color);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px) scale(1.3);
    color: white;
}

/* Form Styles */
.form-control, .form-select {
    border: 2px solid var(--neutral-color);
    border-radius: 10px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.15);
    background: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 992px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .col-lg-4,
    .col-lg-6 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 100px 0 60px 0;
        min-height: auto;
    }
    
    .activity-card,
    .resort-card {
        margin-bottom: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    footer .row {
        margin-bottom: 1.5rem;
    }
    
    footer .col-md-6 {
        text-align: center;
    }
    
    footer .col-md-6:first-child {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 1.8rem;
    }
    
    .display-5 {
        font-size: 1.3rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    .h4 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .card, .activity-card, .resort-card {
        margin-bottom: 1rem;
    }
    
    footer {
        padding: 2rem 0;
    }
    
    footer h5, footer h6 {
        font-size: 1rem;
    }
    
    footer .social-links a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
    }
    
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Text Utilities */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.shadow-soft {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.border-radius-lg {
    border-radius: 15px;
}

.border-radius-xl {
    border-radius: 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0891b2;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.img-fluid {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.15);
}

/* Accessibility */
.btn:focus,
.btn-link:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Utility spacing for responsive */
@media (max-width: 768px) {
    .mt-md-5 {
        margin-top: 2rem !important;
    }
    
    .mb-md-4 {
        margin-bottom: 1.5rem !important;
    }
}

/* Hover effects for cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Blog post cards */
.card .card-img-top {
    transition: transform 0.3s ease;
}

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

/* Ribbon for packs */
.ribbon {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    font-weight: bold;
    font-size: 0.9rem;
}
