/* Diseño básico «Rotulador» · STIX Two Text + Mada + Permanent Marker · azul y rojo de rotulador sobre blanco de pizarra.
   La pizarra blanca de una buena clase particular: marco de aluminio con su bandeja y tres rotuladores, ejes y una
   parábola dibujados a mano, trazos de rotulador bajo las palabras importantes, fotos y notas sujetas con imanes de
   colores, restos de borrado en los fondos suaves y el formulario en hoja cuadriculada. */
html[data-diseno="basica-profe"] {
  --f-titulos: 'STIX Two Text', 'Times New Roman', serif;
  --f-texto: 'Mada', system-ui, sans-serif;
  --f-rotu: 'Permanent Marker', 'Comic Sans MS', cursive;
  --peso-titulos: 600;
  --tracking-titulos: -0.012em;
  --interlinea-titulos: 1.06;
  --estilo-enfasis: italic;
  --peso-enfasis: 500;
  --fondo: #fdfdfb;
  --fondo-suave: #eef2f7;
  --texto: #1a2233;
  --texto-suave: #4c5769;
  --borde: rgb(26 34 51 / .14);
  --enfasis: var(--c1);
  --ante: var(--c2);
  --verde: #1f8a4c;
  --tinta: #141b2b;
  --aluminio: linear-gradient(180deg, #e3e6eb 0%, #c4cad3 45%, #a9b0ba 55%, #d3d8de 100%);
  --radio: 6px;
  --radio-foto: 3px;
  --radio-boton: 8px;
  --radio-campo: 6px;
  --sombra: 0 1px 2px rgb(20 27 43 / .06), 0 14px 30px -18px rgb(20 27 43 / .3);
  --sombra-fuerte: 0 30px 60px -30px rgb(20 27 43 / .45);
  /* Restos de rotulador mal borrados: trazos grises muy suaves */
  --fantasma: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='360'%3E%3Cg fill='none' stroke='%231a2233' stroke-opacity='.045' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M40 80 q60-40 120 0 t120 0'/%3E%3Cpath d='M330 60 l60 0 M360 30 l0 60'/%3E%3Cpath d='M70 250 c30-50 90-50 120 0 s90 50 120 0'/%3E%3Cpath d='M380 220 l40 70 l40-70'/%3E%3Cpath d='M210 170 a30 30 0 1 0 60 0 a30 30 0 1 0 -60 0'/%3E%3C/g%3E%3C/svg%3E");
  /* Hoja cuadriculada del cuaderno */
  --cuadricula: linear-gradient(rgb(29 71 201 / .09) 1px, transparent 1px) 0 0 / 22px 22px,
                linear-gradient(90deg, rgb(29 71 201 / .09) 1px, transparent 1px) 0 0 / 22px 22px, #fff;
  /* Ejes y una parábola a mano (máscara: toma el color de quien la usa) */
  --ejes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 160'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 140 L190 138 M182 131 L191 138 L181 145'/%3E%3Cpath d='M30 152 L32 10 M25 19 L32 9 L39 18'/%3E%3Cpath d='M52 28 C78 128 128 134 176 34' stroke-dasharray='0'/%3E%3Cpath d='M112 104 L112 140' stroke-width='2.5' stroke-dasharray='5 7'/%3E%3C/g%3E%3C/svg%3E");
  /* Flecha de rotulador para los antetítulos */
  --flecha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Cpath d='M2 11 C12 8 22 9 34 10 M27 4 L35 10 L27 16' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html[data-diseno="basica-profe"] body { font-size: 1.0625rem; }
[data-diseno="basica-profe"] h1, [data-diseno="basica-profe"] h2, [data-diseno="basica-profe"] h3 { font-synthesis-weight: none; }

/* Énfasis: la cursiva de ecuación en azul con un trazo de rotulador rojo debajo */
[data-diseno="basica-profe"] h1 em, [data-diseno="basica-profe"] h2 em {
  color: var(--c1);
  text-decoration: underline; text-decoration-color: var(--c2); text-decoration-thickness: .085em; text-underline-offset: .14em;
  text-decoration-skip-ink: none;
}
[data-diseno="basica-profe"] .s-titulo { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }

/* Antetítulo: nota a rotulador rojo con su flecha */
[data-diseno="basica-profe"] .ante {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-rotu); font-weight: 400; font-size: 1.12rem; letter-spacing: .01em; text-transform: none;
  color: var(--c2); transform: rotate(-1.5deg); transform-origin: left center;
}
[data-diseno="basica-profe"] .ante::before {
  content: ""; display: block; width: 30px; height: 15px; flex: none;
  background: currentColor; -webkit-mask: var(--flecha) center / contain no-repeat; mask: var(--flecha) center / contain no-repeat;
}
[data-diseno="basica-profe"] .s-cab .ante, [data-diseno="basica-profe"] .texto-cuerpo .ante { margin-bottom: 18px; }

/* Botones: azul de rotulador; el secundario con contorno */
[data-diseno="basica-profe"] .btn { font-weight: 700; letter-spacing: .01em; }
[data-diseno="basica-profe"] .btn-primario { box-shadow: 0 3px 0 color-mix(in oklab, var(--c1) 60%, black); }
[data-diseno="basica-profe"] .btn-primario:hover { box-shadow: 0 3px 0 color-mix(in oklab, var(--c1) 60%, black), 0 12px 24px -12px var(--c1); }
[data-diseno="basica-profe"] .btn-secundario { border: 2px solid var(--c1); color: var(--c1); background: transparent; }
[data-diseno="basica-profe"] .btn-secundario:hover { background: color-mix(in oklab, var(--c1) 8%, transparent); }

/* Fondos suaves: la pizarra con restos de borrado */
[data-diseno="basica-profe"] .fondo-suave { background: var(--fantasma) 0 0 / 520px 360px, var(--fondo-suave); }

/* ---------------------------------------------------------------- cabecera centrada: canto de aluminio */
[data-diseno="basica-profe"] .cab { border-bottom: 0; box-shadow: none; }
[data-diseno="basica-profe"] .cab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--aluminio); pointer-events: none; }
[data-diseno="basica-profe"] .logo-nombre { font-family: var(--f-titulos); font-weight: 600; letter-spacing: -0.01em; }
[data-diseno="basica-profe"] .logo-lema { font-family: var(--f-texto); letter-spacing: .02em; }

