
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f1f5f9;
    color: #101b35;
}

header {
    background: #101b35;
    color: white;
    padding: 20px 5%;
}

header h1 {
    margin: 0;
    color: #2dd4bf;
    font-size: 36px;
}

nav {
    background: #172747;
    padding: 16px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #2dd4bf;
}

.contenedor {
    width: 94%;
    max-width: 1100px;
    margin: 30px auto;
}

.portada {
    background: linear-gradient(135deg, #101b35, #2563eb);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}

.tarjeta {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px #00000010;
    overflow-wrap: anywhere;
}

.boton {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
}

.boton:hover {
    background: #1d4ed8;
}

.portada .boton {
    background: #2dd4bf;
    color: #101b35;
}

a {
    color: #2563eb;
    text-decoration: none;
}

.datos {
    color: #64748b;
    font-size: 14px;
}

.publicacion {
    display: flex;
    gap: 20px;
}

.autor {
    width: 150px;
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
    padding-right: 15px;
    overflow-wrap: anywhere;
}

.avatar {
    width: 65px;
    height: 65px;
    background: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.contenido {
    flex: 1;
    min-width: 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 8px;
}

footer {
    background: #101b35;
    color: white;
    padding: 25px;
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 600px) {
    .publicacion {
        flex-direction: column;
    }

    .autor {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 15px;
    }

    .tarjeta {
        padding: 18px;
    }
}
