/* =========================================================
   JF Mayfair — piezas del tema que no estaban en el diseño estático
   (main.css es el del diseño, sin cambios).
   ========================================================= */

/* Accesibilidad */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #000; color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 60px; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.admin-bar .nav-toggle, .admin-bar .header-bar, .admin-bar .header-call { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav-toggle, .admin-bar .header-bar, .admin-bar .header-call { top: 46px; } }

/* Hoja «llamar / reservar» (móvil) */
.sheet { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet__panel { position: relative; width: 100%; background: #fff; padding: 56px 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.sheet__btn { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.sheet__btn .icon { width: 16px; height: 16px; }
.sheet__close { position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; background: none; border: 0; cursor: pointer; }
.sheet__close::before, .sheet__close::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: #000; transform: rotate(45deg); }
.sheet__close::after { transform: rotate(-45deg); }

/* Formularios */
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-notice { margin: 0 0 20px; padding: 14px 18px; font: 400 15px/1.5 var(--f-body); border-left: 3px solid; }
.form-notice--ok { border-color: #2e7d32; background: #eef6ee; }
.form-notice--error { border-color: var(--c-accent); background: #f8eef2; }

/* Equipo: rejilla de /team/ y «quién lo hace» */
.people-grid { display: grid; grid-template-columns: repeat(var(--pg-cols, 4), 1fr); gap: 54px 5.5%; }
.people-grid .person { --p-img-mb: 29.7px; --p-name-mb: 0px; }
.people-grid .person__media img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.people-grid--3 { --pg-cols: 3; gap: 54px 5.5%; }
.people-grid--3 .person { --p-img-mb: 35.6px; }
@media (max-width: 980px) {
  .people-grid { grid-template-columns: 1fr; gap: 30px; }
  .people-grid .person { --p-img-mb: 30px; }
}

/* Ficha */
.stylist-photo img { aspect-ratio: 3 / 4; object-fit: cover; }
.price-list__note { display: block; font-weight: 300; text-transform: none; font-size: 13px; }

/* /services/ */
.service-cards { display: grid; grid-template-columns: repeat(var(--sc-cols, 4), 1fr); gap: 30px 5.5%; }
.service-cards .media img { aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 980px) { .service-cards { grid-template-columns: 1fr; } }

/* Portada: botones de servicio con la misma altura de imagen */
.home-services .media img { aspect-ratio: 809 / 900; object-fit: cover; }
.home-tiles .media img { aspect-ratio: 731 / 900; object-fit: cover; }

/* Instagram (mismo aspecto que el bloque anterior; una sola lista: rejilla en escritorio, carrusel en móvil) */
.jf-ig-section { max-width: 1200px; margin: 0 auto; padding: 50px 20px 40px; overflow: hidden; }
.jf-ig-header { text-align: center; margin-bottom: 44px; }
.jf-ig-header h2 { font: 300 36px/1.2 var(--f-alt); letter-spacing: 4px; text-transform: uppercase; color: #1a1a1a; margin: 0 0 10px; }
.jf-ig-header p { font: 400 13px/1.5 Arial, Helvetica, sans-serif; color: #999; letter-spacing: 1.5px; margin: 0; }
.jf-ig-header p a { color: #b8976a; text-decoration: none; font-weight: 600; transition: color .3s; }
.jf-ig-header p a:hover { color: #1a1a1a; }
.jf-ig-grid { column-count: 3; column-gap: 18px; }
.jf-ig-item { break-inside: avoid; margin-bottom: 18px; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.05); transition: transform .35s ease, box-shadow .35s ease; }
.jf-ig-item:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.jf-ig-section .instagram-media, .jf-ig-section iframe.instagram-media { min-width: 0 !important; max-width: 100% !important; width: 100% !important; margin: 0 !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; }
.jf-ig-item .instagram-media:not(.instagram-media-rendered) { display: block; min-height: 420px; background: #fafafa; padding: 16px; font: 550 14px/18px Arial, sans-serif; }
.jf-ig-item .instagram-media:not(.instagram-media-rendered) a { color: #3897f0; text-decoration: none; }
.jf-ig-dots { display: none; }
.jf-ig-cta { text-align: center; margin-top: 44px; }
.jf-ig-cta a { display: inline-block; padding: 14px 44px; background: #1a1a1a; color: #fff; text-decoration: none; font: 400 12px/1.5 Arial, Helvetica, sans-serif; letter-spacing: 2.5px; text-transform: uppercase; transition: background .3s; }
.jf-ig-cta a:hover { background: #b8976a; }
@media (max-width: 991px) {
  .jf-ig-grid { column-count: 2; column-gap: 14px; }
  .jf-ig-item { margin-bottom: 14px; }
  .jf-ig-header h2 { font-size: 28px; }
}
@media (max-width: 767px) {
  .jf-ig-grid { column-count: auto; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 12px; padding: 0 4px 16px; }
  .jf-ig-grid::-webkit-scrollbar { display: none; }
  .jf-ig-item { flex: 0 0 85%; max-width: 85%; margin: 0; scroll-snap-align: center; box-shadow: 0 1px 8px rgba(0,0,0,.06); }
  .jf-ig-item:hover { transform: none; }
  .jf-ig-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
  .jf-ig-dot { width: 8px; height: 8px; border-radius: 50%; background: #d9d9d9; border: none; padding: 0; cursor: pointer; transition: background .3s, transform .3s; }
  .jf-ig-dot.active { background: #b8976a; transform: scale(1.25); }
  .jf-ig-header h2 { font-size: 22px; letter-spacing: 2px; }
  .jf-ig-section { padding: 30px 10px; }
  .jf-ig-cta { margin-top: 30px; }
  .jf-ig-cta a { padding: 12px 32px; font-size: 11px; }
}

/* Contenido del editor de bloques (páginas de texto como Booking Policy) */
.entry > * { margin: 0 0 1em; }
.entry > :last-child { margin-bottom: 0; }
.entry p, .entry li { font: 300 16px/23.8px var(--f-body); }
.entry:not(.text) h2 { font: 400 32px/1.1 var(--f-display); text-transform: uppercase; margin-top: 1.2em; }
.entry h3 { font: 400 25px/35px var(--f-body); margin-top: 1em; }
.entry a { color: var(--c-accent); }
.entry .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29.7px; }
.entry .wp-block-button__link { display: inline-block; text-decoration: none; text-transform: uppercase; background: var(--c-black); color: var(--c-white); border: 1px solid var(--c-black); border-radius: 0; font: 700 12px/20.4px var(--f-body); letter-spacing: 2px; padding: 16px 24px; transition: background-color .3s; }
.entry .wp-block-button__link:hover { background: #333; }
.entry img { height: auto; }
.text.entry > * { margin: 0; }
.text.entry .wp-block-buttons { justify-content: center; margin: 20px 0; }
.entry-muted { color: #666; }
.text .person__role { font: 300 14px/1.5 var(--f-body); color: var(--c-accent); text-transform: uppercase; letter-spacing: 1px; padding-bottom: 0; }
/* Contact: los títulos de los bloques son h2 por jerarquía, con el aspecto de h4 del diseño */
.text .h4-like { font-family: var(--h4-ff); font-size: var(--h4-fs); font-weight: var(--h4-fw); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); text-transform: var(--h4-tt); color: var(--h4-c); padding-bottom: 10px; }
.page-contact .text a { color: inherit; }
/* Formularios: el texto de los campos de los formularios rellenos en negro (el diseño lo dejaba gris) */
.form--fill .field input, .form--fill .field textarea { color: #000; }
.service-card .text h2 { text-align: center; }
