/* Estampame Core - Frontend (CustomInk-inspired) */

:root {
	--ec-brand: #79bb1c;
	--ec-brand-dark: #5f9416;
	--ec-brand-light: #e8f5d6;
	--ec-black: #1a1a1a;
	--ec-white: #ffffff;
	--ec-gray-100: #f7f8f9;
	--ec-gray-200: #e8eaed;
	--ec-gray-500: #6b7280;
	--ec-radius: 12px;
	--ec-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	--ec-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Contact bar */
.ec-contact-bar {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 99990;
	background: var(--ec-black);
	color: var(--ec-white);
	font-family: var(--ec-font);
	font-size: 13px;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.ec-contact-bar--header {
	top: 0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.ec-contact-bar--footer {
	bottom: 0;
}

.ec-contact-bar__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px 24px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 20px;
}

.ec-contact-bar__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ec-white);
	text-decoration: none;
	transition: color 0.2s;
	white-space: nowrap;
}

.ec-contact-bar__item:hover {
	color: var(--ec-brand);
}

.ec-contact-bar__item--address {
	opacity: 0.85;
}

.ec-contact-bar__icon {
	font-size: 14px;
}

body.ec-has-footer-bar {
	padding-bottom: 48px;
}

body.ec-has-header-bar {
	padding-top: 48px;
}

/* Buttons */
.ec-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: 8px;
	font-family: var(--ec-font);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1.3;
}

.ec-btn--primary {
	background: var(--ec-brand);
	color: var(--ec-white);
	border-color: var(--ec-brand);
}

.ec-btn--primary:hover {
	background: var(--ec-brand-dark);
	border-color: var(--ec-brand-dark);
	color: var(--ec-white);
}

.ec-btn--whatsapp {
	background: #25d366;
	color: var(--ec-white);
	border-color: #25d366;
}

.ec-btn--whatsapp:hover {
	background: #1da851;
	border-color: #1da851;
	color: var(--ec-white);
}

.ec-btn--email,
.ec-btn--outline {
	background: transparent;
	color: var(--ec-black);
	border-color: var(--ec-gray-200);
}

.ec-btn--email:hover,
.ec-btn--outline:hover {
	border-color: var(--ec-brand);
	color: var(--ec-brand);
}

.ec-btn--lg {
	padding: 16px 32px;
	font-size: 17px;
}

.ec-btn__icon {
	font-size: 18px;
}

/* Product CTA */
.ec-product-cta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 24px 0;
}

.ec-design-info {
	margin: 16px 0 8px;
	padding: 16px 18px;
	background: var(--ec-brand-light);
	border-radius: var(--ec-radius);
	border-left: 4px solid var(--ec-brand);
}

.ec-design-info__text,
.ec-design-info__hint {
	margin: 0;
	color: var(--ec-black);
	line-height: 1.55;
	font-size: 15px;
}

.ec-design-info__hint {
	margin-top: 10px;
	color: var(--ec-gray-500);
	font-size: 14px;
}

.ec-product-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.ec-product-card__link:hover .woocommerce-loop-product__title,
.ec-product-card__link:focus-visible .woocommerce-loop-product__title {
	color: var(--ec-brand-dark);
}

.estampame-shop-archive .products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25rem;
}

.estampame-shop-archive .ec-product-card {
	list-style: none;
	margin: 0;
}

.estampame-shop-archive .ec-product-card .ec-btn {
	margin-top: 0.75rem;
	width: 100%;
	text-align: center;
}

.ec-back-category {
	margin: 8px 0 20px;
}

.ec-back-category__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	min-width: 180px;
	background: #79bb1c;
	color: #fff;
	border: 2px solid #79bb1c;
	font-weight: 700;
}

.ec-back-category__btn:hover,
.ec-back-category__btn:focus-visible {
	background: #5f9616;
	border-color: #5f9616;
	color: #fff;
}

.product .product_meta {
	display: none !important;
}

/* Modal */
.ec-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.ec-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.ec-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.ec-modal__content {
	position: relative;
	background: var(--ec-white);
	border-radius: var(--ec-radius);
	padding: 32px;
	max-width: 480px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: var(--ec-shadow);
	font-family: var(--ec-font);
}

