/*
Theme Name: Poly Hair
Theme URI: https://polyedra.mx
Author: POLYEDRA
Author URI: https://polyedra.mx
Description: Tema de bloques para Poly Hair & Nail Studio, salón de demostración de Poly y Poly Reservas. Tinta, malva y cereza; formas de uña almendrada y carta de esmaltes.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: polyhair
*/

/* ---------- Logotipo ---------- */
.ph-logo { margin: 0; line-height: 1; font-family: var(--wp--preset--font-family--bricolage); font-size: clamp(1.15rem, 2.2vw, 1.4rem); letter-spacing: -0.02em; }
.ph-logo a { text-decoration: none; color: inherit; white-space: nowrap; }
.ph-logo strong { font-weight: 700; }
.ph-logo em { font-family: var(--wp--preset--font-family--instrument); font-style: italic; font-weight: 400; color: var(--wp--preset--color--cereza); font-size: 1.15em; }
.ph-logo span { font-family: var(--wp--preset--font-family--instrument); font-style: italic; font-weight: 400; }

/* ---------- Encabezado ---------- */
.ph-header { position: sticky; top: 0; z-index: 30; backdrop-filter: saturate(1.4) blur(10px); background: color-mix(in srgb, var(--wp--preset--color--papel) 86%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--tinta) 10%, transparent); }
.ph-header .wp-block-navigation a { text-decoration: none; }
.ph-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--wp--preset--color--cereza); }
.admin-bar .ph-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ph-header { top: 46px; } }

/* ---------- Acentos tipográficos ---------- */
.ph-serif { font-family: var(--wp--preset--font-family--instrument) !important; font-style: italic; font-weight: 400 !important; letter-spacing: 0 !important; }
.ph-kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--wp--preset--color--cereza); }

/* ---------- Forma de uña almendrada (marco de imágenes y bloques) ---------- */
.ph-almendra { border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; overflow: hidden; }
.ph-almendra-arriba { border-radius: 999px 999px 28px 28px; overflow: hidden; }

/* ---------- Carta de esmaltes ---------- */
.ph-esmaltes { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1.25rem 1rem; list-style: none; padding: 0; margin: 0; }
.ph-esmaltes li { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; font-size: .85rem; }
.ph-esmaltes li::before { content: ""; width: 54px; height: 76px; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; background: var(--c); box-shadow: inset -8px -10px 0 rgba(0,0,0,.08), inset 6px 8px 0 rgba(255,255,255,.18); }
.ph-esmaltes b { font-weight: 600; }
.ph-esmaltes small { color: var(--wp--preset--color--humo); font-variant-numeric: tabular-nums; }

/* ---------- Carta de servicios ---------- */
.ph-carta { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.ph-carta-cat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 1rem 3rem; align-items: start; }
.ph-carta-cat > h2 { margin: 0; position: sticky; top: 6rem; }
.ph-carta-list { list-style: none; margin: 0; padding: 0; }
.ph-carta-item { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1.05rem 0; border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--tinta) 14%, transparent); }
.ph-carta-item:last-child { border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--tinta) 14%, transparent); }
.ph-carta-name { font-weight: 600; font-size: 1.1rem; }
.ph-carta-price { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.ph-carta-price small { font-weight: 400; color: var(--wp--preset--color--humo); }
.ph-carta-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .92rem; color: var(--wp--preset--color--humo); }
.ph-carta-meta a { color: var(--wp--preset--color--cereza); font-weight: 600; text-decoration: none; }
.ph-carta-meta a:hover { text-decoration: underline; }
@media (max-width: 760px) { .ph-carta-cat { grid-template-columns: 1fr; } .ph-carta-cat > h2 { position: static; } }

/* ---------- Equipo ---------- */
.ph-equipo { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 2rem 1.25rem; }
@media (max-width: 600px) { .ph-persona-foto { font-size: 3rem; } .ph-persona p { font-size: .9rem; } }
.ph-persona { display: flex; flex-direction: column; gap: .5rem; }
.ph-persona-foto { aspect-ratio: 4 / 5; display: grid; place-items: center; background: var(--bg, var(--wp--preset--color--malva)); border-radius: 999px 999px 24px 24px; font-family: var(--wp--preset--font-family--instrument); font-style: italic; font-size: 4.5rem; color: var(--wp--preset--color--tinta); overflow: hidden; }
.ph-persona-foto img { width: 100%; height: 100%; object-fit: cover; }
.ph-persona h3 { margin: .4rem 0 0; }
.ph-persona-puesto { margin: 0; color: var(--wp--preset--color--cereza); font-weight: 600; font-size: .9rem; }
.ph-persona p { margin: 0; }
.ph-persona-dias { font-size: .85rem; color: var(--wp--preset--color--humo); }

