/* =========================================================
   Piscinas de Fibra - main.css
   Diseno propio, mobile-first, custom properties.
   ========================================================= */

:root {
	--pdf-blue: #0b6ec9;
	--pdf-blue-dark: #084d8c;
	--pdf-cyan: #12b5e5;
	--pdf-ink: #10222e;
	--pdf-slate: #4a5b66;
	--pdf-mist: #f2f8fc;
	--pdf-white: #ffffff;
	--pdf-border: #e2edf3;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 10px 30px rgba(12, 74, 110, .12);
	--shadow-sm: 0 4px 14px rgba(12, 74, 110, .08);
	--container: 1200px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	color: var(--pdf-ink);
	background: var(--pdf-white);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pdf-blue); text-decoration: none; }
a:hover { color: var(--pdf-blue-dark); }

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 20px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* -------- Botones -------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .85rem 1.6rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	border: 2px solid transparent;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--pdf-blue); color: #fff; }
.btn-primary:hover { background: var(--pdf-blue-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; border-color: var(--pdf-blue); color: var(--pdf-blue); }
.btn-outline:hover { background: var(--pdf-blue); color: #fff; }

/* -------- Header -------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--pdf-border);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.site-branding { flex: 0 0 auto; }
.site-branding img,
.site-branding .custom-logo { max-height: 52px; width: auto; }
.site-title { font-weight: 800; font-size: 1.25rem; color: var(--pdf-ink); }
.main-nav { flex: 1 1 auto; }
.nav-menu { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; justify-content: center; }
.nav-menu a { color: var(--pdf-ink); font-weight: 600; padding: .4rem 0; position: relative; }
.nav-menu a:hover { color: var(--pdf-blue); }
.header-actions { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; }
.header-cart { position: relative; font-size: 1.3rem; }
.cart-count {
	position: absolute; top: -8px; right: -10px;
	background: var(--pdf-cyan); color: #fff; font-size: .7rem; font-weight: 700;
	min-width: 18px; height: 18px; border-radius: 999px;
	display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--pdf-ink); border-radius: 2px; }

/* -------- Hero -------- */
.hero {
	position: relative;
	background: linear-gradient(135deg, var(--pdf-blue-dark), var(--pdf-cyan));
	color: #fff;
	padding: clamp(3rem, 8vw, 6rem) 0;
	overflow: hidden;
}
.hero-inner { max-width: 640px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; opacity: .95; margin-bottom: 1.8rem; }
.hero .btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--pdf-blue-dark); }