.ec-modal__close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: var(--ec-gray-500);
	line-height: 1;
}

.ec-modal__title {
	margin: 0 0 8px;
	font-size: 22px;
	color: var(--ec-black);
}

.ec-modal__product {
	margin: 0 0 20px;
	color: var(--ec-brand);
	font-weight: 600;
}

/* Forms */
.ec-form__row {
	margin-bottom: 16px;
}

.ec-form__row label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: var(--ec-black);
}

.ec-input {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid var(--ec-gray-200);
	border-radius: 8px;
	font-family: var(--ec-font);
	font-size: 15px;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.ec-input:focus {
	outline: none;
	border-color: var(--ec-brand);
}

.ec-form--card {
	background: var(--ec-white);
	border-radius: var(--ec-radius);
	padding: 28px;
	box-shadow: var(--ec-shadow);
}

.ec-form__message {
	margin-top: 12px;
	padding: 10px;
	border-radius: 6px;
	font-size: 14px;
	display: none;
}

.ec-form__message.is-success {
	display: block;
	background: var(--ec-brand-light);
	color: var(--ec-brand-dark);
}

.ec-form__message.is-error {
	display: block;
	background: #fde8e8;
	color: #c53030;
}

/* Pages */
.ec-page {
	font-family: var(--ec-font);
	max-width: 960px;
	margin: 0 auto;
	padding: 40px 20px 60px;
	color: var(--ec-black);
}

.ec-page__header {
	text-align: center;
	margin-bottom: 40px;
}

.ec-page__header--hero {
	margin-bottom: 48px;
}

.ec-page__title {
	font-size: clamp(28px, 5vw, 42px);
	font-weight: 800;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}

.ec-page__subtitle {
	font-size: 18px;
	color: var(--ec-gray-500);
	margin: 0;
	max-width: 600px;
	margin-inline: auto;
	line-height: 1.6;
}

.ec-section-title {
	font-size: 28px;
	font-weight: 700;
	text-align: center;
	margin: 0 0 8px;
}

.ec-page__cta {
	text-align: center;
	margin-top: 48px;
	padding: 40px;
	background: var(--ec-gray-100);
	border-radius: var(--ec-radius);
}

.ec-page__cta-buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 16px;
}

/* Accordion */
.ec-accordion__item {
	border: 1px solid var(--ec-gray-200);
	border-radius: var(--ec-radius);
	margin-bottom: 10px;
	overflow: hidden;
	background: var(--ec-white);
}

.ec-accordion__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 22px;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	list-style: none;
}

.ec-accordion__question::-webkit-details-marker {
	display: none;
}

.ec-accordion__icon::before {
	content: "+";
	font-size: 22px;
	color: var(--ec-brand);
	font-weight: 400;
}

.ec-accordion__item[open] .ec-accordion__icon::before {
	content: "−";
}

.ec-accordion__answer {
	padding: 0 22px 18px;
	color: var(--ec-gray-500);
	line-height: 1.7;
}

/* Contact page */
.ec-contacto.ec-page {
	padding-top: 10px;
}

.ec-contacto__header-actions {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.ec-contacto__grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 32px;
	align-items: start;
}

@media (max-width: 768px) {
	.ec-contacto__grid {
		grid-template-columns: 1fr;
	}
}

.ec-info-card {
	background: var(--ec-gray-100);
	border-radius: var(--ec-radius);
	padding: 24px;
	margin-bottom: 20px;
}

.ec-info-card h3 {
	margin: 0 0 16px;
	font-size: 18px;
}

.ec-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ec-info-list li {
	margin-bottom: 14px;
}

.ec-info-list strong {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ec-gray-500);
	margin-bottom: 2px;
}

.ec-info-list a {
	color: var(--ec-brand);
	text-decoration: none;
}

.ec-map {
	border-radius: var(--ec-radius);
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	background: var(--ec-gray-200);
}

.ec-map__iframe {
	display: block;
	width: 100%;
	height: 220px;
	border: 0;
}

.ec-map__caption {
	margin: 0;
	padding: 10px 14px;
	font-size: 13px;
	text-align: center;
	background: var(--ec-gray-100);
}

