/**
 * Comunidad Dádoris - CSS PERSONALIZADO
 * Diseño inspirado en el sistema original con colores DÁDORIS
 */

/* ============================================
   VARIABLES Y GENERALES
   ============================================ */
:root {
    --color-principal: #FFC107; /* Amber DÁDORIS */
    --color-principal-dark: #FFA000;
    --color-secundario: #2c3e50;
    --color-texto: #3a3a3a;
    --color-gris: #5d6d7e;
    --color-fondo-oscuro: #546072; /* Gris azulado como Google Script */
}

* {
    box-sizing: border-box;
}

body {
    background: #546072; /* Fondo gris azulado uniforme como el original */
    background-attachment: fixed;
    min-height: 100vh;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* ============================================
   LOGIN
   ============================================ */
.login-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.login-btn i {
    margin-right: 8px !important;
    margin-left: 0 !important;
    float: none !important;
}

.login-btn span {
    display: inline-block;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: transparent;
    padding: 40px 20px 30px;
    margin-bottom: 30px;
}

.hero-title {
    color: white;
    font-size: 2em;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    font-weight: 400;
}

.hero-subtitle {
    color: #e8e8e8;
    font-size: 1em;
    margin-bottom: 20px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    margin: 0;
    font-weight: 500;
    border-radius: 8px;
    padding: 0 25px;
    height: 42px;
    line-height: 42px;
    font-size: 0.95em;
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.tablon-main {
    padding-bottom: 40px;
}

@media (min-width: 993px) {
    .tablon-main {
        padding-left: 280px;
    }

    nav .sidenav-trigger {
        display: none !important;
    }
}

.tablon-sidebar {
    display: none;
}

@media (min-width: 993px) {
    .tablon-sidebar {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        width: 280px;
        height: calc(100vh - 64px);
        background: #ffffff;
        border-right: 1px solid rgba(0,0,0,0.08);
        box-shadow: 2px 0 8px rgba(0,0,0,0.08);
        padding: 18px 16px;
        z-index: 998;
        overflow-y: auto;
    }
}

.tablon-sidebar-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 12px 0;
    color: #333;
}

.tablon-sidebar .collection {
    margin: 0;
    border: none;
}

.tablon-sidebar .collection .collection-item {
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.08);
}

.tablon-sidebar .collection a.collection-item {
    color: #1f2d3d;
    font-weight: 600;
}

.tablon-sidebar .collection a.collection-item:hover {
    background-color: rgba(255, 193, 7, 0.15);
}

.tablon-sidebar .collection a.collection-item.active {
    background-color: #1976d2;
    color: #fff;
    border-color: #1976d2;
}

.tablon-sidebar .collection a.collection-item.active i.material-icons {
    color: #fff;
}

.tablon-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   FILTROS
   ============================================ */
.filtros-panel {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    padding: 20px !important;
}

.filtros-panel label {
    font-weight: 600;
    color: var(--color-texto);
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.filtros-panel select.browser-default {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95em;
    width: 100%;
    transition: border-color 0.3s ease;
    background: white;
}

.filtros-panel select.browser-default:focus {
    border-color: var(--color-principal);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

/* ============================================
   GRID DE ANUNCIOS
   ============================================ */
.anuncios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 5px;
}

.anuncio-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    background: #FEFEFE;
    border: 1px solid #e8e8e8;
}

.anuncio-card * {
    box-sizing: border-box;
}

.anuncio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
}

.anuncio-card .card-content {
    padding: 15px 20px 15px 20px;
}

.anuncio-card .card-title {
    color: var(--color-texto);
    margin-bottom: 12px;
    margin-top: 35px;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.3;
    padding-right: 10px;
}

.urgencia-card-alta {
    border: 2px solid #D32F2F !important;
    background: #ffebee;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.6), 0 6px 18px rgba(0,0,0,0.35) !important;
}

.urgencia-card-media {
    border: 2px solid #F57C00 !important;
    background: #fff3e0;
    box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.5), 0 6px 16px rgba(0,0,0,0.3) !important;
}

.urgencia-card-alta .fecha-limite,
.urgencia-card-media .fecha-limite {
    border-top-color: transparent;
    padding-top: 4px;
    font-weight: 700;
}

.urgencia-card-alta::before,
.urgencia-card-media::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 6px;
    border-radius: 8px 8px 0 0;
}

.urgencia-card-alta::before {
    background: #D32F2F;
}

.urgencia-card-media::before {
    background: #F57C00;
}

.descripcion-corta {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.9em;
    color: #555;
}

.descripcion-corta img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 8px 0;
}

/* ============================================
   BADGES Y CINTAS
   ============================================ */
