/*
 Theme Name:   Woodmart Child
 Description:  Tema hijo de Woodmart personalizado para la farmacia CuauFarma.
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      2.0.0
 Text Domain:  woodmart
*/

/* =========================================================
   CUAUFARMA — SISTEMA DE DISEÑO v2
   Paleta tomada del logo: azul marino, turquesa y dorado.
   ========================================================= */

:root {
	--cf-navy: #0e3455;
	--cf-navy-dark: #0a2740;
	--cf-teal: #1a8f9e;
	--cf-teal-dark: #147684;
	--cf-gold: #c9a227;
	--cf-green: #3f9d55;
	--cf-ink: #16262e;
	--cf-body: #5a6b73;
	--cf-mist: #f4f9fa;
	--cf-line: #e2ecef;
	--cf-radius: 16px;
	--cf-radius-lg: 22px;
	--cf-shadow: 0 8px 26px rgba(14, 52, 85, .08);
	--cf-shadow-hover: 0 18px 44px rgba(14, 52, 85, .18);
	--cf-font: "Plus Jakarta Sans", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Tipografía (rompe el look de plantilla) ---------- */
body,
.wd-nav,
button,
input,
select,
textarea {
	font-family: var(--cf-font);
	color: var(--cf-body);
}

h1, h2, h3, h4, h5, h6,
.wd-entities-title,
.title,
.product_title,
.widget-title {
	font-family: var(--cf-font) !important;
	color: var(--cf-navy);
	letter-spacing: -0.02em;
	font-weight: 700;
}

a {
	color: var(--cf-teal);
}

a:hover {
	color: var(--cf-navy);
}

/* ---------- Botones ---------- */
.btn,
button,
input[type="submit"],
.button,
.woocommerce .button,
.wd-buy-now-btn,
.single_add_to_cart_button,
.elementor-button {
	border-radius: 50px !important;
	font-weight: 700 !important;
	letter-spacing: .03em;
	transition: all .25s ease;
}

.btn.btn-color-primary,
.woocommerce .button.alt,
.single_add_to_cart_button,
.checkout-button,
.wc-block-components-button {
	background-color: var(--cf-teal) !important;
	border-color: var(--cf-teal) !important;
	color: #fff !important;
}

.btn.btn-color-primary:hover,
.woocommerce .button.alt:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
.elementor-button:hover {
	transform: translateY(-2px);
	box-shadow: var(--cf-shadow);
}

.cf-btn .elementor-button:hover {
	filter: brightness(1.06);
}

.cf-btn-ghost .elementor-button {
	border: 2px solid rgba(255, 255, 255, .55) !important;
	background: transparent !important;
}

.cf-btn-ghost .elementor-button:hover {
	background: #fff !important;
	color: var(--cf-navy) !important;
	border-color: #fff !important;
}

/* =========================================================
   ENCABEZADO Y PIE
   ========================================================= */
.whb-top-bar {
	background-color: var(--cf-navy) !important;
}

.whb-top-bar,
.whb-top-bar a,
.whb-top-bar .wd-tools-text {
	color: #e8f3f6 !important;
}

.whb-top-bar a:hover {
	color: var(--cf-gold) !important;
}

.whb-general-header {
	border-bottom: 1px solid var(--cf-line);
}

.wd-nav-main > li > a {
	font-weight: 600;
	color: var(--cf-navy);
}

.wd-nav-main > li > a:hover,
.wd-nav-main > li.current-menu-item > a {
	color: var(--cf-teal);
}

.footer-container {
	background-color: var(--cf-navy) !important;
	color: #c7dbe5;
}

.footer-container a,
.footer-container .wd-widget-title,
.footer-container .widget-title {
	color: #fff !important;
}

.footer-container a:hover {
	color: var(--cf-gold) !important;
}

.copyrights-wrapper {
	background-color: var(--cf-navy-dark) !important;
	color: #a9c2d1;
	border-top: 1px solid rgba(255, 255, 255, .08);
}

/* =========================================================
   REJILLAS (a prueba de fallos, no dependen de Elementor)
   ========================================================= */
.cf-hero,
.cf-benefits,
.cf-servicios,
.cf-promo,
.cf-mosaic,
.cf-branch,
.cf-testimonios,
.cf-stats,
.cf-contact {
	display: flex;
	flex-wrap: wrap;
}

.cf-col-4 { flex: 1 1 calc(25% - 26px) !important; max-width: calc(25% - 20px); }
.cf-col-3 { flex: 1 1 calc(33.333% - 26px) !important; max-width: calc(33.333% - 18px); }
.cf-col-6 { flex: 1 1 calc(50% - 26px) !important; }
.cf-col-full { flex: 1 1 100% !important; max-width: 100%; }

/* =========================================================
   HERO PRINCIPAL
   ========================================================= */
.cf-hero {
	position: relative;
	overflow: hidden;
}

.cf-hero::before {
	content: "";
	position: absolute;
	right: -140px;
	top: -160px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(201, 162, 39, .22), transparent 68%);
	pointer-events: none;
}

