/*
Theme Name: a3consulting
Theme URI: https://a3consultingandservice.com
Author: Jorge Quispe
Author URI: https://jorgequispe.com
Description: Tema personalizado para A3 Consulting and Service. Desarrollado por Jorge Quispe (jorgequispe.com) en colaboración con Spawnium (spawnium.com).
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: a3consulting
Tags: custom-background, custom-logo, custom-menu, threaded-comments, translation-ready
*/

/* Puedes agregar estilos globales aquí. */

/* Utilidades mínimas (para no depender de recompilar Tailwind) */
.p-10 {
	padding: 2.5rem;
}

.mt-12 {
	margin-top: 3rem;
}

.gap-6 {
	gap: 1.5rem;
}

.grid-cols-1 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
	.sm\:grid-cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.md\:grid-cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.md\:gap-12 {
		gap: 3rem;
	}
	.md\:block {
		display: block;
	}
}

@media (min-width: 1024px) {
	.lg\:grid-cols-12 {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.lg\:grid-cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.lg\:col-span-6 {
		grid-column: span 6 / span 6;
	}
	.lg\:mt-16 {
		margin-top: 4rem;
	}
	.lg\:gap-8 {
		gap: 2rem;
	}
}

/* Hero slider */
.hero-slide {
	will-change: opacity;
}

/* Beneficios (home) */
.a3-benefits-photo {
	position: absolute;
	inset: auto;
	left: -1.25rem;
	bottom: -1.25rem;
	width: 92%;
	height: 92%;
	background: currentColor;
	border-radius: 0.5rem;
	z-index: 0;
}

.a3-benefits-watermark {
	position: absolute;
	top: -1.25rem;
	right: 0;
	font-weight: 800;
	letter-spacing: 0.08em;
	font-size: clamp(3rem, 8vw, 6rem);
	line-height: 1;
	opacity: 0.08;
	pointer-events: none;
	user-select: none;
}

.a3-section-watermark {
	position: absolute;
	top: -1.25rem;
	right: 0;
	font-weight: 800;
	letter-spacing: 0.08em;
	font-size: clamp(3rem, 8vw, 6rem);
	line-height: 1;
	opacity: 0.08;
	z-index: 0;
	pointer-events: none;
	user-select: none;
}

.a3-watermark-left {
	left: 0;
	right: auto;
}

.a3-watermark-center {
	left: 50%;
	right: auto;
	transform: translateX(-50%);
}

.a3-benefits-dots {
	position: absolute;
	top: 0.25rem;
	right: 0.25rem;
	display: none;
	width: 3rem;
	height: 3rem;
	opacity: 0.9;
	pointer-events: none;
	background-image: radial-gradient(currentColor 3px, transparent 3px);
	background-size: 16px 16px;
}

.a3-about-dots {
	position: absolute;
	right: 2rem;
	top: 2rem;
	z-index: 20;
	display: none;
	width: 3rem;
	height: 3rem;
	opacity: 0.9;
	pointer-events: none;
	background-image: radial-gradient(currentColor 3px, transparent 3px);
	background-size: 16px 16px;
}

@media (min-width: 1024px) {
	.a3-benefits-dots {
		display: block;
	}
	.a3-about-dots {
		display: block;
	}
}

/* Testimonios (home) */
.a3-testimonial-wrap {
	position: relative;
}

.a3-testimonial-wrap::before {
	content: "";
	position: absolute;
	left: -10px;
	top: 0;
	bottom: -10px;
	width: 20px;
	background: currentColor;
	border-radius: 6px;
}

.a3-testimonial-wrap::after {
	content: "";
	position: absolute;
	left: -10px;
	right: 14px;
	bottom: -10px;
	height: 20px;
	background: currentColor;
	border-radius: 6px;
}

/* Contacto (home) */
.a3-contact-map-wrap {
	position: relative;
}

.a3-contact-map-accent {
	position: absolute;
	left: -1rem;
	bottom: -1rem;
	width: 100%;
	height: 100%;
	border-radius: 0.75rem;
	z-index: 0;
}

.a3-contact-map {
	border: 0;
	height: 460px;
}

.a3-contact-dots {
	position: absolute;
	right: 1.25rem;
	top: -0.75rem;
	z-index: 30;
	display: none;
	width: 4.5rem;
	height: 4.5rem;
	opacity: 0.9;
	pointer-events: none;
	background-image: radial-gradient(currentColor 3px, transparent 3px);
	background-size: 16px 16px;
}

@media (min-width: 1024px) {
	.a3-contact-dots {
		display: block;
	}
}

/* Footer helpers (no Tailwind rebuild) */
.a3-footer-separator {
	height: 1px;
	width: 100%;
	background: rgba(255, 255, 255, 0.12);
}

/* Sticky header (barra blanca) */
#a3-header-spacer {
	height: 0;
}

