/*
 * Client area (logged-in pages): the frame (includes/clientarea-open.tpl / -close.tpl) and every client-area template.
 * Layout and styles by the Diseño session (dabbleam/design, piezas/whmcs-area/area.css, commit bcc4e65, 30-10-2026);
 * colours come from the palette variables in style.css.
 */

/* ---------- integration with the theme (its reset and global element styles) ---------- */
div.area { padding-top: 7em; line-height: 1.5; } /* more specific than the frame rule below: the fixed site header covers 7em */
.area > main { padding-top: 0; min-height: 0; }
.area b, .area strong, .area h1, .area h2, .area h3 { font-weight: bold; }
.area h1 { max-width: none; }
.area h2, .area h3 { text-align: left; }
:where(.area) section { display: block; padding-top: 0; margin-top: 0; }
.area :where(ul, ol) > li { list-style: none; margin: 0; }
:where(.area) ul, :where(.area) ol { margin: 0; padding: 0; }
:where(.area) label { font-size: inherit; margin-bottom: 0; line-height: inherit; }
:where(.area) input, :where(.area) select, :where(.area) textarea { margin: 0; }
.area [hidden] { display: none !important; }
/* text only for screen readers (e.g. which service a "Ver" link opens) */
.area-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.area a.area-boton, .area a.area-boton:visited { color: #fff; text-decoration: none; }

/* round icons by class (no inline styles in the templates); paths relative to this stylesheet */
.area .i-cloud { --icono: url('../img/cloud.svg'); }
.area .i-design { --icono: url('../img/design.svg'); }
.area .i-research { --icono: url('../img/research.svg'); }
.area .i-security { --icono: url('../img/security.svg'); }
.area .i-soporte { --icono: url('../img/soporte.svg'); }
.area .i-tranquilidad { --icono: url('../img/tranquilidad.svg'); }
.area .i-llave { --icono: url('../img/llave.svg'); }
.area .i-anuncio { --icono: url('../img/anuncio.svg'); }
.area .i-correo { --icono: url('../img/correo.svg'); }
.area .i-cuenta { --icono: url('../img/cuenta.svg'); }
.area .i-descarga { --icono: url('../img/descarga.svg'); }
.area .i-dominio { --icono: url('../img/dominio.svg'); }
.area .i-factura { --icono: url('../img/factura.svg'); }
.area .i-onprem { --icono: url('../img/onprem.svg'); }
.area .i-dev { --icono: url('../img/dev.svg'); }

/* ---------- el marco: columna con el menú a la izquierda y la página a la derecha ---------- */
.area { --tinta: #0b2a40; --gris: #5f6b78; --texto: #4a5866; --linea: #e3eef6; --fondo: #f3f9fe; --borde: #b9c7d3;
  max-width: 1180px; margin: 0 auto; padding: 2.2em 1.25em 4em; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.4em; align-items: start; }

/* menú del área: el cliente arriba, y las secciones en grupos; la actual con la barra azul a la izquierda */
/* sticky below the fixed 4rem header, and scrollable on its own when the window is shorter than the menu (its last
   links were out of reach); the padding keeps the focus ring of the links inside the scroll box */
.area-menu { position: sticky; top: 5rem; max-height: calc(100vh - 5rem - 1em); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  padding: 4px; margin: -4px; }
/* very short windows: the menu just scrolls with the page (Diseño, 02-11-2026) */
@media (max-height: 599px) { .area-menu { position: static; max-height: none; overflow: visible; } }
.area-quien { display: flex; align-items: center; gap: .75em; padding: 0 .2em 1.2em; margin-bottom: .8em; border-bottom: 1px solid var(--linea); }
/* Objectivity draws its capitals 0.1em above the middle of the line (bold: ascent 742, descent 230, cap height 712
   per 1000), so text centred in a round or pill shape looks high. The extra .2em at the top moves it down 0.1em. */
.area-avatar { flex: none; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--brand-gradient); color: #fff; font-weight: bold;
  display: flex; align-items: center; justify-content: center; font-size: 1em; box-sizing: border-box; padding-top: .2em; }
