* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f4f5f7;
    margin: 0;
    color: #1f2328;
}

/* ---------- Layout general (gestor de archivos) ---------- */
.contenedor {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 25px 30px;
}

/* ---------- Pantallas centradas (login / recuperar) ---------- */
.pantalla-centrada {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tarjeta {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 36px 32px;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.tarjeta .icono-grande {
    font-size: 40px;
    margin-bottom: 8px;
}

.tarjeta h1 {
    font-size: 20px;
    margin: 0 0 6px;
}

.tarjeta p.subtitulo {
    color: #666;
    font-size: 14px;
    margin: 0 0 24px;
}

/* ---------- Formularios ---------- */
.campo {
    text-align: left;
    margin-bottom: 16px;
}

.campo label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

input[type=text],
input[type=password],
input[type=file] {
    width: 100%;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
}

input[type=text]:focus,
input[type=password]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

button, .boton {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
}

button:hover, .boton:hover { background: #1d4ed8; }

button.peligro { background: #dc2626; }
button.peligro:hover { background: #b91c1c; }

.enlace-secundario {
    display: inline-block;
    margin-top: 18px;
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}
.enlace-secundario:hover { text-decoration: underline; }

/* ---------- Mensajes ---------- */
.mensaje, .error {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: left;
}
.mensaje { background: #dcfce7; color: #166534; }
.error { background: #fee2e2; color: #991b1b; }

/* ---------- Ligas de contacto ---------- */
.lista-contacto {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2328;
    text-align: left;
    transition: border-color .15s, background .15s;
}

.contacto-item:hover {
    border-color: #2563eb;
    background: #f8faff;
}

.contacto-item .icono {
    font-size: 22px;
    width: 30px;
    text-align: center;
}

.contacto-item .texto strong {
    display: block;
    font-size: 14px;
}

.contacto-item .texto span {
    font-size: 12px;
    color: #666;
}

.contacto-item.whatsapp .icono { color: #25D366; }
.contacto-item.telefono .icono { color: #2563eb; }
.contacto-item.correo .icono { color: #ea580c; }

/* ---------- Tabla del gestor de archivos ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eee; }
th { color: #666; font-weight: 600; font-size: 13px; text-transform: uppercase; }
tr:hover { background: #fafafa; }
.nombre-item { display: flex; align-items: center; gap: 8px; }
.icono { font-size: 16px; }
a.enlace { color: #1f2328; text-decoration: none; }
a.enlace:hover { color: #2563eb; }
.col-acciones { display: flex; gap: 8px; white-space: nowrap; }
.col-acciones button, .col-acciones a { font-size: 12px; padding: 4px 8px; border-radius: 5px; width: auto; }
a.btn-descarga { background: #16a34a; color: #fff; text-decoration: none; padding: 4px 8px; border-radius: 5px; }
.vacio { text-align: center; color: #999; padding: 30px 0; }

.acciones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.acciones form { display: flex; gap: 6px; align-items: center; }
.acciones button { width: auto; }

.migas { font-size: 14px; margin-bottom: 20px; color: #555; }
.migas a { color: #2563eb; text-decoration: none; }
.migas a:hover { text-decoration: underline; }

.barra-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.barra-superior .salir {
    font-size: 13px;
    color: #dc2626;
    text-decoration: none;
}
.barra-superior .salir:hover { text-decoration: underline; }

/* ---------- Pestañas (login: Cliente / Usuario) ---------- */
.pestanas {
    display: flex;
    background: #f1f3f5;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.pestanas a {
    flex: 1;
    text-align: center;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.pestanas a.activa {
    background: #fff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* ---------- Aviso de acceso restringido ---------- */
.aviso {
    background: #dbeafe;
    color: #1e40af;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: left;
}
