/* ================================================
   TOURISMART - ESTILOS PERSONALIZADOS
   ================================================ */

:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --success-dark: #229954;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gradient-primary: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --gradient-success: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ================================================
   ESTILOS GENERALES
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ================================================
   NAVBAR
   ================================================ */

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero-section {
    position: relative;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section h1 {
    animation: fadeInUp 0.8s ease;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-section p {
    animation: fadeInUp 0.8s ease 0.2s backwards;
    font-size: 1.2rem;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ================================================
   FEATURED DESTINATIONS
   ================================================ */

.featured-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.featured-card .card-img-top {
    transition: transform 0.3s ease;
}

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

/* ================================================
   DESTINATION CARDS
   ================================================ */

.destination-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.destination-card .card-img-top {
    transition: transform 0.3s ease;
}

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

.destination-card .badge {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ================================================
   EXPERIENCE CARDS
   ================================================ */

.experience-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

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

.testimonial-author {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* ================================================
   PAGE HEADER
   ================================================ */

.page-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-bottom: 4px solid #2c3e50;
}

.page-header h1 {
    font-weight: 800;
    letter-spacing: -1px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ================================================
   BUTTONS
   ================================================ */

.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9 0%, #1e6fa8 100%);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-outline-primary {
    color: #3498db;
    border-color: #3498db;
    border-width: 2px;
}

.btn-outline-primary:hover {
    background-color: #3498db;
    border-color: #3498db;
}

/* ================================================
   CARDS
   ================================================ */

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    font-weight: 600;
}

/* ================================================
   FOOTER
   ================================================ */

footer {
    background-color: #2c3e50;
    border-top: 4px solid #3498db;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: #3498db !important;
    text-decoration: underline;
}

footer .social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #34495e;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

footer .social-icon:hover {
    background-color: #3498db;
    transform: translateY(-4px);
}

/* ================================================
   FORMS
   ================================================ */

.form-control,
.form-select {
    border-radius: 8px;
    border: 1.5px solid #bdc3c7;
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

textarea.form-control {
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ================================================
   TABLES
   ================================================ */

.table {
    border-collapse: collapse;
}

.table thead {
    background-color: #2c3e50;
    color: white;
}

.table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ================================================
   MODALS
   ================================================ */

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 12px 12px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* ================================================
   BADGES
   ================================================ */

.badge {
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-primary {
    background-color: #3498db;
}

.badge-success {
    background-color: #27ae60;
}

.badge-danger {
    background-color: #e74c3c;
}

/* ================================================
   ALERTS
   ================================================ */

.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* ================================================
   ANIMATIONS
   ================================================ */

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

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

@keyframes slide-in {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ================================================
   ADMIN PANEL SPECIFIC
   ================================================ */

.nav-link-admin {
    color: #ecf0f1 !important;
    padding: 12px 20px !important;
    display: block;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-link-admin:hover,
.nav-link-admin.active {
    background-color: #34495e;
    border-left-color: #3498db;
    color: #fff !important;
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        margin-bottom: 10px;
        width: 100%;
    }

    .featured-card,
    .destination-card {
        margin-bottom: 20px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .card {
        margin-bottom: 20px;
    }

    footer {
        text-align: center;
    }

    footer ul {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 10px 0;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* ================================================
   UTILITIES
   ================================================ */

.text-gradient {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.transition-all {
    transition: all 0.3s ease;
}

.rounded-custom {
    border-radius: 12px;
}

/* ================================================
   SCROLLBAR
   ================================================ */

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}
