/* Home Poch · DESIGN.md §4-§6. Todo va bajo .ph para no tocar el resto del sitio. */

.ph {
	--ph-hilo: #F8F3EA;
	--ph-verde: #5FAF6E;          /* verde del logo */
	--ph-verde-osc: #2E6B3F;
	--ph-rosa: #EE6A8A;
	--ph-cacao: #3A2E29;
	--ph-punto: #DCCDB6;
	--ph-blanco: #FFFDF9;
	--ph-display: "Fraunces", Georgia, serif;
	--ph-text: "Nunito", system-ui, sans-serif;
	--ph-max: 1180px;
	font-family: var(--ph-text);
	color: var(--ph-cacao);
	background-color: var(--ph-hilo);
	/* Textura de punto (v de punto bajo), muy sutil */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Cpath d='M2 2 L7 9 L12 2' fill='none' stroke='%233A2E29' stroke-opacity='.045' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
	overflow-x: clip;
	/* Astra pone .ast-container en flex: sin esto la home se encoge y queda pegada a la izquierda */
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
}

.ph *, .ph *::before, .ph *::after { box-sizing: border-box; }
.ph img { max-width: 100%; height: auto; display: block; }
.ph section { padding: clamp(56px, 8vw, 104px) 20px; }
.ph section > * { max-width: var(--ph-max); margin-left: auto; margin-right: auto; }

.ph-kicker {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ph-verde-osc);
}

.ph-h1, .ph-h2 {
	font-family: var(--ph-display);
	font-weight: 600;
	font-variation-settings: "SOFT" 100, "WONK" 1;
	letter-spacing: -.02em;
	color: var(--ph-cacao);
	margin: 0 0 18px;
}
.ph-h1 { font-size: clamp(36px, 5.6vw, 66px); line-height: 1.02; }
.ph-h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; }
.ph h3 { font-family: var(--ph-text); font-weight: 800; font-size: 19px; margin: 0 0 6px; color: var(--ph-cacao); }
.ph p { line-height: 1.6; }
.ph-lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; margin: 0 0 28px; }