.cf-eyebrow {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 50px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .28);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.cf-eyebrow-dark {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 50px;
	background: rgba(26, 143, 158, .10);
	color: var(--cf-teal);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.cf-eyebrow-wrap p {
	margin: 0 0 14px;
}

.cf-h1 {
	margin-bottom: 8px;
}

.cf-hero-list .elementor-icon-list-text {
	color: #dbeaf1 !important;
	font-weight: 500;
}

.cf-hero-actions {
	margin: 10px 0 22px;
}

.cf-hero-logo img {
	max-width: 330px;
	margin-inline: auto;
	display: block;
	padding: 26px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 26px 60px rgba(0, 0, 0, .28);
}

/* Franja de beneficios montada sobre el hero */
.cf-benefits {
	position: relative;
	z-index: 5;
}

/* =========================================================
   TARJETAS
   ========================================================= */
.cf-card {
	background: #fff;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius);
	padding: 30px 22px !important;
	box-shadow: var(--cf-shadow);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cf-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--cf-shadow-hover);
	border-color: rgba(26, 143, 158, .35);
}

.cf-iconbox .elementor-icon-box-icon {
	margin-bottom: 14px !important;
}

.cf-iconbox .elementor-icon {
	width: 62px;
	height: 62px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 18px;
	background: rgba(26, 143, 158, .10);
}

.cf-card:hover .cf-iconbox .elementor-icon {
	background: rgba(201, 162, 39, .16);
}

.cf-iconbox .elementor-icon-box-title {
	margin-bottom: 8px;
}

/* =========================================================
   TÍTULOS DE SECCIÓN
   ========================================================= */
.cf-h2 {
	margin-bottom: 6px;
}

.cf-h2:not(.cf-left):not(.cf-white)::after,
.cf-h2.cf-left::after {
	content: "";
	display: block;
	width: 62px;
	height: 3px;
	margin-top: 16px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--cf-teal), var(--cf-gold));
}

.cf-h2:not(.cf-left):not(.cf-white)::after {
	margin-inline: auto;
}

.cf-text p:last-child {
	margin-bottom: 0;
}

/* =========================================================
   CATEGORÍAS
   ========================================================= */
.cf-cats-grid ul.products li.product-category {
	background: #fff;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius);
	overflow: hidden;
	transition: all .25s ease;
}

.cf-cats-grid ul.products li.product-category:hover {
	box-shadow: var(--cf-shadow-hover);
	transform: translateY(-5px);
}

.cf-cats-grid ul.products li.product-category img {
	transition: transform .5s ease;
}

.cf-cats-grid ul.products li.product-category:hover img {
	transform: scale(1.05);
}

.cf-cats-grid .wd-cat-content,
.cf-cats-grid h2.woocommerce-loop-category__title {
	padding: 16px 12px 18px;
	font-size: 16px !important;
	font-weight: 700;
	color: var(--cf-navy);
	text-align: center;
}

.cf-cats-grid mark.count {
	background: transparent;
	color: var(--cf-teal);
	font-weight: 600;
}

/* =========================================================
   MOSAICO DE BANNERS
   ========================================================= */
.cf-mosaic-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--cf-radius-lg);
	box-shadow: var(--cf-shadow);
	transition: transform .4s ease, box-shadow .4s ease;
}

.cf-mosaic-img:hover img {
	transform: translateY(-4px);
	box-shadow: var(--cf-shadow-hover);
}