/* ---------------------------------------------------------------- portada: la pizarra con su marco y su bandeja */
[data-diseno="basica-profe"] .s-portada.v-tipografica { padding-top: calc(var(--alto-cab) + clamp(28px, 4vw, 56px)); padding-bottom: clamp(64px, 8vw, 110px); }
[data-diseno="basica-profe"] .s-portada.v-tipografica .portada-in {
  position: relative; width: calc(100% - 2 * var(--margen)); max-width: var(--ancho); margin-inline: auto;
  padding: clamp(30px, 5vw, 72px) clamp(22px, 5vw, 72px) clamp(30px, 4.5vw, 64px);
  background: var(--fantasma) 0 0 / 520px 360px, #fff;
  border: 9px solid #c9ced6; border-radius: 10px;
  box-shadow: inset 0 0 0 1px #aab1bb, inset 0 6px 14px -8px rgb(20 27 43 / .18), 0 0 0 1px #aab1bb, 0 30px 50px -34px rgb(20 27 43 / .55);
}
/* Bandeja de aluminio con tres rotuladores (azul, rojo, verde) */
[data-diseno="basica-profe"] .s-portada.v-tipografica .portada-in::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -27px; height: 18px; border-radius: 0 0 8px 8px;
  background:
    linear-gradient(90deg, #232a36 0 9px, var(--c1) 9px) right 18% top 2px / 76px 10px no-repeat,
    linear-gradient(90deg, #232a36 0 9px, var(--c2) 9px) right calc(18% + 88px) top 2px / 76px 10px no-repeat,
    linear-gradient(90deg, #232a36 0 9px, var(--verde) 9px) right calc(18% + 176px) top 2px / 76px 10px no-repeat,
    var(--aluminio);
  box-shadow: 0 8px 14px -10px rgb(20 27 43 / .6);
}
/* Ejes y parábola dibujados en la esquina */
[data-diseno="basica-profe"] .s-portada.v-tipografica .portada-in::before {
  content: ""; position: absolute; top: clamp(22px, 3.4vw, 46px); right: clamp(22px, 3.6vw, 52px);
  width: clamp(120px, 15vw, 210px); aspect-ratio: 200 / 160; opacity: .85; transform: rotate(2deg);
  background: var(--c1); -webkit-mask: var(--ejes) center / contain no-repeat; mask: var(--ejes) center / contain no-repeat;
  pointer-events: none;
}
[data-diseno="basica-profe"] .s-portada.v-tipografica .portada-texto { position: relative; max-width: 980px; }
[data-diseno="basica-profe"] .s-portada.v-tipografica .portada-titulo { font-size: clamp(2.6rem, 1.3rem + 5.6vw, 6.6rem); font-weight: 600; line-height: 1; letter-spacing: -0.022em; max-width: 14ch; }
[data-diseno="basica-profe"] .s-portada.v-tipografica .portada-sub { font-size: 1.12rem; color: var(--texto-suave); }

/* Tira de fotos: copias sujetas a la pizarra con imanes de colores */
[data-diseno="basica-profe"] .portada-tira { gap: clamp(14px, 2.4vw, 30px); margin-top: clamp(40px, 5vw, 64px); }
[data-diseno="basica-profe"] .portada-tira figure,
[data-diseno="basica-profe"] .texto-foto,
[data-diseno="basica-profe"] .s-galeria .galeria li { position: relative; overflow: visible; padding: 8px; background: #fff; border-radius: 2px; box-shadow: 0 1px 2px rgb(20 27 43 / .12), 0 14px 26px -16px rgb(20 27 43 / .45); }
[data-diseno="basica-profe"] .portada-tira figure > *, [data-diseno="basica-profe"] .texto-foto > *, [data-diseno="basica-profe"] .s-galeria .galeria li > * { border-radius: 1px; overflow: hidden; }
[data-diseno="basica-profe"] .portada-tira .t1 { transform: rotate(-1.6deg); }
[data-diseno="basica-profe"] .portada-tira .t2 { transform: rotate(.6deg); }
[data-diseno="basica-profe"] .portada-tira .t3 { transform: rotate(1.8deg); }
[data-diseno="basica-profe"] .portada-tira figure::before,
[data-diseno="basica-profe"] .texto-foto::before,
[data-diseno="basica-profe"] .s-galeria .galeria li:nth-child(3n+1)::before {
  content: ""; position: absolute; z-index: 2; top: -11px; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .75) 0 18%, transparent 42%), var(--iman, var(--c2));
  box-shadow: 0 3px 5px rgb(20 27 43 / .35), inset 0 -2px 3px rgb(0 0 0 / .2);
}
[data-diseno="basica-profe"] .portada-tira .t2::before, [data-diseno="basica-profe"] .s-galeria .galeria li:nth-child(6n+4)::before { --iman: var(--c1); }
[data-diseno="basica-profe"] .portada-tira .t3::before { --iman: var(--verde); }
[data-diseno="basica-profe"] .portada-destacados li { color: var(--texto-suave); }

/* ---------------------------------------------------------------- servicios en lista: la hoja de tarifas */
[data-diseno="basica-profe"] .serv-lista { max-width: 920px; }
[data-diseno="basica-profe"] .serv-lista li { padding-block: 20px; border-bottom: 1.5px dashed color-mix(in oklab, var(--c1) 28%, transparent); }
[data-diseno="basica-profe"] .serv-lista li:last-child { border-bottom: 0; }
[data-diseno="basica-profe"] .serv-linea h3 { font-family: var(--f-titulos); font-size: clamp(1.2rem, 1.1rem + .4vw, 1.42rem); font-weight: 600; letter-spacing: -0.01em; }
[data-diseno="basica-profe"] .serv-linea .puntos { border-bottom-style: dotted; border-bottom-width: 2px; border-color: color-mix(in oklab, var(--texto) 25%, transparent); }
[data-diseno="basica-profe"] .serv-linea strong { font-family: var(--f-rotu); font-weight: 400; font-size: 1.22rem; color: var(--c2); white-space: nowrap; transform: rotate(-3deg); display: inline-block; }
[data-diseno="basica-profe"] .serv-lista p { color: var(--texto-suave); max-width: 64ch; }
[data-diseno="basica-profe"] .serv-lista .serv-dur { display: inline-block; margin-left: 6px; padding: 1px 9px; border: 1.5px solid color-mix(in oklab, var(--c1) 45%, transparent); border-radius: 99px; color: var(--c1); font-size: .82rem; font-weight: 600; white-space: nowrap; }

/* ---------------------------------------------------------------- texto: el retrato sujeto con un imán */
[data-diseno="basica-profe"] .texto-foto { transform: rotate(-1.2deg); }
[data-diseno="basica-profe"] .texto-foto::before { --iman: var(--c1); }
[data-diseno="basica-profe"] .texto-cuerpo .prosa p:first-child { font-size: 1.14rem; color: var(--texto); }

/* ---------------------------------------------------------------- testimonios en muro: notas pegadas a la pizarra */
[data-diseno="basica-profe"] .s-testimonios.v-muro .testimonio {
  position: relative; padding: 40px 26px 22px; border: 0; border-radius: 2px; break-inside: avoid;
  background: #fff6b8; color: var(--texto); box-shadow: 0 1px 1px rgb(20 27 43 / .08), 0 16px 24px -18px rgb(20 27 43 / .5);
  transform: rotate(-1deg);
}
[data-diseno="basica-profe"] .s-testimonios.v-muro .testimonio:nth-child(4n+2) { background: #dcebff; color: var(--texto); transform: rotate(1.2deg); }
[data-diseno="basica-profe"] .s-testimonios.v-muro .testimonio:nth-child(4n+3) { background: #ddf3e2; transform: rotate(.6deg); }
[data-diseno="basica-profe"] .s-testimonios.v-muro .testimonio:nth-child(4n+4) { background: #ffe1dc; transform: rotate(-.6deg); }
[data-diseno="basica-profe"] .s-testimonios.v-muro .testimonio::before {
  content: ""; position: absolute; top: 9px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .75) 0 18%, transparent 42%), var(--c2);
  box-shadow: 0 3px 5px rgb(20 27 43 / .35), inset 0 -2px 3px rgb(0 0 0 / .2);
}
[data-diseno="basica-profe"] .s-testimonios.v-muro .testimonio:nth-child(even)::before { background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .75) 0 18%, transparent 42%), var(--c1); }
[data-diseno="basica-profe"] .s-testimonios .comillas { display: none; }
[data-diseno="basica-profe"] .s-testimonios blockquote { font-family: var(--f-texto); font-size: 1.06rem; line-height: 1.55; color: var(--texto); }
[data-diseno="basica-profe"] .s-testimonios figcaption strong { font-family: var(--f-rotu); font-weight: 400; font-size: 1.05rem; color: var(--c1); }
[data-diseno="basica-profe"] .s-testimonios figcaption span { color: var(--texto-suave); }

