/*
Theme Name: BYPET Mayorista
Description: Tema a medida para la tienda mayorista de BYPET (combos de collares, correas y pretales).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: bypet
*/

:root {
	--violeta: #2E2A6B;
	--violeta-2: #4B3FB8;
	--violeta-3: #3D3880;
	--tinta: #1E1B45;
	--lavanda: #F4F1FC;
	--lavanda-2: #E4DEFA;
	--lima: #D9F26B;
	--acento: #8B7CF0;
	--texto-2: #4A4770;
	--texto-claro: #DCD8F5;
	--blanco: #FFFFFF;
	--titulo: 'Archivo Black', system-ui, sans-serif;
	--cuerpo: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--lavanda); color: var(--tinta); font-family: var(--cuerpo); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violeta); }
a:hover { color: var(--violeta-2); }
h1, h2, h3 { font-family: var(--titulo); font-weight: 400; margin: 0; letter-spacing: -0.5px; line-height: 1.1; }
p { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

.wrap { max-width: 1240px; margin: 0 auto; }
.sec { padding: 88px 24px; }
.sec--blanca { background: var(--blanco); }
.sec__cab { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 40px; }
.sec__cab h2, .h2 { font-size: 42px; letter-spacing: -1px; }
.sec__cab p, .lead { font-size: 18px; color: var(--texto-2); max-width: 640px; }
.etq { font-size: 14px; font-weight: 600; color: var(--violeta-2); text-transform: uppercase; letter-spacing: 1px; }
.pill { align-self: flex-start; display: inline-block; background: var(--lima); color: var(--tinta); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; padding: 16px 26px; border-radius: 999px; font-weight: 600; font-size: 17px; border: 0; cursor: pointer; font-family: var(--cuerpo); min-height: 48px; }
.btn--prim { background: var(--violeta); color: var(--blanco); }
.btn--prim:hover { background: var(--violeta-2); color: var(--blanco); }
.btn--blanco { background: var(--blanco); color: var(--tinta); }
.btn--lima { background: var(--lima); color: var(--tinta); font-weight: 700; }
.btn--lima:hover { color: var(--tinta); filter: brightness(0.95); }
.btn--borde { background: transparent; border: 2px solid var(--violeta); color: var(--violeta); font-size: 15px; padding: 12px 20px; }

/* Encabezado */
.anuncio { background: var(--violeta); color: var(--blanco); text-align: center; font-size: 14px; padding: 10px 16px; }
.cabecera { max-width: 1240px; margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cabecera__logo img { height: 52px; width: auto; }
.menu { display: flex; flex-wrap: wrap; gap: 4px; background: var(--blanco); border-radius: 999px; padding: 6px; list-style: none; margin: 0; }
.menu a { display: block; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--violeta); }
.menu a:hover, .menu .activo a { background: var(--violeta); color: var(--blanco); }
.cabecera__acciones { display: flex; gap: 10px; align-items: center; }
.carrito-link { position: relative; display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 999px; background: var(--blanco); color: var(--violeta); text-decoration: none; }
.carrito-link__n { position: absolute; top: -4px; right: -4px; background: var(--lima); color: var(--tinta); font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

/* Hero */
.hero { max-width: 1240px; margin: 0 auto; padding: 24px 24px 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero__txt { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 60px; line-height: 1.02; letter-spacing: -1.5px; }
.hero__txt > p { font-size: 19px; line-height: 1.55; color: var(--texto-2); max-width: 520px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__datos { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 8px; }
.hero__datos strong { display: block; font-family: var(--titulo); font-weight: 400; font-size: 30px; color: var(--violeta); }
.hero__datos span { font-size: 14px; color: var(--texto-2); }
.hero__img { flex: 1 1 460px; min-width: 0; position: relative; height: 560px; }
.hero__fondo { position: absolute; inset: 40px 0 0 40px; background: var(--acento); border-radius: 40px; }
.hero__foto { position: absolute; top: 0; left: 0; width: calc(100% - 40px); height: 520px; object-fit: cover; object-position: center 70%; border-radius: 40px; }
.chip { position: absolute; background: var(--blanco); border-radius: 20px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 30px rgba(46,42,107,0.18); }
.chip strong { display: block; font-size: 15px; }
.chip small { font-size: 13px; color: var(--texto-2); }
.chip--a { left: -12px; bottom: 72px; }
.chip--b { right: 8px; top: 24px; display: block; }
.chip__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--lima); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* Líneas */
.lineas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.linea { text-decoration: none; color: var(--tinta); background: var(--lavanda); border-radius: 32px; overflow: hidden; display: flex; flex-wrap: wrap; align-items: stretch; }
.linea:hover { color: var(--tinta); }
.linea--osc { background: var(--violeta); color: var(--blanco); }
.linea--osc:hover { color: var(--blanco); }
.linea__txt { flex: 1 1 240px; padding: 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.linea__txt h3 { font-size: 30px; }
.linea__txt p { color: var(--texto-2); }
.linea--osc .linea__txt p { color: var(--texto-claro); }
.linea--osc .etq, .linea--osc .linea__cta { color: var(--lima); }
.linea__cta { font-weight: 600; color: var(--violeta); }
.linea img { flex: 1 1 200px; width: 200px; min-height: 300px; object-fit: cover; object-position: center 40%; }

/* Detalle de producto */
.detalles { display: flex; flex-direction: column; gap: 40px; }
.detalle { background: var(--blanco); border-radius: 40px; overflow: hidden; display: flex; flex-wrap: wrap; }
.detalle--osc { background: var(--violeta); color: var(--blanco); flex-wrap: wrap-reverse; }
.detalle__media { flex: 1 1 440px; min-width: 0; position: relative; background: var(--lavanda); min-height: 460px; }
.detalle__media > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.detalle__media--contain > img:first-child { object-fit: contain; background: var(--blanco); }
.detalle__mini { position: absolute; right: 20px; bottom: 20px; width: 120px; height: 120px; object-fit: cover; border-radius: 24px; border: 4px solid var(--blanco); }
.detalle--osc .detalle__mini { right: auto; left: 20px; }
.detalle__txt { flex: 1 1 440px; min-width: 0; padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.detalle__txt h3 { font-size: 34px; }
.detalle__txt ul { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; color: var(--texto-2); }
.detalle--osc .detalle__txt ul, .detalle--osc .nota { color: var(--texto-claro); }
.detalle--osc .etq { color: var(--lima); }
.talles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.talles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.talles div { background: var(--lavanda); border-radius: 16px; padding: 12px 6px; text-align: center; }
.detalle--osc .talles div { background: var(--violeta-3); }
.talles strong { display: block; font-size: 18px; }
.talles span { font-size: 13px; color: var(--texto-2); }
.detalle--osc .talles span { color: var(--texto-claro); }
.nota { font-size: 14px; color: var(--texto-2); }

/* Combos */
.combos__cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.combos__cab > div { display: flex; flex-direction: column; gap: 10px; }
.selector { display: flex; gap: 4px; background: var(--blanco); padding: 6px; border-radius: 999px; }
.selector button { border: 0; cursor: pointer; padding: 12px 20px; border-radius: 999px; font: 600 15px var(--cuerpo); background: transparent; color: var(--tinta); min-height: 44px; }
.selector button[aria-pressed="true"] { background: var(--violeta); color: var(--blanco); }
.combos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.combos[hidden] { display: none; }
.combo { background: var(--blanco); color: var(--tinta); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.combo--dest { background: var(--violeta); color: var(--blanco); }
.combo__top { display: flex; justify-content: space-between; align-items: center; }
.combo__top h3 { font-size: 28px; }
.combo__off { background: var(--lima); color: var(--tinta); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.combo__lista, .combo__sub, .combo__det { color: var(--texto-2); font-size: 15px; }
.combo__sub { font-size: 14px; }
.combo__det { font-size: 13px; display: block; }
.combo--dest .combo__lista, .combo--dest .combo__sub, .combo--dest .combo__det { color: var(--texto-claro); }
.combo__precio { font-family: var(--titulo); font-size: 40px; letter-spacing: -1px; }
.combo ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.combo li > span:first-child { display: flex; justify-content: space-between; gap: 12px; }
.combo .btn { width: 100%; font-size: 16px; }
.combo--dest .btn { background: var(--lima); color: var(--tinta); }
.surtido { margin-top: 24px; background: var(--blanco); border: 2px dashed var(--acento); border-radius: 32px; padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.surtido__txt { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.surtido__txt h3 { font-size: 28px; }
.surtido__txt p { color: var(--texto-2); }
.surtido__precio { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.surtido__precio .combo__precio { font-size: 36px; }
.combos__nota { margin-top: 24px; font-size: 14px; color: var(--texto-2); }

/* Diseños */
.disenos { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.disenos__txt { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.disenos__txt > p { font-size: 18px; line-height: 1.55; color: var(--texto-2); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { padding: 8px 14px; border-radius: 999px; background: var(--lavanda); font-size: 15px; font-weight: 500; }
.disenos__fotos { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.disenos__fotos img { width: 100%; height: 260px; object-fit: cover; border-radius: 24px; background: var(--lavanda); }
.disenos__fotos img:last-child { grid-column: span 2; }

/* Cómo comprar */
.pasos { margin: 0 0 36px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.pasos li { background: var(--blanco); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.pasos li > span:first-child { font-family: var(--titulo); font-size: 28px; color: var(--acento); }
.pasos strong { font-size: 19px; }
.pasos li > span:last-child { color: var(--texto-2); }
.envios { background: var(--blanco); border-radius: 32px; padding: 32px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.envios__ico { width: 64px; height: 64px; border-radius: 20px; background: var(--lavanda); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.envios > div { flex: 1 1 520px; display: flex; flex-direction: column; gap: 8px; }
.envios strong { font-size: 20px; }
.envios span { color: var(--texto-2); }

/* Testimonios */
.testimonios { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testimonio { margin: 0; background: var(--lavanda); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.testimonio blockquote { margin: 0; font-size: 17px; }
.testimonio img { border-radius: 18px; width: 100%; height: 220px; object-fit: cover; }
.estrellas { color: #F5B301; font-size: 20px; letter-spacing: 2px; }
.testimonio figcaption { font-size: 15px; color: var(--texto-2); }
.testimonio figcaption strong { color: var(--tinta); }

/* Banner */
.banner { max-width: 1240px; margin: 0 auto; background: var(--violeta); border-radius: 40px; padding: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.banner > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.banner h2 { font-size: 38px; color: var(--blanco); letter-spacing: -1px; }
.banner p { font-size: 18px; color: var(--texto-claro); }

/* Pie */
.pie { background: var(--tinta); color: var(--texto-claro); padding: 56px 24px; }
.pie__cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.pie__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.pie__col--marca { max-width: 320px; gap: 10px; }
.pie__col--marca img { height: 56px; width: auto; align-self: flex-start; }
.pie__col strong { color: var(--blanco); }
.pie a { color: var(--texto-claro); }
.pie a:hover { color: var(--blanco); }
.segura { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; color: var(--blanco); }
.pie__legal { max-width: 1240px; margin: 32px auto 0; font-size: 13px; color: #A9A4D6; }

/* Páginas internas y WooCommerce */
.contenido { max-width: 1240px; margin: 0 auto; padding: 32px 24px 88px; }
.contenido > h1, .woocommerce-products-header__title, .product_title { font-size: 42px; letter-spacing: -1px; margin-bottom: 24px; }
.caja { background: var(--blanco); border-radius: 32px; padding: 40px; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .wc-block-components-button:not(.is-link) {
	background: var(--violeta) !important; color: var(--blanco) !important; border-radius: 999px !important; padding: 14px 24px !important; font-family: var(--cuerpo) !important; font-weight: 600 !important; border: 0 !important;
}
.woocommerce .button:hover, .woocommerce button.button.alt:hover { background: var(--violeta-2) !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { background: var(--blanco); border-radius: 28px; padding: 20px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--titulo); font-weight: 400; font-size: 20px; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--tinta); font-family: var(--titulo); font-size: 24px; }
.woocommerce .price del { color: var(--texto-2); font-family: var(--cuerpo); font-size: 0.65em; opacity: 1; }
.woocommerce .price ins { text-decoration: none; }
.woocommerce span.onsale { background: var(--lima); color: var(--tinta); border-radius: 999px; min-height: 0; min-width: 0; padding: 6px 12px; line-height: 1.2; font-weight: 700; }
.woocommerce div.product .woocommerce-product-details__short-description { white-space: pre-line; color: var(--texto-2); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--violeta); background: var(--blanco); border-radius: 16px; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--violeta); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid #CFC8F0; border-radius: 12px; padding: 12px 14px; font-family: var(--cuerpo); }

@media (max-width: 760px) {
	.hero h1 { font-size: 40px; }
	.sec { padding: 64px 16px; }
	.sec__cab h2, .h2 { font-size: 32px; }
	.hero { padding: 16px 16px 48px; }
	.hero__img { height: 420px; }
	.hero__foto { height: 380px; }
	.cabecera { padding: 16px; }
	.menu { order: 3; width: 100%; justify-content: center; border-radius: 24px; }
	.detalle__txt { padding: 32px 24px; }
	.detalle__media { min-height: 320px; }
	.talles, .talles--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.banner { padding: 36px 24px; }
	.banner h2 { font-size: 30px; }
	.disenos__fotos img { height: 180px; }
}
