/* JAMAIQUINO - Sistema de Cronometraje */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

/* Logo centrado */
.logo-header {
    text-align: center;
    padding: 30px 20px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.logo-header img {
    max-width: 420px;
    width: 100%;
    height: auto;
}

/* Navegación / botones */
.nav-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #1a365d;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.btn:hover {
    background: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26,54,93,0.3);
}

.btn-gold {
    background: #d69e2e;
}

.btn-gold:hover {
    background: #b7791f;
}

.btn-danger {
    background: #c53030;
}

.btn-danger:hover {
    background: #9b2c2c;
}

.btn-secondary {
    background: #718096;
}

.btn-secondary:hover {
    background: #4a5568;
}

/* Lista de publicaciones */
.publicaciones {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card h2 {
    color: #1a365d;
    font-size: 1.4rem;
    margin-bottom: 12px;
    border-bottom: 2px solid #d69e2e;
    padding-bottom: 8px;
}

.card .meta {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 15px;
}

.content-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    overflow-x: auto;
    line-height: 1.6;
    min-height: 40px;
}

.content-box img {
    max-width: 100%;
    height: auto;
}

.content-box pre,
.content-box code {
    background: #1a202c;
    color: #e2e8f0;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    display: block;
}

.card-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}

/* Formularios */
.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto;
}

.form-card h1 {
    color: #1a365d;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.6rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a365d;
}

.form-group textarea {
    min-height: 220px;
    font-family: 'Consolas', 'Monaco', monospace;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

/* Alertas */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    color: #718096;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #4a5568;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    color: #4a5568;
    font-size: 0.95rem;
}

.footer strong {
    color: #1a365d;
}

.footer a {
    color: #d69e2e;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

.whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Responsive */
@media (max-width: 600px) {
    .logo-header img {
        max-width: 280px;
    }
    
    .card h2 {
        font-size: 1.2rem;
    }
    
    .form-card {
        padding: 20px;
    }
}
