/* ==================================
   SMA - Staff Models Agency
   Custom Styles
   ================================== */

:root {
    /* Colors */
    --primary-gold: #D4AF37;
    --secondary-gold: #C9A55C;
    --dark-bg: #0a0a0a;
    --light-bg: #f8f8f8;
    --text-dark: #1a1a1a;
    --text-light: #e0e0e0;
    --text-muted: #999;
    --overlay: rgba(0, 0, 0, 0.7);
    
    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 120px 0;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ==================================
   Typography
   ================================== */

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--primary-gold);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.text-light-custom {
    color: var(--text-light);
    opacity: 0.85;
}

/* ==================================
   Navigation
   ================================== */

.navbar {
    padding: 1.5rem 0;
    background: transparent;
    transition: var(--transition-smooth);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile navbar improvements */
@media (max-width: 991px) {
    .navbar {
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(5px);
    }
    
    .navbar.scrolled,
    .navbar.menu-open {
        background: rgba(10, 10, 10, 1) !important;
    }
    
    /* Instant black when collapse is transitioning */
    .navbar:has(.navbar-collapse.collapsing),
    .navbar:has(.navbar-collapse.show) {
        background: rgba(10, 10, 10, 1) !important;
    }
    
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.98);
        padding: 1.5rem;
        margin-top: 1rem;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
}

.navbar.scrolled .logo-img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.2rem !important;
    position: relative;
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--primary-gold);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-gold) !important;
}

/* ==================================
   Hero Section
   ================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1509631179647-0177331693ae?w=1600') center/cover;
    opacity: 0.15;
    z-index: 0;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--primary-gold);
    font-weight: 600;
    font-style: italic;
    display: inline-block;
    position: relative;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem; 
    opacity: 0.8;
}

.hero-subtitle-2 {
    font-size: 1.2rem;
    color: var(--text-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 3rem;
    margin-top: 0;
    opacity: 0.8;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-custom {
    background: var(--primary-gold);
    color: var(--dark-bg);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    background: var(--secondary-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-gold);
    padding: 1rem 2.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.btn-outline-custom:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 10px;
    background: var(--primary-gold);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

/* ==================================
   Sections
   ================================== */

.section-padding {
    padding: var(--section-padding);
}

.bg-dark {
    background: var(--dark-bg);
}

.bg-light {
    background: var(--light-bg);
}

.bg-light .section-title {
    color: var(--text-dark);
}

.bg-light .section-subtitle {
    color: var(--primary-gold);
}

.bg-gradient {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.bg-black {
    background: #000;
}

/* ==================================
   Modelos Section
   ================================== */

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gold);
    color: var(--dark-bg);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.modelo-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    aspect-ratio: 2/3;
    background: #1a1a1a;
}

.photo-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(212, 175, 55, 0.9);
    color: var(--dark-bg);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.photo-count-badge i {
    margin-right: 0.3rem;
}

.modelo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.modelo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.3) 100%);
    padding: 2rem;
    transform: translateY(60%);
    transition: var(--transition-smooth);
    backdrop-filter: blur(2px);
}

.modelo-card:hover .modelo-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.9) 70%, rgba(0,0,0,0.5) 100%);
}

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

