:root {
    --primary-color: white;
    --secondary-color: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.navbar {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
    padding: 2rem;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Sección de Video Centrado */
.video-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.video-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Relación 16:9 */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.video-controls {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.video-controls .btn {
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-controls .btn i {
    font-size: 1.1rem;
}

.video-info {
    margin-top: 1.5rem;
    color: #666;
    font-style: italic;
}

/* Secciones generales */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-weight: 700;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    display: block;
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Texto con scroll */
.scrollable-text {
    max-height: 450px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: justify;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.scrollable-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.scrollable-text strong {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Scrollbar personalizado */
.scrollable-text::-webkit-scrollbar {
    width: 8px;
}

.scrollable-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.scrollable-text::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.scrollable-text::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Slider Styles */
.slider-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    color: white;
    position: relative;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    background: #000;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    height: 100%;
    position: relative;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.slider-slide.active .slider-caption {
    transform: translateY(0);
}

.slider-caption h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
}

.slider-caption p {
    font-size: 1.1rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    opacity: 0.9;
}

/* Controles de navegación del slider */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 1.5rem;
}

.slider-next {
    right: 1.5rem;
}

/* Indicadores del slider */
.slider-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-indicator.active {
    background: white;
    transform: scale(1.2);
}

.slider-indicator:hover {
    background: rgba(255,255,255,0.5);
}

/* Controles de reproducción del slider */
.slider-controls {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.slider-controls .btn {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.slider-controls .btn:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

/* Fullscreen mode */
.slider-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
}

.slider-container.fullscreen .slider-wrapper {
    height: 100vh;
}

.slider-container.fullscreen .slider-controls {
    top: 2rem;
    right: 2rem;
}

.slider-container.fullscreen .slider-nav {
    font-size: 2rem;
    padding: 1.2rem 1.5rem;
}

/* Galería */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    color: white;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 2.5rem;
    color: white;
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-image {
    max-height: 80vh;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 10;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.8);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0;
    opacity: 0.9;
}

/* Responsividad */
@media (max-width: 1200px) {
    .slider-wrapper {
        height: 500px;
    }
    
    .video-container {
        width: 85%;
    }
}

@media (max-width: 992px) {
    section {
        padding: 4rem 0;
    }
    
    .slider-wrapper {
        height: 450px;
    }
    
    .slider-caption {
        padding: 1.5rem;
    }
    
    .slider-caption h3 {
        font-size: 1.7rem;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .video-container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }
    
    .slider-wrapper {
        height: 400px;
    }
    
    .slider-caption {
        padding: 1.2rem;
    }
    
    .slider-caption h3 {
        font-size: 1.5rem;
    }
    
    .slider-caption p {
        font-size: 1rem;
    }
    
    .slider-nav {
        font-size: 1.2rem;
        padding: 0.8rem 1rem;
    }
    
    .slider-controls {
        top: 1rem;
        right: 1rem;
    }
    
    .slider-controls .btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .scrollable-text {
        padding: 2rem;
        max-height: 400px;
    }
    
    .gallery-item {
        height: 200px;
        margin-bottom: 1.5rem;
    }
    
    .lightbox-nav {
        font-size: 1.5rem;
        padding: 0.8rem 1rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .video-container {
        width: 95%;
    }
    
    .video-controls {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .video-controls .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .slider-wrapper {
        height: 300px;
    }
    
    .slider-caption h3 {
        font-size: 1.3rem;
    }
    
    .slider-caption p {
        font-size: 0.9rem;
    }
    
    .slider-nav {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
    }
    
    .slider-indicators {
        bottom: 1rem;
    }
    
    .slider-indicator {
        width: 10px;
        height: 10px;
    }
    
    .scrollable-text {
        padding: 1.5rem;
        max-height: 350px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .gallery-icon {
        font-size: 2rem;
    }
    
    .video-container {
        width: 100%;
        padding: 0 1rem;
    }
    
    .video-wrapper {
        border-radius: 10px;
    }
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 0.75rem;
}

/* Animaciones suaves */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de carga */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para mejor accesibilidad */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}