.area-quien b { display: block; color: var(--tinta); font-size: .95em; line-height: 1.3; }
.area-quien small { display: block; color: var(--gris); font-size: .8em; }
/* "Cerrar sesión": a finger-sized target (28 px high) without moving the lines around it */
.area-quien a { display: inline-block; padding: .5em 0; margin: -.5em 0; font-size: .8em; }
.area-menu-boton { display: none; }
.area-menu nav p { margin: 1.1em 0 .35em; padding: 0 .8em; font-size: .72em; font-weight: bold; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.area-menu nav ul { list-style: none; margin: 0; padding: 0; }
.area-menu nav a { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .55em .8em .5em; border-radius: .45em;
  color: var(--tinta); text-decoration: none; font-size: .93em; border-left: 3px solid transparent; }
.area-menu nav a:hover { background: var(--fondo); color: var(--tinta); }
.area-menu nav a[aria-current="page"] { background: var(--fondo); border-left-color: var(--primary-color); color: var(--dark-primary-color); font-weight: bold; border-radius: 0 .45em .45em 0; }
.area-menu nav a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; }
/* cerrar sesión: arriba, junto al nombre; en el móvil, al final del menú desplegado */
.area-menu nav a.area-salir { display: none; }
.area-cuenta-num { font-size: .78em; font-weight: bold; min-width: 1.6em; text-align: center; padding: .25em .45em 0; border-radius: 1em; background: #fff3d6; color: #8a5a00; } /* .1em lower: see .area-avatar */

/* cabecera de cada página: miga, título, una línea gris y la acción principal a la derecha */
.area-cabecera { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5em; flex-wrap: wrap; margin-bottom: 1.8em; }
.area-miga { margin: 0 0 .4em; font-size: .85em; color: var(--gris); }
.area-miga a { color: var(--gris); }
.area-cabecera h1 { margin: 0; font-size: 2em; line-height: 1.2; color: var(--tinta); }
.area-cabecera .sub { margin: .35em 0 0; color: var(--gris); line-height: 1.5; display: flex; flex-wrap: wrap; align-items: center; gap: .4em .7em; }
.area-cabecera .acciones { display: flex; gap: .6em; flex-wrap: wrap; }

/* ---------- piezas comunes ---------- */
.area-tarjeta { background: #fff; border-radius: .6em; box-shadow: 0 2px 12px rgba(0, 60, 110, .14); }
.area-seccion { padding: 1.4em 1.5em; }
.area-seccion + .area-seccion { border-top: 1px solid var(--linea); }
.area-seccion > h2, .area-tarjeta:not(.area-vacia) > h2 { margin: 0 0 .9em; font-size: 1.1em; color: var(--tinta); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3em 1em; }
.area-tarjeta:not(.area-seccion):not(.area-vacia):not(.area-ayuda) > h2 { padding: 1.2em 1.5em 0; }
.area-seccion > h2 a, .area-tarjeta > h2 a { font-size: .8em; font-weight: normal; }
.area-seccion > .nota { margin: -.5em 0 1.1em; color: var(--gris); font-size: .9em; line-height: 1.5; }
/* a note or a field help that is a condition (what stops working, dates, figures): ink and normal size, never fine print */
.area-seccion > .nota.condicion, .area-campo > small.condicion { color: var(--tinta); font-size: 1em; }
.area-pila { display: grid; gap: 1.5em; align-content: start; }
.area-pila > *, .area-dos > * { min-width: 0; }
.area-dos { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5em; align-items: start; }

/* botones: los de la tienda. Objectivity draws capitals .1em over the middle of the line: the text goes 1px lower,
   taken from the bottom padding so the height stays (Jesús, 03-11-2026) */
.area-boton, .area-boton-sec { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; box-sizing: border-box;
  padding: calc(.6em + 1px) 1.2em calc(.55em - 1px); border-radius: .45em; font: inherit; font-weight: bold; font-size: .95em; line-height: 1.2; text-decoration: none; cursor: pointer; }
.area-boton { border: 0; background: var(--brand-gradient); color: #fff !important; text-shadow: 0 1px .4px rgba(0,0,0,.35); box-shadow: 0 2px 6px rgba(0, 60, 110, .25); }
.area-boton:hover { background: var(--secondary-color); }
.area-boton-sec { border: 2px solid var(--link-color); background: #fff; color: var(--link-color) !important; }
.area-boton-sec:hover { background: var(--fondo); }
.area-boton.peligro { background: #d01c2a; text-shadow: none; }
.area-boton.peligro:hover { background: #b3161f; }
.area-boton:focus-visible, .area-boton-sec:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.area-enlace-gris { color: var(--gris); font-size: .9em; background: none; border: 0; font: inherit; font-size: .9em; text-decoration: underline; cursor: pointer; padding: 0; }
/* "Imprimir" of a help article: finger-sized without moving the line it is in */
[data-area-imprimir] { display: inline-flex; align-items: center; min-height: 44px; margin: -11px 0; }

/* pastillas de estado: verde bien, ámbar pendiente, rojo mal, gris cerrado, azul informativo (texto a 4,5:1 o más) */
.area-estado { display: inline-block; white-space: nowrap; font-size: .78em; font-weight: bold; padding: .4em .75em .15em; border-radius: 1em; line-height: 1.3; } /* .1em lower: see .area-avatar */
.area-estado.ok { background: #e6f4ec; color: #1d7a45; }
.area-estado.aviso { background: #fff3d6; color: #8a5a00; }
.area-estado.mal { background: #fde8e7; color: #b3261e; }
.area-estado.neutro { background: #eef2f5; color: #4a5866; }
.area-estado.info { background: #e6f2fb; color: #006bae; }

/* icono redondo: el de las páginas, en dos capas, que crece solo al pasar por el propio icono */
.area-icono { position: relative; display: block; width: 3em; height: 3em; flex: none; }
.area-icono::before, .area-icono::after { content: ""; position: absolute; inset: 0; transition: transform .4s ease-out; }
.area-icono::before { border-radius: 50%; background: var(--brand-light-gradient); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.area-icono::after { background: var(--icono) center / 50% no-repeat; }
.area-icono:hover::before { transform: scale(1.2); }
.area-icono:hover::after { transform: scale(1.44); }
.area-icono.peque { width: 2.4em; height: 2.4em; }
@media (prefers-reduced-motion: reduce) { .area-icono::before, .area-icono::after { transition: none; transform: none !important; } }

/* aviso en una franja: ámbar para lo pendiente, azul para lo informativo */
.area-aviso { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; padding: 1em 1.3em; border-radius: .6em; margin-bottom: 1.5em; line-height: 1.5; }
.area-aviso.ambar { background: #fff8e6; border-left: 4px solid #e0a100; color: #4d3800; }
.area-aviso.azul { background: var(--fondo); border-left: 4px solid var(--brand-light-color); color: var(--tinta); }
.area-aviso p { margin: 0; flex: 1 1 18em; }
.area-aviso b { color: inherit; }
/* a link inside a notice's sentence is underlined: its colour alone does not tell it from the text (WCAG 1.4.1) */
.area-aviso p a { text-decoration: underline; }

/* ---------- inicio ---------- */
.area-cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; margin-bottom: 1.5em; }
.area-cifra { display: block; padding: 1.2em 1.2em 1.1em; text-decoration: none; color: inherit; transition: box-shadow .2s; }
.area-cifra:hover { box-shadow: 0 6px 24px rgba(0, 60, 110, .22); color: inherit; }
.area-cifra b { display: block; font-size: 2em; line-height: 1.1; color: var(--dark-primary-color); }
.area-cifra span { display: block; margin-top: .25em; color: var(--tinta); font-weight: bold; font-size: .92em; }
.area-cifra small { display: block; margin-top: .3em; color: var(--gris); font-size: .82em; line-height: 1.4; }
.area-cifra.pendiente b { color: #8a5a00; }
.area-rapidos { display: grid; gap: .2em; padding: 0 1em 1em; }
.area-rapidos a { display: flex; align-items: center; gap: .7em; padding: .6em .7em; border-radius: .5em; text-decoration: none; color: var(--tinta); font-size: .9em; font-weight: bold; line-height: 1.3; }
.area-rapidos a:hover { background: var(--fondo); color: var(--tinta); }
/* shortcuts into the Plesk panel (service page), in three columns; one on phones */
.area-rapidos.atajos { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: .6em -.7em 1em; }
@media (max-width: 760px) { .area-rapidos.atajos { grid-template-columns: 1fr; } }
.area-ayuda { padding: 1.2em 1.5em 1.3em; }
.area-tarjeta.area-ayuda > h2 { margin: 0 0 .4em; padding: 0; font-size: 1.05em; color: var(--tinta); }
.area-ayuda p { margin: 0 0 .9em; color: var(--texto); font-size: .9em; line-height: 1.5; }
.area-ayuda ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; font-size: .92em; }
.area-ayuda li { display: flex; gap: .6em; align-items: baseline; }
.area-ayuda li span { color: var(--gris); min-width: 5.6em; font-size: .9em; }
.area-noticia { padding: .9em 1.5em; border-top: 1px solid var(--linea); }
.area-noticia time { display: block; font-size: .78em; color: var(--gris); }
.area-noticia a { font-weight: bold; text-decoration: none; color: var(--tinta); font-size: .93em; line-height: 1.4; }
.area-noticia a:hover { color: var(--link-color); text-decoration: underline; }

/* ---------- listas: filas dentro de una tarjeta; en el móvil, cada fila es una tarjeta ---------- */
.area-filtro { display: flex; flex-wrap: wrap; gap: .5em; margin-bottom: 1.1em; list-style: none; padding: 0; }
.area-filtro a { display: inline-flex; align-items: center; gap: .45em; padding: .45em 1em .4em; border-radius: 2em; border: 1px solid var(--linea);
  text-decoration: none; color: var(--tinta); font-size: .88em; background: #fff; }
.area-filtro a span { color: var(--gris); font-size: .9em; }
.area-filtro a:hover { border-color: var(--borde); color: var(--tinta); }
.area-filtro a[aria-current="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.area-filtro a[aria-current="true"] span { color: #c9d6e2; }
.area-filtro a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.area-lista { list-style: none; margin: 0; padding: 0; }
.area-fila { display: grid; align-items: center; gap: .3em 1.2em; padding: 1em 1.5em; border-top: 1px solid var(--linea); }
.area-fila:first-child { border-top: 0; }
/* la fila de cabecera: el tamaño pequeño va en sus celdas y no en la fila, para que las columnas en em midan lo mismo */
.area-lista.cabeza .area-fila:first-child { padding-top: .8em; padding-bottom: .6em; }
.area-lista.cabeza .area-fila:first-child > * { font-size: .75em; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.area-lista.cabeza .area-fila:first-child .importe { font-weight: normal; color: var(--gris); }
.area-fila .que b { display: block; color: var(--tinta); line-height: 1.35; }
.area-fila .que small { display: block; color: var(--gris); font-size: .85em; margin-top: .15em; line-height: 1.4; }
.area-fila .importe { font-weight: bold; color: var(--tinta); white-space: nowrap; text-align: right; }
.area-fila .importe small { display: block; font-weight: normal; color: var(--gris); font-size: .8em; }
.area-fila .fecha { color: var(--texto); font-size: .9em; white-space: nowrap; }
.area-fila .accion { text-align: right; }
.area-fila .accion a:not(.area-boton):not(.area-boton-sec) { font-size: .9em; font-weight: bold; white-space: nowrap; }
.area-fila.vencida { background: #fffafa; }
/* facturas: número y concepto | fecha | vence | importe | estado | acción */
.area-lista.facturas .area-fila { grid-template-columns: minmax(0, 2.2fr) 1fr 1fr 1fr 6.5em 8.5em; }
/* servicios: icono | nombre y dominio | precio | próximo pago | estado | acción */
.area-lista.servicios .area-fila { grid-template-columns: 2.4em minmax(0, 2.2fr) 1fr 1fr 6.5em 7.5em; }
/* la lista corta del inicio: icono | nombre | precio | estado | ver */
.area-lista.servicios.corta .area-fila { grid-template-columns: auto minmax(0, 1fr) auto auto 2.5em; padding: .9em 1.5em; }
.area-pie-lista { display: flex; justify-content: space-between; align-items: center; gap: 1em; flex-wrap: wrap; padding: .9em 1.5em; border-top: 1px solid var(--linea);
  background: var(--fondo); border-radius: 0 0 .6em .6em; font-size: .85em; color: var(--gris); }
.area-paginas { display: flex; gap: .3em; }
.area-paginas a, .area-paginas span { min-width: 2.2em; height: 2.2em; display: inline-flex; align-items: center; justify-content: center; border-radius: .4em; text-decoration: none; }
.area-paginas span { background: var(--tinta); color: #fff; font-weight: bold; }
.area-paginas a:hover { background: #fff; }

/* lista vacía: icono redondo, una frase y una acción */
.area-vacia { text-align: center; padding: 3em 1.5em 3.2em; }
.area-vacia .area-icono { margin: 0 auto 1.1em; width: 3.6em; height: 3.6em; }
.area-vacia h2 { margin: 0 0 .35em; padding: 0; font-size: 1.2em; color: var(--tinta); }
.area .area-vacia h2 { text-align: center; justify-content: center; } /* also when the empty state is an .area-seccion (flex h2) */
.area-vacia p { margin: 0 auto 1.3em; color: var(--texto); max-width: 40ch; line-height: 1.55; }

/* ---------- ficha de un servicio ---------- */
.area-datos { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1em 1.5em; }
.area-datos dt { font-size: .8em; color: var(--gris); margin-bottom: .2em; }
.area-datos dd { margin: 0; color: var(--tinta); font-weight: bold; line-height: 1.4; }
.area-datos dd small { display: block; font-weight: normal; color: var(--gris); font-size: .82em; }
.area-precio { display: flex; align-items: baseline; gap: .4em; margin-bottom: 1.1em; }
.area-precio b { font-size: 2.2em; line-height: 1; color: var(--dark-primary-color); }
.area-precio span { color: var(--gris); }
.area-uso { display: grid; gap: 1em; }
.area-uso div { display: grid; grid-template-columns: 1fr auto; gap: .35em 1em; font-size: .9em; }
.area-uso span { color: var(--tinta); }
.area-uso small { color: var(--gris); }
.area-barra { grid-column: 1 / -1; height: .5em; border-radius: 1em; background: var(--linea); overflow: hidden; }
.area-barra i { display: block; height: 100%; border-radius: 1em; background: linear-gradient(to right, var(--brand-light-color), var(--primary-color)); }
.area-complemento { display: flex; flex-wrap: wrap; align-items: center; gap: .6em 1em; padding: .9em 1em; border: 1px solid var(--linea); border-radius: .5em; }
.area-complemento .que { flex: 1 1 14em; }
.area-complemento b { color: var(--tinta); display: block; }
.area-complemento small { color: var(--gris); font-size: .85em; line-height: 1.4; display: block; margin-top: .15em; }
.area-complemento .importe { font-weight: bold; color: var(--tinta); white-space: nowrap; }
.area-acciones { list-style: none; margin: 0; padding: .4em 0; }
.area-acciones a, .area-acciones button { display: flex; align-items: center; gap: .8em; width: 100%; box-sizing: border-box; padding: .8em 1.5em; text-decoration: none;
  color: var(--tinta); font: inherit; font-size: .93em; font-weight: bold; background: none; border: 0; text-align: left; cursor: pointer; }
.area-acciones a:hover, .area-acciones button:hover { background: var(--fondo); color: var(--tinta); }
.area-acciones small { display: block; font-weight: normal; color: var(--gris); font-size: .85em; margin-top: .15em; line-height: 1.4; }
.area-acciones a:focus-visible, .area-acciones button:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }
.area-compromiso { margin: 0; padding: 1.1em 1.5em 1.2em; border-top: 1px solid var(--linea); font-size: .88em; line-height: 1.55; color: var(--texto); }
.area-compromiso b { display: block; color: var(--tinta); font-size: 1.05em; margin-bottom: .2em; }
.area-baja { padding: 1em 1.5em 1.2em; border-top: 1px solid var(--linea); }
.area-tarjeta > :last-child.area-compromiso { border-radius: 0 0 .6em .6em; }

/* ---------- ticket: conversación ---------- */
.area-hilo { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2em; }
.area-mensaje { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: .9em; align-items: start; max-width: 88%; }
.area-mensaje.cliente { grid-template-columns: minmax(0, 1fr) 2.6em; justify-self: end; }
.area-mensaje.cliente .area-avatar { order: 2; }
.area-mensaje .avatar-d { width: 2.6em; height: 2.6em; border-radius: 50%; background: #fff url("../img/d.svg") center / 62% no-repeat; box-shadow: 0 1px 4px rgba(0, 60, 110, .25); }
.area-burbuja { padding: 1em 1.2em 1.05em; border-radius: .6em; background: #fff; box-shadow: 0 2px 12px rgba(0, 60, 110, .12); }
.area-mensaje.cliente .area-burbuja { background: var(--fondo); box-shadow: none; border: 1px solid var(--linea); }
.area-burbuja header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2em 1em; margin-bottom: .55em; font-size: .85em; }
.area-burbuja header b { color: var(--tinta); }
.area-burbuja header time { color: var(--gris); }
.area-burbuja p { margin: 0 0 .7em; line-height: 1.6; color: #24313d; }
.area-burbuja p:last-child { margin-bottom: 0; }
.area-adjuntos { display: flex; flex-wrap: wrap; gap: .5em; margin-top: .8em; list-style: none; padding: 0; }
.area-adjunto { display: inline-flex; align-items: center; gap: .45em; padding: .4em .8em .35em; border-radius: 2em; background: #fff; border: 1px solid var(--linea);
  font-size: .82em; text-decoration: none; color: var(--tinta); }
.area-adjunto small { color: var(--gris); }
.area-adjunto::before { content: ""; width: 1em; height: 1em; flex: none; background: var(--dark-primary-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5l-7.8 7.8a5 5 0 0 1-7.1-7.1l8.5-8.5a3.3 3.3 0 0 1 4.7 4.7l-8.5 8.5a1.7 1.7 0 0 1-2.4-2.4l7.8-7.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5l-7.8 7.8a5 5 0 0 1-7.1-7.1l8.5-8.5a3.3 3.3 0 0 1 4.7 4.7l-8.5 8.5a1.7 1.7 0 0 1-2.4-2.4l7.8-7.8'/%3E%3C/svg%3E") center / contain no-repeat; }
a.area-adjunto:hover { border-color: var(--borde); color: var(--tinta); }

/* ---------- formularios ---------- */
.area-rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1em 1.2em; }
.area-rejilla .ancho { grid-column: 1 / -1; }
.area-campo { display: flex; flex-direction: column; gap: .4em; }
.area-campo > label, .area-campo > .etiqueta { font-weight: bold; font-size: .9em; color: var(--tinta); }
.area-campo > label span { font-weight: normal; color: var(--gris); }
.area-campo > small { color: var(--gris); font-size: .82em; line-height: 1.4; }
.area input:is([type=text], [type=email], [type=tel], [type=password], [type=search]), .area select, .area textarea {
  box-sizing: border-box; width: 100%; height: 48px; padding: 0 .9em; font: inherit; font-size: 1em; color: var(--tinta); border: 1px solid #6b8ca6; border-radius: .45em; background: #fff; }
.area textarea { height: auto; min-height: 9em; padding: .8em .9em; line-height: 1.55; resize: vertical; }
.area select { appearance: none; padding-right: 2.2em;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23006bae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .9em center / .75em no-repeat; }
.area :is(input, select, textarea):focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--focus-ring); }
.area input::placeholder, .area textarea::placeholder { color: #8796a3; }
.area-acciones-pie { display: flex; align-items: center; justify-content: space-between; gap: 1em; flex-wrap: wrap; padding: 1.1em 1.5em; border-top: 1px solid var(--linea);
  background: var(--fondo); border-radius: 0 0 .6em .6em; }
.area-acciones-pie .derecha { display: flex; gap: .6em; flex-wrap: wrap; margin-left: auto; }
/* zona para soltar adjuntos */
.area-soltar { display: flex; align-items: center; justify-content: center; gap: .6em; flex-wrap: wrap; padding: 1.1em; border: 2px dashed var(--borde); border-radius: .5em;
  color: var(--texto); font-size: .9em; text-align: center; background: #fff; }
.area-soltar small { width: 100%; color: var(--gris); font-size: .85em; }
/* elegir una opción en tarjetas (departamento) */
.area-opciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.area-opcion { position: relative; display: block; cursor: pointer; border: 2px solid var(--linea); border-radius: .6em; padding: .9em 1em .85em; background: #fff; }
.area-opcion input { position: absolute; opacity: 0; }
.area-opcion:has(input:checked) { border-color: var(--primary-color); background: var(--fondo); }
.area-opcion:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--focus-ring); }
.area-opcion b { display: block; color: var(--tinta); font-size: .95em; }
.area-opcion small { display: block; color: var(--gris); font-size: .82em; margin-top: .2em; line-height: 1.4; }
/* interruptor */
.area-interruptor { display: flex; align-items: flex-start; gap: .9em; cursor: pointer; }
.area-interruptor input { position: absolute; opacity: 0; }
.area-interruptor .boton { flex: none; width: 2.9em; height: 1.6em; border-radius: .8em; background: #b9c7d3; position: relative; transition: background .2s; margin-top: .1em; }
.area-interruptor .boton::after { content: ""; position: absolute; top: .2em; left: .2em; width: 1.2em; height: 1.2em; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.area-interruptor input:checked + .boton { background: var(--primary-color); }
.area-interruptor input:checked + .boton::after { transform: translateX(1.3em); }
.area-interruptor input:focus-visible + .boton { box-shadow: 0 0 0 3px var(--focus-ring); }
.area-interruptor b { color: var(--tinta); } .area-interruptor small { display: block; color: var(--gris); font-size: .88em; margin-top: .2em; line-height: 1.45; }
/* medidor de la contraseña: cuatro tramos y una palabra */
.area-medidor { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: .3em; align-items: center; font-size: .82em; color: var(--gris); }
.area-medidor i { height: .4em; border-radius: 1em; background: var(--linea); }
.area-medidor.n3 i:nth-child(-n+3) { background: #2e9d5b; }
.area-medidor b { margin-left: .5em; color: #1d7a45; }
.area-estado-2fa { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.area-estado-2fa p { margin: 0; flex: 1 1 16em; color: var(--texto); line-height: 1.55; font-size: .93em; }

/* ---------- base de conocimientos, artículo y anuncios ---------- */
.area-buscar { display: flex; gap: .6em; margin-bottom: 1.6em; }
.area-buscar input { flex: 1; }
.area-categorias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.area-categoria { display: flex; gap: .9em; align-items: flex-start; padding: 1.2em 1.2em 1.1em; text-decoration: none; color: inherit; transition: box-shadow .2s; }
.area-categoria:hover { box-shadow: 0 6px 24px rgba(0, 60, 110, .22); color: inherit; }
.area-categoria b { display: block; color: var(--tinta); line-height: 1.35; }
.area-categoria small { display: block; color: var(--gris); font-size: .85em; margin-top: .2em; line-height: 1.45; }
.area-enlaces { list-style: none; margin: 0; padding: 0; }
.area-enlaces li { border-top: 1px solid var(--linea); }
.area-enlaces li:first-child { border-top: 0; }
.area-enlaces a { display: flex; justify-content: space-between; gap: 1em; padding: .85em 1.5em; text-decoration: none; color: var(--tinta); font-size: .95em; }
.area-enlaces a:hover { background: var(--fondo); color: var(--tinta); }
.area-enlaces a small { color: var(--gris); white-space: nowrap; }
.area-articulo { padding: 2em 2.4em 2.2em; font-size: 1.02em; line-height: 1.7; color: #24313d; }
/* screenshots in the knowledge base articles (img/ayuda, twice the size they are shown at), with the steps under them;
   the image opens big (on phones it is too small to read). WHMCS cleans the article HTML, so a div and not a figure */
.area-articulo .captura { margin: 1.3em 0 1.6em; }
.area-articulo .captura-zoom { display: block; cursor: zoom-in; }
.area-articulo .captura img { display: block; max-width: 100%; height: auto; border: 1px solid var(--linea); border-radius: .5em; box-shadow: 0 2px 10px rgba(0, 40, 80, .08); }
.area-articulo .captura .pie { margin: .6em 0 0; font-size: .95em; color: var(--tinta); }
.area-articulo > * { max-width: 68ch; }
.area-articulo h2 { font-size: 1.2em; color: var(--tinta); margin: 1.6em 0 .5em; line-height: 1.35; }
.area-articulo h2:first-child { margin-top: 0; }
.area-articulo p, .area-articulo ol, .area-articulo ul { margin: 0 0 1em; }
.area-articulo li { margin-bottom: .4em; }
.area-articulo code { font-size: .9em; background: var(--fondo); padding: .1em .35em; border-radius: .3em; }
.area-articulo .consejo { padding: .9em 1.1em; border-left: 4px solid var(--brand-light-color); background: var(--fondo); border-radius: 0 .5em .5em 0; font-size: .95em; }
.area-util { display: flex; align-items: center; gap: .8em; flex-wrap: wrap; padding: 1.1em 2.4em; border-top: 1px solid var(--linea); background: var(--fondo); border-radius: 0 0 .6em .6em; font-size: .93em; }
.area-util b { color: var(--tinta); margin-right: .4em; }
.area-anuncio { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); gap: 1.3em; padding: 1.4em 1.5em; border-top: 1px solid var(--linea); }
.area-anuncio:first-child { border-top: 0; }
.area-dia { text-align: center; border-radius: .5em; background: var(--fondo); padding: .55em 0 .5em; align-self: start; }
.area-dia b { display: block; font-size: 1.6em; line-height: 1; color: var(--dark-primary-color); }
.area-dia small { display: block; font-size: .72em; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin-top: .3em; }
.area-anuncio h2 { margin: 0 0 .35em; font-size: 1.1em; line-height: 1.35; }
.area-anuncio h2 a { color: var(--tinta); text-decoration: none; display: inline-block; } /* its whole lines are the target: 44 px or more on phones */
.area-anuncio h2 a:hover { color: var(--link-color); text-decoration: underline; }
.area-anuncio p { margin: 0 0 .5em; color: var(--texto); line-height: 1.6; }
.area-anuncio .leer { font-size: .9em; font-weight: bold; }

/* ---------- diálogo propio (el de la cesta): <dialog> con showModal() ---------- */
.area-dialogo { width: min(400px, calc(100vw - 2em)); box-sizing: border-box; border: 0; border-radius: .6em; padding: 1.5em; box-shadow: 0 10px 40px rgba(0, 30, 60, .35); color: #24313d; }
.area-dialogo::backdrop { background: rgba(11, 42, 64, .55); }
.area-dialogo h2 { margin: 0 0 .5em; font-size: 1.2em; color: #0b2a40; line-height: 1.35; }
.area-dialogo p { margin: 0 0 1.3em; color: #4a5866; line-height: 1.55; }
.area-dialogo .botones { display: flex; justify-content: flex-end; gap: .6em; flex-wrap: wrap; }
.area-dialogo .botones > * { min-height: 48px; }

/* ---------- ficha de servicio y baja (integración) ---------- */
/* style.css gives every "main ul" a margin (0,0,2), which beats the :where() reset. This rule has the same weight and
   comes later, so it wins; any class of the area (0,1,0) still sets its own margin (.area-adjuntos, .area-filtro...) */
body main :where(ul[class^="area-"], ol[class^="area-"]) { margin: 0; padding-left: 0; }
/* the hidden checkbox of the switch inherits width: 100% and margins from style.css and widened the page on phones */
.area .area-interruptor input { width: 1px; height: 1px; padding: 0; margin: 0; }
/* commitments in ink and at normal size: no fine print (owner, 30-10-2026) */
.area-compromiso.ambar { background: #fff8e6; font-size: 1em; color: var(--tinta); }
.area-datos dd .condicion { display: block; font-weight: normal; color: var(--tinta); font-size: .92em; }
progress.area-barra { display: block; width: 100%; -webkit-appearance: none; appearance: none; border: 0; color: var(--primary-color); }
progress.area-barra::-webkit-progress-bar { background: var(--linea); border-radius: 1em; }
progress.area-barra::-webkit-progress-value { background: linear-gradient(to right, var(--brand-light-color), var(--primary-color)); border-radius: 1em; }
progress.area-barra::-moz-progress-bar { background: linear-gradient(to right, var(--brand-light-color), var(--primary-color)); border-radius: 1em; }
.area-nota { margin: 0; color: var(--gris); font-size: .9em; line-height: 1.5; }
.area-uso + .area-nota { margin-top: 1em; }
.area-complemento + .area-complemento { margin-top: .6em; }
.area-seccion > p { line-height: 1.6; }
.area-modulo { margin-top: 1.5em; }
/* style.css gives every input appearance: none, width 100% and a border: radio buttons and checkboxes lost the mark that
   shows they are chosen (2FA method, any WHMCS form loaded inside the area). Native ones, in brand colour; weak selector,
   so .area-casilla, .area-interruptor and the like still style their own */
.area :where(input[type=radio], input[type=checkbox]) { -webkit-appearance: auto; appearance: auto; flex: none; width: 1.25em; height: 1.25em;
  padding: 0; margin: 0; border: 0; box-shadow: none; accent-color: var(--primary-color); vertical-align: middle; }
/* no red before the client tries to send (style.css marks every :invalid field at once); after a try, as in the cart */
.area :is(input, select, textarea):invalid { box-shadow: none; }
.area .intentado :is(input, select, textarea):invalid { border-color: #d01c2a; }
.area-seccion > p + p { margin-top: .7em; }
.area-botones { display: flex; flex-wrap: wrap; gap: .6em; margin: 1.2em 0 0; }
/* a data list after a paragraph, and text after a row of buttons, inside a section ("Tu copia", includes/tu-copia.tpl) */
.area-seccion > p + .area-datos { margin-top: 1em; }
.area-seccion > .area-botones + p { margin-top: 1.2em; }
.area-campo > label.area-casilla { display: flex; align-items: flex-start; gap: .6em; font-weight: normal; color: var(--texto); cursor: pointer; }
/* square, as in the cart (the theme gives every input appearance: none and a round border) */
.area .area-casilla input[type=checkbox] { flex: none; appearance: auto; -webkit-appearance: checkbox; width: 1.25em; height: 1.25em; padding: 0; border: 0;
  border-radius: .25em; box-shadow: none; margin: .15em 0 0; accent-color: var(--primary-color); }

/* ---------- tableta y móvil ---------- */
@media (max-width: 980px) {
  .area { grid-template-columns: 1fr; gap: 1.2em; padding-top: 1.2em; }
  /* el menú pasa a un botón con la sección actual, que despliega la lista entera */
  .area-menu { position: static; max-height: none; overflow: visible; padding: 0; margin: 0; }
  .area-quien { display: none; }
  .area-menu-boton { display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box; min-height: 48px; padding: .6em 1em;
    border: 1px solid var(--linea); border-radius: .5em; background: var(--fondo); font: inherit; font-weight: bold; color: var(--tinta); cursor: pointer; text-align: left; gap: 1em; }
  .area-menu-boton span { color: var(--gris); font-weight: normal; margin-right: .4em; }
  .area-menu-boton::after { content: ""; width: .75em; height: .75em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23006bae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
  .area-menu nav { display: none; margin-top: .5em; padding: .4em .6em .8em; border: 1px solid var(--linea); border-radius: .5em; background: #fff; }
  .area-menu.abierto nav { display: block; }
  .area-menu nav a.area-salir { display: flex; margin-top: .8em; border-top: 1px solid var(--linea); border-radius: 0; padding-top: .8em; color: var(--link-color); }
  .area-dos { grid-template-columns: 1fr; }
  .area-cifras { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .area-cabecera h1 { font-size: 1.6em; }
  .area-cabecera .acciones { width: 100%; }
  .area-cabecera .acciones > * { flex: 1 1 auto; }
  /* las listas: cada fila es una tarjeta con lo esencial arriba y el estado y la acción abajo */
  .area-lista.cabeza .area-fila:first-child { display: none; }
  .area-lista.facturas .area-fila, .area-lista.servicios .area-fila, .area-lista.servicios.corta .area-fila { grid-template-columns: minmax(0, 1fr) auto; gap: .5em 1em; padding: 1.1em 1.2em; }
  .area-lista.servicios .area-fila .area-icono { display: none; }
  .area-fila .fecha, .area-fila .vence { grid-column: 1 / -1; font-size: .85em; }
  .area-fila .vence::before { content: "Vence el "; color: var(--gris); }
  .area-fila .fecha[data-etiqueta]::before { content: attr(data-etiqueta) " "; color: var(--gris); }
  .area-fila .estado { grid-column: 1; }
  .area-fila .importe { grid-row: 1; grid-column: 2; }
  .area-fila .accion { grid-column: 2; grid-row: auto; }
  .area-datos, .area-rejilla, .area-opciones, .area-categorias { grid-template-columns: 1fr; }
  .area-mensaje { max-width: 100%; }
  .area-articulo { padding: 1.4em 1.3em 1.5em; }
  .area-util { padding: 1em 1.3em; }
  .area-acciones-pie { flex-direction: column-reverse; align-items: stretch; }
  /* the main action is the last one in the markup: on top on phones */
  .area-acciones-pie .derecha { margin-left: 0; flex-direction: column-reverse; }
  .area-acciones-pie .derecha > * { width: 100%; }
  .area-dialogo .botones { flex-direction: column-reverse; }
  .area-dialogo .botones > * { width: 100%; }
  .area-buscar { flex-direction: column; }
  .area-buscar input { flex: none; }
}

/* ---------- one received email, in its own window (viewemail.tpl) ---------- */
body.area-correo-ventana { margin: 0; background: var(--fondo, #f3f9fe); }
main.area.area-correo { display: block; max-width: none; margin: 0; padding: 1em; }
.area-correo h1 { margin: 0; font-size: 1.3em; line-height: 1.35; color: var(--tinta); }
.area-correo .area-adjuntos { margin-top: .8em; }
.area-correo-mensaje { display: block; width: 100%; height: calc(100vh - 12em); min-height: 18em; border: 0; border-top: 1px solid var(--linea); background: #fff; }

/* breadcrumb links ("Ayuda / Alojamiento y correo"): finger-sized (44 px) without moving the line */
.area-miga a { display: inline-block; min-width: 44px; padding: 15px 0; margin: -15px 0; text-align: center; }
/* the same for the other small links of a service page (render gate, 390 px): the domain under the heading, the link of
   a card's heading ("Añadir complementos") and the way to cancel. Padding on every side up to 44 px of height, given back
   with the same negative margin, so nothing moves */
.area-cabecera .sub a { display: inline-block; padding: 10px; margin: -10px; }
.area-seccion > h2 a, .area-tarjeta > h2 a { display: inline-block; padding: 12px; margin: -12px; }
.area-baja .area-enlace-gris { display: inline-block; padding: 15px; margin: -15px; }
/* and the focus ring stays where it was, 2px off the text as the global :focus-visible: the padding taken off */
.area-cabecera .sub a:focus-visible { outline-offset: -8px; }
.area-seccion > h2 a:focus-visible, .area-tarjeta > h2 a:focus-visible { outline-offset: -10px; }
.area-baja .area-enlace-gris:focus-visible { outline-offset: -13px; }

/* "¿No te ha llegado? Te lo mandamos otra vez" and its answer, under "Tu correo de acceso" (UX 17): in ink, normal size */
.area-reenvio { margin: -.5em 0 1em; color: var(--tinta); }
.area-reenvio .area-enlace { min-height: 44px; font-size: 1em; }