.badge-cinta {
    position: absolute;
    padding: 8px 12px;
    font-size: 0.65em;
    font-weight: 700;
    text-align: center;
    z-index: 10;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
    border-radius: 4px;
    white-space: nowrap;
    display: block;
    min-width: 80px;
}

.cinta-nuevo {
    background: #FFB300;
    color: white;
    top: 15px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    font-size: 0.7em;
    padding: 5px 14px;
    z-index: 15;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    border: 2px solid white;
}

.cinta-urgencia-alta {
    background: #D32F2F;
    color: white;
    top: 45px;
    right: 12px;
}

.cinta-urgencia-media {
    background: #F57C00;
    color: white;
    top: 45px;
    right: 12px;
}

.cinta-urgencia-baja {
    background: #FBC02D;
    color: white;
    top: 45px;
    right: 12px;
}

.cinta-inscrito {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    top: 12px;
    right: 12px;
    padding: 8px 14px 8px 12px;
    font-size: 0.7em;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cinta-inscrito::before {
    content: '✓';
    font-size: 1.1em;
    font-weight: 900;
    line-height: 1;
}

.cinta-cerrado {
    background: #616161;
    color: white;
    top: 12px;
    right: 12px;
    padding: 10px 18px;
    font-size: 0.75em;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(0,0,0,0.35);
    border: 2px solid #424242;
}

/* Estilo atenuado para anuncios caducados */
.anuncio-caducado,
.anuncio-finalizado {
    opacity: 0.75;
    filter: grayscale(40%);
    position: relative;
    border: 2px solid #bdbdbd !important;
}

.anuncio-caducado::before,
.anuncio-finalizado-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1;
    pointer-events: none;
    z-index: 1;
    border-radius: 8px;
}

.anuncio-caducado::after,
.anuncio-finalizado::after {
    content: 'FINALIZADO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 3em;
    font-weight: 900;
    color: rgba(117, 117, 117, 0.15);
    letter-spacing: 8px;
    pointer-events: none;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.anuncio-caducado:hover,
.anuncio-finalizado:hover {
    opacity: 0.85;
}

.anuncio-caducado .card-title,
.anuncio-finalizado .card-title {
    color: #757575 !important;
    position: relative;
    z-index: 3;
}

.anuncio-caducado .descripcion-corta,
.anuncio-finalizado .descripcion-corta {
    color: #999 !important;
    position: relative;
    z-index: 3;
}

.anuncio-caducado .card-content,
.anuncio-finalizado .card-content {
    position: relative;
    z-index: 3;
}

.tipo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    display: inline-block;
    line-height: 1.2;
}

/* En el detalle del anuncio, mostrar la etiqueta de tipo en flujo normal para evitar solapes */
.detalle-header .tipo-badge {
    position: static;
    top: auto;
    left: auto;
    margin-bottom: 8px;
}

.tipo-formacion {
    background: #E1BEE7;
    color: #6A1B9A;
}

.tipo-trabajo {
    background: #C8E6C9;
    color: #2E7D32;
}

.tipo-voluntariado {
    background: #FFE0B2;
    color: #E65100;
}

.tipo-evento {
    background: #F8BBD0;
    color: #C2185B;
}

/* Estados derivados visuales */
.anuncio-abierto {
    border-left: 4px solid #43A047; /* verde */
}

.anuncio-cerrado {
    border: 2px solid #9E9E9E !important;
    background: #f5f5f5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18) !important;
}

/* Chip de estado dentro de la tarjeta */
.estado-chip-wrapper {
    display: flex;
    justify-content: flex-end;
}

.chip-estado {
    height: 22px;
    line-height: 22px;
    padding: 0 10px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 999px;
}

.estado-abierto {
    background: #E8F5E9;
    color: #2E7D32;
}

.estado-cerrado {
    background: #FFF3E0;
    color: #E65100;
}

.estado-finalizado {
    background: #ECEFF1;
    color: #455A64;
}

/* ============================================
   INFO RÁPIDA Y CHIPS
   ============================================ */
