/* ============================================
   JCA TOURS - VIDEO HERO FULL SCREEN
   Responsive & Minimal
   ============================================ */

/* Reset y base */
.jca-hero,
.jca-tours,
.jca-container {
    box-sizing: border-box;
}

/* VIDEO HERO - FULL SCREEN */
.jca-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
}

.jca-hero__video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
}

.jca-hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Fallback para móviles - poster image */
@supports not (object-fit: cover) {
    .jca-hero__video {
        width: 100%;
        height: 100%;
    }
}

.jca-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.7) 100%
    );
    z-index: 1;
}

.jca-hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    padding: 2rem;
}

.jca-hero__title {
    font-size: clamp(2.5rem, 10vw, 6rem);
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.jca-hero__tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin: 0 0 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.jca-hero__widget {
    margin: 2rem 0;
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 8px;
    color: #1a1a1a;
    backdrop-filter: blur(10px);
}

.jca-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity 0.3s;
    animation: bounce 2s infinite;
}

.jca-hero__scroll:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* TOURS SECTION - Después del video */
.jca-tours {
    position: relative;
    z-index: 1;
    margin-top: 100vh;
    background: #f5f5f5;
    padding: 6rem 2rem;
}

.jca-container {
    max-width: 1200px;
    margin: 0 auto;
}

.jca-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.jca-section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 1rem;
    color: #1a1a1a;
}

.jca-section-header p {
    color: #666;
    font-size: 1.125rem;
}

/* GRID RESPONSIVE */
.jca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .jca-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .jca-hero__widget {
        padding: 1rem;
        margin: 1rem 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .jca-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CARDS */
.jca-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.jca-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.jca-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.jca-card__image {
    margin: 0;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e0e0e0;
}

.jca-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.jca-card__price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #0bb4aa;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.jca-card__content {
    padding: 1.5rem;
}

.jca-card__content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.jca-card__meta {
    color: #666;
    font-size: 0.875rem;
}

/* BOTONES */
.jca-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #0bb4aa;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #0bb4aa;
}

.jca-btn:hover {
    background: transparent;
    color: #0bb4aa;
}

.jca-tours__footer {
    text-align: center;
    margin-top: 4rem;
}

/* MÓVIL: Ajustes especiales */
@media (max-width: 480px) {
    .jca-hero__title {
        font-size: 2rem;
    }
    
    .jca-hero__tagline {
        font-size: 1rem;
    }
    
    /* En móvil, el video puede ser pesado - mostrar poster */
    .jca-hero__video {
        display: none;
    }
    
    .jca-hero__video-container {
        background: url('../assets/images/hero-poster.jpg') center/cover no-repeat;
    }
}

/* TABLET */
@media (min-width: 481px) and (max-width: 768px) {
    .jca-hero__title {
        font-size: 3rem;
    }
}

/* DESKTOP */
@media (min-width: 1025px) {
    .jca-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Reducir motion para accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .jca-hero__video {
        display: none;
    }
    
    .jca-hero__scroll {
        animation: none;
    }
    
    .jca-card {
        transition: none;
    }
}