.a3-header-main.is-sticky {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 50;
}

.a3-header-logo-img {
	transition: height 150ms ease;
}

.a3-header-main.is-sticky .a3-header-logo-img {
	height: 2.25rem;
}

/* Page hero (portada) */
.a3-page-hero {
	position: relative;
	min-height: 320px;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
}

.a3-page-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.a3-page-hero > *:not(.a3-page-hero__overlay) {
	position: relative;
	z-index: 1;
}

.a3-page-hero__title {
	font-weight: 800;
	line-height: 1.1;
	font-size: clamp(2.25rem, 4vw, 3.5rem);
}

/* ═══════════════════════════════════════════
   Single Servicio — Hero
   ═══════════════════════════════════════════ */
.a3-serv-hero {
	position: relative;
	min-height: 420px;
	display: flex;
	align-items: flex-end;
	padding-bottom: 4rem;
	padding-top: 7rem;
	background-size: cover;
	background-position: center;
}

@media (min-width: 1024px) {
	.a3-serv-hero {
		min-height: 480px;
		padding-bottom: 5rem;
	}
}

.a3-serv-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.3) 0%,
		rgba(0, 0, 0, 0.65) 100%
	);
}

.a3-serv-hero__title {
	font-weight: 800;
	line-height: 1.08;
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	color: #fff;
}

/* ═══════════════════════════════════════════
   Single Servicio — Gallery Infinite Slider
   ═══════════════════════════════════════════ */
.a3-gallery-section {
	padding: 3.5rem 0 4rem;
	background: #f9fafb;
	overflow: hidden;
}

.a3-slider-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.a3-slider-track {
	display: flex;
	gap: 1rem;
	width: max-content;
	animation: a3-slider-scroll var(--slider-duration, 30s) linear infinite;
}

.a3-slider-track:hover {
	animation-play-state: paused;
}

@keyframes a3-slider-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.a3-slider-slide {
	flex-shrink: 0;
	position: relative;
	display: block;
	width: 320px;
	height: 220px;
	border-radius: 0.75rem;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.3s, transform 0.3s;
}

.a3-slider-slide:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	transform: translateY(-4px);
}

.a3-slider-slide__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.a3-slider-slide:hover .a3-slider-slide__img {
	transform: scale(1.08);
}