/* ---------------------------------------------------------------- galería: copias en la pizarra */
[data-diseno="basica-profe"] .s-galeria .galeria { gap: clamp(16px, 2.2vw, 28px); }
[data-diseno="basica-profe"] .s-galeria .galeria li:nth-child(odd) { transform: rotate(-.9deg); }
[data-diseno="basica-profe"] .s-galeria .galeria li:nth-child(even) { transform: rotate(.8deg); }
[data-diseno="basica-profe"] .s-galeria .galeria li:nth-child(6n+1)::before { --iman: var(--verde); }

/* ---------------------------------------------------------------- formulario: hoja cuadriculada */
[data-diseno="basica-profe"] .form.tarjeta { background: var(--cuadricula); border: 0; border-radius: 4px; box-shadow: 0 1px 2px rgb(20 27 43 / .1), 0 24px 40px -26px rgb(20 27 43 / .5); border-left: 4px solid var(--c2); }
[data-diseno="basica-profe"] .campo input, [data-diseno="basica-profe"] .campo select, [data-diseno="basica-profe"] .campo textarea { background: #fff; }
[data-diseno="basica-profe"] .campo > span { font-weight: 600; }
[data-diseno="basica-profe"] .form-directo .ico { background: color-mix(in oklab, var(--c1) 10%, transparent); }

/* ---------------------------------------------------------------- contacto: ficha en tarjeta con imán */
[data-diseno="basica-profe"] .s-contacto.v-tarjeta .contacto-ficha { position: relative; border-radius: 4px; border-top: 5px solid var(--c1); }
[data-diseno="basica-profe"] .s-contacto.v-tarjeta .contacto-ficha::before {
  content: ""; position: absolute; top: -15px; right: 34px; width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .75) 0 18%, transparent 42%), var(--c2);
  box-shadow: 0 3px 5px rgb(20 27 43 / .35), inset 0 -2px 3px rgb(0 0 0 / .2);
}

