/*
Theme Name: Pantalla Publicitaria
Theme URI: https://pantallapublicitaria.cl
Author: Clickhost
Description: Tema a medida para la tienda de pantallas y paneles LED pantallapublicitaria.cl.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: pantallapublicitaria
WC requires at least: 8.3
*/

@font-face { font-family: "Inter"; src: url("assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
	--c-dark: #0B0F1A;
	--c-dark-2: #131A2B;
	--c-accent: #00D4FF;
	--c-accent-dark: #00708A;
	--c-sale: #FF2E88;
	--c-light: #F6F8FB;
	--c-text: #1A1F2B;
	--c-muted: #5B6475;
	--c-border: #E3E7EE;
	--c-white: #FFFFFF;
	--font-head: "Space Grotesk", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 12px;
	--shadow: 0 6px 24px rgba(11, 15, 26, .08);
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--c-text); background: var(--c-light); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--c-accent-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000; top: 8px; left: 8px; padding: 12px 16px; background: var(--c-white); color: var(--c-dark); }

/* Botones y utilidades */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.6em; border-radius: 999px; font: 600 1rem/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, box-shadow .2s, color .2s; }
.btn .icon { width: 18px; height: 18px; }
.btn--accent { background: var(--c-accent); color: var(--c-dark); }
.btn--accent:hover { background: #5CE6FF; color: var(--c-dark); box-shadow: 0 0 24px rgba(0, 212, 255, .55); }
.btn--ghost { border-color: currentColor; color: var(--c-white); background: transparent; }
.btn--ghost:hover { color: var(--c-accent); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section__head h2 { margin: 0; }
.section__head a { font-weight: 600; text-decoration: none; color: var(--c-accent-dark); }
.eyebrow { display: inline-block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 500; color: var(--c-accent-dark); margin-bottom: 8px; }
.page-header .eyebrow, .hero .eyebrow, .rent-band .eyebrow { color: var(--c-accent); }

/* Barra superior */
.topbar { background: #05070D; color: #C9D3E3; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; flex-wrap: wrap; }

/* Header */
.site-header { background: var(--c-dark); color: var(--c-white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(0, 212, 255, .15); }
.header-main { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-white); font-family: var(--font-head); font-weight: 700; letter-spacing: .02em; flex-shrink: 0; font-size: 1.05rem; }
.site-logo:hover { color: var(--c-white); }
.site-logo svg { width: 36px; height: 36px; }
.site-logo strong { color: var(--c-accent); }
.custom-logo { max-height: 56px; width: auto; }
.header-search { flex: 1; max-width: 520px; }
.pp-search form { display: flex; }
.pp-search label { flex: 1; display: flex; }
.pp-search input[type="search"] { flex: 1; min-width: 0; border: 1px solid rgba(255, 255, 255, .15); background: var(--c-dark-2); color: var(--c-white); border-radius: 999px 0 0 999px; padding: .65em 1.1em; font: inherit; }
.pp-search button { border: 0; background: var(--c-accent); color: var(--c-dark); border-radius: 0 999px 999px 0; padding: 0 1.1em; cursor: pointer; font: 600 .95rem var(--font-body); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--c-white); background: transparent; border: 0; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--c-dark-2); color: var(--c-accent); }
.icon-btn .icon { width: 22px; height: 22px; }
.pp-cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--c-sale); color: var(--c-white); font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; }
.menu-toggle { display: none; }
.main-nav { border-top: 1px solid rgba(255, 255, 255, .06); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { display: block; padding: 12px 14px; text-decoration: none; font-weight: 500; font-size: .95rem; color: #D7DEEA; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--c-accent); }

/* Drawers (menú móvil y carrito) */
.drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(420px, 92vw); background: var(--c-white); color: var(--c-text); z-index: 100; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0, 0, 0, .3); }
.drawer--left { right: auto; left: 0; transform: translateX(-100%); background: var(--c-dark); color: var(--c-white); }
.drawer.is-open { transform: none; }
.drawer[hidden], .drawer-overlay[hidden] { display: none; }
.drawer--left a:hover { color: var(--c-accent); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--c-border); font-family: var(--font-head); }
.drawer--left .drawer__head { border-color: rgba(255, 255, 255, .1); }
.drawer__body { padding: 20px; overflow-y: auto; flex: 1; }
.drawer .icon-btn { color: inherit; }
.drawer .icon-btn:hover { background: rgba(127, 127, 127, .15); }
.drawer-search { margin-bottom: 16px; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(5, 7, 13, .6); z-index: 90; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); text-decoration: none; font-weight: 500; }
body.has-drawer { overflow: hidden; }

/* Mini carrito (se muestra en todas las páginas) */
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.woocommerce-mini-cart-item { position: relative; padding: 12px 28px 12px 0; border-bottom: 1px solid var(--c-border); overflow: hidden; }
.woocommerce-mini-cart-item img { width: 56px; height: 56px; object-fit: cover; float: left; margin-right: 12px; border-radius: 6px; }
.woocommerce-mini-cart-item a { text-decoration: none; font-weight: 600; }
.woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 12px; color: var(--c-sale) !important; }
.woocommerce-mini-cart-item .quantity { display: block; color: var(--c-muted); font-size: .9rem; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding-block: 16px; font-size: 1.05rem; }
.woocommerce-mini-cart__buttons { display: grid; gap: 10px; }
.woocommerce-mini-cart__buttons .button { display: block; text-align: center; padding: .8em 1.4em; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--c-dark); color: var(--c-white); }
.woocommerce-mini-cart__buttons .checkout { background: var(--c-accent); color: var(--c-dark); }
.woocommerce-mini-cart__empty-message { color: var(--c-muted); }