.a3-slider-slide__badge {
	position: absolute;
	bottom: 0.625rem;
	right: 0.625rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: var(--color-brand-primary, #1a365d);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.3s, transform 0.3s;
	backdrop-filter: blur(4px);
}

.a3-slider-slide:hover .a3-slider-slide__badge {
	opacity: 1;
	transform: translateY(0);
}

/* Responsive slider sizes */
@media (max-width: 639px) {
	.a3-slider-slide {
		width: 260px;
		height: 180px;
	}
	.a3-slider-track {
		gap: 0.75rem;
	}
}

@media (min-width: 1024px) {
	.a3-slider-slide {
		width: 380px;
		height: 260px;
	}
}

/* ═══════════════════════════════════════════
   Single Servicio — Content Cards
   ═══════════════════════════════════════════ */
.a3-serv-card {
	background: #fff;
	border-radius: 0.75rem;
	padding: 1.75rem 2rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.a3-serv-card__header {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.a3-serv-card__icon-wrap {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 0.5rem;
	background: var(--color-brand-secondary, #f6c23e);
	color: var(--color-brand-primary, #1a365d);
}

.a3-serv-card__divider {
	margin: 1.25rem 0;
	height: 2px;
	border-radius: 1px;
	background: linear-gradient(
		to right,
		var(--color-brand-secondary, #f6c23e),
		transparent
	);
}

/* Checklist */
.a3-serv-checklist {
	display: grid;
	gap: 0.625rem;
}

@media (min-width: 640px) {
	.a3-serv-checklist {
		grid-template-columns: repeat(2, 1fr);
	}
}

.a3-serv-checklist__item {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	padding: 0.625rem 0.75rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	color: #374151;
	background: #f9fafb;
	transition: background 0.2s;
}

.a3-serv-checklist__item:hover {
	background: #f0fdf4;
}

.a3-serv-checklist__icon {
	flex-shrink: 0;
	margin-top: 0.125rem;
	color: #22c55e;
}

/* Process Steps */
.a3-serv-steps {
	display: grid;
	gap: 0;
}

.a3-serv-step {
	display: grid;
	grid-template-columns: 2.5rem 1fr;
	grid-template-rows: auto 1fr;
	gap: 0 0.75rem;
	padding-bottom: 1.25rem;
}

.a3-serv-step:last-child {
	padding-bottom: 0;
}

.a3-serv-step__number {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--color-brand-primary, #1a365d);
	color: #fff;
	font-weight: 800;
	font-size: 0.875rem;
}

.a3-serv-step__line {
	grid-column: 1;
	grid-row: 2;
	width: 2px;
	height: 100%;
	margin: 0 auto;
	background: #e5e7eb;
}

.a3-serv-step:last-child .a3-serv-step__line {
	display: none;
}

.a3-serv-step__text {
	grid-column: 2;
	grid-row: 1 / 3;
	align-self: center;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #374151;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════
   Single Servicio — Sidebar Cards
   ═══════════════════════════════════════════ */
.a3-serv-sidebar-card {
	border-radius: 0.75rem;
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.05);
	background: #f9fafb;
}

.a3-serv-sidebar-card--cta {
	background: #fff;
	border: 1px solid var(--color-brand-secondary, #f6c23e);
	box-shadow: 0 4px 20px rgba(246, 194, 62, 0.12);
}

/* ═══════════════════════════════════════════
   Single Servicio — Lightbox
   ═══════════════════════════════════════════ */
.a3-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s, visibility 0.35s;
}

.a3-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.a3-lightbox__img {
	max-height: 90vh;
	max-width: 90vw;
	border-radius: 0.5rem;
	object-fit: contain;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
	transform: scale(0.92);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.a3-lightbox.is-open .a3-lightbox__img {
	transform: scale(1);
}

.a3-lightbox__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 50%;
	width: 2.75rem;
	height: 2.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.a3-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.25);
	color: var(--color-brand-secondary, #f6c23e);
}

.a3-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 50%;
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.a3-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.25);
	color: var(--color-brand-secondary, #f6c23e);
}

.a3-lightbox__nav--prev { left: 1rem; }
.a3-lightbox__nav--next { right: 1rem; }

.a3-lightbox__counter {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.05em;
}

.a3-page-content {
	padding: 4rem 0;
}

/* 404 page */
.a3-404 {
	position: relative;
	min-height: 72vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #fff;
	overflow: hidden;
	padding: 5rem 0;
}

.a3-404__code {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-weight: 800;
	letter-spacing: 0.02em;
	font-size: clamp(7rem, 24vw, 18rem);
	line-height: 1;
	color: rgba(0, 0, 0, 0.06);
	user-select: none;
	pointer-events: none;
}

.a3-404__title {
	position: relative;
	z-index: 1;
	margin: 0;
	font-weight: 800;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	line-height: 1.15;
	color: #1f2937;
}

.a3-404__desc {
	position: relative;
	z-index: 1;
	margin: 1.25rem auto 0;
	max-width: 40rem;
	font-size: 1.125rem;
	line-height: 1.6;
	color: #334155;
}

.a3-404__btn {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 2.5rem;
	padding: 1rem 2.75rem;
	border-radius: 0.25rem;
	background: #f4c430;
	color: #111827;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.a3-404__btn:hover {
	filter: brightness(0.98);
}

/* WhatsApp floating button */
.a3-whatsapp-float {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 60;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
	transition: transform 150ms ease, box-shadow 150ms ease;
}

.a3-whatsapp-float:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.a3-whatsapp-float:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.7);
	outline-offset: 3px;
}

.a3-whatsapp-float__icon svg {
	display: block;
}

/* Media frame (servicios / about) */
.a3-media-frame {
	width: 100%;
	aspect-ratio: 4 / 3;
	min-height: 260px;
}

@media (min-width: 1024px) {
	.a3-media-frame {
		min-height: 320px;
	}
}

.a3-media-frame__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.a3-media-frame__placeholder {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.06);
}

/* Grid de servicios */
.a3-servicios-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

@media (max-width: 1024px) {
	.a3-servicios-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.a3-servicios-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}