/* ---------------------------------------------------------------- pie centrado: tinta con los tres colores de rotulador */
[data-diseno="basica-profe"] .pie { background: var(--tinta); color: #e7ebf2; position: relative; }
[data-diseno="basica-profe"] .pie::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--c1) 0 33.3%, var(--c2) 33.3% 66.6%, var(--verde) 66.6%); }
[data-diseno="basica-profe"] .pie a { color: inherit; }
[data-diseno="basica-profe"] .pie .logo-nombre { color: #fff; }
[data-diseno="basica-profe"] .pie .pie-titulo { font-family: var(--f-rotu); font-weight: 400; text-transform: none; letter-spacing: .01em; color: #ffb4ab; }
[data-diseno="basica-profe"] .pie .pie-actividad, [data-diseno="basica-profe"] .pie .pie-legal, [data-diseno="basica-profe"] .pie small { color: rgb(231 235 242 / .72); }

/* ---------------------------------------------------------------- móvil */
@media (max-width: 700px) {
  [data-diseno="basica-profe"] .s-portada.v-tipografica .portada-in { width: calc(100% - 24px); border-width: 6px; padding: 28px 18px 30px; }
  [data-diseno="basica-profe"] .s-portada.v-tipografica .portada-in::before { display: none; }
  [data-diseno="basica-profe"] .s-portada.v-tipografica .portada-in::after {
    left: 6%; right: 6%; bottom: -22px; height: 14px;
    background:
      linear-gradient(90deg, #232a36 0 7px, var(--c1) 7px) right 10% top 2px / 54px 8px no-repeat,
      linear-gradient(90deg, #232a36 0 7px, var(--c2) 7px) right calc(10% + 62px) top 2px / 54px 8px no-repeat,
      var(--aluminio);
  }
  [data-diseno="basica-profe"] .s-portada.v-tipografica .portada-titulo { max-width: none; }
  [data-diseno="basica-profe"] .serv-linea strong { font-size: 1.08rem; }
  [data-diseno="basica-profe"] .s-galeria .galeria li { padding: 4px; }
  [data-diseno="basica-profe"] .s-galeria.v-cuadricula:is(.n-3, .n-6, .n-9) .galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  [data-diseno="basica-profe"] .s-galeria .galeria li::before { width: 16px; height: 16px; margin-left: -8px; top: -7px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-diseno="basica-profe"] .portada-tira figure, [data-diseno="basica-profe"] .s-galeria .galeria li { transition: none; }
}
