/* Réplica del diseño de Elementor (Hello Elementor + kit "Kit por defecto") */
:root {
  --navy: #001c4e;
  --slate: #3c5373;
  --yellow: #edca53;
  --orange-yellow: #edac53;
  --green: #61ce70;
  --blue: #6eaee4;
  --text: #333;
  --gray: #7a7a7a;
  --gray-dark: #54595f;
  --line: #e4e4e4;
  --bg-soft: #fafafa;
  --bg-mid: #ebebeb;
  --star-empty: #ccd6df;
  --danger: #d9534f;
  --radius-card: 20px;
  --shadow-card: 0 0 10px rgba(0, 0, 0, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: #fff; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0 0 .5em; color: var(--text); }
a { color: var(--text); }
img { max-width: 100%; height: auto; }
input, select, textarea, button { font: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding-top: 50px; padding-bottom: 50px; }
.section-sm { margin-top: 24px; }
.muted { color: var(--gray); }
.small { font-size: .85rem; }
.center { text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.center { justify-content: center; }
.inline { display: inline; }
/* Un formulario con un solo botón dentro de una fila: que no añada altura extra y quede alineado con los enlaces-botón */
form.inline { display: inline-flex; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--navy); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }
.pre { white-space: pre-wrap; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 22px; border: 1px solid var(--yellow); border-radius: 8px;
  background: var(--yellow); color: #fff; font-weight: 400; text-decoration: none; cursor: pointer; line-height: 1.4; transition: background .2s, color .2s; }
.btn:hover { background: #fff; color: var(--yellow); }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; border-radius: 6px; }
.btn-green:hover { background: #fff; color: var(--green); }
.btn-green-outline { background: #fff; border: 1px solid var(--green); color: var(--green); border-radius: 6px; }
.btn-green-outline:hover { background: var(--green); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--gray); border-radius: 10px; color: var(--gray-dark); padding: 6px 20px; }
.btn-outline:hover { background: var(--gray-dark); color: #fff; }
.btn-light { background: #fff; border: 1px solid #ccc; border-radius: 10px; color: var(--gray-dark); padding: 6px 20px; }
.btn-light:hover { background: var(--gray-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--gray); color: var(--gray-dark); }
.btn-ghost:hover { background: var(--gray-dark); color: #fff; }
.btn-ghost-light { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 4px 12px; font-size: .9rem; }
.btn-google { background: #fff; border: 1px solid #dadce0; color: #3c4043; width: 100%; border-radius: 4px; }
.btn-google:hover { background: #f7f8f8; color: #3c4043; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; }

/* ---------- Cabecera ---------- */
.header { background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .12); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 93px; position: relative; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); font-size: 17px; }
.brand i { color: var(--yellow); font-size: 26px; }
.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav > a:not(.btn) { color: var(--text); text-decoration: none; font-size: 17px; }
.nav > a:not(.btn):hover, .nav > a:not(.btn)[aria-current="page"] { color: var(--yellow); }
.nav .search-link { color: var(--gray-dark); font-size: 17px; background: none; border: 0; cursor: pointer; padding: 0; }
.nav .btn { padding: 3px 10px; font-size: 15px; }
.menu-toggle { display: none; margin-left: auto; padding: 8px 12px; border: 0; background: none; color: var(--text); font-size: 22px; cursor: pointer; }
.search-pop { display: none; background: #fff; border-top: 1px solid var(--line); padding: 14px 0; }
.search-pop.open { display: block; }
.search-pop form { display: flex; gap: 8px; }
.search-pop input { flex: 1; }
@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: -16px; right: -16px; top: 100%; flex-direction: column; align-items: flex-start; gap: 14px; background: #fff; padding: 16px 24px 24px; box-shadow: 0 8px 10px rgba(0, 0, 0, .08); }
  .nav.open { display: flex; }
}

.flash { padding: 12px 0; text-align: center; }
.flash-ok { background: #e9f8ec; color: #23863a; }
.flash-error { background: #fdecea; color: #b3261e; }

/* ---------- Estrellas ---------- */
.stars { position: relative; display: inline-block; color: var(--star-empty); letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--yellow); }
.stars-sm { font-size: 16px; }
.stars-md { font-size: 18px; }
.stars-lg { font-size: 22px; }

/* ---------- Secciones genéricas ---------- */
.sec-soft { background: var(--bg-soft) url(/img/fondo-forma.png) right top / cover no-repeat; }
.sec-white { background: #fff; }
.sec-gray { background: #f3f3f3; }
.sec-navy { background: var(--navy); color: #fff; }
.sec-navy h2 { color: #fff; }
.sec-title { text-align: center; color: var(--gray); font-size: 32px; font-weight: 500; margin: 0; }
.sec-sub { text-align: center; color: var(--gray); margin: 10px 0 0; }
.sec-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.page-title { text-align: center; color: var(--gray); font-size: clamp(30px, 4vw, 40px); font-weight: 500; margin: 0; }
.more { text-align: center; margin-top: 30px; }
.rank-block + .rank-block { margin-top: 70px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #ebebeb 0%, var(--navy) 44%); color: #fff; padding: 70px 0 60px; text-align: center; }
.hero-title { display: inline-flex; align-items: center; gap: 22px; color: #fff; font-size: clamp(32px, 5vw, 40px); font-weight: 400; margin: 0 0 40px; }
.hero-title i { font-size: 1.15em; }
.hero-title span { color: var(--yellow); }
.hero p.lead { max-width: 580px; margin: 0 auto 14px; line-height: 1.1; }
.hero-search { display: flex; gap: 10px; justify-content: center; margin: 0 auto 30px; }
.hero-search input[type=search] { width: 316px; max-width: 70vw; min-height: 34px; height: 34px; border: 0; border-radius: 0; padding: 0 12px; text-align: center; font-size: 14px; color: var(--text); }
.hero-search button { width: 44px; height: 34px; border: 0; background: var(--yellow); color: #fff; cursor: pointer; }

/* ---------- Carrusel ---------- */
.carousel { position: relative; padding: 0 10px; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 0; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; flex: 0 0 calc((100% - 60px) / 4); }
.carousel-3 .carousel-track > * { flex-basis: calc((100% - 40px) / 3); }
@media (max-width: 1024px) { .carousel-track > *, .carousel-3 .carousel-track > * { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .carousel-track > *, .carousel-3 .carousel-track > * { flex-basis: 88%; } }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #a4afb7; font-size: 22px; cursor: pointer; padding: 6px; }
.carousel-btn.prev { left: -26px; }
.carousel-btn.next { right: -26px; }
.hero .carousel-btn { color: rgba(255, 255, 255, .6); }
@media (max-width: 1200px) { .carousel-btn { display: none; } }

/* ---------- Tarjetas ---------- */
.card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 20px 25px; }
.box { background: #fff; padding: 40px 50px; }
@media (max-width: 640px) { .box { padding: 28px 20px; } }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

/* Tarjeta de entidad: nombre / estrellas / ubicación / valoraciones, separados por líneas */
.entity-card { display: block; padding: 20px 15px 20px 20px; color: var(--text); text-decoration: none; font-size: 15px; }
.entity-card:hover { box-shadow: 0 0 14px rgba(0, 0, 0, .15); }
.entity-card > div { padding: 10px 0; border-top: 1px solid var(--line); }
.entity-card > div:first-child { border-top: 0; padding-top: 0; }
.entity-card .ec-title { padding-right: 10%; }
.entity-card .ec-none { color: #c9c9c9; }

/* Tarjeta de comentario */
.comment-card { padding: 25px; font-size: 16px; }
.cc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cc-user { display: flex; align-items: center; gap: 10px; color: var(--gray); font-size: 13px; line-height: 1.5; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #c9c9c9; color: #fff; display: grid; place-items: center; font-size: 17px; flex: none; }
.cc-rating { text-align: center; font-size: 10px; color: var(--gray); }
.cc-rating .stars { display: block; margin-bottom: 4px; }
.cc-entity { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--gray); font-size: 13px; }
.cc-entity a { color: var(--gray); text-decoration: none; }
.cc-entity a:hover { text-decoration: underline; }
.cc-text { padding-top: 18px; margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.cc-date { margin: 12px 0 0; font-size: 12px; color: #aaa; }
.hero .comment-card { text-align: left; color: var(--text); }

/* ---------- Banner publicitario ---------- */
.ad { background: var(--slate); }
.ad-inner { display: block; line-height: 0; text-align: center; }
.ad-inner img { width: 100%; max-width: 1280px; }

/* ---------- Banda "sugerir abogado" ---------- */
.suggest { padding: 80px 0; text-align: center; }
.suggest h2 { font-size: 32px; font-weight: 500; margin: 0 0 8px; }
.suggest p { margin: 0 0 22px; }
.suggest .row { justify-content: center; gap: 24px; }
.suggest .btn { padding: 12px 16px; }

/* ---------- ¿Por qué nace? ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
.why-text { color: var(--gray); }
.why-text p:first-child { margin-top: 0; }
.icon-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.icon-box { background: #fff; border-radius: 10px; box-shadow: 0 0 20px rgba(0, 0, 0, .06); padding: 20px; text-align: center; }
.icon-box i { font-size: 48px; color: var(--orange-yellow); display: block; margin-bottom: 14px; }
.icon-box h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.icon-box p { margin: 0; color: var(--gray); }
@media (max-width: 560px) { .icon-boxes { grid-template-columns: 1fr; } }

.videos { background: linear-gradient(180deg, #ebebeb 0%, var(--slate) 100%); padding: 50px 0; }
.videos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: 20px; justify-content: center; }
@media (max-width: 760px) { .videos-grid { grid-template-columns: 1fr; } }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.register-why { padding: 60px 0 70px; text-align: center; }
.register-why h2 { font-size: 32px; font-weight: 400; margin-bottom: 26px; }
.register-why p { max-width: 600px; margin: 0 auto 12px; line-height: 1.3; }
.register-why a { color: var(--yellow); text-decoration: none; }
.mini-boxes { display: flex; justify-content: center; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.mini-boxes a { width: 176px; padding: 22px 10px; background: #fff; border-radius: 10px; color: var(--gray); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mini-boxes i { font-size: 48px; color: var(--yellow); }
.mini-boxes a:hover { box-shadow: 0 0 0 3px var(--yellow); }

/* ---------- Listado y filtros ---------- */
.list-head { padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.list-head .sec-sub { margin-bottom: 30px; }
.filters { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; gap: 2px; font-size: 16px; color: var(--text); }
.filters select { width: 160px; }
.filters .f-search { margin-left: auto; display: flex; gap: 10px; align-items: flex-end; }
.filters .f-search input { width: 210px; }
.filters .btn { min-height: 42px; border-radius: 10px; }
@media (max-width: 640px) {
  /* Móvil: desplegables en dos columnas a todo el ancho y buscador debajo */
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
  .filters label { font-size: 14px; color: var(--gray-dark); min-width: 0; }
  .filters select { width: 100%; padding-left: 10px; padding-right: 6px; font-size: 15px; }
  .filters > label:nth-of-type(odd):last-of-type { grid-column: 1 / -1; }
  .filters .f-search { grid-column: 1 / -1; margin-left: 0; }
  .filters .f-search label { flex: 1; min-width: 0; }
  .filters .f-search input { width: 100%; }
}
.filter-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; font-size: 14px; }
.filter-links a { color: var(--gray); }
.filter-links a[aria-current] { color: var(--text); font-weight: 600; }
.filter-links .f-clear { color: var(--danger); }
@media (max-width: 640px) {
  /* Ordenar como pastillas que bajan de línea en vez de salirse de la pantalla */
  .filter-links { gap: 8px; margin-top: 16px; }
  .filter-links .f-sort-label { flex: 1 1 100%; }
  .filter-links a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--gray-dark);
    text-decoration: none; white-space: nowrap; line-height: 1.3; }
  .filter-links a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 500; }
  .filter-links .f-clear { border-color: #f1c4c2; background: #fdf1f0; color: var(--danger); }
}
.results-count { margin: -24px 0 16px; color: var(--gray); font-size: 14px; }
.empty { padding: 40px; text-align: center; color: var(--gray); background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.tiles a { display: flex; flex-direction: column; gap: 6px; padding: 20px 25px; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); text-decoration: none; color: var(--text); }
.tiles a:hover { box-shadow: 0 0 14px rgba(0, 0, 0, .15); }

/* ---------- Formularios ---------- */
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input:not([type]), select, textarea {
  width: 100%; padding: 8px 16px; border: 1px solid #666; border-radius: 3px; background: #fff; color: var(--text); font-size: 16px; min-height: 42px; }
select { padding: 8px 12px; color: var(--gray); }
textarea { resize: vertical; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.stack label, .entity-form label { display: flex; flex-direction: column; gap: 2px; }
label.check, .stack label.check { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; text-align: left; }
label.check input { width: 16px; height: 16px; margin: calc((1.5em - 16px) / 2) 0 0; accent-color: #1a73e8; flex: none; }
label.check > span { flex: 1; min-width: 0; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
fieldset { border: 1px solid #666; border-radius: 3px; padding: 6px 12px 10px; margin: 0; }
legend { padding: 0 4px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 6px 16px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-actions .btn { border-radius: 3px; }
.divider-text { text-align: center; color: var(--gray); margin: 4px 0; font-size: .875rem; }
.google-terms { margin: -8px 0 0; }
.form-link { color: #0a8fd8; text-decoration: none; }
.form-link:hover { text-decoration: underline; }

/* Páginas de acceso: cajas blancas sobre gris */
.auth-bg { background: var(--bg-mid); padding: 50px 16px; }
.auth-box { max-width: 600px; margin: 0 auto 48px; background: #fff; padding: 50px; }
.auth-box:last-child { margin-bottom: 0; }
.auth-box h1, .auth-box h2 { text-align: center; font-size: 24px; font-weight: 600; margin-bottom: 40px; }
.auth-box h2 { margin-bottom: 16px; }
.auth-box .btn { border-radius: 3px; }
@media (max-width: 640px) { .auth-box { padding: 30px 20px; } }

/* ---------- Ficha ---------- */
.entity-top { background: var(--bg-soft); padding: 50px 0; }
.entity-top-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 900px) { .entity-top-inner { grid-template-columns: 1fr; } }
.entity-info { padding: 0 10px; }
.entity-info h1 { font-size: 28px; font-weight: 500; margin: 0 0 4px; }
.entity-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.entity-info .badge { margin-bottom: 12px; }
.icon-list { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 8px; }
.icon-list li { display: flex; gap: 12px; align-items: baseline; }
.icon-list i { width: 14px; color: #000; }
.icon-list a { color: var(--gray-dark); text-decoration: none; }
.icon-list a:hover { text-decoration: underline; }
.entity-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* Valorar y Favorito con el mismo tamaño */
.entity-actions .btn { min-height: 40px; padding: 6px 18px; border-radius: 8px; font-size: 15px; line-height: 1.3; }
.map { border-radius: 10px; overflow: hidden; height: 300px; background: #e8eef3; }
.map iframe { width: 100%; height: 100%; border: 0; }
.services-line { color: var(--gray-dark); margin: 0; }
.services-line a { color: var(--gray-dark); text-decoration: none; }
.services-line a:hover { text-decoration: underline; }
.sec-h { font-size: 32px; font-weight: 400; margin: 0 0 30px; }
.q-list { list-style: none; padding: 0; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.q-list li { display: flex; align-items: center; gap: 20px; padding: 6px 0; }
.q-list li.total { padding-bottom: 16px; }
.prose { overflow-wrap: anywhere; }
.prose p:first-child { margin-top: 0; }
.badge { display: inline-block; background: #fff3cd; color: #7a5b00; padding: 4px 10px; border-radius: 6px; font-size: .875rem; }
.answers { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; margin: 12px 0; font-size: .95rem; }
.answers dt { color: var(--gray); }
.answers dd { margin: 0; text-align: right; }
@media (max-width: 560px) {
  .answers { grid-template-columns: 1fr; gap: 0; }
  .answers dt { padding-top: 10px; border-top: 1px solid var(--line); font-size: .9rem; }
  .answers dt:first-of-type { border-top: 0; padding-top: 0; }
  .answers dd { text-align: left; font-weight: 500; padding-bottom: 2px; }
}
/* Editar / Borrar mi valoración */
.review-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.review-actions .btn { min-height: 42px; white-space: nowrap; }
.review-actions .btn:not([class*="btn-"]) { color: var(--navy); font-weight: 600; }
@media (max-width: 560px) {
  .review-actions > * { flex: 1 1 0; }
  .review-actions .btn { width: 100%; }
  .acc-item-actions > * { flex: 1 1 0; }
  .acc-item-actions .btn { width: 100%; min-height: 40px; }
}

/* Formulario de valoración paso a paso */
.review-form { display: flex; flex-direction: column; gap: 16px; }
.review-form .step { border: 0; padding: 0; }
/* Regresar a la izquierda; Continuar / Enviar a la derecha */
.review-form .form-actions { justify-content: space-between; }
.review-form .form-actions > :last-child { margin-left: auto; }
.review-form legend { font-size: 20px; font-weight: 500; padding: 0; margin-bottom: 14px; }
.step-n { display: inline-block; color: var(--gray); font-size: 14px; margin-right: 6px; }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #ccc; border-radius: 8px; cursor: pointer; background: #fff; }
.option:hover { border-color: var(--yellow); }
.option:has(input:checked) { border-color: var(--yellow); background: #fffbea; }
.option input { width: 18px; height: 18px; accent-color: var(--yellow); }
.review-form.js-steps .step { display: none; }
.review-form.js-steps .step.active { display: block; }
.review-form.js-steps .form-actions [type=submit] { display: none; }
.review-form.js-steps.last .form-actions [type=submit] { display: inline-flex; }
.progress { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--yellow); transition: width .2s; }

/* ---------- Mi cuenta ---------- */
.account { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 20px 30px; align-items: start; }
.account-nav { grid-row: 1 / span 2; }
.account > .acc-band, .account-body { grid-column: 2; }
.account-nav { display: flex; flex-direction: column; background: #fff; border-radius: 10px; box-shadow: var(--shadow-card); overflow: hidden; }
.account-nav a { padding: 12px 18px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.account-nav a:last-child { border-bottom: 0; }
.account-nav a:hover { color: var(--yellow); }
.account-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
/* En móvil, la columna se sustituye por un acordeón */
.account-menu { display: none; }
@media (max-width: 800px) {
  .account { grid-template-columns: 1fr; grid-template-rows: none; gap: 16px; }
  .account > .acc-band, .account-body { grid-column: auto; }
  .account-nav { display: none; }
  .account-menu { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-card); overflow: hidden; }
  .account-menu summary { display: flex; flex-direction: column; gap: 2px; position: relative; padding: 12px 48px 12px 18px; cursor: pointer;
    list-style: none; font-weight: 500; color: var(--navy); }
  .account-menu summary::-webkit-details-marker { display: none; }
  .account-menu summary .small { font-weight: 400; }
  .account-menu summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
    border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
  .account-menu[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
  .account-menu nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
  .account-menu a { padding: 12px 18px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
  .account-menu a:last-child { border-bottom: 0; }
  .account-menu a[aria-current="page"] { background: var(--bg-soft); color: var(--navy); font-weight: 500; box-shadow: inset 4px 0 0 var(--navy); }
}

/* Contenido de Mi cuenta */
.acc { display: flex; flex-direction: column; gap: 20px; }
.acc h2, .acc h3 { margin: 0; }
.acc-h { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-top: 8px !important; }
.acc-card { padding: 24px; }
.acc-card-title { display: block; font-size: 1.2rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.acc-card-title i { color: var(--orange-yellow); font-size: 1rem; width: 20px; margin-right: 8px; text-align: center; }
.acc-card-title a { color: inherit; }
.account-body .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.acc-card .review-form, .acc-card .entity-form { margin-top: 4px; }
.acc-back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--slate); font-size: .95rem; }
.acc-back:hover { color: var(--navy); }
.acc-break { overflow-wrap: anywhere; }
/* Botón principal legible: texto azul oscuro sobre amarillo (el blanco sobre amarillo apenas contrasta) */
.account-body .btn:not([class*="btn-"]) { color: var(--navy); font-weight: 600; }
.account-body .btn:not([class*="btn-"]):hover { background: #f4dc8a; color: var(--navy); }
.account-body .btn i { font-size: .85em; }

/* Banda azul de cabecera (portada y cada sección) */
.acc-band { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--slate)); color: #fff; }
.acc-band-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-band h1 { margin: 0; color: #fff; font-size: 1.3rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.acc-band p { margin: 2px 0 0; color: rgba(255, 255, 255, .82); font-size: .925rem; line-height: 1.45; }
.acc-crumb { color: rgba(255, 255, 255, .7); font-size: .8rem; text-decoration: none; letter-spacing: .02em; }
.acc-crumb:hover { color: #fff; }
.acc-band .acc-avatar { width: 44px; height: 44px; font-size: 1rem; }
.acc-band-hero { padding: 22px 24px; gap: 16px; border-radius: var(--radius-card); }
.acc-band-hero h1 { font-size: 1.4rem; }
.acc-band-hero .acc-avatar { width: 56px; height: 56px; font-size: 1.2rem; }
.acc-band-action.btn { flex: none; align-self: center; min-height: 40px; padding: 6px 16px; border-radius: 10px; color: var(--navy); font-weight: 600; white-space: nowrap; }
.acc-band-action.btn:hover { background: #f4dc8a; color: var(--navy); }
.acc-band-action.is-back { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; font-weight: 500; }
.acc-band-action.is-back:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.acc-avatar { flex: none; display: grid; place-items: center; border-radius: 50%; object-fit: cover;
  background: var(--yellow); color: var(--navy); font-weight: 700; border: 2px solid rgba(255, 255, 255, .6); }

/* Cifras */
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.acc-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-card); text-decoration: none; color: var(--gray-dark); font-size: .9rem; transition: box-shadow .2s, transform .2s; }
.acc-stat:hover { box-shadow: 0 4px 16px rgba(0, 28, 78, .14); transform: translateY(-1px); }
.acc-stat i { color: var(--orange-yellow); font-size: 1rem; margin-bottom: 6px; }
.acc-stat b { font-size: 1.75rem; line-height: 1.1; font-weight: 600; color: var(--navy); }

/* Accesos */
.acc-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.acc-action { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.acc-action:hover { border-color: var(--navy); box-shadow: 0 4px 16px rgba(0, 28, 78, .1); color: var(--text); }
.acc-action > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-action b { color: var(--navy); font-weight: 600; }
.acc-action small { color: var(--gray); font-size: .875rem; line-height: 1.35; }
.acc-action > i { color: var(--gray); font-size: .8rem; }
.acc-action-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #eef2f8; color: var(--navy); }
.acc-action-main { background: #fffaf0; border-color: #f2e2ad; }
.acc-action-main .acc-action-icon { background: var(--yellow); }

/* Listas de valoraciones y abogados */
.acc-list { display: flex; flex-direction: column; gap: 14px; }
.acc-item { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-card); }
.acc-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 16px; flex-wrap: wrap; }
.acc-item-head h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; flex: 1 1 200px; }
.acc-item-head h3 a { color: var(--navy); text-decoration: none; }
.acc-item-head h3 a:hover { text-decoration: underline; }
.acc-score { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.acc-score b { color: var(--navy); font-weight: 600; font-size: .95rem; }
.acc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: var(--gray); font-size: .875rem; }
.acc-meta i { margin-right: 2px; }
.acc-quote { margin: 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--yellow); color: var(--text); line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
/* Valoración desplegable: cerrada muestra 4 líneas del comentario; abierta, todo y las respuestas */
.acc-review.js-expand { cursor: pointer; }
.acc-review.js-expand:not(.is-open) .acc-quote { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.acc-review-more h4 { margin: 4px 0 6px; font-size: .95rem; font-weight: 600; color: var(--navy); }
.acc-review-more .answers { margin: 0; }
.acc-review.js-expand:not(.is-open) .acc-review-more { display: none; }
.acc-toggle { display: none; align-self: flex-start; align-items: center; gap: 6px; padding: 4px 0; background: none; border: 0; cursor: pointer;
  color: var(--navy); font-weight: 600; font-size: .925rem; }
.acc-toggle i { font-size: .75rem; transition: transform .2s; }
.acc-review.js-expand .acc-toggle { display: inline-flex; }
.acc-review.is-open .acc-toggle i { transform: rotate(180deg); }
/* Acción principal al final de la página (solo móvil) */
.acc-bottom-action { display: none; }
.acc-item-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.badge-ok { background: #e6f6ea; color: #1e7a34; }
.badge-warn { background: #fdf3d8; color: #8a6200; }
.badge-muted { background: #eef0f3; color: var(--gray-dark); }

/* Vacío */
.acc-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 24px; text-align: center; background: #fff;
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); color: var(--gray-dark); }
.acc-empty p { margin: 0; max-width: 34ch; line-height: 1.5; }
.acc-empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #eef2f8; color: var(--navy); font-size: 1.3rem; }

/* Notas */
.acc-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; background: #f3f6fb; border-radius: 10px; color: var(--gray-dark); font-size: .9rem; line-height: 1.45; }
.acc-note i { color: var(--slate); margin-top: 3px; }

@media (max-width: 560px) {
  .acc-card { padding: 20px 16px; }
  .acc-band { padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
  .acc-band h1 { font-size: 1.15rem; }
  .acc-band .acc-avatar { width: 38px; height: 38px; font-size: .9rem; align-self: flex-start; }
  .acc-band-action.btn { flex: 1 1 100%; }
  .acc-band-action:not(.is-back) { display: none !important; }
  .acc-bottom-action { display: block; }
  .acc-bottom-action .btn { width: 100%; min-height: 46px; color: var(--navy); font-weight: 600; }
  .acc-band-hero { padding: 18px; gap: 14px; flex-wrap: nowrap; }
  .acc-band-hero h1 { font-size: 1.2rem; }
  .acc-band-hero .acc-avatar { width: 48px; height: 48px; align-self: center; }
  .acc-actions { grid-template-columns: 1fr; }
  .acc-stat { padding: 14px 12px; }
  .acc-stat b { font-size: 1.5rem; }
  .acc-item { padding: 18px 16px; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 20px; margin: 20px 0 30px; }
.stat { display: flex; flex-direction: column; padding: 20px; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); text-decoration: none; color: var(--gray); }
.stat b { font-size: 2rem; font-weight: 500; color: var(--navy); }
.list { display: flex; flex-direction: column; gap: 16px; list-style: none; padding: 0; margin: 0; }
.list-item { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.list-item h3 { margin: 0; font-size: 17px; }
.list-item h3 a { text-decoration: none; }
.list-item p { margin: 4px 0 0; }
.lead-dark { font-size: 1.1rem; }

/* ---------- Administración ---------- */
.admin h1 { font-size: 28px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.admin-nav a { padding: 6px 14px; background: #fff; border: 1px solid #ccc; border-radius: 20px; text-decoration: none; color: var(--text); }
.admin-nav a:hover { border-color: var(--yellow); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.toolbar input, .toolbar select { width: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; display: block; overflow-x: auto; border-radius: 10px; box-shadow: var(--shadow-card); }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--gray); font-weight: 500; white-space: nowrap; }
.pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #eef0f4; font-size: .75rem; }
.pill-publish { background: #e9f8ec; color: #23863a; margin-left: 0; }
.pill-draft { background: #fff3cd; color: #7a5b00; }
.review-admin summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.review-admin .pill { margin-left: 0; }
.excerpt { flex-basis: 100%; color: var(--gray); font-style: italic; }
.danger-zone { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.unread { border-left: 4px solid var(--yellow); }

/* ---------- Pie ---------- */
.footer { background: #000; color: #fff; padding: 50px 0; text-align: center; }
.footer p { margin: 0 0 20px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 0; margin-bottom: 20px; }
.footer-links a { color: #fff; text-decoration: none; min-width: 175px; }
.footer-links a:hover { color: var(--yellow); }
.partners { display: flex; gap: 20px; justify-content: center; margin-bottom: 20px; }
.partners img { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; background: #fff; }
.credit { margin: 0; }
.credit a { color: var(--blue); text-decoration: none; }

/* Aviso de cookies (estilo Complianz) */
.cookie { position: fixed; right: 10px; bottom: 10px; width: min(526px, calc(100% - 20px)); background: #fff; border-radius: 12px; box-shadow: 0 0 10px rgba(0, 0, 0, .25); padding: 20px; z-index: 40; font-size: 12px; color: var(--text); }
.cookie h2 { text-align: center; font-size: 15px; font-weight: 500; margin: 0 0 16px; }
.cookie p { margin: 0 0 16px; line-height: 1.5; }
.cookie .row button { flex: 1; padding: 10px; border-radius: 6px; border: 1px solid #1e73be; cursor: pointer; font-size: 15px; }
.cookie .accept { background: #1e73be; color: #fff; }
.cookie .deny { background: #f9f9f9; color: #1e73be; }
.cookie .links { text-align: center; margin: 12px 0 0; }
.cookie .links a { color: #1e73be; margin: 0 4px; }
.cookie[hidden] { display: none; }
