/* =========================================
   1. ESTILOS GENERALES Y ESTRUCTURA
   ========================================= */
body {
    min-height: 100vh;
    padding-top: 80px; /* espacio para navbar fijo */
    background: linear-gradient(to right, #000001, #080335);
    color: #fff;
}

.navbar.fixed-top {
    z-index: 1050;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.3);
    position: fixed;
}

a.nav-link {
    color: #fff !important;
    font-size: 1.25rem;
    letter-spacing: 1px;
    padding-left: 15px;
    padding-right: 15px;
}
a.nav-link:hover { opacity: 0.8; }

.row.g-0 { min-height: 100vh; }
.col-md-8, .col-md-4 { height: 100vh; }
.object-fit-cover { object-fit: cover; }
.image-right-lower { margin-top: 3rem; }

/* =========================================
   2. SECCIÓN CONTACTO
   ========================================= */
.contacto-section { width: 100%; padding: 40px 0; color: #fff; font-family: sans-serif; }
.titulo-contacto { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
.contacto-card {
    width: 100%; max-width: 1000px; padding: 40px; border-radius: 30px; margin-top: 10px;
    background: linear-gradient(135deg, #1a1ccf, #c90b1a, #b300b3);
    display: flex; flex-direction: column; gap: 30px;
}
.contacto-texto { font-size: 1.1rem; line-height: 1.4; margin: 0; }
.form-contacto { display: flex; flex-direction: column; gap: 25px; }
.form-contacto label { font-weight: 600; margin-bottom: 5px; }
.form-contacto input, .form-contacto textarea {
    width: 100%; padding: 15px 20px; border: none; border-radius: 30px; outline: none;
    font-size: 1rem; background: rgba(0, 0, 0, 0.3); color: #fff;
}
.form-contacto textarea { resize: none; }
.btn-enviar {
    margin: 10px auto 0; padding: 12px 40px; font-size: 1rem; font-weight: bold; border: none;
    border-radius: 30px; cursor: pointer; background: rgba(255, 255, 255, 0.15);
    color: #fff; backdrop-filter: blur(6px); transition: 0.3s;
}
.btn-enviar:hover { background: rgba(255, 255, 255, 0.3); }

/* Formulario Vibrante (Contacto Moderno) */
.contact-card-vibrant {
    background: linear-gradient(135deg, #7b2f7a 0%, #c92f51 100%);
    border-radius: 1.5rem; overflow: hidden; color: #fff; max-width: 800px; margin: auto;
}
.contact-title-vibrant { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.contact-text-vibrant { font-size: 1.15rem; line-height: 1.6; color: rgba(255, 255, 255, 0.85) !important; }

.form-contacto-vibrant .form-floating > .form-control {
    background-color: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.8rem; color: #fff; transition: border-color 0.3s ease, background-color 0.3s ease;
}
.form-contacto-vibrant .form-floating > .form-control:focus {
    background-color: rgba(0, 0, 0, 0.45); border-color: #fff; box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.2); color: #fff;
}
.form-contacto-vibrant .form-floating > label { color: rgba(255, 255, 255, 0.7); padding: 1rem 0.75rem; }
.form-contacto-vibrant .form-floating > .form-control:focus ~ label,
.form-contacto-vibrant .form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.85; transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}
.form-contacto-vibrant .form-floating > textarea.form-control { height: 180px; padding-top: 1.6rem; }

.btn-submit-vibrant {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%); border: none; color: #fff;
    font-size: 1.1rem; letter-spacing: 1px; border-radius: 0.8rem; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-submit-vibrant:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); opacity: 0.9; }

/* =========================================
   3. FOOTER
   ========================================= */
.footer-modern {
    background-color: rgba(10, 10, 10, 0.4); backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 4rem; padding-bottom: 2rem; color: #fff;
}
.footer-modern h5 { font-weight: 600; letter-spacing: 0.5px; color: #fff; }
.footer-modern .text-muted { color: #adb5bd !important; }
.footer-modern .footer-link { color: #adb5bd; text-decoration: none; transition: all 0.3s ease; display: inline-block; }
.footer-modern .footer-link:hover { color: #fff; transform: translateX(4px); }
.footer-modern .form-control, .footer-modern .form-control-sm {
    background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff;
}
.footer-modern .form-control::placeholder { color: #adb5bd; }
.footer-modern .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2); border-color: #fff; color: #fff; box-shadow: none;
}
.footer-bottom-bar { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; margin-top: 2rem; }
.footer-bottom-bar small { color: #adb5bd; }
.footer-social-icons a { color: #adb5bd; text-decoration: none; font-size: 1.2rem; transition: all 0.3s ease; }
.footer-social-icons a:hover { color: #fff; transform: translateY(-3px); }

/* =========================================
   4. ESTILOS BLOG AVANZADO
   ========================================= */

/* Buscador Estilo Cristal */
.search-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex; align-items: center;
}
.search-input {
    background: transparent; border: none; color: #fff; outline: none; width: 100%; font-size: 1.1rem; padding-left: 10px;
}
.search-input::placeholder { color: rgba(255, 255, 255, 0.6); }

/* Botones de Filtro */
.filter-btn {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8); border-radius: 20px; padding: 0.4rem 1.2rem; margin: 5px;
    transition: all 0.3s ease; font-size: 0.9rem; cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
    background: #fff; color: #5a3b8c; font-weight: bold; border-color: #fff;
    transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Tarjeta de Blog (Modern Glass) */
.blog-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    background: rgba(0, 0, 0, 0.35);
}
.blog-card-img, .blog-card img {
    height: 200px; object-fit: cover; width: 100%;
    background-color: rgba(255,255,255,0.05);
}
.blog-card .card-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }

/* Tipografía de la tarjeta */
.blog-title {
    color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.3;
}
.blog-excerpt {
    color: #ddd; font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Badges y Utilidades */
.badge-cat {
    background: linear-gradient(45deg, #c92f51, #7b2f7a);
    font-size: 0.75rem; padding: 5px 10px; border-radius: 6px; margin-bottom: 12px;
    display: inline-block; margin-right: 5px; color: white; font-weight: 500;
}
.mt-auto { margin-top: auto; }

/* Animaciones */
.animate-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Post Individual */
#post-individual img { max-width: 100%; height: auto; border-radius: 10px; margin-bottom: 20px; }
#post-individual iframe { max-width: 100%; }

/* =========================================
   5. ESTILOS COMENTARIOS (NUEVO)
   ========================================= */

/* Caja del formulario */
.comment-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

/* Inputs del formulario */
.form-control-modern {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 0.5rem;
}
.form-control-modern:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: #5a3b8c;
    color: #fff;
    box-shadow: none;
}
.form-control-modern::placeholder { color: rgba(255, 255, 255, 0.5); }

/* Tarjeta de Comentario Individual */
.comment-item {
    background: rgba(0, 0, 0, 0.2);
    border-left: 4px solid #c92f51; /* Borde de color a la izquierda */
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease forwards;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
}

.comment-date {
    font-size: 0.85rem;
    color: #adb5bd;
}

.comment-body {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.5;
}
/* =========================================
   6. ECaja about
   ========================================= */

.glass-card-about {
    background: linear-gradient(145deg, rgb(6,6,9), rgb(42,39,66));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    /* Bordes y Sombra */
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: #fff;
}

.glass-card-about p {
    font-weight: 400;
    letter-spacing: 0.5px;
}
/* =========================================
   7. ESTILOS AVISO LEGAL / PÁGINAS DE TEXTO
   ========================================= */

/* Ajuste de espaciado interno para la tarjeta legal */
.legal-card-inner {
    padding: 3rem; /* Mucho espacio interno para que respire */
    margin-bottom: 3rem;
}

/* Títulos */
.titulo-legal {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #adb5bd); /* Efecto sutil en el título */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-section h3 {
    font-size: 1.5rem;
    color: #c92f51; /* Usando uno de tus colores de acento (rojo/rosa) */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-left: 4px solid #7b2f7a; /* Pequeño detalle visual a la izquierda */
    padding-left: 15px;
}

/* Texto General */
.legal-section p, .legal-list li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85); /* Blanco no puro para no cansar la vista */
    margin-bottom: 1rem;
}

/* Listas */
.legal-list {
    list-style: none; /* Quitamos los puntos por defecto */
    padding-left: 0;
}

.legal-list li {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2); /* Fondo muy sutil para cada item */
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-list strong {
    color: #fff;
    font-weight: 600;
}

/* Enlaces dentro del texto legal */
.legal-link {
    color: #2575fc; /* Azul brillante que contrasta con el fondo oscuro */
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-link:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.legal-divider {
    border-color: rgba(255, 255, 255, 0.15);
    margin-bottom: 2rem;
}

/* RESPONSIVE: Ajustes para móvil */
@media (max-width: 768px) {
    .legal-card-inner {
        padding: 1.5rem; /* Menos padding en móvil */
    }
    .titulo-legal {
        font-size: 2rem;
    }
    .legal-section h3 {
        font-size: 1.3rem;
    }
}
/* =========================================
   9. BANNER DE COOKIES (GLASS STYLE)
   ========================================= */
.cookie-banner-glass {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(15, 15, 20, 0.85); /* Fondo oscuro translúcido */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999; /* Por encima de todo */
    
    /* Oculto por defecto hasta que cargue JS */
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cookie-banner-glass.show {
    display: block;
    opacity: 1;
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from { transform: translate(-50%, 50px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.5;
}

.cookie-text a {
    color: #c92f51;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.cookie-text a:hover {
    border-bottom-color: #c92f51;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Botón Aceptar (Estilo vibrante) */
.btn-cookie-accept {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cookie-accept:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(37, 117, 252, 0.5);
}

/* Botón Rechazar (Estilo sutil) */
.btn-cookie-reject {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ddd;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cookie-reject:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    .cookie-banner-glass {
        bottom: 10px;
        width: 95%;
        padding: 20px;
    }
}
/* =========================================
   10. ESTILOS CURSO
   ========================================= */

.course-neon-card {
    background: linear-gradient(180deg, #180c38 0%, #761445 60%, #a50e2c 100%);
    border-radius: 2rem; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}


.description-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
}


.info-pill {
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 1.5rem; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s;
}
.info-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-dark-pill {
    background-color: #3e2034; 
    color: #fff;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.btn-dark-pill:hover {
    background-color: #5a2d4b;
    color: #fff;
    transform: scale(1.05);
}

.course-cover-img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   11. ESTILOS REVIEWS
   ========================================= */

.reviews-container {
    background-color: #0b0b14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: auto;
}

.review-box {
    background-color: #151520; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.review-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #555;
    flex-shrink: 0;
}

.review-text {
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}