.modelo-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.modelo-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.stat-item {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-item i {
    color: var(--primary-gold);
    margin-right: 0.3rem;
}

.modelo-description {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.85;
    line-height: 1.6;
}

.modelo-instagram {
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.5rem;
    transition: var(--transition-fast);
    font-weight: 500;
}

.modelo-instagram:hover {
    color: var(--secondary-gold);
    transform: translateX(3px);
}

.modelo-instagram i {
    margin-right: 0.3rem;
}

/* ==================================
   Timeline
   ================================== */

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--primary-gold);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem; /* More defined gap */
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 2rem 2.5rem;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    flex-shrink: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.timeline-categoria {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.timeline-description {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.timeline-photo-count {
    color: var(--primary-gold);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    font-weight: 500;
}

.timeline-image {
    width: 45%;
    aspect-ratio: 16/9;
    border-radius: 0;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-image img {
    transform: scale(1.1);
}

.timeline-marker {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: var(--primary-gold);
    border: 4px solid var(--light-bg);
    border-radius: 50%;
    z-index: 2;
}

/* Timeline Images Grid */
.timeline-images-container {
    width: 45%;
    max-width: 500px;
    flex-shrink: 0;
}

/* Single image timeline style */
.timeline-single-image {
    width: 45%;
    max-width: 500px;
    flex-shrink: 0;
}

.timeline-single-image .timeline-media-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
    aspect-ratio: 3/4;
    max-height: 380px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
}

.timeline-single-image .timeline-media-wrapper:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    transform: translateY(-3px);
}

.timeline-single-image .timeline-gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.timeline-single-image .timeline-media-wrapper:hover .timeline-gallery-thumb {
    transform: scale(1.03);
}

/* Media count badge */
.timeline-media-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(212, 175, 55, 0.95);
    color: var(--dark-bg);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.timeline-media-badge i {
    margin-right: 0.4rem;
}

.timeline-images-grid {
    display: grid;
    gap: 0.5rem;
    border-radius: 0;
    overflow: hidden;
    max-height: 380px;
}

.timeline-images-grid[data-count="1"] {
    grid-template-columns: 1fr;
}

.timeline-images-grid[data-count="1"] .timeline-gallery-thumb {
    height: 280px;
}

.timeline-images-grid[data-count="2"] {
    grid-template-columns: 1fr 1fr;
}

.timeline-images-grid[data-count="2"] .timeline-gallery-thumb {
    height: 180px;
}

.timeline-images-grid[data-count="3"] {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.timeline-images-grid[data-count="3"] .timeline-gallery-thumb:first-child {
    grid-row: 1 / 3;
    height: 100%;
}

.timeline-images-grid[data-count="3"] .timeline-gallery-thumb {
    height: 185px;
}

.timeline-images-grid[data-count="4"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.timeline-images-grid[data-count="4"] .timeline-gallery-thumb {
    height: 185px;
}

.timeline-images-grid[data-count="5"],
.timeline-images-grid[data-count="6"] {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.timeline-images-grid[data-count="5"] .timeline-gallery-thumb,
.timeline-images-grid[data-count="6"] .timeline-gallery-thumb {
    height: 185px;
}

.timeline-gallery-thumb {
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    display: block;
    background: #f0f0f0;
}

.timeline-gallery-thumb:hover {
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Video thumbnail styling */
.timeline-media-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.timeline-gallery-thumb.is-video {
    filter: brightness(0.8);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-size: 20px;
    pointer-events: none;
    z-index: 2;
    transition: var(--transition-smooth);
}

.timeline-media-wrapper:hover .video-play-icon {
    background: var(--primary-gold);
    transform: translate(-50%, -50%) scale(1.1);
}

.timeline-media-wrapper:hover .timeline-gallery-thumb.is-video {
    filter: brightness(0.6);
}

/* Mobile timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px; /* Closer to edge */
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: column !important;
        align-items: flex-start;
        justify-content: flex-start;
        padding-left: 50px; /* Reduced from 60px */
        padding-right: 0;
        gap: 0;
    }
    
    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 10px); /* Small right margin */
        max-width: 100%;
        text-align: left !important;
        padding: 1.5rem;
        padding-bottom: 1rem;
        order: 1;
    }
    
    .timeline-images-container,
    .timeline-single-image {
        width: calc(100% - 10px); /* Match card width */
        max-width: 100%;
        margin-top: 0;
        margin-right: 0;
        order: 2;
    }
    
    .timeline-marker {
        left: 20px; /* Match line position */
        top: 30px;
    }
    
    .timeline-single-image .timeline-media-wrapper {
        max-height: 450px;
        aspect-ratio: 4/5;
        border-radius: 0;
    }
    
    .timeline-media-badge {
        top: 10px;
        right: 10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .timeline-images-grid {
        max-height: none;
    }
    
    .timeline-gallery-thumb {
        height: 150px !important;
    }
    
    .timeline-images-grid[data-count="3"] .timeline-gallery-thumb:first-child {
        height: 150px !important;
    }
}

/* ==================================
   About Section
   ================================== */

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: 0;
}

.rounded-custom {
    border-radius: 0 !important;
}

.about-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary-gold);
    color: var(--dark-bg);
    padding: 2rem;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.3;
    margin-top: 0.5rem;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* ==================================
   Services / Management
   ================================== */

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    height: 100%;
}

