/**
 * La pantalla de soporte del cliente, dentro de "Mi cuenta".
 * Sigue los colores de la tienda: fondo oscuro, cian de la marca.
 */

.afs { margin-bottom: 32px; }

.afs-titulo {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
}

.afs-aviso {
    background: rgba(0, 242, 255, .07);
    border-left: 3px solid #00f2ff;
    padding: 12px 16px;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
}

.afs-resultado {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 0 0 20px;
    font-size: 14px;
}
.afs-resultado-ok    { background: rgba(0, 200, 120, .12); border-left: 3px solid #00c878; }
.afs-resultado-error { background: rgba(220, 60, 60, .12); border-left: 3px solid #dc3c3c; }

/* ------------------------------------------------------------ Formulario */
.afs-formulario {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    padding: 22px;
}

.afs-campo { margin: 0 0 18px; }
.afs-campo label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.afs-campo select,
.afs-campo input[type="text"],
.afs-campo textarea,
.afs-responder textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}
.afs-opcional { font-weight: 400; opacity: .6; font-size: 13px; }
.afs-ayuda {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    opacity: .7;
    line-height: 1.45;
}

.afs-enviar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0;
}
.afs-enviar .afs-ayuda { margin: 0; }

.afs-boton {
    background: #00b8d4 !important;
    color: #001014 !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    border-radius: 6px !important;
    border: 0 !important;
    cursor: pointer;
}
.afs-boton:hover { background: #00f2ff !important; }

/* ---------------------------------------------------------------- Tabla */
.afs-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.afs-tabla th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    letter-spacing: .6px;
    text-transform: uppercase;
    opacity: .65;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.afs-tabla td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    vertical-align: middle;
}
.afs-ver {
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.afs-nuevo {
    display: inline-block;
    background: #00f2ff;
    color: #001014;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ------------------------------------------------------------ Pastillas */
.afs-pastilla {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}
.afs-pastilla.afs-nuevo      { background: #fef3c7; color: #92400e; }
.afs-pastilla.afs-abierto    { background: #dbeafe; color: #1e40af; }
.afs-pastilla.afs-respondido { background: #d1fae5; color: #065f46; }
.afs-pastilla.afs-resuelto   { background: rgba(150, 150, 150, .25); color: inherit; opacity: .8; }

/* -------------------------------------------------------------- La ficha */
.afs-volver { margin-bottom: 16px; }
.afs-volver a { text-decoration: none; font-weight: 600; }

.afs-ficha {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    overflow: hidden;
}
.afs-ficha-cabecera {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.afs-ficha-cabecera h3 { margin: 0 0 4px; font-size: 17px; }
.afs-ficha-datos { margin: 0; font-size: 12.5px; opacity: .65; }

/* ---------------------------------------------------------- Conversación */
.afs-charla { padding: 20px 22px; }

.afs-mensaje {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.55;
}
.afs-de-cliente { background: rgba(255, 255, 255, .05); }
.afs-de-soporte {
    background: rgba(0, 242, 255, .08);
    border-left: 3px solid #00f2ff;
}

.afs-mensaje-quien {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
}
.afs-mensaje-fecha {
    font-weight: 400;
    opacity: .55;
    font-size: 12px;
    margin-left: 8px;
}
.afs-mensaje-texto p:last-child { margin-bottom: 0; }

.afs-fotos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.afs-fotos img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .15);
}

/* ------------------------------------------------------------- Responder */
.afs-responder {
    padding: 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.afs-responder label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}
.afs-responder textarea { margin-bottom: 12px; }

.afs-cerrada {
    padding: 18px 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
    opacity: .75;
    margin: 0;
}

/* ------------------------------------------------------ Pantallas pequeñas */
@media (max-width: 600px) {
    .afs-tabla thead { display: none; }
    .afs-tabla tr {
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        padding: 12px 0;
    }
    .afs-tabla td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        border: 0;
        padding: 5px 0;
    }
    .afs-tabla td::before {
        content: attr(data-titulo);
        font-size: 11px;
        text-transform: uppercase;
        opacity: .6;
        font-weight: 700;
    }
    .afs-ficha-cabecera { flex-direction: column; }
}