.ec-map__caption a {
	color: var(--ec-brand);
	text-decoration: none;
}

.ec-map__caption a:hover {
	text-decoration: underline;
}

@media (min-width: 769px) {
	.ec-map__iframe {
		height: 260px;
	}
}

/* Live printing */
.ec-vivo__features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 48px;
}

@media (max-width: 768px) {
	.ec-vivo__features {
		grid-template-columns: 1fr;
	}
}

.ec-feature {
	text-align: center;
	padding: 28px 20px;
	background: var(--ec-white);
	border: 1px solid var(--ec-gray-200);
	border-radius: var(--ec-radius);
}

.ec-feature__icon {
	font-size: 32px;
	display: block;
	margin-bottom: 12px;
}

.ec-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.ec-event-card {
	position: relative;
	background: var(--ec-white);
	border: 1px solid var(--ec-gray-200);
	border-radius: var(--ec-radius);
	padding: 24px;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.ec-event-card:hover {
	box-shadow: var(--ec-shadow);
	border-color: var(--ec-brand);
}

.ec-event-card__badge {
	position: absolute;
	top: 16px;
	right: 16px;
	background: var(--ec-brand-light);
	color: var(--ec-brand-dark);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
}

.ec-event-card__client {
	margin: 0 0 8px;
	font-size: 18px;
}

.ec-event-card__desc {
	margin: 0;
	color: var(--ec-gray-500);
	font-size: 14px;
	line-height: 1.5;
}

/* Hero */
.ec-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	padding: 60px 20px;
	max-width: 1100px;
	margin: 0 auto;
	font-family: var(--ec-font);
}

@media (max-width: 768px) {
	.ec-hero {
		grid-template-columns: 1fr;
		text-align: center;
	}
}

.ec-hero__title {
	font-size: clamp(32px, 6vw, 52px);
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 16px;
	color: var(--ec-black);
	letter-spacing: -0.03em;
}

.ec-hero__subtitle {
	font-size: 18px;
	color: var(--ec-gray-500);
	margin: 0 0 28px;
	line-height: 1.6;
}

.ec-hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

@media (max-width: 768px) {
	.ec-hero__actions {
		justify-content: center;
	}
}

.ec-hero__visual {
	display: flex;
	justify-content: center;
}

.ec-hero__shirt {
	width: 280px;
	height: 300px;
	background: linear-gradient(135deg, var(--ec-brand-light) 0%, var(--ec-brand) 100%);
	border-radius: 50% 50% 40% 40%;
	position: relative;
}

.ec-hero__shirt::after {
	content: "";
	position: absolute;
	top: 30%;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 80px;
	background: var(--ec-white);
	border-radius: 50%;
	opacity: 0.3;
}

/* Services grid */
.ec-services {
	padding: 60px 20px;
	max-width: 1100px;
	margin: 0 auto;
	font-family: var(--ec-font);
}

.ec-services__header {
	text-align: center;
	margin-bottom: 40px;
}

.ec-services__header p {
	color: var(--ec-gray-500);
	font-size: 17px;
}

.ec-services__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.ec-service-card {
	display: block;
	padding: 28px 22px;
	background: var(--ec-white);
	border: 2px solid var(--ec-gray-200);
	border-radius: var(--ec-radius);
	text-decoration: none;
	color: var(--ec-black);
	transition: all 0.2s ease;
}

.ec-service-card:hover {
	border-color: var(--ec-brand);
	box-shadow: var(--ec-shadow);
	transform: translateY(-2px);
}

.ec-service-card__icon {
	font-size: 36px;
	display: block;
	margin-bottom: 12px;
}

.ec-service-card__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
}

.ec-service-card__desc {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--ec-gray-500);
	line-height: 1.5;
}

.ec-service-card__link {
	font-size: 14px;
	font-weight: 600;
	color: var(--ec-brand);
}

/* Testimonials */
.ec-testimonials {
	font-family: var(--ec-font);
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 0;
}

.ec-testimonials__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 12px;
}

