/* Área del cliente. No altera la administración ni el editor sobre la web real. */
.cliente { color: #243f35; max-width: 1120px; margin: 0 auto; font: 16px/1.55 system-ui, sans-serif; }
.cliente * { box-sizing: border-box; }
.cliente h1 { font-size: clamp(2rem, 4vw, 2.65rem); letter-spacing: -.05em; margin: 4px 0 8px; }
.cliente h2 { font-size: 1.45rem; letter-spacing: -.025em; }
.cliente h3 { font-size: 1.1rem; }
.cliente a { color: #315d4d; text-underline-offset: 3px; }
.cliente :focus-visible { outline: 3px solid #9c782e; outline-offset: 4px; }
.cliente .page-heading { margin: 18px 0 24px; }
.cliente .page-heading p { color: #637368; margin: 0; }
.cliente-eyebrow { font-size: .77rem; letter-spacing: .13em; font-weight: 700; color: #5f7865; }
.cliente .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #315d4d; color: white;
    border: 1px solid #315d4d; border-radius: 12px; padding: 11px 19px; min-height: 46px; font: 600 .95rem/1.4 system-ui, sans-serif;
    text-decoration: none; margin: 0; cursor: pointer; }
.cliente .button:hover { background: #254a3c; }
.cliente .button.secondary { background: #f1f3f1; border-color: #e1e7e1; color: #40594d; }
.cliente .button.secondary:hover { background: #e6ece6; }
.cliente .button:disabled { opacity: .55; cursor: wait; }
.cliente .panel, .cliente-web, .cliente-material { border: 1px solid #e0e7df; border-radius: 20px; background: #fff;
    box-shadow: 0 5px 22px #294a3610; }
.cliente-webs { display: grid; gap: 20px; margin: 24px 0 32px; }
.cliente-web { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.15fr); gap: 28px; padding: 22px; }
.cliente-portada { border-radius: 14px; overflow: hidden; min-height: 220px; background: linear-gradient(135deg, #e3eddf, #f2ecda);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.cliente-portada img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: top; }
.cliente-inicial { display: grid; place-items: center; width: 76px; height: 76px; background: #ffffff80; border: 1px solid #fff;
    border-radius: 24px; font-size: 2.4rem; font-weight: 500; }
.cliente-web-info { padding: 6px 0; min-width: 0; }
.cliente-web-info h2 { font-size: 1.65rem; margin: 0 0 10px; overflow-wrap: anywhere; }
.cliente-web-info h2 a { text-decoration: none; }
.cliente-web-info h2 span { color: #7c917e; font-size: 1rem; }
.cliente-estado { color: #637368; margin-bottom: 20px; }
.cliente-estado span { color: #86a075; font-size: .65rem; vertical-align: middle; }
.cliente-secundarias { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cliente-proxima { margin-top: 9px; color: #647367; }
.cliente-aviso { color: #756440; background: #f8f4e9; padding: 9px 12px; border-radius: 10px; font-size: .85rem; margin: 14px 0 0; }
.cliente-volver { display: inline-block; margin: 4px 0 12px; text-decoration: none; font-size: .9rem; }
.cliente-subida { padding: 24px; margin-bottom: 32px; }
.cliente-drop { border: 2px dashed #b4c7ae; border-radius: 16px; background: #f6f9f3; padding: 28px 20px; text-align: center; margin-bottom: 20px; }
.cliente-drop.is-dragging { background: #e5efdd; border-color: #315d4d; }
.cliente-upload-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 14px;
    background: #e6eedf; color: #486a43; font-size: 1.8rem; }
.cliente-drop p { margin: 8px 0; }
.cliente-drop strong { font-size: 1.12rem; }
.cliente-drop small { display: block; color: #647367; margin-top: 14px; font-size: .8rem; }
.cliente-elegir { position: relative; display: inline-block; color: #315d4d; text-decoration: underline; cursor: pointer; padding: 5px 12px; }
.cliente-elegir input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.cliente-elegir:focus-within { outline: 3px solid #9c782e; border-radius: 6px; }
.cliente [data-selection] { font-size: .9rem; overflow-wrap: anywhere; }
.cliente textarea { width: 100%; border: 1px solid #cedbcd; border-radius: 10px; background: #fcfdfb; padding: 10px 12px; color: #294638; }
.cliente-subida > label { font-size: .9rem; font-weight: 600; margin-bottom: 7px; }
.cliente-subir-acciones { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.cliente-derechos { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 420px; font-size: .9rem; }
.cliente-derechos input { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 2px; accent-color: #315d4d; }
.cliente-library-heading { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 18px; }
.cliente-library-heading h2 { margin: 0; }
.cliente-library-heading span { color: #71806f; font-size: .9rem; }
.cliente-biblioteca { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cliente-material { min-width: 0; }
.cliente-miniatura { background: #eff3e9; border-radius: 19px 19px 0 0; height: 180px; display: flex;
    align-items: center; justify-content: center; flex-direction: column; text-decoration: none; overflow: hidden; }
.cliente-miniatura img { width: 100%; height: 100%; object-fit: contain; }
.cliente-miniatura > span { font-size: 3.4rem; color: #80906d; line-height: 1.2; }
.cliente-miniatura small { color: #677958; font-size: .75rem; letter-spacing: .1em; }
.cliente-material-body { padding: 18px; }
.cliente-material-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cliente-material-heading h3 { margin: 6px 0; overflow-wrap: anywhere; }
.cliente-material-menu { position: relative; flex: 0 0 36px; }
.cliente-material-menu summary { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
    border: 1px solid #e1e7df; cursor: pointer; list-style: none; font-size: 1.35rem; }
.cliente-material-menu summary::-webkit-details-marker { display: none; }
.cliente-material-menu > div { position: absolute; right: 0; top: 40px; padding: 8px; min-width: 140px; z-index: 2; background: white;
    border: 1px solid #dce5d9; border-radius: 12px; box-shadow: 0 5px 20px #294a3625; }
.cliente-material-menu a, .cliente-material-menu button { display: block; width: 100%; padding: 9px; text-align: left; border: 0;
    border-radius: 7px; background: white; font: inherit; text-decoration: none; }
.cliente-material-menu .cliente-borrar { color: #95463c; }
.cliente-fecha { display: block; color: #75806e; font-size: .75rem; overflow-wrap: anywhere; }
.cliente-usado { display: inline-block; font-size: .75rem; background: #edf3e8; padding: 4px 8px; border-radius: 7px; margin: 12px 0 0; }
.cliente-frase { margin-top: 16px; }
.cliente-frase label { font-size: .8rem; margin-bottom: 5px; color: #5c6e5b; }
.cliente-frase .button { min-height: 38px; padding: 7px 12px; margin-top: 8px; font-size: .8rem; }
.cliente-permisos { margin-top: 16px; color: #71806a; font-size: .75rem; }
.cliente-permisos summary { cursor: pointer; }
.cliente-vacio { background: #f7f8f3; border: 1px dashed #d4decf; border-radius: 20px; padding: 40px 24px; text-align: center; }
.cliente-vacio > span { font-size: 2rem; color: #879c6e; }
.cliente-vacio h3 { margin: 12px 0; }
.cliente-vacio p { max-width: 460px; margin: 0 auto 16px; color: #6a7864; }
.cliente-upload-progress { display: grid; gap: 6px; padding: 12px 16px; background: #f2f6ed; border-radius: 12px; margin-top: 12px; }
.cliente-upload-progress span { font-size: .85rem; overflow-wrap: anywhere; }
.cliente-upload-progress progress { width: 100%; height: 8px; accent-color: #5f8653; border-radius: 8px; overflow: hidden; }
.cliente-upload-progress progress::-webkit-progress-bar { background: #dfe8d8; }
.cliente-upload-progress progress::-webkit-progress-value { background: #75945f; }
.cliente.nueva-web { max-width: 820px; margin: 24px auto; overflow-wrap: anywhere; }
.cliente-wizard-card { background: white; border: 1px solid #e0e7df; border-radius: 24px; padding: 36px 44px;
    box-shadow: 0 8px 30px #294a3610; }
.cliente-pasos ol { display: flex; justify-content: space-between; gap: 10px; padding: 0; list-style: none; margin: 0 0 24px; }
.cliente-pasos li { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: #7b8577; }
.cliente-pasos li > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #e7ebe2; }
.cliente-pasos .completo { color: #315d4d; }
.cliente-pasos .completo > span { background: #315d4d; color: white; }
.cliente-pasos [aria-current] { font-weight: 700; }
.nueva-web .page-heading { margin-top: 0; display: block; }
.cliente [role=alert]:empty { display: none; }
.nueva-web h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.nueva-web label { display: block; margin: 16px 0 8px; }
.nueva-web input:not([type=checkbox]):not([type=hidden]):not([type=file]), .nueva-web select {
    width: 100%; padding: 12px; border: 1px solid #cedbcd; border-radius: 10px; background: #fcfdfb; }
.nueva-web .button { margin: 12px 0; }
.nueva-web button[name=salir] { background: #f1f3f1; border-color: #e1e7e1; color: #40594d; }
.nueva-web [role=alert] { color: #973b25; background: #fbf0e8; padding: 12px; border-radius: 10px; }
.cliente-dominios { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.cliente-dominios li { padding: 18px; border: 1px solid #dce5d7; background: #f5f8f0; border-radius: 14px; }
.cliente-dominios strong { display: block; font-size: 1.4rem; }
.cliente-dominios span, .cliente-dominios small { display: block; font-size: .85rem; margin-top: 6px; }
.cliente-dominios small { color: #71806a; font-size: .72rem; }
.cliente-domain-search { background: #f8f9f5; padding: 4px 18px 12px; border-radius: 14px; margin: 24px 0; }
.cliente-factura { border: 1px solid #dce5d7; border-radius: 16px; padding: 22px; margin-bottom: 22px; }
.cliente-factura header { padding-bottom: 14px; border-bottom: 1px solid #e0e7dc; }
.cliente-factura header span { display: block; font-size: .9rem; color: #71806a; margin-top: 4px; }
.cliente-factura table { width: 100%; margin-top: 10px; }
.cliente-factura th, .cliente-factura td { padding: 9px 0; font-size: .95rem; border: none; }
.cliente-factura th { font-weight: 400; }
.cliente-factura td { text-align: right; white-space: nowrap; }
.cliente-factura tr:nth-child(4) { border-top: 1px solid #e0e7dc; }
.cliente-factura tr:last-child { border-top: 1px solid #cbd9c4; }
.cliente-factura tr:last-child > * { font-size: 1.2rem; font-weight: 700; padding-top: 16px; }
.cliente-confirmacion { padding: 24px; border-radius: 18px; background: #eff6e8; margin: 24px 0; }
.cliente-check { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #315d4d; color: white; font-size: 1.7rem; }
.cliente-confirmacion h2 { margin: 18px 0 12px; }
.cliente-confirmacion ol { padding-left: 22px; }
.cliente-confirmacion li { margin-bottom: 10px; }
@media (max-width: 800px) { .cliente-biblioteca { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .cliente-wizard-card { padding: 24px 18px; border-radius: 18px; }
    .cliente-pasos ol { flex-wrap: wrap; gap: 10px 14px; }
    .cliente-pasos li { font-size: .75rem; }
    .nueva-web .button { width: 100%; }
    .nueva-web .cliente-derechos { display: flex; }
    .cliente-factura { padding: 18px; }
    .cliente-web { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 14px; }
    .cliente-portada, .cliente-portada img { min-height: 0; height: 175px; }
    .cliente-web-info { padding: 4px 5px 8px; }
    .cliente-web-info h2 { font-size: 1.4rem; }
    .cliente-biblioteca { grid-template-columns: minmax(0, 1fr); }
    .cliente-subida { padding: 16px; }
    .cliente-drop { padding: 22px 12px; }
    .cliente-subir-acciones > button { width: 100%; }
    .cliente .neus-portal-guide { padding: 16px; gap: 10px; }
    .cliente .neus-portal-guide img { width: 38px; height: 38px; }
}
