@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    --primary-color: #2D6A4F;
    --secondary-color: #1B4332;
    --accent-color: #D8F3DC;
    --text-main: #081C15;
    --text-contrast: #F8F9FA;
    --body-bg: #f4f6f5;
    --card-bg: #ffffff;
    --nav-bg: #F9F3E5;
    --section-bg-alt: #ffffff;
    --footer-bg: #0a0a0a;
}

[data-theme="dark"] {
    --primary-color: #52b788;
    --secondary-color: #74c69d;
    --accent-color: #1b4332;
    --text-main: #f8f9fa;
    --body-bg: #0b0f0d;
    --card-bg: #141b17;
    --nav-bg: #0a0e0c;
    --section-bg-alt: #0d1210;
}

/* Overrides para asegurar visibilidad en Modo Oscuro */
[data-theme="dark"] .text-dark, 
[data-theme="dark"] .section-title,
[data-theme="dark"] h1:not(.hero-title), 
[data-theme="dark"] h2, 
[data-theme="dark"] h3 { 
    color: var(--text-main) !important; 
}
[data-theme="dark"] .text-muted { color: #a0a0a0 !important; }
[data-theme="dark"] .bg-light { background-color: #1a221f !important; color: white !important; }
[data-theme="dark"] .modal-content { background-color: var(--card-bg); color: var(--text-main); }
[data-theme="dark"] .form-control { background-color: #0d1210 !important; color: white !important; border: 1px solid #333; }
[data-theme="dark"] .form-label { color: #a0a0a0 !important; }

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--body-bg);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Playfair Display', serif;
}

.navbar-glass {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background: #000;
    color: var(--text-contrast);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    mix-blend-mode: normal;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-weight: 300;
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Galleries */
.gallery-section {
    padding: 6rem 0;
}

.gallery-section:nth-child(even) {
    background-color: var(--section-bg-alt);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

/* Card Styling */
.destination-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--card-bg);
    height: 100%;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.12);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.destination-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--secondary-color);
}

/* Creator Footer */
.creator-footer {
    background: var(--footer-bg);
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.creator-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.15);
}

.creator-social-link {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
}

.creator-social-link.fb-icon:hover {
    color: white;
    background-color: #1877F2;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.4);
}

.creator-social-link.ig-icon:hover {
    color: white;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(220, 39, 67, 0.4);
}

/* Buttons */
.btn-custom {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary-custom {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary-custom:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(27, 67, 50, 0.2);
}

.btn-dest-blue {
    background-color: #045be6; /* Azul vibrante */
    color: white !important;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(4, 91, 230, 0.3);
    border-radius: 4px;
}
.btn-dest-blue:hover {
    background-color: #0348c2;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(4, 91, 230, 0.4);
}

.btn-dest-red {
    background-color: #cb2027; /* Rojo Pin */
    color: white !important;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(203, 32, 39, 0.3);
    border-radius: 4px;
}
.btn-dest-red:hover {
    background-color: #a8171e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(203, 32, 39, 0.4);
}

.btn-dest-green {
    background-color: #8dda3b; /* Verde claro compartir */
    color: white !important;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(141, 218, 59, 0.3);
    border-radius: 4px;
}
.btn-dest-green:hover {
    background-color: #76bc2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(141, 218, 59, 0.4);
}
/* Botón WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    color: white;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}
/* Pinterest Grid Gallery */
.pinterest-grid {
    column-count: 3;
    column-gap: 15px;
    padding: 15px 0;
}
.pinterest-item {
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pinterest-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.pinterest-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}
.pinterest-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 20px 15px 10px;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.pinterest-item:hover .pinterest-caption {
    opacity: 1;
}

/* Responsive */
@media (max-width: 991px) {
    .pinterest-grid { column-count: 2; }
}
@media (max-width: 575px) {
    .pinterest-grid { column-count: 1; }
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2.2rem; }
}

/* Botón Scroll to Top */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--body-bg);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle-btn {
    border-color: rgba(255,255,255,0.1);
}

.theme-toggle-btn:hover {
    transform: rotate(15deg);
    background: var(--accent-color);
}