/* Botones: borde punteado interior, como una etiqueta cosida */
.ph-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 28px; border-radius: 999px;
	font-weight: 800; font-size: 16px; text-decoration: none;
	position: relative; transition: transform .25s cubic-bezier(.34,1.4,.64,1), box-shadow .25s;
}
.ph-btn::after {
	content: ""; position: absolute; inset: 4px; border-radius: inherit;
	border: 1.5px dashed currentColor; opacity: .55; pointer-events: none;
}
.ph-btn:hover { transform: translateY(-2px); }
.ph-btn--verde { background: var(--ph-verde-osc); color: #fff !important; box-shadow: 0 8px 20px rgba(46,107,63,.25); }
.ph-btn--rosa { background: var(--ph-rosa); color: #fff !important; box-shadow: 0 8px 20px rgba(238,106,138,.3); }
.ph-btn--borde { color: var(--ph-verde-osc) !important; background: transparent; box-shadow: inset 0 0 0 2px var(--ph-verde-osc); }
.ph-btn--borde::after { display: none; }
.ph-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ph-link { font-weight: 800; color: var(--ph-verde-osc) !important; text-decoration: none; }

/* Costura entre secciones */
.ph-costura {
	height: 2px; max-width: var(--ph-max); margin: 0 auto;
	background-image: linear-gradient(90deg, var(--ph-punto) 0 10px, transparent 10px 18px);
	background-size: 18px 2px;
}

/* HERO */
.ph-hero { display: grid; gap: 40px; align-items: center; padding-top: clamp(40px, 6vw, 72px) !important; }
@media (min-width: 900px) { .ph-hero { grid-template-columns: 1.05fr .95fr; max-width: calc(var(--ph-max) + 40px); margin: 0 auto; } .ph-hero > * { max-width: none; margin: 0; } }
.ph-hero__fotos { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin: 0 auto; }
.ph-marco {
	position: absolute; margin: 0; background: var(--ph-blanco); padding: 10px; border-radius: 22px;
	box-shadow: 0 18px 40px rgba(58,46,41,.14);
	outline: 1.5px dashed var(--ph-punto); outline-offset: -6px;
}
.ph-marco img { border-radius: 14px; width: 100%; height: 100%; object-fit: cover; }
.ph-marco--1 { width: 58%; aspect-ratio: 4/5; left: 4%; top: 6%; transform: rotate(-4deg); }
.ph-marco--2 { width: 38%; aspect-ratio: 1; right: 2%; top: 0; transform: rotate(5deg); }
.ph-marco--3 { width: 40%; aspect-ratio: 3/4; right: 6%; bottom: 0; transform: rotate(-2deg); background: var(--ph-hilo); }
.ph-marco--3 img { object-fit: contain; }
.ph-hilo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.ph-hilo path { fill: none; stroke: var(--ph-rosa); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; animation: ph-cose 2.4s .3s cubic-bezier(.6,0,.2,1) both; }
@keyframes ph-cose { from { stroke-dashoffset: 1; opacity: 0; } 10% { opacity: 1; } to { stroke-dashoffset: 0; } }

/* TRANSFORMACIÓN */
.ph-trans { padding: 0 20px !important; height: 320vh; position: relative; }
.ph-trans__pin {
	position: sticky; top: 0; height: 100vh; height: 100svh;
	display: grid; align-items: center; gap: 20px;
	max-width: var(--ph-max); margin: 0 auto;
}
@media (min-width: 900px) { .ph-trans__pin { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.ph-pasos { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 10px; }
.ph-pasos li {
	display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px;
	opacity: .35; transition: opacity .4s, transform .4s; transform: translateX(-4px);
}
.ph-pasos li.is-activo { opacity: 1; transform: none; }
.ph-pasos span {
	flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
	background: var(--ph-blanco); box-shadow: inset 0 0 0 2px var(--ph-verde); color: var(--ph-verde-osc); font-weight: 900;
}
.ph-pasos li.is-activo span { background: var(--ph-verde); color: #fff; }

.ph-trans__escena { position: relative; height: min(70vh, 620px); }
.ph-chat, .ph-teje { position: absolute; top: 50%; left: 50%; }
.ph-chat { width: min(60%, 300px); transform: translate(-50%, -50%) translate(var(--chat-x, 0), var(--chat-y, 0)) scale(var(--chat-s, 1)) rotate(var(--chat-r, 0deg)); transform-origin: center; z-index: 2; opacity: var(--chat-o, 1); }
.ph-chat__burbuja {
	background: #DCF8C6; padding: 8px 8px 10px; border-radius: 18px 18px 4px 18px;
	box-shadow: 0 14px 34px rgba(58,46,41,.18);
}
.ph-chat__burbuja img { border-radius: 12px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.ph-chat__burbuja p { margin: 8px 6px 0; font-size: 15px; font-weight: 700; }
.ph-teje { width: min(62%, 380px); transform: translate(-50%, -50%) translate(var(--teje-x, 0), 0); }
.ph-teje__svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 18px 24px rgba(58,46,41,.18)); }
.ph-hebra { stroke: var(--ph-rosa); stroke-width: 6; stroke-linecap: round; }
.ph-teje__sello {
	position: absolute; right: -6%; bottom: 6%; margin: 0; padding: 10px 14px; border-radius: 999px;
	background: var(--ph-blanco); font-weight: 800; font-size: 14px; transform: rotate(-6deg) scale(var(--sello-s, 0));
	outline: 1.5px dashed var(--ph-verde); outline-offset: -5px; box-shadow: 0 8px 18px rgba(58,46,41,.12);
}

@media (max-width: 899px) {
	.ph-trans { height: 300vh; }
	.ph-trans__pin { grid-template-rows: auto 1fr; align-items: start; padding-top: 72px; gap: 0; }
	.ph-trans__copy .ph-h2 { font-size: 26px; margin-bottom: 8px; }
	.ph-trans__copy .ph-kicker { margin-bottom: 4px; }
	.ph-pasos { margin: 4px 0 14px; gap: 6px; }
	.ph-pasos li { font-size: 15px; display: none; }
	.ph-pasos li.is-activo { display: flex; }
	.ph-trans__copy .ph-btn { min-height: 46px; font-size: 15px; }
	.ph-trans__escena { height: 100%; max-height: 520px; }
	.ph-chat { width: min(54%, 220px); }
	.ph-teje { width: min(66%, 300px); }
}

/* TEMPORADA */
.ph-temporada { display: grid; gap: 28px; align-items: center; background: var(--ph-verde-osc); color: #fff; border-radius: 28px; max-width: var(--ph-max); margin: 0 auto; padding: 28px !important; }
.ph-temporada > * { margin: 0; max-width: none; }
.ph-temporada .ph-h2, .ph-temporada .ph-kicker { color: #fff; }
.ph-temporada img { border-radius: 18px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.ph-temporada .ph-btn--verde { background: #fff; color: var(--ph-verde-osc) !important; }
@media (min-width: 900px) { .ph-temporada { grid-template-columns: 1fr 1fr; padding: 40px !important; } }
@media (max-width: 1220px) { .ph-temporada { margin: 0 20px; } }

/* CATEGORÍAS */
.ph-cats__grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
@media (min-width: 900px) { .ph-cats__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.ph-cat { text-decoration: none; color: inherit !important; display: block; }
.ph-cat__img {
	display: block; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--ph-blanco);
	outline: 1.5px dashed var(--ph-punto); outline-offset: -8px; margin-bottom: 12px;
	transition: transform .35s cubic-bezier(.34,1.4,.64,1);
}
.ph-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ph-cat--recorte .ph-cat__img { background: #EFE5D6; }
.ph-cat--recorte .ph-cat__img img { object-fit: contain; padding: 10%; }
.ph-cat:hover .ph-cat__img { transform: rotate(-1.5deg) translateY(-4px); }
.ph-cat:hover .ph-cat__img img { transform: scale(1.04); }
.ph-cat p { margin: 0; font-size: 15px; opacity: .8; }

/* PRODUCTOS (markup de WooCommerce dentro) */
.ph-productos__cab { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 24px !important; }
.ph-productos ul.products li.product { background: var(--ph-blanco); border-radius: 20px; padding: 10px 10px 16px !important; text-align: left; }
.ph-productos ul.products li.product img { border-radius: 14px; }

/* CÓMO PEDIR */
.ph-como { text-align: center; }
.ph-como__grid { display: grid; gap: 22px; margin: 28px auto 36px !important; text-align: left; }
@media (min-width: 900px) { .ph-como__grid { grid-template-columns: repeat(3, 1fr); } }
.ph-como__grid > div { background: var(--ph-blanco); border-radius: 22px; padding: 26px; position: relative; }
.ph-num { font-family: var(--ph-display); font-size: 44px; line-height: 1; color: var(--ph-verde); display: block; margin-bottom: 10px; }

/* HISTORIA (texto SEO) */
.ph-historia__cols { display: grid; gap: 26px; margin-top: 18px !important; }
@media (min-width: 900px) { .ph-historia__cols { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.ph-faq { max-width: 820px; margin: 0 auto; }
.ph-faq details { background: var(--ph-blanco); border-radius: 16px; padding: 18px 22px; margin-bottom: 10px; }
.ph-faq summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ph-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--ph-verde-osc); transition: transform .25s; }
.ph-faq details[open] summary::after { transform: rotate(45deg); }
.ph-faq details p { margin: 12px 0 0; }

/* Sin movimiento: la transformación se ve como antes / después */
@media (prefers-reduced-motion: reduce) {
	.ph-hilo path { animation: none; }
	.ph-trans { height: auto; padding: 72px 20px !important; }
	.ph-trans__pin { position: static; height: auto; }
	.ph-trans__escena { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
	.ph-chat, .ph-teje { position: static; transform: none; width: auto; }
	.ph-teje__sello { transform: rotate(-6deg); }
	.ph-pasos li { opacity: 1; display: flex; }
}

/* Botones de WooCommerce dentro de la home: en la marca, no el azul por defecto */
.ph-productos ul.products li.product .button,
.ph-productos ul.products li.product .added_to_cart {
	background: var(--ph-verde-osc) !important; color: #fff !important; border-radius: 999px !important;
	font-family: var(--ph-text); font-weight: 800; font-size: 14px; padding: 10px 18px !important; border: 0 !important;
}
.ph-productos ul.products li.product .button:hover { background: var(--ph-verde) !important; }
.ph-productos ul.products li.product .woocommerce-loop-product__title { font-family: var(--ph-text); font-weight: 800; color: var(--ph-cacao); }
.ph-productos ul.products li.product .price { color: var(--ph-verde-osc) !important; font-weight: 800; }