/* -------- Secciones -------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-mist { background: var(--pdf-mist); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { color: var(--pdf-slate); font-size: 1.1rem; }

/* -------- Grid de pasos / features -------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step-card {
	background: #fff; border: 1px solid var(--pdf-border); border-radius: var(--radius);
	padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow-sm);
}
.step-num {
	width: 52px; height: 52px; margin: 0 auto 1rem;
	background: linear-gradient(135deg, var(--pdf-blue), var(--pdf-cyan));
	color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 1.3rem;
}

/* -------- Cards de producto -------- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.75rem; }
.product-card {
	background: #fff; border: 1px solid var(--pdf-border); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.product-card .pc-body { padding: 1.25rem; }
.product-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.product-card .price { color: var(--pdf-blue); font-weight: 800; font-size: 1.15rem; }

/* -------- Footer -------- */
.site-footer { background: var(--pdf-ink); color: #cdd9e1; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding: 3.5rem 20px; }
.footer-title { color: #fff; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: #cdd9e1; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; font-size: .9rem; }

/* -------- WhatsApp flotante -------- */
.whatsapp-float {
	position: fixed; bottom: 24px; right: 24px; z-index: 200;
	width: 56px; height: 56px; border-radius: 50%;
	background: #25d366; color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(37, 211, 102, .5);
	transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* -------- Responsive -------- */
@media (max-width: 900px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
	.main-nav {
		position: fixed; inset: 72px 0 auto 0; background: #fff;
		border-bottom: 1px solid var(--pdf-border);
		max-height: 0; overflow: hidden; transition: max-height .3s ease;
	}
	.main-nav.open { max-height: 80vh; }
	.nav-menu { flex-direction: column; padding: 1rem 20px; gap: .25rem; }
	.nav-toggle { display: flex; }
	.footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Componentes adicionales (catalogo, producto, formularios)
   ========================================================= */

.container.narrow { max-width: 820px; }
.hero-compact { padding: clamp(2.5rem, 6vw, 4rem) 0; text-align: center; }
.hero-compact .hero-inner { max-width: 720px; margin: 0 auto; }
.lead { font-size: 1.2rem; color: var(--pdf-ink); }

.pc-cta { display: inline-block; margin-top: .5rem; color: var(--pdf-blue); font-weight: 700; font-size: .9rem; }

/* -------- Formularios -------- */
.form-card {
	background: #fff; border: 1px solid var(--pdf-border); border-radius: var(--radius);
	padding: 2rem; box-shadow: var(--shadow-sm);
}
.quote-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; color: var(--pdf-slate); }
.quote-form input, .quote-form select {
	width: 100%; margin-top: .35rem; padding: .8rem 1rem;
	border: 1px solid var(--pdf-border); border-radius: var(--radius-sm);
	font-size: 1rem; font-family: inherit; background: var(--pdf-mist);
}
.quote-form input:focus, .quote-form select:focus { outline: 2px solid var(--pdf-cyan); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .8rem; color: var(--pdf-slate); margin-top: .8rem; text-align: center; }

/* -------- Ficha de producto -------- */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.pg-main img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pg-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-top: .75rem; }
.pg-thumbs img { border-radius: var(--radius-sm); cursor: pointer; aspect-ratio: 1; object-fit: cover; }
.product-summary h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.product-price { font-size: 1.8rem; font-weight: 800; color: var(--pdf-blue); margin-bottom: 1rem; }
.product-price del { color: var(--pdf-slate); font-size: 1.1rem; font-weight: 500; margin-right: .5rem; }
.product-badge {
	display: inline-flex; align-items: center; gap: .4rem; margin: 1rem 0;
	background: #e7f7ee; color: #1a8a4e; font-weight: 700; padding: .5rem 1rem; border-radius: 999px; font-size: .9rem;
}
.product-desc { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--pdf-border); }
.product-desc .entry-content ul { padding-left: 1.2rem; }
.product-desc .entry-content li { margin-bottom: .4rem; }

/* -------- Contacto -------- */
.contacto-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contacto-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.contacto-list li { padding: .6rem 0; border-bottom: 1px solid var(--pdf-border); }
.contacto-social { display: flex; gap: 1rem; margin-top: 1.5rem; }

/* -------- WooCommerce base (por si aparece markup nativo) -------- */
.woocommerce-wrap .button, .woocommerce .button {
	background: var(--pdf-blue) !important; color: #fff !important; border-radius: 999px !important; font-weight: 700 !important;
}
.woocommerce ul.products li.product { border: 1px solid var(--pdf-border); border-radius: var(--radius); padding: 1rem; }

@media (max-width: 860px) {
	.product-layout, .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
	.form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   Home fiel al original + barra superior + footer
   ========================================================= */
.topbar { background: var(--pdf-blue-dark); color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .5px; }
.topbar .container { text-align: center; padding-top: 8px; padding-bottom: 8px; }

.header-social { color: var(--pdf-blue); width: 34px; height: 34px; border-radius: 50%; background: var(--pdf-mist); display: inline-flex; align-items: center; justify-content: center; }
.header-social:hover { background: var(--pdf-blue); color: #fff; }
.header-social.fb { color: #1877f2; }
.header-social.fb:hover { background: #1877f2; color: #fff; }

/* Hero home */
.home-hero { background-size: cover; background-position: center; color: #fff; min-height: 460px; display: flex; align-items: center; }
.home-hero-inner { max-width: 560px; padding: 3rem 0; }
.home-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.home-hero p { font-size: 1.2rem; line-height: 1.7; margin-bottom: 1.6rem; }

/* Badges */
.badges { padding: 3rem 0; border-bottom: 1px solid var(--pdf-border); }
.badges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.badge-item { text-align: center; }
.badge-ico { color: var(--pdf-blue); display: inline-flex; margin-bottom: .5rem; }
.badge-item h3 { font-size: 1.05rem; letter-spacing: .5px; margin-bottom: .3rem; }
.badge-item p { color: var(--pdf-slate); font-size: .92rem; margin: 0; }

/* Que incluye */
.incluye { text-align: center; }
.eyebrow { color: var(--pdf-blue); font-weight: 700; letter-spacing: 1px; font-size: .8rem; margin: 0 0 .3rem; }
.incluye h2 { color: var(--pdf-blue-dark); margin-bottom: 2.5rem; }
.incluye-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1.25rem; }
.incluye-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--pdf-border); border-radius: var(--radius-sm); background: #fff; }
.incluye-item span { display: block; margin-top: .5rem; color: var(--pdf-blue); font-weight: 600; font-size: .9rem; }

/* Nosotros home */
.nosotros-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.nosotros-logo img { max-width: 260px; margin: 0 auto; }

@media (max-width: 900px) {
	.badges-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
	.incluye-grid { grid-template-columns: repeat(4, 1fr); }
	.nosotros-grid { grid-template-columns: 1fr; text-align: center; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
	.incluye-grid { grid-template-columns: repeat(2, 1fr); }
}