.cf-col-mosaic-big,
.cf-col-mosaic-small {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.cf-col-mosaic-big .elementor-widget-image,
.cf-col-mosaic-big .cf-mosaic-img {
	height: 100%;
}

/* =========================================================
   PRODUCTOS
   ========================================================= */
.wd-product,
.woocommerce ul.products li.product {
	background: #fff;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius);
	padding: 14px !important;
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.wd-product:hover,
.woocommerce ul.products li.product:hover {
	box-shadow: var(--cf-shadow-hover);
	transform: translateY(-5px);
	border-color: rgba(26, 143, 158, .35);
}

.wd-product .wd-entities-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 14px !important;
	line-height: 1.45;
	font-weight: 600;
	min-height: 62px;
	color: var(--cf-navy);
}

.wd-product .price,
.woocommerce ul.products li.product .price {
	color: var(--cf-navy) !important;
	font-weight: 800;
	font-size: 19px;
}

.wd-product .price del,
.woocommerce .price del {
	color: #9aabb2 !important;
	font-weight: 400;
	font-size: 14px;
}

.wd-product .price ins,
.woocommerce .price ins {
	color: var(--cf-green) !important;
	text-decoration: none;
}

.cf-currency {
	font-size: 11px;
	font-weight: 700;
	color: #93a6ae;
	letter-spacing: .06em;
	vertical-align: 2px;
}

.product-labels .onsale,
.woocommerce span.onsale {
	background-color: var(--cf-gold) !important;
	color: #17293a !important;
	font-weight: 800;
	border-radius: 50px;
	letter-spacing: .03em;
}

.product-labels .out-of-stock {
	background-color: #b04a4a !important;
}

/* Ficha de producto */
.single-product .product_title {
	font-size: 27px;
	line-height: 1.3;
}

.cf-med-notice {
	margin-top: 20px;
	padding: 16px 20px;
	border-left: 4px solid var(--cf-gold);
	background: var(--cf-mist);
	border-radius: 10px;
	font-size: 13.5px;
	color: var(--cf-ink);
	line-height: 1.65;
}

.cf-shipping-notice {
	margin: 0 0 22px;
	padding: 13px 20px;
	background: linear-gradient(90deg, rgba(26, 143, 158, .12), rgba(201, 162, 39, .12));
	border-radius: 12px;
	color: var(--cf-navy);
	font-size: 14px;
	text-align: center;
	font-weight: 500;
}

/* =========================================================
   PROMOCIONES / SUCURSAL
   ========================================================= */
.cf-promo-img img,
.cf-branch-img img {
	border-radius: var(--cf-radius-lg);
	box-shadow: var(--cf-shadow);
	width: 100%;
	height: auto;
}

.cf-list .elementor-icon-list-text {
	font-weight: 500;
}

.cf-hours {
	width: 100%;
	margin: 6px 0 22px;
}

.cf-hours div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	padding: 11px 0;
	border-bottom: 1px dashed var(--cf-line);
	font-size: 15px;
	color: var(--cf-body);
}

.cf-hours div strong {
	color: var(--cf-navy);
	font-weight: 700;
}

.cf-hours .cf-hours-alt strong {
	color: #fff;
	background: var(--cf-green);
	padding: 3px 12px;
	border-radius: 50px;
	font-size: 13px;
}

.cf-hours-card,
.cf-delivery-card {
	background: #fff;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius);
	padding: 24px 26px;
	box-shadow: var(--cf-shadow);
	margin-bottom: 22px;
}

.cf-hours-card h4,
.cf-delivery-card h4 {
	margin: 0 0 10px;
	font-size: 18px;
	color: var(--cf-navy);
}

.cf-delivery-card ul {
	margin: 0;
	padding-left: 18px;
	line-height: 1.85;
	font-size: 14.5px;
}

/* =========================================================
   TESTIMONIOS
   ========================================================= */
.cf-quote {
	position: relative;
	background: #fff;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius);
	padding: 30px 26px 24px;
	box-shadow: var(--cf-shadow);
	height: 100%;
}

.cf-quote-mark {
	position: absolute;
	top: 4px;
	right: 22px;
	font-size: 64px;
	line-height: 1;
	font-style: normal;
	color: rgba(26, 143, 158, .18);
}

.cf-quote p {
	font-size: 15.5px;
	line-height: 1.75;
	color: var(--cf-ink);
	margin-bottom: 18px;
}

.cf-quote-author strong {
	display: block;
	color: var(--cf-navy);
	font-size: 15px;
}

.cf-quote-author span {
	font-size: 13px;
	color: #93a6ae;
}

/* =========================================================
   ESTADÍSTICAS (Sobre nosotros)
   ========================================================= */
.cf-stat {
	text-align: center;
}

