/* ===================================
   Variables y Colores Corporativos
   =================================== */
:root {
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8C5A;
    --secondary-color: #2C3E50;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --success: #28A745;
    --danger: #DC3545;
}

/* ===================================
   Estilos Globales
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===================================
   Header/Navbar
   =================================== */
.navbar {
    padding: 0px;
    transition: all 0.3s ease;
    background: #222222 !important;
}

.navbar-brand .brand-logo {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* ===================================
   Sección de Video
   =================================== */
.video-section {
    padding: 0;
    background: #222222;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-section .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-section .row {
    height: 100%;
    width: 100%;
}

.video-section .col-lg-10,
.video-section .col-md-12 {
    height: 100%;
    display: flex;
    align-items: center;
    margin-top: 0 !important;
}

.video-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper:hover {
    transform: translateY(-5px);
}

.embed-responsive {
    border-radius: 15px;
}

#youtubeVideo {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* Estilos para video local con Plyr */
#localVideo {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: contain;
}

.plyr {
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.plyr__video-wrapper {
    border-radius: 15px;
    width: 100%;
    height: 100%;
}

.plyr__video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===================================
   Sección de Planes
   =================================== */
.plans-section {
    padding: 80px 0;
    background: var(--white);
}

.plans-card,
.registration-card {
    border: none;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.plans-card:hover,
.registration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-title {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.75rem;
}

/* Tabs de Planes */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-item {
    margin-bottom: -2px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

/* Contenido de Planes */
.plan-content {
    padding: 1rem 0;
}

.plan-title {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.plan-features {
    margin: 1.5rem 0;
}

.plan-features li {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.plan-features li i {
    font-size: 1.2rem;
}

.plan-price {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    color: var(--white);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.price-period {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===================================
   Formulario de Registro
   =================================== */
.registration-card .form-group {
    margin-bottom: 1.5rem;
}

.registration-card label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.registration-card .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.registration-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.registration-card .input-group-text {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.registration-card .input-group-prepend + .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.registration-card select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Botón Principal */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 10px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:focus,
.btn-primary:active {
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.5);
}

/* Mensajes del Formulario */
#formMessage {
    border-radius: 10px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* ===================================
   Sección de Testimonios
   =================================== */
.testimonials-section {
    padding: 80px 0;
}

.section-title {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

.testimonial-card {
    border: none;
    border-radius: 20px;
    margin: 20px 0;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-content {
    text-align: left;
    flex: 1;
}

.testimonial-author h5 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Controles del Carrusel */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 60px 0 30px;
    background: linear-gradient(135deg, #2C3E50 0%, #1a252f 100%);
}

.footer h4,
.footer h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .video-section {
        height: 80vh;
        padding: 0;
    }
    
    .plans-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .plan-price .price-amount {
        font-size: 2rem;
    }
    
    .navbar-brand .brand-logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .testimonials-section,
    .plans-section {
        padding: 40px 0;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   Animaciones
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plans-card,
.registration-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   Utilidades
   =================================== */
.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* ===================================
   Sección Hero Banner con Imagen de Fondo
   =================================== */
.hero-banner-section {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-banner-image-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.hero-banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===================================
   Loading Overlay
   =================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
}

.loading-spinner p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* ===================================
   Mensaje de Éxito del Formulario
   =================================== */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-message-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.success-message h3 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.success-message p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

