:root {
    --primary-color: #77bbbb;
    --primary-dark: #5fa3a3;
    --primary-darker: #4a8b8b;
    --primary-light: #8fd3d3;
    --accent-color: #6183df;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.4);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-bs-theme="dark"] {
    --glass-bg: rgba(26, 26, 26, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.lead, h1 {
    user-select: none;
}

/* Scroll Progress */
.scroll-progress-container {
    position: fixed;
    top: 0;
    z-index: 2200;
    width: 100%;
    height: 4px;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    width: 0%;
    transition: width 0.3s ease;
}

span {
    user-select: none;
}

/* Glassmorphism Nav */
.custom-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.logo-main {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-link-custom {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link-text {
    position: relative;
    z-index: 1;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transition: width 0.3s ease;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 100%;
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(119, 187, 187, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(247, 252, 252, 0.95) 0%, rgba(232, 246, 246, 0.9) 100%);
}

[data-bs-theme="dark"] .hero-overlay {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.9) 100%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-title {
    background: linear-gradient(135deg, #333, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-bs-theme="dark"] .hero-title {
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    color: #666;
}

[data-bs-theme="dark"] .hero-description {
    color: #ccc;
}

.custom-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.5rem 1.2rem;
    border: none;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.explore-btn, .contact-btn {
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: none;
}

.explore-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(119, 187, 187, 0.3);
}

.contact-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.contact-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.explore-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Gallery Section */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.section-subtitle {
    font-size: 0.9rem;
}

.filter-group {
    background: #f0f8f8;
    padding: 0.3rem;
    border-radius: 30px;
}

[data-bs-theme="dark"] .filter-group {
    background: #333;
}

.btn-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    transition: var(--transition-smooth);
}

.btn-custom:hover, .btn-custom.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(119, 187, 187, 0.2);
}

.btn-outline-custom {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    transition: var(--transition-smooth);
}

.btn-outline-custom:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Gallery Cards */
.gallery-card {
    transition: var(--transition-smooth);
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.gallery-img {
    transition: transform 0.6s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.05);
}

/* Efecto overlay SOLO para imágenes, NO para videos */
.gallery-item[data-category="photo"] .item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(119, 187, 187, 0.9));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 6;
    padding: 1.5rem;
}

.gallery-item[data-category="photo"]:hover .item-overlay {
    opacity: 1;
}

.gallery-item[data-category="video"] .item-overlay {
    display: none !important;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.75rem;
}

.view-btn, .play-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.view-btn:hover, .play-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.card-content {
    background: transparent;
}

.card-title {
    color: #333;
    transition: color 0.3s ease;
}

[data-bs-theme="dark"] .card-title {
    color: #fff;
}

.card-subtitle {
    font-size: 0.85rem;
}

.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-card:hover .gallery-video {
    transform: scale(1.02);
}

/* Counter Badge */
.counter-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 0.9rem;
}

.counter-number {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Global Gallery Item Hover Effect - SOLO para imágenes */
.gallery-item[data-category="photo"] .item-hover-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 5;
}

.gallery-item[data-category="photo"]:hover .item-hover-mask {
    opacity: 1;
}

/* Para videos: NO mostrar item-hover-mask */
.gallery-item[data-category="video"] .item-hover-mask {
    display: none !important;
}

/* Custom Video Player UI */
.video-player-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    align-items: end;
    padding: 12px;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.gallery-item:hover .custom-video-controls {
    opacity: 1;
}

.video-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 5px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.video-btn:hover {
    color: var(--primary-color);
}

.video-progress-container {
    flex-grow: 1;
    height: 6px;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    position: relative;
    border-radius: 10px;
}

.video-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    border-radius: 10px;
}

/* Fullscreen Icon - VISIBLE SOLO para videos */
.gallery-item[data-category="video"] .img-fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Para imágenes: NO mostrar fullscreen button */
.gallery-item[data-category="photo"] .img-fullscreen-btn {
    display: none !important;
}

.gallery-item[data-category="video"]:hover .img-fullscreen-btn {
    opacity: 1;
}

.img-fullscreen-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Base Video Style */
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer */
.footer-brand {
    display: flex;
    align-items: center;
}

.footer-tagline {
    font-size: 0.9rem;
}

.footer-title {
    letter-spacing: 0.5px;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-link {
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary-dark) !important;
}

/* Redes Sociales*/
.social-link {
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    width: fit-content;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
}

[data-bs-theme="dark"] .social-link {
    color: #ccc;
}

.social-link:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.social-link:hover::before {
    transform: translateY(-50%) scale(1.1);
}

.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Toast Container */
.toast-container {
    z-index: 2300;
}

/* Lightbox Modal */
#lightboxModal .modal-content {
    background: transparent;
    border: none;
}

.lightbox-content {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.lightbox-content img,
.lightbox-content video {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* Form Styles */
textarea {
    resize: vertical;
    max-height: 200px;
}

/* Protection & Legal Notice */
.protection-notice {
    background: rgba(var(--bs-primary-rgb), 0.05);
    border: 1px dashed var(--primary-color);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    margin: 4rem 0;
}

.legal-notice-section {
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    color: var(--bs-secondary-color);
}

:fullscreen .custom-video-controls,
:-webkit-full-screen .custom-video-controls {
    opacity: 0;
    transition: opacity 0.5s ease;
    background: linear-gradient(transparent, rgba(0,0,0,0.9)); 
}

.show-controls .custom-video-controls {
    opacity: 1 !important;
}

:fullscreen .item-hover-mask,
:-webkit-full-screen .item-hover-mask {
    display: none !important;
}

.hide-cursor {
    cursor: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .filter-group {
        align-self: stretch;
        justify-content: center;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .social-link {
        padding-left: 32px;
        justify-content: flex-start;
        width: 100%;
    }
    
    .social-link:hover {
        transform: none;
    }
}

/* Honeypot field */
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Spinner */
#submitBtn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#submitSpinner {
    width: 20px;
    height: 20px;
}

/* Validación  */
.form-control:invalid {
    border-color: #dc3545;
}

.form-control:valid {
    border-color: #28a745;
}

/* Focus states */
.form-input-custom:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(119, 187, 187, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-card {
        margin: 0 10px;
    }
    
    .contact-form-wrapper {
        margin-top: 2rem;
    }
}
