/*
Theme Name: Sei Tu Twenty Twenty-Four
Theme URI: https://www.seitu.com/
Description: Tema hijo de Twenty Twenty-Four preparado para Sei Tu Helados.
Author: Sei Tu
Template: twentytwentyfour
Version: 1.1.1
Requires at least: 6.4
Text Domain: seitu-twentytwentyfour
*/

:root {
	--seitu-blue: #00aee6;
	--seitu-chocolate: #241714;
	--seitu-cream: #fffaf4;
	--seitu-border: #d9d2ca;
	--seitu-shadow: 0 18px 45px rgba(36, 23, 20, 0.12);
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--seitu-cream);
	background-image: linear-gradient(rgba(255, 250, 244, 0.94), rgba(255, 250, 244, 0.94)), url('/wp-content/uploads/portada8.jpg');
	background-position: center top;
	background-size: 720px auto;
}

.seitu-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(36, 23, 20, 0.08);
	box-shadow: 0 6px 22px rgba(36, 23, 20, 0.06);
}

.admin-bar .seitu-site-header {
	top: 32px;
}

.seitu-logo img {
	display: block;
	height: auto;
	max-width: 88px;
}

.seitu-site-header .wp-block-navigation-item__content {
	font-weight: 650;
	letter-spacing: 0.02em;
}

.seitu-hero {
	min-height: clamp(480px, 72vh, 760px);
}

.seitu-hero .wp-block-cover__inner-container {
	width: min(100% - 40px, 1240px);
}

.seitu-hero-card {
	max-width: 680px;
	backdrop-filter: blur(8px);
	box-shadow: var(--seitu-shadow);
}

.seitu-category-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: clamp(18px, 2.5vw, 32px);
}

.seitu-category-card {
	min-height: 340px;
	overflow: hidden;
	border-radius: 24px;
	box-shadow: var(--seitu-shadow);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.seitu-category-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 24px 55px rgba(36, 23, 20, 0.18);
}

.seitu-category-card .wp-block-cover__background {
	transition: opacity 180ms ease;
}

.seitu-category-card:hover .wp-block-cover__background {
	opacity: 0.38 !important;
}

.seitu-category-card .wp-block-heading {
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.seitu-opportunity-card {
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--seitu-border);
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--seitu-shadow);
}

.seitu-opportunity-card img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.seitu-page-hero .wp-block-post-featured-image img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: 28px;
	box-shadow: var(--seitu-shadow);
}

.wp-block-post-content {
	width: min(calc(100% - 36px), var(--wp--style--global--wide-size));
	max-width: var(--wp--style--global--wide-size) !important;
	margin-inline: auto;
}

/* Product category pages retained from the existing site. */
:is(.page-id-713, .page-id-715, .page-id-717, .page-id-719, .page-id-721, .page-id-723, .page-id-1405, .page-id-1407) .wp-block-post-content > .wp-block-columns {
	display: grid;
	width: 100%;
	max-width: none !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
	gap: clamp(18px, 2vw, 28px);
	align-items: stretch;
	margin-block: 0 clamp(24px, 4vw, 52px);
}

:is(.page-id-713, .page-id-715, .page-id-717, .page-id-719, .page-id-721, .page-id-723, .page-id-1405, .page-id-1407) .wp-block-column.borde {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-width: 0;
	overflow: hidden;
	padding: 24px;
	border: 1px solid var(--seitu-border);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 12px 32px rgba(36, 23, 20, 0.08);
}

:is(.page-id-713, .page-id-715, .page-id-717, .page-id-719, .page-id-721, .page-id-723, .page-id-1405, .page-id-1407) .wp-block-column.borde > p:first-child {
	min-height: 3.4em;
	margin-bottom: 12px;
	font-size: 1.05rem;
	line-height: 1.45;
}

:is(.page-id-713, .page-id-715, .page-id-717, .page-id-719, .page-id-721, .page-id-723, .page-id-1405, .page-id-1407) .wp-block-column.borde .wp-block-image {
	width: 100%;
	margin: auto 0 16px;
}

:is(.page-id-713, .page-id-715, .page-id-717, .page-id-719, .page-id-721, .page-id-723, .page-id-1405, .page-id-1407) .wp-block-column.borde .wp-block-image img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

:is(.page-id-713, .page-id-715, .page-id-717, .page-id-719, .page-id-721, .page-id-723, .page-id-1405, .page-id-1407) .wp-block-column.borde .wp-block-spacer {
	display: none;
}

.paoc-popup-button,
.paoc-popup-btn {
	display: inline-flex !important;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	margin-top: auto;
	padding: 12px 16px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--seitu-chocolate) !important;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
}

.seitu-site-footer a {
	color: inherit;
}

.seitu-whatsapp {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9999;
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
	transition: transform 180ms ease;
}

.seitu-whatsapp:hover,
.seitu-whatsapp:focus-visible {
	transform: scale(1.08);
	color: #fff;
}

.seitu-whatsapp svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 782px) {
	.admin-bar .seitu-site-header {
		top: 46px;
	}

	.seitu-logo img {
		max-width: 68px;
	}

	.seitu-category-card {
		min-height: 300px;
	}

	.seitu-whatsapp {
		right: 16px;
		bottom: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.seitu-category-card,
	.seitu-whatsapp {
		transition: none;
	}
}

/* Isolated preview migrated from the SeiTu Home design. */
body.page-template-seitu-home {
	overflow-x: clip;
	background: #fff;
}

body.page-template-seitu-home .wp-site-blocks,
.seitu-home-preview {
	overflow-x: clip;
}

.seitu-home-preview {
	width: 100%;
	max-width: none;
	background: #fff;
}

.seitu-home-preview *,
.seitu-home-preview *::before,
.seitu-home-preview *::after {
	box-sizing: border-box;
}

.seitu-home-preview .wp-block-column {
	min-width: 0;
}

.seitu-home-preview .wp-block-image,
.seitu-home-preview .wp-block-image img {
	max-width: 100%;
}

.seitu-home-preview .wp-block-image img:not(.wp-block-cover__image-background) {
	height: auto;
}

#seitu-preloader {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.95);
	opacity: 1;
	visibility: visible;
	transition: opacity 380ms ease, visibility 380ms ease;
}