.cf-stat strong {
	display: block;
	font-size: 40px;
	line-height: 1;
	color: var(--cf-teal);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.cf-stat span {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	color: var(--cf-body);
}

/* =========================================================
   CONTACTO: formulario, mapa, FAQ
   ========================================================= */
.cf-form input[type="text"],
.cf-form input[type="email"],
.cf-form input[type="tel"],
.cf-form textarea,
.cf-form select {
	width: 100%;
	border: 1px solid var(--cf-line);
	border-radius: 12px;
	padding: 13px 16px;
	background: #fff;
	font-size: 15px;
	margin-bottom: 4px;
}

.cf-form input:focus,
.cf-form textarea:focus {
	outline: none;
	border-color: var(--cf-teal);
	box-shadow: 0 0 0 3px rgba(26, 143, 158, .12);
}

.cf-form p {
	margin-bottom: 14px;
}

.cf-form input[type="submit"] {
	background: var(--cf-teal) !important;
	color: #fff !important;
	border: 0;
	padding: 15px 38px;
	width: auto;
	cursor: pointer;
}

.cf-form input[type="submit"]:hover {
	background: var(--cf-navy) !important;
}

.cf-form-wrap {
	background: #fff;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-lg);
	padding: 34px !important;
	box-shadow: var(--cf-shadow);
}

.cf-map iframe {
	display: block;
	width: 100%;
	box-shadow: var(--cf-shadow);
}

.cf-faq {
	max-width: 860px;
	margin: 20px auto 0;
}

.cf-faq-item {
	background: #fff;
	border: 1px solid var(--cf-line);
	border-radius: 14px;
	padding: 18px 24px;
	margin-bottom: 12px;
	box-shadow: 0 3px 12px rgba(14, 52, 85, .05);
}

.cf-faq-item summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--cf-navy);
	font-size: 16px;
	list-style: none;
	position: relative;
	padding-right: 28px;
}

.cf-faq-item summary::-webkit-details-marker {
	display: none;
}

.cf-faq-item summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: -2px;
	font-size: 22px;
	color: var(--cf-teal);
	line-height: 1;
}

.cf-faq-item[open] summary::after {
	content: "–";
}

.cf-faq-item p {
	margin: 12px 0 0;
	color: var(--cf-body);
	line-height: 1.75;
	font-size: 15px;
}

/* =========================================================
   AVISO LEGAL
   ========================================================= */
.cf-aviso {
	border-top: 1px solid var(--cf-line);
}

.cf-aviso-text p {
	max-width: 920px;
	margin: 0 auto;
	text-align: center;
}

/* =========================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================= */
.cf-whatsapp {
	position: fixed;
	right: 18px;
	bottom: 92px;
	z-index: 350;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
	transition: transform .2s ease;
}

.cf-whatsapp:hover {
	transform: scale(1.08);
	color: #fff !important;
}

.cf-whatsapp svg {
	width: 29px;
	height: 29px;
	fill: currentColor;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
	.cf-col-4 { flex: 1 1 calc(50% - 26px) !important; max-width: calc(50% - 13px); }
	.cf-col-3 { flex: 1 1 calc(50% - 26px) !important; max-width: calc(50% - 13px); }
	.cf-hero-logo img { max-width: 260px; }
}

@media (max-width: 768px) {
	.cf-col-4,
	.cf-col-3,
	.cf-col-6,
	.cf-col-hero-text,
	.cf-col-hero-img,
	.cf-col-mosaic-big,
	.cf-col-mosaic-small,
	.cf-col-branch,
	.cf-col-branch-text {
		flex: 1 1 100% !important;
		max-width: 100%;
	}

	.cf-hero {
		text-align: center;
	}

	.cf-hero .cf-h1,
	.cf-hero .cf-text,
	.cf-hero .cf-eyebrow-wrap p {
		text-align: center !important;
	}

	.cf-hero-actions,
	.cf-hero .elementor-widget-button {
		justify-content: center;
		text-align: center;
	}

	.cf-hero-list {
		max-width: 320px;
		margin-inline: auto;
	}

	.cf-benefits {
		margin-top: -30px !important;
	}

	.cf-promo,
	.cf-form-wrap {
		padding: 26px 20px !important;
	}

	.wd-product .wd-entities-title,
	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		min-height: 0;
	}

	.cf-whatsapp {
		bottom: 78px;
	}
}

/* =========================================================
   ENCABEZADO DE LA TIENDA
   ========================================================= */
.cf-shop-intro {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 34px;
}

.cf-shop-intro h1 {
	font-size: 38px;
	margin: 14px 0 10px;
	color: var(--cf-navy);
	letter-spacing: -0.02em;
}

.cf-shop-intro p {
	color: var(--cf-body);
	font-size: 16px;
	line-height: 1.7;
	margin: 0;
}

@media (max-width: 768px) {
	.cf-shop-intro h1 {
		font-size: 27px;
	}
}