.service-card:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--primary-gold);
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--primary-gold);
    color: var(--dark-bg);
    transform: rotate(360deg);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
    opacity: 0.8;
    line-height: 1.7;
}

/* ==================================
   Tendencias
   ================================== */

.tendencia-card {
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tendencia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.tendencia-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.tendencia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.tendencia-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tendencia-category {
    display: inline-block;
    background: var(--primary-gold);
    color: var(--dark-bg);
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.tendencia-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.tendencia-excerpt {
    color: var(--text-light);
    opacity: 0.8;
    line-height: 1.7;
    flex-grow: 1;
}

.tendencia-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.tendencia-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tendencia-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: auto;
    transition: var(--transition-fast);
}

.tendencia-link:hover {
    color: var(--secondary-gold);
}

/* ==================================
   Eventos
   ================================== */

.evento-card {
    background: #fff;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.evento-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.evento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.evento-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-gold);
    color: var(--dark-bg);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.evento-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.evento-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.evento-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.info-item i {
    color: var(--primary-gold);
    width: 20px;
}

.evento-description {
    color: var(--text-muted);
    line-height: 1.7;
    flex-grow: 1;
}

.evento-cta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.evento-cta a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.evento-cta a:hover {
    color: var(--secondary-gold);
}

/* ==================================
   Contact
   ================================== */

.contact-info {
    padding: 2rem 0;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary-gold);
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
    opacity: 0.8;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    color: var(--primary-gold);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
    transform: translateY(-5px);
}

.contact-form .form-control,
.contact-form .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-light);
    padding: 1rem;
    border-radius: 0;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-gold);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.contact-form .form-floating > label {
    color: var(--text-muted);
}

.contact-form .form-floating > .form-control:focus ~ label,
.contact-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-gold);
}

/* ==================================
   Footer
   ================================== */

.footer-logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-gold);
    opacity: 1;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-light);
    border-radius: 50px 0 0 50px;
    padding: 0.75rem 1.5rem;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.75rem 1.5rem;
}

/* ==================================
   Responsive
   ================================== */

@media (max-width: 991px) {
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 5rem);
    }
    
    .section-title {
        font-size: clamp(2rem, 4vw, 3.5rem);
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .about-badge {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
}

/* ==================================
   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 Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================================
   Lightbox Gallery
   ================================== */

.lightbox-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-gallery.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

/* Mobile tap indicators - show where to tap to exit */
@media (max-width: 768px) {
    .lightbox-overlay::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: 4px solid transparent;
        pointer-events: none;
        animation: tapIndicatorPulse 2s ease-in-out infinite;
        z-index: 1;
        border-radius: 8px;
    }
    
    /* Corner indicators */
    .lightbox-overlay::after {
        content: 'Toca aquí para cerrar';
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 255, 200, 0.15);
        color: rgba(0, 255, 200, 0.95);
        padding: 0.6rem 1.2rem;
        border-radius: 25px;
        font-size: 0.85rem;
        font-weight: 500;
        border: 2px solid rgba(0, 255, 200, 0.5);
        animation: tapTextPulse 2s ease-in-out infinite;
        pointer-events: none;
        z-index: 100003;
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 20px rgba(0, 255, 200, 0.3);
    }
    
    /* Fade out after 3 seconds */
    .lightbox-gallery.hints-hidden .lightbox-overlay::before,
    .lightbox-gallery.hints-hidden .lightbox-overlay::after {
        animation: tapIndicatorFadeOut 0.5s ease-out forwards;
    }
}

@keyframes tapIndicatorPulse {
    0%, 100% {
        border-color: rgba(0, 255, 200, 0.3);
        box-shadow: inset 0 0 40px rgba(0, 255, 200, 0.1),
                    0 0 40px rgba(0, 255, 200, 0.1);
    }
    50% {
        border-color: rgba(0, 255, 200, 0.6);
        box-shadow: inset 0 0 60px rgba(0, 255, 200, 0.2),
                    0 0 60px rgba(0, 255, 200, 0.2);
    }
}

@keyframes tapTextPulse {
    0%, 100% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}

