* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Login Box */
.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-width: 400px;
    margin: 100px auto;
}

.login-box h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.login-box h2 {
    color: #666;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: normal;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    margin: 0 5px;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

/* Messages */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Admin Panel */
.admin-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-header h1 {
    color: #333;
    font-size: 24px;
}

.admin-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.form-section, .list-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section h2, .list-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Table */
.pizarras-table {
    width: 100%;
    border-collapse: collapse;
}

.pizarras-table th,
.pizarras-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.pizarras-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.pizarras-table td a {
    color: #667eea;
    text-decoration: none;
}

.pizarras-table td a:hover {
    text-decoration: underline;
}

.actions {
    white-space: nowrap;
}

/* Pizarra Header */
.pizarra-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.pizarra-header h1 {
    color: #333;
    margin-bottom: 15px;
    font-size: 32px;
}

.pregunta-base {
    color: #666;
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Post-its Container - Diseño de 3 columnas con CSS Grid */
.posteos-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.no-posteos {
    text-align: center;
    color: white;
    font-size: 18px;
    padding: 40px;
    grid-column: 1 / -1;
}

.post-it {
    background: #fef68a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    height: fit-content;
}

.post-it:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.post-it:nth-child(5n+1) {
    background: #fef68a;
}

.post-it:nth-child(5n+2) {
    background: #a7f3d0;
}

.post-it:nth-child(5n+3) {
    background: #fecaca;
}

.post-it:nth-child(5n+4) {
    background: #bfdbfe;
}

.post-it:nth-child(5n+5) {
    background: #e9d5ff;
}

.post-it-content {
    flex: 1;
}

.comentario {
    color: #333;
    line-height: 1.6;
    font-size: 14px;
    word-wrap: break-word;
    margin: 0;
}

.comentario-preview {
    display: block;
}

.comentario-completo {
    display: none;
}

.leer-mas, .leer-menos {
    color: #667eea;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    margin-top: 5px;
}

.leer-mas:hover, .leer-menos:hover {
    text-decoration: underline;
}

.post-it-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autor {
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.fecha {
    font-size: 11px;
    color: #777;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .posteos-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 600px) {
    .admin-content {
        grid-template-columns: 1fr;
    }
    
    .posteos-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .post-it {
        padding: 15px;
    }
}

/* Gestión de Posteos Admin */
.posteos-admin-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.posteo-admin-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: box-shadow 0.2s;
}

.posteo-admin-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.posteo-admin-content {
    flex: 1;
}

.posteo-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.posteo-admin-header strong {
    color: #333;
    font-size: 15px;
}

.posteo-fecha {
    color: #6c757d;
    font-size: 12px;
}

.posteo-texto {
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

.posteo-admin-actions {
    margin-left: 15px;
    display: flex;
    align-items: center;
}
