/* =========================================================
   Punt Web · estilos
   1. Base y agencia (prefijo .ag-)
   2. Pestañas de ejemplos (.tabs, .tab-*)
   3. Base común de los ejemplos (.ej, .mapa)
   4. Un tema por sector (.ej-taller, .ej-pelu, .ej-resto, .ej-fonta,
      .ej-ropa, .ej-acade, .ej-inmo, .ej-dental, .ej-gym, .ej-legal)
   ========================================================= */

/* ---------- 1. BASE Y AGENCIA ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

:root {
  --ag-azul: #1f3a5f;
  --ag-azul-osc: #142840;
  --ag-naranja: #ff8a3d;
  --ag-texto: #1d2430;
  --ag-suave: #4a5566;
  --ag-fondo-alt: #f3f6fa;
  --ag-borde: #d9e0ea;
  --foco: #ff8a3d;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ag-texto);
  background: #fff;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4, h5 { line-height: 1.2; }
a { color: var(--ag-azul); }

:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; }

.saltar {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ag-azul); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.saltar:focus { top: 1rem; }

.ag-contenedor { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.ag-estrecho { width: min(800px, 100% - 2.5rem); }

/* Cabecera */
.ag-cab {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--ag-borde);
}
.ag-cab-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: .6rem 0; }
.ag-marca { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ag-azul); font-size: 1.35rem; letter-spacing: -.01em; }
.ag-marca strong { color: var(--ag-azul); font-weight: 800; }
.ag-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; }
.ag-nav a { display: inline-block; padding: .4rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ag-texto); font-weight: 500; font-size: .98rem; }
.ag-nav a:hover { background: var(--ag-fondo-alt); }
.ag-nav .ag-nav-cta { background: var(--ag-azul); color: #fff; }
.ag-nav .ag-nav-cta:hover { background: var(--ag-azul-osc); }

@media (max-width: 600px) {
  .ag-cab { position: static; }
  .ag-nav { width: 100%; }
  .ag-nav ul { justify-content: space-between; }
  .ag-nav a { padding: .35rem .45rem; font-size: .92rem; }
}

/* Hero */
.ag-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(255,138,61,.22), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(79,140,214,.25), transparent 45%),
    linear-gradient(160deg, #142840, #1f3a5f 60%, #24476f);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.ag-hero-in { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .ag-hero-in { grid-template-columns: 1.4fr 1fr; } }
.ag-etiqueta { display: inline-block; margin: 0 0 1rem; padding: .25rem .8rem; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-size: .9rem; letter-spacing: .04em; }
.ag-hero h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); margin: 0; letter-spacing: -.03em; }
.ag-eslogan { font-size: clamp(1.25rem, 3vw, 1.7rem); margin: .3rem 0 1.2rem; color: #ffd2b3; font-weight: 600; }
.ag-valor { max-width: 36rem; font-size: 1.12rem; color: #e6edf6; margin: 0 0 2rem; }
.ag-botones { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn { display: inline-block; padding: .85rem 1.4rem; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primario { background: var(--ag-naranja); color: #1a1208; }
.btn-primario:hover { background: #ffa465; }
.btn-secundario { border-color: #fff; color: #fff; background: transparent; }
.btn-secundario:hover { background: rgba(255,255,255,.12); }
.ag-hero .btn:focus-visible { outline-color: #fff; }

/* Ilustración del hero */
.ag-hero-ilus { position: relative; justify-self: center; width: 240px; height: 360px; }
.ilus-movil { position: absolute; inset: 0; border-radius: 34px; background: #0d1a2b; padding: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(-5deg); }
.ilus-pantalla { height: 100%; border-radius: 24px; background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ilus-pantalla span { display: block; border-radius: 6px; }
.ilus-barra { height: 12px; width: 50%; background: var(--ag-azul); }
.ilus-bloque { height: 80px; background: linear-gradient(135deg, #4f8cd6, #9cc3ef); }
.ilus-b2 { height: 50px; background: linear-gradient(135deg, #ffd2b3, #ff8a3d); }
.ilus-linea { height: 9px; background: #d9e0ea; }
.ilus-corta { width: 65%; }
.ilus-boton { margin-top: auto; height: 34px; background: #25d366; border-radius: 999px !important; }
.ilus-precio { position: absolute; right: -28px; top: 36px; background: var(--ag-naranja); color: #1a1208; font-weight: 800; font-size: 1.5rem; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; transform: rotate(10deg); box-shadow: 0 10px 25px rgba(0,0,0,.3); }

/* Secciones */
.ag-seccion { padding: clamp(3rem, 7vw, 5rem) 0; scroll-margin-top: 4rem; }
.ag-alt { background: var(--ag-fondo-alt); }
.ag-seccion h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 .75rem; letter-spacing: -.02em; color: var(--ag-azul); }
.ag-intro { color: var(--ag-suave); max-width: 44rem; margin: 0 0 2rem; }
.ag-propuesta { display: inline-block; vertical-align: middle; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; background: #fff1e6; color: #8a3a00; border: 1px solid #ffc79f; padding: .15rem .6rem; border-radius: 999px; }

.ag-incluye { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ag-incluye li { position: relative; padding: 1.1rem 1.1rem 1.1rem 3rem; border: 1px solid var(--ag-borde); border-radius: 14px; background: #fff; }
.ag-incluye li::before { content: ""; position: absolute; left: 1rem; top: 1.25rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--ag-naranja) radial-gradient(circle, #fff 30%, transparent 32%); }
.ag-incluye strong { display: block; color: var(--ag-azul); }
.ag-nota { margin: 1.5rem 0 0; font-size: .95rem; color: var(--ag-suave); border-left: 4px solid var(--ag-naranja); padding: .3rem 0 .3rem 1rem; }

.ag-pasos { list-style: none; counter-reset: paso; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ag-pasos li { counter-increment: paso; background: #fff; border-radius: 16px; padding: 1.4rem; border: 1px solid var(--ag-borde); }
.ag-pasos li::before { content: counter(paso); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ag-azul); color: #fff; font-weight: 800; margin-bottom: .8rem; }
.ag-pasos h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.ag-pasos p { margin: 0; color: var(--ag-suave); }

/* FAQ */
details { background: #fff; border: 1px solid var(--ag-borde); border-radius: 12px; margin-bottom: .75rem; }
summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--ag-azul); list-style-position: outside; margin-left: 1rem; }
summary:focus-visible { outline-offset: -3px; border-radius: 12px; }
details p { margin: 0; padding: 0 1.2rem 1.1rem 2.2rem; color: var(--ag-suave); }

/* Contacto */
.ag-contacto { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .ag-contacto { grid-template-columns: 1fr 1fr; } }
.ag-datos { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.ag-datos li { padding: .9rem 1.1rem; background: var(--ag-fondo-alt); border-radius: 12px; }
.ag-datos span { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ag-suave); }
.ag-datos em { color: #8a3a00; font-style: normal; font-size: .9rem; }
.ag-form { display: grid; gap: .4rem; background: #fff; border: 1px solid var(--ag-borde); border-radius: 16px; padding: 1.5rem; }
.ag-form label { font-weight: 600; margin-top: .5rem; }
.ag-form input, .ag-form textarea { font: inherit; padding: .65rem .8rem; border: 1px solid #8a97a8; border-radius: 8px; width: 100%; }
.ag-form button { margin-top: 1rem; justify-self: start; }
.ag-aviso { margin: 0 0 .25rem; padding: .6rem .8rem; border-radius: 8px; background: #fff1e6; color: #6b2d00; font-size: .95rem; }

/* Pie */
.ag-pie { background: var(--ag-azul-osc); color: #d5deea; padding: 2rem 0; font-size: .95rem; }
.ag-pie-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.ag-pie p { margin: 0; }
.ag-pie a { color: #fff; }
.ag-pie a:focus-visible { outline-color: #fff; }

/* ---------- 2. PESTAÑAS ---------- */
.tabs { position: relative; }
/* Radios accesibles pero invisibles: siguen recibiendo foco y flechas */
.tab-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }

.tab-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr)); gap: .5rem; }
@media (min-width: 1100px) { .tab-lista { grid-template-columns: repeat(10, 1fr); } }
.tab-lista label {
  display: block; text-align: center; cursor: pointer; user-select: none;
  padding: .7rem .3rem; border-radius: 10px; font-weight: 700; font-size: .95rem;
  border: 2px solid var(--ag-borde); background: #fff; color: var(--ag-azul);
  white-space: nowrap;
}
.tab-lista label:hover { border-color: var(--ag-azul); }
.tab-ayuda { font-size: .88rem; color: var(--ag-suave); margin: .6rem 0 1.5rem; }

#estilo-1:checked ~ .ag-contenedor label[for="estilo-1"],
#estilo-2:checked ~ .ag-contenedor label[for="estilo-2"],
#estilo-3:checked ~ .ag-contenedor label[for="estilo-3"],
#estilo-4:checked ~ .ag-contenedor label[for="estilo-4"],
#estilo-5:checked ~ .ag-contenedor label[for="estilo-5"],
#estilo-6:checked ~ .ag-contenedor label[for="estilo-6"],
#estilo-7:checked ~ .ag-contenedor label[for="estilo-7"],
#estilo-8:checked ~ .ag-contenedor label[for="estilo-8"],
#estilo-9:checked ~ .ag-contenedor label[for="estilo-9"],
#estilo-10:checked ~ .ag-contenedor label[for="estilo-10"] {
  background: var(--ag-azul); border-color: var(--ag-azul); color: #fff;
}

#estilo-1:focus-visible ~ .ag-contenedor label[for="estilo-1"],
#estilo-2:focus-visible ~ .ag-contenedor label[for="estilo-2"],
#estilo-3:focus-visible ~ .ag-contenedor label[for="estilo-3"],
#estilo-4:focus-visible ~ .ag-contenedor label[for="estilo-4"],
#estilo-5:focus-visible ~ .ag-contenedor label[for="estilo-5"],
#estilo-6:focus-visible ~ .ag-contenedor label[for="estilo-6"],
#estilo-7:focus-visible ~ .ag-contenedor label[for="estilo-7"],
#estilo-8:focus-visible ~ .ag-contenedor label[for="estilo-8"],
#estilo-9:focus-visible ~ .ag-contenedor label[for="estilo-9"],
#estilo-10:focus-visible ~ .ag-contenedor label[for="estilo-10"] {
  outline: 3px solid var(--foco); outline-offset: 3px;
}

.panel { display: none; }
#estilo-1:checked ~ .paneles #panel-1,
#estilo-2:checked ~ .paneles #panel-2,
#estilo-3:checked ~ .paneles #panel-3,
#estilo-4:checked ~ .paneles #panel-4,
#estilo-5:checked ~ .paneles #panel-5,
#estilo-6:checked ~ .paneles #panel-6,
#estilo-7:checked ~ .paneles #panel-7,
#estilo-8:checked ~ .paneles #panel-8,
#estilo-9:checked ~ .paneles #panel-9,
#estilo-10:checked ~ .paneles #panel-10 { display: block; }

/* ---------- 3. BASE COMÚN DE LOS EJEMPLOS ---------- */
.ej {
  --m-fondo: #eee; --m-calle: #fff; --m-rio: #9cc3ef; --m-zona: #cfe8c4; --m-pin: #d33; --m-texto: #333;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(20, 40, 64, .18);
  border: 1px solid rgba(0,0,0,.08);
  line-height: 1.6;
}
.ej h3, .ej h4, .ej h5, .ej p, .ej ul, .ej dl, .ej address { margin: 0; }
.ej-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.25rem clamp(1rem, 4vw, 2.5rem); }
.ej-marca { display: flex; align-items: center; gap: .8rem; }
.ej-logo { flex: none; }
.ej-nombre { font-size: 1.5rem; }
.ej-lema { font-size: .92rem; opacity: .9; }
.ej-nav { display: flex; flex-wrap: wrap; gap: .25rem .4rem; }
.ej-nav a { padding: .3rem .55rem; text-decoration: none; color: inherit; font-size: .92rem; border-radius: 6px; }
.ej-nav a:hover { text-decoration: underline; }
.ej-sec { padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1rem, 4vw, 2.5rem); scroll-margin-top: 5rem; }
.ej-sec > h4 { font-size: 1.5rem; margin-bottom: .9rem; }
.ej-sec > p { max-width: 44rem; }
.ej-servicios { list-style: none; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.ej-articulos { display: grid; gap: 1rem; margin-top: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ej-articulos h5 { font-size: 1.1rem; margin-bottom: .35rem; }
.ej-donde { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 760px) { .ej-donde { grid-template-columns: 1fr 1.7fr; } }
.ej-donde address { font-style: normal; }
.ej-contacto { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; }
.ej-contacto dt { font-weight: 700; }
.ej-contacto dd { margin: 0; overflow-wrap: anywhere; }
.ej-pie { padding: .9rem clamp(1rem, 4vw, 2.5rem); font-size: .85rem; }
@media (max-width: 480px) {
  .ej-contacto { grid-template-columns: 1fr; gap: 0; }
  .ej-contacto dd { margin-bottom: .6rem; }
}

/* Mapa SVG común: los colores salen de variables de cada tema */
.mapa { display: block; width: 100%; height: auto; border-radius: 12px; }
.m-fondo { fill: var(--m-fondo); }
.m-zona { fill: var(--m-zona); }
.m-calle { fill: none; stroke: var(--m-calle); stroke-width: 14; stroke-linecap: round; }
.m-calle-p { fill: none; stroke: var(--m-calle); stroke-width: 6; stroke-linecap: round; opacity: .85; }
.m-rio { fill: none; stroke: var(--m-rio); stroke-width: 18; stroke-linecap: round; }
.m-pin path { fill: var(--m-pin); stroke: #fff; stroke-width: 2; }
.m-pin-c { fill: #fff; }
.m-texto { fill: var(--m-texto); font: 700 14px system-ui, sans-serif; }

/* ---------- 4. TEMAS POR SECTOR ---------- */

/* 4.1 Taller mecánico · industrial, negro y amarillo */
.ej-taller {
  --m-fondo: #2a2d33; --m-calle: #5b616b; --m-zona: #3a3f47; --m-pin: #f5c518; --m-texto: #f5c518;
  --foco: #f5c518;
  background: #17191c; color: #e9e9e9;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
.ej-taller .ej-cab { background: #0f1012; border-bottom: 10px solid transparent; border-image: repeating-linear-gradient(45deg, #f5c518 0 14px, #0f1012 14px 28px) 10; }
.ej-taller .ej-nombre, .ej-taller h4, .ej-taller h5 { font-family: Impact, "Arial Narrow Bold", "Arial Black", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .03em; }
.ej-taller .ej-nombre { color: #f5c518; font-size: 1.8rem; }
.ej-taller .ej-nav a { text-transform: uppercase; font-weight: 700; font-size: .85rem; letter-spacing: .05em; }
.ej-taller .ej-nav a:hover { color: #f5c518; }
.ej-taller h4 { font-size: 2rem; color: #fff; }
.ej-taller h4::before { content: "// "; color: #f5c518; }
.ej-taller .ej-sec + .ej-sec { border-top: 1px solid #2d3036; }
.ej-taller .ej-servicios li { background: #23262b; border-left: 6px solid #f5c518; padding: .9rem 1rem; font-weight: 700; }
.ej-taller .ej-articulos article { background: #f5c518; color: #17191c; padding: 1.1rem; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
.ej-taller .ej-contacto dt { color: #f5c518; text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; }
.ej-taller .ej-pie { background: #0f1012; color: #b9bcc2; }

/* 4.2 Peluquería · romántico, rosa y serif cursiva */
.ej-pelu {
  --m-fondo: #f7e3ea; --m-calle: #fff; --m-rio: #c9d9ef; --m-zona: #e9bfcf; --m-pin: #a23a63; --m-texto: #6b2443;
  --foco: #a23a63;
  background: #fdf3f6; color: #3b2430;
  font-family: "Didot", "Bodoni MT", "Bodoni 72", Georgia, "Times New Roman", serif;
  text-align: center;
}
.ej-pelu .ej-cab { flex-direction: column; justify-content: center; padding-top: 2.5rem; background: linear-gradient(180deg, #fbe3ec, #fdf3f6); }
.ej-pelu .ej-marca { flex-direction: column; }
.ej-pelu .ej-nombre { font-style: italic; font-weight: 400; font-size: 2.4rem; color: #a23a63; }
.ej-pelu .ej-lema { letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; }
.ej-pelu .ej-nav { justify-content: center; }
.ej-pelu .ej-nav a { font-style: italic; }
.ej-pelu h4 { font-style: italic; font-weight: 400; font-size: 1.9rem; color: #a23a63; }
.ej-pelu h4::after { content: ""; display: block; width: 60px; height: 1px; background: #a23a63; margin: .6rem auto 0; }
.ej-pelu .ej-sec > p { margin-inline: auto; }
.ej-pelu .ej-servicios { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); max-width: 760px; margin-inline: auto; }
.ej-pelu .ej-servicios li { border: 1px solid #d79ab3; border-radius: 999px; padding: .6rem 1rem; background: #fff; }
.ej-pelu .ej-articulos article { background: #fff; padding: 1.4rem 1.2rem; border-radius: 120px 120px 12px 12px; box-shadow: 0 6px 18px rgba(162,58,99,.1); }
.ej-pelu .ej-articulos h5 { font-style: italic; font-weight: 400; font-size: 1.25rem; color: #a23a63; }
.ej-pelu .ej-donde { text-align: left; }
.ej-pelu .ej-contacto { max-width: 460px; margin-inline: auto; text-align: left; }
.ej-pelu .ej-pie { color: #6b4656; border-top: 1px solid #efd0dc; }

/* 4.3 Restaurante · carta clásica, terracota y crema */
.ej-resto {
  --m-fondo: #ecdcbc; --m-calle: #fbf4e4; --m-rio: #9fb8c8; --m-zona: #c9b98b; --m-pin: #8c3b1f; --m-texto: #4a2614;
  --foco: #8c3b1f;
  background: #f6ead3; color: #2e1d12;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
.ej-resto .ej-cab { background: #8c3b1f; color: #f6ead3; --foco: #f6ead3; }
.ej-resto .ej-nombre { font-size: 2.1rem; font-variant: small-caps; letter-spacing: .06em; }
.ej-resto .ej-nav a { color: #f6ead3; }
.ej-resto .ej-sec { max-width: 860px; margin-inline: auto; }
.ej-resto h4 { text-align: center; font-variant: small-caps; font-size: 1.8rem; color: #8c3b1f; letter-spacing: .05em; }
.ej-resto h4::before, .ej-resto h4::after { content: " ~ "; color: #b47a5a; }
.ej-resto .ej-sec > p { margin-inline: auto; text-align: center; }
.ej-resto .ej-carta { grid-template-columns: 1fr; gap: .4rem; max-width: 600px; margin-inline: auto; }
.ej-resto .ej-carta li { display: flex; align-items: baseline; gap: .5rem; font-size: 1.1rem; }
.ej-resto .ej-carta li span:first-child { font-weight: 700; }
.ej-resto .ej-carta li::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted #b47a5a; }
.ej-resto .ej-carta li span:last-child { order: 2; font-style: italic; color: #6b3a22; }
.ej-resto .ej-articulos article { border: 3px double #8c3b1f; padding: 1rem 1.1rem; background: #fbf4e4; }
.ej-resto .ej-articulos h5 { color: #8c3b1f; }
.ej-resto .ej-pie { background: #2e1d12; color: #ecdcbc; text-align: center; }

/* 4.4 Fontanero · limpio, azul y tarjetas */
.ej-fonta {
  --m-fondo: #e7f0fb; --m-calle: #ffffff; --m-rio: #64b5f6; --m-zona: #bbd6f5; --m-pin: #0d47a1; --m-texto: #0d3c78;
  --foco: #0d47a1;
  background: #f5f8fc; color: #1b2a3a;
  font-family: "Trebuchet MS", "Lucida Grande", Verdana, sans-serif;
}
.ej-fonta .ej-cab {
  background: linear-gradient(120deg, #1565c0, #0d47a1); color: #fff; --foco: #ffd54f;
  padding-bottom: 3rem;
  clip-path: ellipse(120% 100% at 50% 0);
}
.ej-fonta .ej-nombre { font-weight: 700; }
.ej-fonta .ej-nav a { background: rgba(255,255,255,.14); border-radius: 999px; padding: .35rem .8rem; }
.ej-fonta .ej-nav a:hover { background: rgba(255,255,255,.28); text-decoration: none; }
.ej-fonta h4 { color: #0d47a1; }
.ej-fonta .ej-servicios li { background: #fff; border-radius: 12px; padding: .9rem 1rem .9rem 2.8rem; position: relative; box-shadow: 0 4px 14px rgba(13,71,161,.1); }
.ej-fonta .ej-servicios li::before { content: "✓"; position: absolute; left: .9rem; top: .85rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #1565c0; color: #fff; font-size: .8rem; display: grid; place-items: center; }
.ej-fonta .ej-articulos article { background: #fff; border-radius: 12px; padding: 1.2rem; border-top: 5px solid #1565c0; box-shadow: 0 4px 14px rgba(13,71,161,.1); }
.ej-fonta .ej-contacto { background: #fff; border-radius: 12px; padding: 1.2rem; box-shadow: 0 4px 14px rgba(13,71,161,.1); }
.ej-fonta .ej-pie { background: #0d47a1; color: #e3efff; }

/* 4.5 Tienda de ropa · editorial minimalista, negro y mostaza */
.ej-ropa {
  --m-fondo: #f2f2f2; --m-calle: #ffffff; --m-zona: #e0b13c; --m-pin: #111; --m-texto: #111;
  --foco: #111;
  background: #fff; color: #111; counter-reset: rop;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.ej-ropa .ej-cab { border-bottom: 2px solid #111; }
.ej-ropa .ej-nombre { text-transform: uppercase; letter-spacing: .35em; font-weight: 300; font-size: 1.7rem; }
.ej-ropa .ej-lema { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; }
.ej-ropa .ej-nav a { text-transform: uppercase; letter-spacing: .15em; font-size: .75rem; }
.ej-ropa .ej-nav a:hover { text-decoration: none; box-shadow: inset 0 -3px 0 #e0b13c; }
.ej-ropa .ej-sec { border-bottom: 1px solid #111; counter-increment: rop; }
.ej-ropa h4 { text-transform: uppercase; letter-spacing: .25em; font-weight: 400; font-size: 1.1rem; }
.ej-ropa h4::before { content: "0" counter(rop) " — "; font-weight: 700; }
.ej-ropa #rop-quienes > p { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 300; max-width: 50rem; line-height: 1.45; }
.ej-ropa .ej-servicios { gap: 0; border-top: 1px solid #111; border-left: 1px solid #111; }
.ej-ropa .ej-servicios li { border-right: 1px solid #111; border-bottom: 1px solid #111; padding: 1.2rem 1rem; text-transform: uppercase; font-size: .85rem; letter-spacing: .12em; }
.ej-ropa .ej-servicios li:nth-child(3n+1) { background: #e0b13c; }
.ej-ropa .ej-articulos article { padding-top: .8rem; border-top: 4px solid #111; }
.ej-ropa .ej-articulos h5 { text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; }
.ej-ropa .ej-contacto dt { text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; font-weight: 400; }
.ej-ropa .ej-pie { text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; }

/* 4.6 Academia · libreta, morado y amarillo, redondeado */
.ej-acade {
  --m-fondo: #fff8d6; --m-calle: #ffffff; --m-rio: #8ecdf5; --m-zona: #d9c9ff; --m-pin: #6a3fc4; --m-texto: #3c1f85;
  --foco: #6a3fc4;
  color: #24203a;
  background:
    linear-gradient(90deg, transparent 2.4rem, #f3a0a0 2.4rem, #f3a0a0 calc(2.4rem + 2px), transparent calc(2.4rem + 2px)),
    repeating-linear-gradient(180deg, #fffef6 0 31px, #dbe7f7 31px 32px);
  font-family: ui-rounded, "Arial Rounded MT Bold", "Nunito", "Segoe UI", system-ui, sans-serif;
}
.ej-acade .ej-cab { background: #6a3fc4; color: #fff; --foco: #ffd23f; border-radius: 0 0 28px 28px; }
.ej-acade .ej-nombre { font-size: 1.8rem; font-weight: 800; }
.ej-acade .ej-nav a { background: #ffd23f; color: #24203a; border-radius: 999px; font-weight: 700; padding: .35rem .8rem; }
.ej-acade .ej-sec { padding-left: clamp(3.4rem, 6vw, 4.5rem); }
.ej-acade h4 { display: inline-block; font-size: 1.6rem; font-weight: 800; color: #3c1f85; background: linear-gradient(transparent 60%, #ffd23f 60%); padding: 0 .2rem; }
.ej-acade .ej-servicios li { background: #fff; border: 2px solid #6a3fc4; border-radius: 16px; padding: .8rem 1rem; font-weight: 600; }
.ej-acade .ej-articulos article { border-radius: 16px; padding: 1.2rem; box-shadow: 0 6px 0 rgba(36,32,58,.15); }
.ej-acade .ej-articulos article:nth-child(1) { background: #e9e1ff; transform: rotate(-1.2deg); }
.ej-acade .ej-articulos article:nth-child(2) { background: #fff3c4; transform: rotate(1deg); }
.ej-acade .ej-articulos article:nth-child(3) { background: #d9f5e5; transform: rotate(-.6deg); }
.ej-acade .ej-pie { background: #24203a; color: #e9e1ff; }

/* 4.7 Inmobiliaria · elegante, azul noche y oro */
.ej-inmo {
  --m-fondo: #1c3157; --m-calle: #3b5582; --m-zona: #2f5a4a; --m-pin: #d4af61; --m-texto: #f1ead9;
  --foco: #d4af61;
  background: #13233f; color: #f1ead9;
  font-family: Garamond, "EB Garamond", "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.1rem;
}
.ej-inmo .ej-cab { border-bottom: 1px solid #d4af61; }
.ej-inmo .ej-nombre { font-weight: 400; font-size: 2rem; letter-spacing: .08em; color: #d4af61; }
.ej-inmo .ej-lema { font-style: italic; }
.ej-inmo .ej-nav a { letter-spacing: .08em; }
.ej-inmo .ej-nav a:hover { color: #d4af61; }
.ej-inmo .ej-sec { border-bottom: 1px solid rgba(212,175,97,.3); }
@media (min-width: 860px) {
  .ej-inmo .ej-sec { display: grid; grid-template-columns: 220px 1fr; column-gap: 2.5rem; }
  .ej-inmo .ej-sec > h4 { grid-row: 1 / span 3; }
  .ej-inmo .ej-sec > *:not(h4) { grid-column: 2; }
}
.ej-inmo h4 { font-weight: 400; font-size: 1.7rem; color: #d4af61; font-style: italic; }
.ej-inmo .ej-servicios { grid-template-columns: 1fr; gap: 0; }
.ej-inmo .ej-servicios li { padding: .65rem 0; border-bottom: 1px solid rgba(241,234,217,.15); }
.ej-inmo .ej-servicios li::before { content: "◆ "; color: #d4af61; font-size: .8em; }
.ej-inmo .ej-articulos article { border: 1px solid #d4af61; padding: 1.3rem; }
.ej-inmo .ej-articulos h5 { font-weight: 400; font-size: 1.25rem; color: #d4af61; }
.ej-inmo .ej-contacto dt { font-weight: 400; color: #d4af61; font-style: italic; }
.ej-inmo .ej-pie { color: #c9c1ae; text-align: center; letter-spacing: .06em; }

/* 4.8 Clínica dental · aireado, menta y redondeado */
.ej-dental {
  --m-fondo: #e3f6f2; --m-calle: #ffffff; --m-zona: #a7e3d6; --m-pin: #0f766e; --m-texto: #0b4f4a;
  --foco: #0f766e;
  background: #f4fbfa; color: #134e4a;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
}
.ej-dental .ej-cab { background: #fff; margin: 1rem; border-radius: 24px; box-shadow: 0 8px 30px rgba(15,118,110,.12); }
.ej-dental .ej-nombre { font-weight: 300; font-size: 1.6rem; }
.ej-dental .ej-nav a { color: #0f766e; font-weight: 600; }
.ej-dental .ej-nav a:hover { background: #d8f3ee; text-decoration: none; }
.ej-dental h4 { font-weight: 300; font-size: 2rem; color: #0f766e; }
.ej-dental .ej-servicios li { background: #fff; border-radius: 24px; padding: 1.1rem 1.2rem; text-align: center; box-shadow: 0 6px 20px rgba(15,118,110,.08); }
.ej-dental .ej-servicios li::before { content: ""; display: block; width: 36px; height: 36px; margin: 0 auto .5rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 20%, #7fd8c6 22% 100%); }
.ej-dental .ej-articulos article { background: linear-gradient(160deg, #ffffff, #e3f6f2); border-radius: 24px; padding: 1.4rem; }
.ej-dental .ej-articulos h5 { font-weight: 600; }
.ej-dental .ej-contacto { background: #0f766e; color: #fff; border-radius: 24px; padding: 1.4rem; }
.ej-dental .ej-pie { color: #2f6b66; text-align: center; }

/* 4.9 Gimnasio · energético, negro y lima, cursiva inclinada */
.ej-gym {
  --m-fondo: #1a1a1a; --m-calle: #3d3d3d; --m-zona: #2c3a10; --m-pin: #c6ff3d; --m-texto: #c6ff3d;
  --foco: #c6ff3d;
  background: #0b0b0b; color: #f2f2f2;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.ej-gym .ej-cab { background: linear-gradient(105deg, #0b0b0b calc(100% - 90px), #c6ff3d calc(100% - 90px) calc(100% - 66px), #0b0b0b calc(100% - 66px) calc(100% - 52px), #c6ff3d calc(100% - 52px) calc(100% - 44px), #0b0b0b calc(100% - 44px)); border-bottom: 4px solid #c6ff3d; }
.ej-gym .ej-nombre, .ej-gym h4, .ej-gym h5 { font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif; font-weight: 900; font-style: italic; text-transform: uppercase; }
.ej-gym .ej-nombre { font-size: 2rem; letter-spacing: -.02em; }
.ej-gym .ej-nav a { background: #0b0b0b; color: #fff; font-weight: 800; text-transform: uppercase; font-size: .8rem; transform: skewX(-10deg); }
.ej-gym .ej-nav a:hover { color: #c6ff3d; text-decoration: none; }
.ej-gym h4 { display: inline-block; background: #c6ff3d; color: #0b0b0b; padding: .2rem .9rem; transform: skewX(-10deg); font-size: 1.6rem; }
.ej-gym .ej-servicios { counter-reset: gym; }
.ej-gym .ej-servicios li { counter-increment: gym; border: 2px solid #333; padding: 1rem; font-weight: 700; text-transform: uppercase; font-size: .92rem; }
.ej-gym .ej-servicios li::before { content: counter(gym, decimal-leading-zero); display: block; font-family: "Arial Black", Arial, sans-serif; font-style: italic; font-size: 1.8rem; color: #c6ff3d; line-height: 1; margin-bottom: .3rem; }
.ej-gym .ej-articulos article { background: #1a1a1a; padding: 1.2rem; border-bottom: 4px solid #c6ff3d; }
.ej-gym .ej-articulos h5 { color: #c6ff3d; }
.ej-gym .ej-contacto dt { color: #c6ff3d; text-transform: uppercase; }
.ej-gym .ej-pie { background: #c6ff3d; color: #0b0b0b; font-weight: 700; text-transform: uppercase; font-size: .78rem; }

/* 4.10 Bufete de abogados · clásico, papel y burdeos, barra lateral */
.ej-legal {
  --m-fondo: #e9dcc2; --m-calle: #fbf6ea; --m-rio: #b8c6c9; --m-zona: #c9a7a7; --m-pin: #6d1a2b; --m-texto: #4a1220;
  --foco: #6d1a2b;
  background: #f3ead8; color: #2a1f1a;
  font-family: Baskerville, "Baskerville Old Face", "Times New Roman", Times, serif;
  font-size: 1.1rem;
}
.ej-legal .ej-cab { background: #6d1a2b; color: #f3ead8; --foco: #f3ead8; }
.ej-legal .ej-nombre { font-weight: 400; font-variant: small-caps; letter-spacing: .05em; font-size: 1.6rem; }
.ej-legal .ej-lema { font-style: italic; }
.ej-legal .ej-nav a { color: #f3ead8; font-variant: small-caps; letter-spacing: .06em; }
.ej-legal h4 { font-weight: 400; font-variant: small-caps; letter-spacing: .06em; color: #6d1a2b; border-bottom: 1px solid #6d1a2b; padding-bottom: .4rem; }
.ej-legal .ej-sec > p:first-of-type::first-letter { float: left; font-size: 3.2em; line-height: .85; padding: .05em .1em 0 0; color: #6d1a2b; }
.ej-legal .ej-servicios li { padding-left: 1.2rem; position: relative; }
.ej-legal .ej-servicios li::before { content: "§"; position: absolute; left: 0; color: #6d1a2b; }
.ej-legal .ej-articulos article { border-left: 3px solid #6d1a2b; padding: .2rem 0 .2rem 1rem; }
.ej-legal .ej-articulos h5 { font-style: italic; font-weight: 400; font-size: 1.2rem; color: #6d1a2b; }
.ej-legal .ej-pie { color: #5a4a40; font-style: italic; border-top: 1px solid #d8c6a6; }
@media (min-width: 960px) {
  #estilo-10:checked ~ .paneles #panel-10 { display: grid; grid-template-columns: 270px 1fr; }
  .ej-legal .ej-cab { grid-column: 1; grid-row: 1 / span 6; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 2rem 1.5rem; }
  .ej-legal .ej-marca { flex-direction: column; align-items: flex-start; }
  .ej-legal .ej-nav { flex-direction: column; }
  .ej-legal .ej-sec, .ej-legal .ej-pie { grid-column: 2; }
}