/* Contenido */
.site-main { min-height: 50vh; }
.page-header { background: var(--c-dark); color: var(--c-white); padding-block: 40px; }
.page-header h1 { margin: 0; }
.entry-content { background: var(--c-white); border-radius: var(--radius); padding: clamp(20px, 4vw, 48px); margin-block: 40px; box-shadow: var(--shadow); }
.entry-content > *:first-child { margin-top: 0; }
.search-results-list { list-style: none; padding: 0; margin: 0; }
.search-results-list li { padding-block: 12px; border-bottom: 1px solid var(--c-border); }

/* Formularios */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"], input[type="number"], select, textarea { width: 100%; padding: .75em 1em; border: 1px solid var(--c-border); border-radius: 10px; font: inherit; background: var(--c-white); color: var(--c-text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; border-color: transparent; }

/* Footer */
.site-footer { background: var(--c-dark); color: #AEB8C9; padding-top: 56px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h3 { color: var(--c-white); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-block: 20px; font-size: .85rem; }
.pp-contact-list { list-style: none; margin: 0; padding: 0; }
.pp-contact-list li { display: flex; gap: 8px; margin-bottom: 8px; }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: var(--c-white); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s; }
.whatsapp-float .icon { width: 30px; height: 30px; }
.whatsapp-float:hover { color: var(--c-white); transform: scale(1.06); }

/* Responsive */
@media (max-width: 900px) {
	.main-nav, .header-search { display: none; }
	.menu-toggle { display: inline-flex; }
	.header-main { gap: 8px; }
	.footer-grid { grid-template-columns: 1fr; }
	.topbar__schedule { display: none; }
}
@media (max-width: 420px) {
	.site-logo span { font-size: .85rem; }
}

/* Portada: banner */
.hero { position: relative; background: var(--c-dark); color: var(--c-white); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0, 212, 255, .22) 1.2px, transparent 1.6px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 70%); mask-image: linear-gradient(90deg, transparent 10%, #000 70%); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero .container { position: relative; padding-block: clamp(72px, 12vw, 140px); }
.hero__content { max-width: 640px; }
.hero p { font-size: 1.15rem; color: #C9D3E3; margin: 0 0 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Portada: categorías */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; background: var(--c-white); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s; }
.cat-card:hover { transform: translateY(-3px); color: inherit; }
.cat-card img, .cat-card__ph { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--c-dark); }
.cat-card__ph { display: flex; align-items: center; justify-content: center; color: var(--c-accent); font: 700 2rem var(--font-head); }
.cat-card__name { padding: 12px 14px; font-weight: 600; font-family: var(--font-head); }

/* Portada: arriendo */
.rent-band { background: linear-gradient(120deg, var(--c-dark) 0%, #0E2236 100%); color: var(--c-white); }
.rent-band .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.rent-band ul { margin: 0 0 24px; padding-left: 1.2em; color: #C9D3E3; }
.rent-band__screen { aspect-ratio: 16 / 10; border-radius: var(--radius); border: 2px solid rgba(0, 212, 255, .4); box-shadow: 0 0 60px rgba(0, 212, 255, .25), inset 0 0 40px rgba(0, 212, 255, .15); background-image: radial-gradient(rgba(0, 212, 255, .35) 1.4px, transparent 1.8px); background-size: 14px 14px; display: flex; align-items: center; justify-content: center; font: 700 clamp(1.4rem, 3vw, 2.2rem) var(--font-head); text-align: center; padding: 24px; text-shadow: 0 0 18px rgba(0, 212, 255, .8); }

/* Portada: beneficios */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { background: var(--c-white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.benefit .icon { width: 36px; height: 36px; color: var(--c-accent-dark); margin-bottom: 12px; }
.benefit h3 { font-size: 1.05rem; }
.benefit p { margin: 0; color: var(--c-muted); font-size: .95rem; }

@media (max-width: 900px) {
	.rent-band .container { grid-template-columns: 1fr; }
	.benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.benefits { grid-template-columns: 1fr; }
}

/* Arriendo: formulario de cotización */
.rent-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.quote-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.quote-form__field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.quote-form__field--full { grid-column: 1 / -1; }
.quote-form__field.is-invalid input, .quote-form__field.is-invalid select, .quote-form__field.is-invalid textarea { border-color: var(--c-sale); }
.quote-form__hint { display: block; margin-top: 4px; font-size: .8rem; color: var(--c-sale); }
.quote-form__hp { position: absolute; left: -9999px; }
.quote-form__notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.quote-form__notice--success { background: #E6FBF3; color: #06603F; }
.quote-form__notice--error { background: #FFE8F1; color: #9B0F4A; }
@media (max-width: 900px) { .rent-layout { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 520px) { .quote-form__grid { grid-template-columns: 1fr; } }
