/* Estilo General y Fondo */
body {
    font-family: 'Roboto', sans-serif;
    /* Reemplaza 'background.jpg' con tu imagen */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('static/fondo_2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Mantiene la imagen de fondo estática */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evita el scroll horizontal */
    min-height: 100vh;
}

/* Contenedor principal del contenido */
.content-container {
    background-color: rgba(255, 255, 255, 0.95); /* Fondo semi-transparente para legibilidad */
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 80vh;
}

/* Estilo de la barra de navegación tipo cinta policial */
.police-tape-nav {
    background: repeating-linear-gradient(
        45deg,
        #ffd700,
        #ffd700 25px,
        #000000 25px,
        #000000 50px
    );
    border-bottom: 5px solid #000;
}

.police-tape-nav .nav-link,
.police-tape-nav .navbar-brand {
    color: #000 !important;
    background-color: #ffd700;
    padding: 5px 10px;
    border: 2px solid #000;
    text-transform: uppercase;
}

.police-tape-nav .nav-link:hover,
.police-tape-nav .navbar-brand:hover {
    background-color: #fff;
}

.nav-item {
    text-align: center;
}

.navbar-toggler .navbar-toggler-icon {
    /* Este es el SVG del ícono de hamburguesa con el trazo (stroke) en negro. */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Opcional: Esto hace que el borde del botón sea blanco al hacer hover, mejorando el contraste. */
.toggler-blanco:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5); 
}

/* Estilo para las tarjetas de curso */
.course-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.course-card img {
    height: 180px;
    object-fit: cover;
}

/* Estilo para la vista detallada del curso */
.course-detail-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-detail-topics ul {
    list-style-type: none;
    padding-left: 0;
}

.course-detail-topics li {
    background-color: #f8f9fa;
    margin-bottom: 10px;
    padding: 15px;
    border-left: 5px solid #ffd700;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.course-detail-topics li:hover {
    background-color: #e9ecef;
}

/* style.css */

/* --- Estilos del Footer --- */
.site-footer {
    background-color: #111; /* Un negro no tan puro */
    color: #ffd700; /* Color amarillo */
    padding: 40px 0;
    border-top: 5px solid #ffd700;
}

.site-footer .footer-heading {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
    display: inline-block;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #ffd700;
}

.site-footer .list-unstyled li {
    margin-bottom: 10px;
}

/* Estilo para el enlace de red social lineal */
.site-footer .social-link-inline {
    display: inline-flex; /* Permite alinear el icono y el texto */
    align-items: center;  /* Centra verticalmente el icono con el texto */
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem; /* Tamaño del texto */
    transition: color 0.3s ease;
}

.site-footer .social-link-inline:hover {
    color: #ffd700; /* El texto se pone amarillo al pasar el mouse */
}

/* Estilo para el icono dentro del enlace lineal */
.site-footer .social-link-inline i {
    color: #ffd700; /* El icono siempre será amarillo */
    font-size: 1.8rem;  /* Tamaño del icono, más pequeño que antes */
    margin-right: 10px; /* Espacio entre el icono y el texto */
}

.site-footer .copyright-section {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

.site-footer .copyright-section a {
    color: #ffd700;
    font-weight: bold;
}


/* --- Botón Flotante de WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-float i {
    margin-top: 15px; /* Centrado vertical del icono */
}