:root {
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
}

body {
    font-family: 'Dosis', sans-serif;
    overflow-x: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(135deg, #1a1c2e 0%, #16181f 100%);
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-link {
    color: #a0a3bd;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 16px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.logo-text {
    background: linear-gradient(45deg, #6b8cff, #8b9fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}

.notification-badge {
    background: #ff6b6b;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
}

.profile-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-content {
    width: 100%;
    margin-left: var(--sidebar-width);
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
    
}

.collapsed~.main-content {
    margin-left: var(--sidebar-width-collapsed);
}

.toggle-btn {
    position: absolute;
    right: -15px;
    top: 20px;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.collapsed .toggle-btn {
    transform: rotate(180deg);
}

.collapsed .hide-on-collapse {
    opacity: 0;
    visibility: hidden;
}
.collapsed .hide-on-uncollapse {
    opacity: 1;
    visibility: visible;
}

.collapsed .logo-text {
    opacity: 0;
}

.collapsed .profile-info {
    opacity: 0;
}

.collapsed .sidebar-link {
    text-align: left;
    padding: 1rem !important;
    
}

.collapsed .sidebar-link i {
    margin: 0 !important;
    
}

.profile-info {
    transition: opacity 0.2s ease;
}

.c-amarillo{
    background: rgb(228,164,110);
}
.c-verde{
    background: rgb(30,133,160) ;
}
.c-rosa{
    background: rgb(220,92,156) ;
}

/* Contenedor principal de la ficha */
.contenedor-tarjeta {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    width: 300px;
    max-width: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contenedor-tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Cabecera: Imagen y Fecha flotante */
.tarjeta-imagen {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.tarjeta-fecha {
    background: #ff5a5f;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 20px;
    margin: 15px;
    font-weight: 600;
    font-size: 0.9em;
}

/* Cuerpo: Título, ubicación y descripción */
.tarjeta-contenido {
    padding: 15px;
}

.tarjeta-titulo {
    font-size: 1.5em;
    color: #333333;
    margin-bottom: 5px;
    line-height: 1.2;
}

.tarjeta-ubicacion {
    color: #666666;
    font-size: 0.95em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tarjeta-descripcion {
    color: #555555;
    font-size: 0.9em;
    line-height: 1.6;
}

/* Pie de tarjeta: Precio y Botón */
.tarjeta-pie {
    padding: 20px 25px;
    background: #fafafa;
    border-top: 1px solid #eeeeee;
    display: flex;
}

.tarjeta-precio {
    font-size: 1.4em;
    font-weight: 700;
    color: #2b2b2b;
}

.tarjeta-boton {
    background: #007bff;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
   
    font-size: 0.9em;
    transition: background 0.2s ease;
     justify-content: flex-end;
}

.tarjeta-boton:hover {
    background: #0056b3;
}

.tarjeta-boton2 {
    background: #007bff;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    transition: background 0.2s ease;
}

.tarjeta-boton2:hover {
    background: #0056b3;
}
.tarjeta-boton3 {
    background: #990000;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    transition: background 0.2s ease;
}

.tarjeta-boton3:hover {
    background: #440000;
}

.evento-acciones {
    margin-top: 15px;
    display: flex;
    justify-content: space-between; /* Empuja un grupo a la izquierda y otro a la derecha */
    align-items: center;
    gap: 70px; /* Separación de seguridad si se junta el espacio */
}

/* Sub-contenedores para agrupar botones si es necesario */
.acciones-izquierda, .acciones-derecha {
    display: flex;
    gap: 2px; /* Espacio entre botones del mismo lado */
}

/* Estilo base para todos los botones */
.btn-evento {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    text-align: center;
}

/* Variante Botón Primario (Derecha) */
.btn-primario {
    background-color: #3498db;
    color: #ffffff;
}

.btn-primario:hover {
    background-color: #2980b9;
}

/* Variante Botón Secundario / Enlace (Izquierda) */
.btn-secundario {
    background-color: #3498db;
    color: #FFFFFF;
}

.btn-secundario:hover {
    background-color: #2980b9;
}

.btn-secundario2 {
    background-color: #990000;
    color: #FFFFFF;
}

.btn-secundario2:hover {
    background-color: #440000;
}

.separar-eventos{
    display: flex; 
    flex-direction: column;
    gap: 10px; 
    justify-content: center;
    align-items: center;
    
}

@media (min-width: 768px) {
  .separar-eventos {
    display: flex; 
    flex-direction: row; 
    gap: 10px;
    justify-content: left;
    align-items: center;
    
  }
}

/* Para ordenadores/escritorio (ancho mínimo de 1024px) */
@media (min-width: 1024px) {
  .separar-eventos {
   display: flex; 
    flex-direction: row; 
    gap: 10px;
  }
}