.ec-testimonials__google {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.ec-testimonials__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ec-testimonials__count {
	font-size: 14px;
	color: var(--ec-gray-500);
	font-weight: 500;
}

.ec-testimonials__stars {
	color: #fbbc04;
	font-size: 18px;
}

.ec-testimonials__track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 6px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.ec-testimonials__track::-webkit-scrollbar {
	display: none;
}

.ec-testimonial-card {
	flex: 0 0 calc(100% - 8px);
	scroll-snap-align: start;
	background: var(--ec-white);
	border: 1px solid var(--ec-gray-200);
	border-radius: var(--ec-radius);
	padding: 20px;
	min-height: 220px;
}

@media (min-width: 640px) {
	.ec-testimonial-card {
		flex: 0 0 calc(50% - 8px);
	}
}

@media (min-width: 992px) {
	.ec-testimonial-card {
		flex: 0 0 calc(33.333% - 11px);
	}
}

.ec-testimonial-card__header {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 12px;
}

.ec-testimonial-card__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ec-brand);
	color: var(--ec-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
}

.ec-testimonial-card__avatar--img {
	object-fit: cover;
	background: #f3f4f6;
}

.ec-testimonial-card__stars {
	color: #fbbc04;
	font-size: 14px;
}

.ec-testimonial-card__text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ec-gray-500);
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ec-testimonial-card__date {
	font-size: 12px;
	color: var(--ec-gray-500);
}

.ec-testimonial-card__photos {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
}

.ec-testimonial-card__photo {
	display: block;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 1px solid var(--ec-gray-200);
	border-radius: 8px;
	overflow: hidden;
	background: #f3f4f6;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ec-testimonial-card__photo:hover,
.ec-testimonial-card__photo:focus-visible {
	border-color: var(--ec-brand);
	box-shadow: 0 0 0 2px rgba(121, 187, 28, 0.15);
	outline: none;
}

.ec-testimonial-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ec-review-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.ec-review-lightbox[hidden] {
	display: none !important;
}

.ec-review-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.82);
}

.ec-review-lightbox__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 920px);
	max-height: calc(100vh - 48px);
	padding: 0 3.25rem;
}

.ec-review-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 96px);
	width: auto;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
	background: #fff;
}

.ec-review-lightbox__close {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 3;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #111;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ec-review-lightbox__nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #111;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
	transition: background 0.2s ease, transform 0.2s ease;
}

.ec-review-lightbox__nav svg {
	width: 22px;
	height: 22px;
	display: block;
}

.ec-review-lightbox__nav:hover,
.ec-review-lightbox__nav:focus-visible {
	background: #fff;
	outline: 2px solid var(--ec-brand, #79bb1c);
	outline-offset: 2px;
}

.ec-review-lightbox__nav:disabled {
	opacity: 0.35;
	cursor: default;
	box-shadow: none;
}

.ec-review-lightbox__nav--prev {
	left: 16px;
}

.ec-review-lightbox__nav--next {
	right: 16px;
}

@media (max-width: 768px) {
	.ec-review-lightbox__dialog {
		padding: 0 2.75rem;
	}

	.ec-review-lightbox__nav {
		width: 40px;
		height: 40px;
	}

	.ec-review-lightbox__nav--prev {
		left: 10px;
	}

	.ec-review-lightbox__nav--next {
		right: 10px;
	}

	.ec-review-lightbox__close {
		top: 10px;
		right: 10px;
	}
}

.ec-testimonials__nav {
	margin-top: 12px;
}

.ec-turnstile {
	margin: 8px 0;
}

/* Floating WhatsApp (bottom-left) */
.ec-wa-float {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99995;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.ec-has-footer-bar .ec-wa-float {
	bottom: 68px;
}

.ec-wa-float:hover,
.ec-wa-float:focus-visible {
	background: #1da851;
	color: #fff;
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
	outline: none;
}

.ec-wa-float__icon {
	display: flex;
	line-height: 0;
}

@media (max-width: 640px) {
	.ec-wa-float {
		left: 14px;
		bottom: 14px;
		width: 54px;
		height: 54px;
	}

	body.ec-has-footer-bar .ec-wa-float {
		bottom: 62px;
	}
}

@media print {
	.ec-wa-float {
		display: none !important;
	}
}