.info-rapida {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.chip-small {
    height: 22px;
    line-height: 22px;
    padding: 0 8px;
    font-size: 0.75em;
    background-color: transparent;
    border-radius: 0;
    color: #666;
    border: none;
}

.chip-small .material-icons {
    font-size: 14px;
    line-height: 22px;
    margin-right: 4px;
    vertical-align: middle;
    color: #666;
}

/* ============================================
   FECHA LÍMITE
   ============================================ */
.fecha-limite {
    background: transparent;
    color: #1976D2;
    font-weight: 500;
    margin-top: 10px;
    padding: 10px 0 0 0;
    border-top: 1px solid #eeeeee;
    text-align: center;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.fecha-limite .material-icons {
    vertical-align: middle;
    color: #1976D2;
    font-size: 16px;
}

/* ============================================
   CARD ACTION
   ============================================ */
.anuncio-card .card-action {
    padding: 10px 20px;
    border-top: none;
    background: transparent;
    text-align: center;
}

.anuncio-card .card-action span {
    font-size: 0.85em;
    color: #1976D2;
    font-weight: 500;
}

.anuncio-card .card-action .material-icons {
    vertical-align: middle;
    font-size: 14px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-sticky {
    position: sticky;
    top: 80px;
}

.sidebar-sticky .card-panel {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    background: #FFFBEA;
}

.collection-stats {
    border: none;
}

.collection-stats .collection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.9em;
}

.collection-stats .collection-item .badge {
    font-size: 1em;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    min-width: 35px;
    text-align: center;
}

/* ============================================
   DETALLE DE ANUNCIO
   ============================================ */
.detalle-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.detalle-card {
    padding: 40px;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.detalle-header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.detalle-title {
    font-size: 2em;
    color: var(--color-texto);
    margin-bottom: 15px;
    font-weight: 600;
}

.detalle-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--color-principal);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.info-item-label {
    font-size: 0.8em;
    color: #757575;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item-value {
    font-size: 1em;
    color: var(--color-texto);
    font-weight: 500;
}

.descripcion-completa {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    line-height: 1.7;
    font-size: 1em;
    border: 1px solid #e8e8e8;
}

.descripcion-completa img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 10px 0;
}

/* ============================================
   FORMULARIO CREAR
   ============================================ */
.form-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.form-card {
    padding: 35px;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 1.2em;
    color: var(--color-texto);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
}

.input-field label {
    color: var(--color-gris);
}

.input-field input:focus + label,
.input-field textarea:focus + label {
    color: var(--color-principal) !important;
}

.input-field input:focus,
.input-field textarea:focus {
    border-bottom: 1px solid var(--color-principal) !important;
    box-shadow: 0 1px 0 0 var(--color-principal) !important;
}

/* ============================================
   BOTONES Y ENLACES DE ACCIÓN
   ============================================ */
.detalle-card .section a.grey-text {
    transition: all 0.3s ease;
}

.detalle-card .section a.grey-text:hover {
    color: #424242 !important;
    transform: translateX(-5px);
}

.detalle-card .section a.grey-text:hover i {
    transform: translateX(-3px);
}

.detalle-card .section a.grey-text i {
    transition: transform 0.3s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 1.9em;
    }
    
    .hero-subtitle {
        font-size: 1em;
    }
    
    .anuncios-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 18px;
    }
    
    .sidebar-sticky {
        position: relative;
        top: auto;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 35px 15px;
    }
    
    .hero-title {
        font-size: 1.7em;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
    
    .anuncios-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filtros-panel .row .col {
        margin-bottom: 12px;
    }
    
    .detalle-card {
        padding: 25px;
    }
    
    .detalle-title {
        font-size: 1.5em;
    }
    
    .form-card {
        padding: 25px;
    }
    
    .anuncio-card .card-content {
        padding: 18px;
    }
    
    /* Botones de acción en móvil */
    .detalle-card .section .btn-large,
    .detalle-card .section .btn {
        width: 100%;
        max-width: 100%;
        min-width: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 600px) {
    .badge-cinta {
        padding: 5px 20px;
        font-size: 0.65em;
    }
    
    .cinta-nuevo {
        top: 8px;
        right: -5px;
    }
    
    .cinta-urgencia-alta,
    .cinta-urgencia-media,
    .cinta-urgencia-baja {
        top: 40px;
        right: -5px;
    }
    
    .cinta-inscrito {
        padding: 6px 12px 6px 10px;
        font-size: 0.65em;
        top: 8px;
        right: -5px;
        gap: 3px;
    }
    
    .cinta-cerrado {
        padding: 8px 14px;
        font-size: 0.7em;
        top: 8px;
        right: -5px;
    }
    
    .anuncio-caducado::after {
        font-size: 2em;
        letter-spacing: 4px;
    }
    
    .hero-title {
        font-size: 1.5em;
    }

    /* Navbar: ajustar elementos de la derecha en móvil */
    nav .nav-wrapper .right li a {
        font-size: 0.8rem;
        padding: 0 8px;
    }

    /* Botones de notificación en detalle: apilar en columna en móvil */
    .notificar-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        font-size: 0.85rem !important;
        padding: 0 10px !important;
        min-height: 44px;
        line-height: 1.2;
        width: 100%;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anuncio-card {
    animation: fadeIn 0.4s ease-out;
}

/* ============================================
   MENSAJE SIN ANUNCIOS
   ============================================ */
.no-anuncios-panel {
    background: white;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.no-anuncios-panel .material-icons {
    font-size: 80px;
    color: #bbb;
    margin-bottom: 20px;
}

.no-anuncios-panel h5 {
    color: #555;
    font-weight: 500;
    margin-bottom: 10px;
}

.no-anuncios-panel p {
    color: #777;
    font-size: 0.95em;
}

/* ============================================
   BOTONES PERSONALIZADOS
   ============================================ */
.btn.amber {
    background: #FFC107 !important;
}

.btn.amber:hover {
    background: #FFB300 !important;
}

.btn.white {
    background: white !important;
    color: #FFC107 !important;
    border: 2px solid #FFC107;
}

.btn.white:hover {
    background: #FFF9E6 !important;
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

/* ============================================
   MEJORAS DE ALINEACION Y BADGES
   ============================================ */
/* Mejorar badges en estadisticas */
.collection-stats .badge {
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* Mejorar etiquetas de tipo */
.tipo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    min-height: 28px;
    line-height: 1.2;
}

/* Ajustar chips en info rapida */
.chip-small {
    display: inline-flex;
    align-items: center;
    height: 24px;
    line-height: 24px;
}

.chip-small .material-icons {
    line-height: 24px;
    vertical-align: middle;
}

.full-width {
    width: 100%;
}

/* ============================================
   BOTONES Y FORMULARIOS
   ============================================ */
.btn-block {
    width: 100%;
    display: block;
    margin-top: 10px;
}

/* Contenedor de pestañas de notificación */
.notificar-tabs {
    display: flex;
    gap: 10px;
}

/* Botones de pestañas de notificación */
.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
    padding: 0 16px;
    min-height: 40px;
    font-size: 0.9rem;
}

.tab-btn i.material-icons {
    margin-right: 6px;
    font-size: 18px;
}

/* Mejorar contraste en pestañas grises inactivas */
.btn.grey.lighten-2.tab-btn {
    color: #424242 !important;
}

/* Contenedor de notificación en detalle */
.notificar-contenedor {
    height: 450px;
    max-height: 450px;
    overflow: hidden;
    position: relative;
}

.input-field label {
    color: #666;
}

.input-field .prefix.active {
    color: #FFC107;
}

/* Chips con iconos */
.chip i.material-icons {
    float: left;
    font-size: 16px;
    line-height: 32px;
    margin-right: 8px;
}

/* Select browser-default mejorado */
select.browser-default {
    display: block;
    width: 100%;
    height: auto;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

select.browser-default:focus {
    outline: none;
    border-color: #FFC107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

/* Estilos para Select2 */
.select2-container--default .select2-selection--single {
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #FFC107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
    outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 24px;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9e9e9e;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 8px;
}

.select2-dropdown {
    border: 1px solid #FFC107;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Controlar ancho del contenedor y dropdown */
.select2-container {
    display: block !important;
    width: 100% !important;
}

.select2-container .select2-selection {
    width: 100%;
}

.select2-results {
    max-height: 300px;
    overflow-y: auto;
}

.select2-container--default .select2-search--dropdown {
    padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #FFC107;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #FFC107;
    color: white;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #fff3cd;
    color: #444;
}

.select2-container--default .select2-results__option {
    padding: 8px 12px;
}

.select2-container {
    display: block;
    width: 100% !important;
}

.select2-container .select2-selection--single .select2-selection__clear {
    margin-right: 10px;
    font-size: 18px;
}

/* Helper text personalizado */
.helper-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #9e9e9e;
}

/* Estilos para actividades_tablon.php */
.modalidad-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    margin-bottom: 8px;
}

.modalidad-badge i {
    font-size: 12px !important;
    vertical-align: middle;
    margin-right: 2px;
}

.observaciones-section {
    border-top: 1px solid #eee !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
}

.observaciones-texto {
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.observaciones-texto i {
    color: #757575;
}

.anuncios-grid .anuncio-card {
    min-height: 200px;
}

/* ============================================
   MENÚ HAMBURGUESA VISIBLE EN ESCRITORIO
   ============================================ */
.sidenav-trigger {
    display: block !important;
}

@media only screen and (min-width: 993px) {
    .sidenav-trigger {
        display: block !important;
    }
}

/* ============================================
   RESPONSIVE IMAGES - FORZAR EN MÓVIL
   ============================================ */
.descripcion-completa img,
.descripcion-completa p img,
.descripcion-completa div img,
.descripcion-corta img,
.descripcion-corta p img,
.descripcion-corta div img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

@media only screen and (max-width: 768px) {
    .descripcion-completa img,
    .descripcion-completa p img,
    .descripcion-completa div img,
    .descripcion-corta img,
    .descripcion-corta p img,
    .descripcion-corta div img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }
}
