/* ---------- Cuadrícula estilo referencia ---------- */
.bento {
  margin-top: clamp(64px, 8vw, 110px);
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: minmax(300px, auto) minmax(300px, auto) minmax(300px, auto);
  grid-template-areas:
    "a b c c"
    "a d d e"
    "f f g e";
}
.bt { background: #fffdfb; border-radius: 6px; padding: 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.bt--a { grid-area: a; }
.bt--b { grid-area: b; justify-content: space-between; }
.bt--c { grid-area: c; flex-direction: row; gap: 24px; align-items: stretch; }
.bt--d { grid-area: d; justify-content: center; align-items: center; text-align: center; }
.bt--e { grid-area: e; }
.bt--f { grid-area: f; justify-content: center; }
.bt--g { grid-area: g; justify-content: flex-end; }
.bt p { font-size: 17px; line-height: 1.35; max-width: 30ch; }
.bt__titulo { font-size: clamp(30px, 3vw, 46px); letter-spacing: -.045em; line-height: .98; font-weight: 500; }
.bt__cifra { display: block; font-size: clamp(64px, 7.6vw, 128px); font-weight: 600; letter-spacing: -.075em; line-height: .9; margin-bottom: 18px; white-space: nowrap; }
.bt__cifra span { display: inline; }
.bt__cifra--xl { font-size: clamp(72px, 9vw, 150px); }
.bt__frase { font-size: clamp(34px, 3.8vw, 62px) !important; max-width: 20ch !important; letter-spacing: -.045em; line-height: 1.02 !important; font-weight: 500; }
.bt__frase em { color: var(--rosa-fuerte); }
.bt__lado { display: flex; flex-direction: column; justify-content: flex-start; min-width: 190px; }

/* Bocetos a mano: trazo con temblor + se dibujan al aparecer */
.boceto { width: 100%; height: auto; margin-top: auto; overflow: visible; }
.boceto--grande { max-height: 420px; }
.boceto .trazo { fill: none; stroke: var(--tinta); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: url(#boceto); }
.boceto .relleno { fill: var(--rosa); opacity: 0; transition: opacity .8s ease 1.2s; }
.boceto path[pathLength], .frasco svg path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.65, 0, .35, 1); }
.boceto .trazo path:nth-child(2) { transition-delay: .2s; }
.boceto .trazo path:nth-child(3) { transition-delay: .4s; }
.boceto .trazo path:nth-child(4) { transition-delay: .5s; }
.boceto .trazo path:nth-child(5) { transition-delay: .6s; }
.boceto .trazo path:nth-child(6) { transition-delay: .7s; }
.boceto .trazo path:nth-child(7) { transition-delay: .9s; }
.boceto .trazo path:nth-child(8) { transition-delay: 1s; }
.boceto .trazo path:nth-child(9) { transition-delay: 1.1s; }
.visto .boceto path[pathLength], .visto.frasco svg path, .visto .frasco svg path { stroke-dashoffset: 0; }
.visto .boceto .relleno { opacity: 1; }
.sin-js .boceto path, .sin-js .frasco svg path { stroke-dashoffset: 0; }
.sin-js .boceto .relleno { opacity: 1; }

/* Frascos de servicios (como los de la referencia) */
.frascos { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; }
.frasco {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  height: 100%; min-height: 240px; padding: 34px 0 14px; border-radius: 18px 18px 14px 14px;
  background: var(--c); color: var(--tinta); text-decoration: none; overflow: hidden;
  transition: transform .5s var(--ease);
}
.frasco:hover { transform: translateY(-10px) rotate(-2deg); }
.frasco--blanco { box-shadow: inset 0 0 0 1px var(--linea); }
.frasco__tapa { position: absolute; top: 0; left: 50%; width: 46%; height: 22px; translate: -50% 0; background: var(--tinta); border-radius: 0 0 6px 6px; }
.frasco small { font-size: 9px; opacity: .6; }
.frasco b { font-size: clamp(30px, 3.2vw, 52px); font-weight: 600; letter-spacing: -.06em; white-space: nowrap; line-height: 1; text-indent: -.2em; width: 100%; overflow: hidden; text-align: center; }
.frasco svg { width: 34px; height: 34px; fill: none; stroke: var(--tinta); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: url(#boceto); }

/* F: fondo de disciplinas */
.bt__fondo { position: absolute; inset: 0; margin: 0; max-width: none !important; font-size: clamp(40px, 4.4vw, 64px) !important; line-height: 1.04 !important; letter-spacing: -.04em; color: rgba(13, 11, 12, .06); font-weight: 500; overflow: hidden; padding: 12px 20px; pointer-events: none; }
.bt__centro { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.bt__centro p { max-width: none; }

/* G: mapa de puntos */
.mapa { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapa circle { fill: var(--tinta); opacity: .18; }
.mapa .pin { fill: var(--rosa-fuerte); opacity: 1; }
.mapa text { font-size: 9px; fill: var(--gris); font-family: var(--sans); }
.bt--g .bt__cifra, .bt--g p { position: relative; }

.bento__pie { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--gris); padding-top: 18px; }

/* ---------- Formulario de contacto ---------- */
.contacto { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); text-align: left; margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid rgba(13, 11, 12, .2); }
.contacto h3 { font-size: clamp(34px, 4vw, 60px); letter-spacing: -.05em; line-height: .98; margin-bottom: 20px; }
.contacto__texto p { font-size: 18px; opacity: .75; max-width: 34ch; }
.formulario { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo--ancho { grid-column: 1 / -1; }
.campo label, .campo__etiqueta { font-size: 13px; opacity: .7; }
.campo label span { opacity: .7; }
.campo input, .campo select, .campo textarea {
  font: inherit; font-size: 17px; color: var(--tinta);
  background: rgba(255, 253, 251, .55); border: 1px solid rgba(13, 11, 12, .18); border-radius: 14px;
  padding: 15px 16px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none; width: 100%;
}
.campo select { background-image: linear-gradient(45deg, transparent 50%, var(--tinta) 50%), linear-gradient(135deg, var(--tinta) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.campo textarea { resize: vertical; min-height: 96px; }
.campo input::placeholder, .campo textarea::placeholder { color: rgba(13, 11, 12, .4); }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--tinta); background: #fffdfb; box-shadow: 0 0 0 4px rgba(13, 11, 12, .08); }
.campo__error { display: none; font-size: 13px; color: #8a1235; }
.con-error .campo__error, .campo__error--aviso.mostrar { display: block; }
.con-error input { border-color: #8a1235; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opciones label { cursor: pointer; position: relative; }
.opciones input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.opciones span { display: inline-block; padding: 10px 16px; border-radius: 99px; border: 1px solid rgba(13, 11, 12, .22); font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.opciones label:hover span { border-color: var(--tinta); }
.opciones input:checked + span { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.opciones input:focus-visible + span { box-shadow: 0 0 0 3px rgba(13, 11, 12, .25); }
.aviso { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; opacity: .85; cursor: pointer; }
.aviso input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--tinta); flex: none; }
.formulario__pie { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.enviar { font: inherit; font-size: 17px; font-weight: 500; height: 58px; padding: 0 32px; border: 0; border-radius: 99px; background: var(--tinta); color: var(--papel); cursor: pointer; display: inline-flex; align-items: center; gap: 12px; transition: transform .25s var(--ease), background .25s; }
.enviar:hover { transform: translateY(-2px); background: var(--tinta-2); }
.enviar i { font-style: normal; transition: transform .35s var(--ease); }
.enviar:hover i { transform: rotate(45deg); }
.formulario__estado { font-size: 15px; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-template-areas: "a b" "a e" "c c" "d d" "f f" "g g"; }
  .bt--c { flex-direction: column; }
  .bt__lado { min-width: 0; }
  .contacto { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "b" "c" "d" "e" "f" "g"; }
  .bt { min-height: 260px; }
  .frascos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .frasco { min-height: 190px; }
  .bt--g { min-height: 300px; }
  .formulario { grid-template-columns: 1fr; }
  .enviar { width: 100%; justify-content: center; }
  .bento__pie { flex-direction: column; }
}

.bt--e .bt__cifra { font-size: clamp(52px, 5.4vw, 96px); }