@keyframes tapIndicatorFadeOut {
    to {
        opacity: 0;
        border-color: transparent;
        box-shadow: none;
    }
}

.lightbox-content {
    position: relative;
    z-index: 100000;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 100px;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 70vw;
    max-height: 70vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxZoom 0.3s ease-out;
}

.lightbox-video {
    width: 80vw;
    height: 60vh;
    max-width: 1200px;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxZoom 0.3s ease-out;
}

/* Local video wrapper with custom controls */
.lightbox-video-wrapper {
    position: relative;
    width: 80vw;
    height: 60vh;
    max-width: 1200px;
}

.lightbox-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

/* Hide picture-in-picture button */
video::-webkit-media-controls-picture-in-picture-button {
    display: none !important;
}

video::--webkit-media-controls-overlay-enclosure {
    display: none !important;
}

.video-play-pause-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--dark-bg);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 10;
    backdrop-filter: blur(5px);
}

.video-play-pause-btn:hover {
    background: var(--primary-gold);
    transform: translateX(-50%) scale(1.1);
}

.video-play-pause-btn i {
    margin-left: 3px; /* Adjust play icon centering */
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    display: none !important; /* Hide X completely */
}

.lightbox-prev,
.lightbox-next {
    display: none !important; /* Hide arrows completely */
}

/* Subtle navigation hints */
.lightbox-hints {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    z-index: 100002;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.lightbox-gallery.hints-hidden .lightbox-hints {
    opacity: 0;
}

.lightbox-hints i {
    color: var(--primary-gold);
    margin: 0 0.3rem;
}

.lightbox-hints kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8em;
}

.mobile-hint {
    display: none;
}

@media (max-width: 768px) {
    .desktop-hint {
        display: none;
    }
    
    .mobile-hint {
        display: inline;
    }
    
    .lightbox-hints {
        bottom: 60px;
        font-size: 0.75rem;
        padding: 0.6rem 1.2rem;
    }
}

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

.lightbox-info {
    margin-top: 2rem;
    text-align: center;
    color: white;
}

.lightbox-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
}

.lightbox-counter {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

/* Mobile lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        padding: 0 20px;
    }
    
    .lightbox-image-container {
        max-width: 90vw;
    }
    
    .lightbox-image {
        max-height: 60vh;
    }
    
    .lightbox-video {
        width: 90vw;
        height: 50vh;
    }
    
    /* Mobile - smaller, more discrete controls */
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.2);
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 18px;
        background: rgba(255, 255, 255, 0.2);
    }
    
    /* Controls visible on tap */
    .lightbox-gallery.show-controls .lightbox-prev,
    .lightbox-gallery.show-controls .lightbox-next,
    .lightbox-gallery.show-controls .lightbox-close {
        opacity: 1 !important;
    }
    
    .lightbox-info {
        margin-top: 1rem;
    }
    
    .lightbox-title {
        font-size: 1.1rem;
    }
    
    .lightbox-counter {
        font-size: 0.85rem;
    }
    
    .video-play-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Tablets - arrows outside but closer */
@media (min-width: 769px) and (max-width: 1024px) {
    .lightbox-prev {
        left: -60px;
    }
    
    .lightbox-next {
        right: -60px;
    }
}

/* ==================================
   Audio de fondo
   ================================== */


#musicToggle {
    transition: transform 0.3s ease;
}

#musicToggle:hover {
    transform: scale(1.2);
    color: #D4AF37 !important;
}

#musicToggle i {
    font-size: 1.2rem;
}

/* ==================================
   Logo INPI
   ================================== */

/* Contenedor del logo INPI */
.footer-inpi {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

/* Logo INPI */
.inpi-logo {
    width: 60px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.inpi-logo:hover {
    opacity: 1;
}

/* Texto marca registrada */
.inpi-text {
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.inpi-text strong {
    color: #D4AF37;
    font-size: 0.9rem;
}

.inpi-text small {
    color: #999;
    font-size: 0.75rem;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .footer-inpi {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .inpi-logo {
        width: 50px;
    }
    
    .inpi-text {
        font-size: 0.8rem;
    }
}

/* Opcional: Versión más compacta */
@media (max-width: 576px) {
    .footer-inpi {
        padding: 0.75rem 0;
    }
}
