/* =========================================================
   Anuncios y Negocios — estilos base (funcionan con cualquier tema).
   Pensado primero para celular. Los colores de marca se
   refuerzan en el tema hijo de Storefront.
   ========================================================= */

:root {
	--ayn-amarillo: #FFC400;
	--ayn-amarillo-osc: #E0A800;
	--ayn-negro: #141414;
	--ayn-gris-texto: #333333;
	--ayn-gris-claro: #f5f5f5;
	--ayn-gris-borde: #e5e5e5;
	--ayn-blanco: #ffffff;
	--ayn-radio: 12px;
}

/* ---------- Botones ---------- */
.ayn-btn {
	display: inline-block;
	background: var(--ayn-amarillo);
	color: var(--ayn-negro);
	font-weight: 700;
	text-decoration: none;
	padding: 14px 22px;
	border-radius: var(--ayn-radio);
	border: none;
	cursor: pointer;
	line-height: 1.2;
	text-align: center;
	transition: background .15s ease;
}
.ayn-btn:hover,
.ayn-btn:focus { background: var(--ayn-amarillo-osc); color: var(--ayn-negro); }
.ayn-btn--full { width: 100%; font-size: 1.05rem; padding: 16px 22px; }
.ayn-btn--hero { font-size: 1.05rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* ---------- Portada (hero) ---------- */
.ayn-hero {
	position: relative;
	margin: 0 0 32px;
	border-radius: 0;
	overflow: hidden;
	background: var(--ayn-negro);
}
.ayn-hero__media { position: relative; width: 100%; }
.ayn-hero__img {
	display: block;
	width: 100%;
	height: 56vw;
	max-height: 460px;
	object-fit: cover;
}
.ayn-hero__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	height: 56vw;
	max-height: 460px;
	min-height: 220px;
	background: repeating-linear-gradient(45deg, #1c1c1c, #1c1c1c 14px, #222 14px, #222 28px);
	color: #ddd;
	padding: 20px;
	font-size: .95rem;
}
.ayn-hero__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 75%);
}
.ayn-hero__inner { padding: 20px 18px 24px; width: 100%; }
.ayn-hero__title {
	color: #fff;
	font-size: 1.5rem;
	line-height: 1.25;
	margin: 0 0 16px;
	font-weight: 800;
	text-shadow: 0 2px 10px rgba(0,0,0,.5);
	max-width: 760px;
}

/* ---------- Secciones de productos ---------- */
.ayn-seccion { margin: 0 0 36px; }
.ayn-seccion__titulo {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--ayn-negro);
	margin: 0 0 4px;
	border-left: 6px solid var(--ayn-amarillo);
	padding-left: 12px;
}
.ayn-seccion__sub {
	color: #777;
	margin: 0 0 16px;
	padding-left: 18px;
	font-size: .92rem;
}

/* ---------- Cómo comprar ---------- */
.ayn-comprar { margin: 0 0 36px; }
.ayn-comprar__pasos { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ayn-paso {
	background: var(--ayn-gris-claro);
	border: 1px solid var(--ayn-gris-borde);
	border-radius: var(--ayn-radio);
	padding: 18px 18px 18px 60px;
	position: relative;
}
.ayn-paso__num {
	position: absolute;
	left: 16px; top: 16px;
	width: 32px; height: 32px;
	background: var(--ayn-amarillo);
	color: var(--ayn-negro);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800;
}
.ayn-paso__titulo { margin: 0 0 6px; font-size: 1.05rem; color: var(--ayn-negro); }
.ayn-paso__texto { margin: 0; color: var(--ayn-gris-texto); font-size: .95rem; }

/* ---------- Redes sociales ---------- */
.ayn-social { margin: 0 0 40px; text-align: center; }
.ayn-social__botones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ayn-social__btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: var(--ayn-radio);
	text-decoration: none;
	font-weight: 700;
	color: #fff;
	min-width: 130px;
}
.ayn-social__btn--fb { background: #1877f2; }
.ayn-social__btn--wa { background: #25d366; color: #0b3d1e; }
.ayn-social__btn--tk { background: #111; }
.ayn-social__btn:hover { opacity: .9; color: #fff; }
.ayn-social__btn--wa:hover { color: #0b3d1e; }

/* ---------- Botón flotante de WhatsApp ---------- */
.ayn-wa-float {
	position: fixed;
	right: 16px; bottom: 16px;
	z-index: 9999;
	background: #25d366;
	color: #fff;
	display: flex; align-items: center; gap: 8px;
	padding: 12px 16px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 700;
	box-shadow: 0 6px 20px rgba(0,0,0,.28);
}
.ayn-wa-float:hover { background: #1fb857; color: #fff; }
.ayn-wa-float__txt { font-size: .95rem; }
@media (max-width: 480px) {
	.ayn-wa-float__txt { display: none; }
	.ayn-wa-float { padding: 14px; border-radius: 50%; }
}

/* ---------- Caja de Yape en el checkout ---------- */
.ayn-yape-box {
	background: var(--ayn-gris-claro);
	border: 1px solid var(--ayn-gris-borde);
	border-radius: var(--ayn-radio);
	padding: 16px;
	margin-top: 10px;
}
.ayn-yape-qr img { max-width: 220px; height: auto; display: block; margin: 0 auto 10px; border-radius: 8px; background:#fff; padding:6px; }
.ayn-yape-num, .ayn-yape-name { margin: 4px 0; }
.ayn-yape-field { margin: 14px 0 6px; }
.ayn-yape-field label { display: block; margin-bottom: 6px; }
.ayn-yape-field input {
	width: 100%;
	padding: 12px;
	border: 1px solid #bbb;
	border-radius: 8px;
	font-size: 1rem;
}
.ayn-yape-help { font-size: .85rem; color: #666; margin: 4px 0 0; }

/* ---------- Formulario de subida (/subir) ---------- */
.ayn-form {
	max-width: 520px;
	margin: 0 auto;
	background: var(--ayn-blanco);
	border: 1px solid var(--ayn-gris-borde);
	border-radius: var(--ayn-radio);
	padding: 20px;
}
.ayn-form__row { margin: 0 0 18px; }
.ayn-form__row label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ayn-negro); }
.ayn-form__row select,
.ayn-form__row input[type="date"],
.ayn-form__row input[type="file"] {
	width: 100%;
	padding: 12px;
	border: 1px solid #bbb;
	border-radius: 8px;
	font-size: 1rem;
	background: #fff;
}
.ayn-form__ayuda { display: block; font-size: .82rem; color: #777; margin-top: 6px; }

/* ---------- Avisos ---------- */
.ayn-aviso { border-radius: var(--ayn-radio); padding: 14px 16px; margin: 0 auto 18px; max-width: 520px; }
.ayn-aviso--ok { background: #e7f7ec; border: 1px solid #b6e3c4; color: #14612f; }
.ayn-aviso--error { background: #fdecec; border: 1px solid #f3b7b7; color: #8a1f1f; }
.ayn-aviso p { margin: 0; }

/* ---------- Pantallas más grandes ---------- */
@media (min-width: 768px) {
	.ayn-hero__title { font-size: 2.1rem; }
	.ayn-comprar__pasos { grid-template-columns: repeat(4, 1fr); }
	.ayn-seccion__titulo { font-size: 1.7rem; }
}