#seitu-preloader img {
	display: block;
	width: 140px;
	height: auto;
	animation: seitu-preloader-pulse 1.2s ease-in-out infinite alternate;
}

#seitu-preloader.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

@keyframes seitu-preloader-pulse {
	from {
		transform: scale(0.94);
		opacity: 0.72;
	}
	to {
		transform: scale(1.03);
		opacity: 1;
	}
}

.seitu-preview-js .seitu-home-preview .seitu-reveal {
	opacity: 0;
	transform: translate3d(0, 34px, 0);
	transition:
		opacity 780ms cubic-bezier(0.22, 1, 0.36, 1) var(--seitu-reveal-delay, 0ms),
		transform 780ms cubic-bezier(0.22, 1, 0.36, 1) var(--seitu-reveal-delay, 0ms);
	will-change: opacity, transform;
}

.seitu-preview-js .seitu-home-preview .seitu-reveal--left {
	transform: translate3d(-44px, 0, 0);
}

.seitu-preview-js .seitu-home-preview .seitu-reveal--right {
	transform: translate3d(44px, 0, 0);
}

.seitu-preview-js .seitu-home-preview .seitu-reveal--down {
	transform: translate3d(0, -34px, 0);
}

.seitu-preview-js .seitu-home-preview .seitu-reveal--zoom {
	transform: scale(0.94);
}

.seitu-preview-js .seitu-home-preview .seitu-reveal.is-visible {
	opacity: 1;
	transform: none;
	will-change: auto;
}

html.lenis,
html.lenis body {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

.seitu-franchise-form {
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 50px 20px;
	background: #fff;
	scroll-margin-top: 110px;
}

.seitu-franchise-form__card {
	width: 100%;
	max-width: 680px;
	padding: 32px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 22px 45px rgba(0, 0, 0, 0.14);
	color: #111;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.seitu-franchise-form__subtitle {
	margin: 0 0 22px;
	color: #333;
	font-size: 15px;
	line-height: 1.45;
	text-align: center;
}

.seitu-franchise-form label,
.seitu-franchise-form legend {
	display: block;
	margin: 12px 0 4px;
	color: #000;
	font-size: 14px;
	font-weight: 600;
}

.seitu-franchise-form fieldset {
	padding: 0;
	margin: 0;
	border: 0;
}

.seitu-franchise-form input[type="text"],
.seitu-franchise-form input[type="tel"] {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	background: #f3f3f3;
	font: inherit;
	font-size: 14px;
}

.seitu-franchise-form input[type="text"]:focus,
.seitu-franchise-form input[type="tel"]:focus {
	border-color: #007bff;
	background: #fff;
	outline: 2px solid rgba(0, 123, 255, 0.2);
	outline-offset: 1px;
}

.seitu-franchise-form__radios {
	display: flex;
	gap: 22px;
	margin: 8px 0 12px;
	font-size: 14px;
}

.seitu-franchise-form__radios label {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.seitu-franchise-form__radios input {
	margin: 0 6px 0 0;
	accent-color: #007bff;
}

.seitu-franchise-form button {
	width: 100%;
	padding: 14px;
	margin-top: 20px;
	border: 0;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 180ms ease, transform 180ms ease;
}

.seitu-franchise-form button:hover,
.seitu-franchise-form button:focus-visible {
	background: #007bff;
	transform: translateY(-1px);
}

.seitu-franchise-form__message {
	margin: 0 0 15px;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

.seitu-franchise-form__message.is-success {
	color: #1a7f37;
}

.seitu-franchise-form__message.is-error {
	color: #b00020;
}

.seitu-franchise-form__trap {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 781px) {
	.seitu-home-preview .wp-block-columns {
		width: 100%;
		max-width: 100%;
	}

	.seitu-home-preview .wp-block-image[style*="margin-left:-"],
	.seitu-home-preview .wp-block-image[style*="margin-left: -"] {
		margin-left: 0 !important;
	}

	.seitu-home-preview figure:has(> .wp-image-26296) {
		margin-left: 0 !important;
	}

	.seitu-home-preview strong {
		overflow-wrap: anywhere;
	}

	.seitu-home-preview .wp-block-image img[style*="width:"] {
		width: auto !important;
		max-width: 100% !important;
	}

	.seitu-home-preview .wp-block-cover[style*="min-height:964px"] {
		min-height: 70svh !important;
		padding: 24px !important;
	}

	.seitu-home-preview [style*="letter-spacing:10px"] {
		font-size: clamp(30px, 10vw, 42px) !important;
		letter-spacing: 4px !important;
	}

	.seitu-home-preview .wp-block-button,
	.seitu-home-preview .wp-block-button__link {
		max-width: 100%;
		white-space: normal;
	}

	.seitu-home-preview .wp-block-spacer {
		max-height: 64px;
	}

	.seitu-franchise-form {
		padding: 36px 16px;
	}

	.seitu-franchise-form__card {
		padding: 24px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#seitu-preloader img {
		animation: none;
	}

	.seitu-preview-js .seitu-home-preview .seitu-reveal,
	.seitu-franchise-form button {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