/* ---------- Conversación de muestra con Brenda ---------- */
.ph-chat { display: flex; flex-direction: column; gap: .6rem; }
.ph-chat p { max-width: 34ch; margin: 0; padding: .7rem .95rem; border-radius: 16px; font-size: .95rem; line-height: 1.45; }
.ph-chat .ph-yo { align-self: flex-end; background: var(--wp--preset--color--cereza); color: #fff; border-bottom-right-radius: 4px; }
.ph-chat .ph-brenda { align-self: flex-start; background: var(--wp--preset--color--base); color: var(--wp--preset--color--tinta); border-bottom-left-radius: 4px; }
.ph-chat .ph-cita { align-self: flex-start; background: transparent; border: 1px solid color-mix(in srgb, #fff 45%, transparent); color: #fff; font-size: .85rem; }

/* ---------- Reservas: colores de la casa ---------- */
.pres-app { --pres-accent: var(--wp--preset--color--cereza); --pres-accent-text: #fff; --pres-radius: 18px; }
.pres-option, .pres-day, .pres-summary { background: var(--wp--preset--color--base); }

/* ---------- Varios ---------- */
.ph-linea-onda { height: 18px; background: radial-gradient(circle at 10px -4px, transparent 12px, var(--wp--preset--color--malva) 13px) 0 0 / 20px 18px repeat-x; opacity: .9; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--wp--preset--color--cereza); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Portada: mano de esmaltes ---------- */
.ph-hero-arte { position: relative; aspect-ratio: 5 / 6; max-width: 480px; margin-inline: auto; width: 100%; background: radial-gradient(120% 90% at 30% 20%, #EDE6F3 0%, var(--wp--preset--color--malva) 55%, #CFC2DC 100%); border-radius: 999px 999px 32px 32px; overflow: hidden; }
.ph-hero-arte .ph-dedos { position: absolute; inset: 22% 10% 0 10%; display: flex; align-items: flex-end; justify-content: center; gap: 4%; }
.ph-hero-arte .ph-dedo { position: relative; width: 15%; background: #E9C9B9; border-radius: 999px 999px 0 0; box-shadow: inset -6px 0 0 rgba(0,0,0,.05); }
.ph-hero-arte .ph-dedo::before { content: ""; position: absolute; top: 7%; left: 14%; right: 14%; aspect-ratio: 5 / 7; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; background: var(--c); box-shadow: inset -5px -6px 0 rgba(0,0,0,.1), inset 4px 5px 0 rgba(255,255,255,.25); }
.ph-hero-arte .ph-dedo:nth-child(1) { height: 52%; }
.ph-hero-arte .ph-dedo:nth-child(2) { height: 74%; }
.ph-hero-arte .ph-dedo:nth-child(3) { height: 82%; }
.ph-hero-arte .ph-dedo:nth-child(4) { height: 76%; }
.ph-hero-arte .ph-dedo:nth-child(5) { height: 62%; }
.ph-hero-arte .ph-etiqueta { position: absolute; padding: .4rem .75rem; border-radius: 999px; background: var(--wp--preset--color--base); font-size: .78rem; font-weight: 600; box-shadow: 0 6px 18px rgba(38,34,47,.12); white-space: nowrap; }
.ph-hero-arte .ph-etiqueta .ph-punto { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: var(--c); margin-right: .4rem; vertical-align: -1px; }
.ph-hero-arte .ph-e1 { top: 30%; left: 6%; }
.ph-hero-arte .ph-e2 { top: 18%; right: 8%; }
.ph-hero-titulo em { font-family: var(--wp--preset--font-family--instrument); font-style: italic; font-weight: 400; color: var(--wp--preset--color--cereza); letter-spacing: 0; }
