/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #4c3b82;
    position: relative;
}

/* Header */
.header {
    background-color: #6c3483;
    padding: 10px 20px;
    position: relative;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 100px;
}

/* Men¨²s desplegables */
.menu-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.filter-text {
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background-color: #f8d7ff;
    color: #6c3483;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    margin-right: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f8d7ff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 10px 0;
    min-width: 200px;
    z-index: 1001;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    color: #6c3483;
    padding: 8px 20px;
    display: block;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: #e9c3ff;
}

.login-btn {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-btn:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/* Contenido principal */
.main-content {
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.titulo-filtro {
    text-align: center;
    margin: 20px 0;
    color: #4c3b82;
}

.events-container {
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    margin-bottom: 30px;
}

.event-card .card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.event-card .card:hover {
    transform: translateY(-5px);
}

.event-card .card-img-top {
    width: 100%;
    height: 450px;
    object-fit: contain; /* Muestra la imagen completa */
    background-color: #e9ecef; /* Fondo para espacios vac¨ªos */
    cursor: pointer;
}


.event-card .card-body {
    padding: 15px;
}

.event-card .card-title {
    color: #6c3483;
    margin-bottom: 10px;
}

.event-card p {
    margin-bottom: 8px;
    font-size: 14px;
}

.event-card i {
    margin-right: 5px;
    color: #6c3483;
}

/* Enlaces de acci¨®n */
.action-links {
    text-align: center;
    margin-top: 20px;
}
.action-links a {
    margin: 0 10px;
    text-decoration: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
}

/* Formularios */
.form-container {
    max-width: 600px;
    margin: 20px auto;
    background-color: #f9f8fd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #4b0082;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-row input:focus,
.form-row select:focus {
    border-color: #8a2be2;
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: space-between;
}

.success-message {
    color: #4caf50;
    font-weight: bold;
    margin-bottom: 15px;
}

.error-message {
    color: #f44336;
    font-weight: bold;
    margin-bottom: 15px;
}

.time-input {
    border: 1px solid #ced4da; /* Color coherente con Bootstrap */
    border-radius: 4px;
    appearance: none; /* Elimina estilos nativos en algunos navegadores */
    -webkit-appearance: none;
}

.time-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); /* Efecto focus de Bootstrap */
}

/* Botones */
.btn-editar {
    color: #fff;
    background-color: #e6739f; /* Rosado */
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}
.btn-eliminar {
    color: #fff;
    background-color: #f0a202; /* Amarillo */
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}
.btn-editar:hover, .btn-eliminar:hover {
    opacity: 0.8;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d0b3e6; /* Lila */
}
th {
    background-color: #b798e0; /* Violeta */
    color: #fff;
    text-align: center;
    padding: 10px;
}
td {
    text-align: center;
    padding: 10px;
}
tr:nth-child(even) {
    background-color: #f9f0ff; /* Fondo suave */
}
tr:nth-child(odd) {
    background-color: #fdf7ff; /* Fondo a¨²n m¨¢s claro */
}

    /* Efectos hover para los contactos */
    .contact-bar a:hover {
        color: #f8d7ff;
        text-decoration: underline;
    }
    
.time-input {
    border: 1px solid #ced4da; /* Color coherente con Bootstrap */
    border-radius: 4px;
    appearance: none; /* Elimina estilos nativos en algunos navegadores */
    -webkit-appearance: none;
}

.time-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); /* Efecto focus de Bootstrap */
}

.table-container {
    margin: 20px auto;
    padding: 20px;
    max-width: 80%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
    
/* Instituciones aliadas */
.aliados-section {
    background-color: #ebedef;
    padding: 30px 0;
    text-align: center;
}

.aliados-section h2 {
    color: #6c3483;
    margin-bottom: 20px;
}

.aliados-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.logo-aliado {
    max-height: 80px;
    max-width: 120px;
    object-fit: contain;
}

.logo-aliado.atq-especial {
    max-width: 156px; /* 120px + 30% */
    max-height: 104px; /* 80px + 30% */
}

/* Footer */
footer {
    background-color: #6c3483;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 8px;
}

.modal-body img {
    max-height: 80vh;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .menu-container {
        flex-direction: column;
        width: 100%;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        width: 100%;
    }
    
    .aliados-logos {
        gap: 10px;
    }
    
    .logo-aliado {
        max-width: 80px;
    }
}

    .botones-nav {
        list-style: none;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .botones-nav li a {
        padding: 12px 25px;
        color: #6c3483;
        text-decoration: none;
        border: 2px solid #6c3483;
        border-radius: 30px;
        font-weight: 600;
        transition: all 0.3s;
    }
    
    .botones-nav li a:hover {
        background-color: #6c3483;
        color: white;
    }
    
    /* Estilo para el botón activo */
    .botones-nav li a.active {
        background-color: #6c3483;
        color: white;
    }
    
    
.contador-visitas {
    background: #6c3483;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin: 10px 0;
    display: inline-block;
}

.contador-visitas span {
    font-weight: bold;
    color: #f8d7ff;
}

.btn-group {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.btn-group .btn {
    flex: 1;
}

.btn-install {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 10px 15px;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}
