/* ========================================
   CERCAI THEME — Custom CSS v2.0
   Agencia de IA y Desarrollo a Medida
   ======================================== */

/* --- Global Polish --- */
html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: rgba(37, 99, 235, 0.15);
	color: #0F172A;
}

/* --- Header --- */
.cercai-header {
	z-index: 100;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.3s ease;
}

/* --- Hero --- */
.hero-home {
	position: relative;
	overflow: hidden;
}

.hero-home::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(ellipse 60% 50% at 20% 50%, rgba(37, 99, 235, 0.18) 0%, transparent 70%),
		radial-gradient(ellipse 50% 60% at 80% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
		radial-gradient(ellipse 70% 50% at 50% 90%, rgba(30, 64, 175, 0.1) 0%, transparent 60%);
	pointer-events: none;
	z-index: 0;
}

.hero-home > .wp-block-group {
	position: relative;
	z-index: 1;
}

/* --- Section Headings — tighter margin between h2 and subtitle --- */
.wp-block-group.alignfull > .wp-block-heading + .has-text-align-center {
	margin-top: 0.75rem;
}

/* --- Service Cards --- */
.cercai-service-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	background: #fff;
}

.cercai-service-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
	border-color: var(--wp--preset--color--primary) !important;
}

.cercai-service-card .has-small-font-size a {
	font-weight: 600;
	text-decoration: none;
}

.cercai-service-card .has-small-font-size a:hover {
	text-decoration: underline;
}

/* --- Industry Cards --- */
.cercai-industry-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	background: #fff;
}

.cercai-industry-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
	border-color: var(--wp--preset--color--primary) !important;
}

.cercai-industry-card h4 a {
	text-decoration: none;
	color: var(--wp--preset--color--dark);
}

.cercai-industry-card:hover h4 a {
	color: var(--wp--preset--color--primary);
}

/* --- Problem Cards --- */
.cercai-problem-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cercai-problem-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

/* --- Step Numbers --- */
.cercai-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--wp--preset--color--primary-subtle);
	color: var(--wp--preset--color--primary);
	font-weight: 800;
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

/* --- Footer Links --- */
.wp-block-group.alignfull.has-dark-background-color .is-style-no-bullets a {
	color: var(--wp--preset--color--gray);
	text-decoration: none;
	transition: color 0.2s ease;
}

.wp-block-group.alignfull.has-dark-background-color .is-style-no-bullets a:hover {
	color: var(--wp--preset--color--white);
}

/* --- Buttons --- */
.wp-block-button__link {
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 2px;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: rgba(255, 255, 255, 0.1) !important;
	box-shadow: none;
}

/* --- Modal --- */
.cercai-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cercai-modal[aria-hidden="false"] {
	opacity: 1;
	visibility: visible;
}

.cercai-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(4px);
}

.cercai-modal__container {
	position: relative;
	background: #fff;
	border-radius: 20px;
	max-width: 520px;
	width: 92%;
	max-height: 90vh;
	overflow-y: auto;
	transform: translateY(24px) scale(0.96);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.cercai-modal[aria-hidden="false"] .cercai-modal__container {
	transform: translateY(0) scale(1);
}

.cercai-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	font-size: 1.75rem;
	color: #94A3B8;
	cursor: pointer;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 8px;
	transition: color 0.2s, background 0.2s;
}

.cercai-modal__close:hover {
	color: #0F172A;
	background: #F1F5F9;
}

.cercai-modal__content {
	padding: 2.5rem 2.5rem 2rem;
}

.cercai-modal__title {
	font-size: 1.5rem;
	font-weight: 800;
	color: #0F172A;
	margin: 0 0 0.5rem;
	line-height: 1.2;
}

.cercai-modal__subtitle {
	color: #475569;
	font-size: 1.0625rem;
	margin: 0 0 1.5rem;
	line-height: 1.5;
}

.cercai-modal__benefits {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
}

.cercai-modal__benefits li {
	padding: 0.5rem 0 0.5rem 2rem;
	position: relative;
	color: #334155;
	font-size: 0.95rem;
	line-height: 1.55;
}

.cercai-modal__benefits li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.65rem;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #DBEAFE;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232563EB'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
	background-size: 14px;
	background-repeat: no-repeat;
	background-position: center;
}

.cercai-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.cercai-modal__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	padding: 0.95rem 1.5rem;
	border-radius: 12px;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	cursor: pointer;
	border: none;
}

.cercai-modal__btn:hover {
	transform: translateY(-2px);
}

.cercai-modal__btn--primary {
	background: #2563EB;
	color: #fff;
}

.cercai-modal__btn--primary:hover {
	background: #1E40AF;
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
	color: #fff;
}

.cercai-modal__btn--whatsapp {
	background: #25D366;
	color: #fff;
}

.cercai-modal__btn--whatsapp:hover {
	background: #1DA851;
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
	color: #fff;
}

.cercai-modal__note {
	text-align: center;
	color: #94A3B8;
	font-size: 0.8rem;
	margin: 1rem 0 0;
}

/* --- Sobre Nosotros feature cards --- */
.cercai-feature-card {
	transition: transform 0.2s ease;
}

.cercai-feature-card:hover {
	transform: translateX(4px);
}

/* --- FAQ items --- */
.cercai-faq-item {
	transition: background-color 0.2s ease;
}

.cercai-faq-item:hover {
	background-color: rgba(37, 99, 235, 0.02);
}

/* --- Remove list bullets in footer --- */
.is-style-no-bullets {
	list-style: none;
	padding-left: 0;
}

/* --- Responsive --- */
@media (max-width: 781px) {
	.cercai-modal__content {
		padding: 2rem 1.5rem 1.5rem;
	}

	.cercai-modal__title {
		font-size: 1.25rem;
	}

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

@media (max-width: 600px) {
	.cercai-modal__container {
		width: 95%;
		margin: 0 auto;
	}
}
