/*
Theme Name: Producto Landing
Theme URI: https://example.com/
Author: Equipo del proyecto
Description: Tema de bloques ligero para una landing de un solo producto.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.1.0
Text Domain: producto-landing
*/

html {
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

body {
	overflow-x: hidden;
}

:where(a, button, input, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 1000;
	transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header .wp-block-site-title a,
.site-header .wp-block-navigation-item__content {
	color: inherit;
}

.section-shell {
	padding-block: clamp(4.5rem, 9vw, 8rem);
}

.reveal-on-scroll {
	opacity: 0;
	transform: translateY(1.5rem);
	transition: opacity 600ms ease, transform 600ms ease;
}

.reveal-on-scroll.is-visible {
	opacity: 1;
	transform: none;
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.reveal-on-scroll {
		opacity: 1;
		transform: none;
	}
}

.site-header,
.site-header.is-scrolled {
	background: #000;
	color: #fff;
	box-shadow: none;
	backdrop-filter: none;
}

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

.site-header > .wp-block-group {
	min-height: 2.8rem;
}

.site-header .wp-block-navigation-item__content:hover,
.site-header .wp-block-site-title a:hover {
	color: var(--wp--preset--color--accent);
}

.site-header .wp-block-button__link {
	padding: 0.55rem 1.1rem;
	font-size: 0.76rem;
}

.hero-producto {
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	min-height: 0;
	aspect-ratio: 2396 / 1049;
	margin-top: 3.75rem;
	padding-top: 0;
	display: flex;
	align-items: stretch;
	background-color: #fff;
}

.hero-producto > .wp-block-cover__image-background {
	object-fit: contain;
	object-position: center;
}

.hero-producto > .wp-block-cover__inner-container {
	position: absolute;
	inset: 0;
	width: 100%;
	display: flex;
	align-items: stretch;
}

.hero-producto__content {
	box-sizing: border-box;
	width: 100%;
	min-height: 100%;
	display: flex;
	align-items: flex-end;
	padding: 0 0 clamp(1rem, 2vw, 2.25rem);
	margin-bottom: 0;
}

.hero-producto__actions {
	position: static;
	width: 50%;
	margin-left: auto;
}

.outlined-heading mark {
	padding: 0 .08em;
	background: transparent;
	color: var(--wp--preset--color--accent);
	-webkit-text-stroke: 2px #000;
	text-shadow: 3px 3px 0 #000;
}

.hero-producto .wp-block-button__link,
.quality-banner .wp-block-button__link,
.contact-section .wp-block-button__link {
	min-width: 10rem;
	padding: .55rem 1.8rem;
	font-size: 1rem;
	font-weight: 900;
}

.story-section {
	background: #fff;
}

.story-section > .wp-block-group {
	max-width: 1040px;
}

.highlight-heading {
	display: inline-block;
	margin-bottom: 1.25rem;
	padding: .2rem .6rem;
	border: 2px solid #000;
	background: var(--wp--preset--color--accent);
	font-family: Impact, "Arial Narrow", Arial, sans-serif;
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	letter-spacing: .01em;
}

.story-copy {
	margin: 0;
	font-size: clamp(1rem, 1.6vw, 1.3rem) !important;
	font-weight: 600;
	line-height: 1.48;
}

.quality-banner {
	position: relative;
	overflow: hidden;
	min-height: clamp(12rem, 15.5vw, 23rem);
	padding: 0;
	background-color: #008c45 !important;
}

.quality-banner > .wp-block-cover__image-background {
	object-fit: cover;
	object-position: center;
}

.quality-banner > .wp-block-cover__inner-container {
	width: 100%;
	min-height: inherit;
}

.quality-banner__inner {
	min-height: inherit;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: clamp(.8rem, 1.5vw, 1.8rem);
}

.faq-section > .wp-block-group {
	max-width: 1030px;
}

.outlined-heading {
	font-family: Impact, "Arial Narrow", Arial, sans-serif;
	font-size: clamp(2.2rem, 4vw, 4rem);
	letter-spacing: .02em;
}

.faq-list details {
	margin-bottom: .55rem;
	padding: .8rem 1.25rem;
	border: 1px solid #aaa;
	border-radius: .45rem;
	background: #e9e9e9;
}

.faq-list details:last-child {
	border-bottom: 1px solid #aaa;
}

.faq-list summary {
	cursor: pointer;
	font-size: 1rem;
	font-weight: 800;
}

.contact-section {
	background:
		repeating-radial-gradient(ellipse at 20% 50%, transparent 0 5rem, rgba(0,0,0,.025) 5.1rem 5.2rem),
		#fff;
}

.contact-section h2 {
	font-family: Impact, "Arial Narrow", Arial, sans-serif;
	font-size: clamp(2.3rem, 4vw, 4rem);
}

.contact-section p {
	font-size: clamp(1rem, 2vw, 1.45rem) !important;
}

.contact-page-main {
	margin-top: 3.75rem;
}

.contact-page-main > * {
	margin-block-start: 0 !important;
}

.contact-page-hero {
	min-height: clamp(14rem, 25vw, 24rem);
	padding: 0;
}

.contact-page-hero .wp-block-cover__image-background {
	object-fit: cover;
	object-position: center top;
}

.contact-page-intro {
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
	background-image:
		repeating-linear-gradient(132deg, transparent 0 3.2rem, rgba(255,255,255,.05) 3.25rem 3.45rem, transparent 3.5rem 6.8rem),
		linear-gradient(180deg, #00a753 0%, #007d3d 100%);
}

.contact-page-intro h1 {
	margin: 0;
	font-family: Impact, "Arial Narrow", Arial, sans-serif;
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	letter-spacing: .01em;
}

.contact-page-intro p {
	margin: .65rem 0 0;
}

.contact-form-section {
	padding-block: clamp(1.5rem, 3vw, 2.75rem);
	background:
		repeating-radial-gradient(ellipse at 20% 50%, transparent 0 5rem, rgba(0,0,0,.025) 5.1rem 5.2rem),
		#fff;
}

.contact-form-card {
	box-sizing: border-box;
	width: calc(100% - 2rem);
	max-width: 58rem !important;
	margin-inline: auto !important;
	padding: clamp(2rem, 4vw, 4rem);
	border: 2px solid #111;
	border-radius: 1.5rem;
}

.contact-form-card h2 {
	margin-top: 0;
	font-family: Impact, "Arial Narrow", Arial, sans-serif;
	font-size: clamp(2rem, 4vw, 3.5rem);
}

.contact-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem 1rem;
}

.contact-form__field,
.contact-form__field label {
	display: block;
	margin: 0;
}

.contact-form__field p,
.contact-form__message p,
.contact-form__acceptance p,
.contact-form__submit p {
	margin: 0;
}

.contact-form-card input:not([type="submit"]):not([type="checkbox"]),
.contact-form-card textarea {
	box-sizing: border-box;
	width: 100%;
	padding: .75rem 1rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #e7f3ed;
	color: #111;
	font: inherit;
}

.contact-form-card textarea {
	min-height: 7rem;
	height: 7rem;
	margin-top: .75rem;
	border-radius: .65rem;
	resize: vertical;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
	border-color: #009e4f;
	outline: 3px solid rgba(140,255,0,.3);
}

.contact-form__acceptance {
	margin-block: .8rem 1.25rem;
	font-size: .78rem;
}

.contact-form-card input[type="submit"] {
	display: block;
	min-width: 11rem;
	margin-inline: auto;
	padding: .65rem 2rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: #000;
	font-weight: 900;
	cursor: pointer;
}

.contact-form-card .wpcf7-spinner {
	display: block;
	margin: .75rem auto 0;
}

.contact-form-card .wpcf7-response-output {
	margin-inline: 0;
	border-radius: .5rem;
}

.brand-footer {
	position: relative;
	overflow: hidden;
	min-height: 20rem;
	padding-block: 3.5rem;
	background-color: #008f46 !important;
	background-image:
		repeating-linear-gradient(132deg, transparent 0 3.2rem, rgba(255,255,255,.045) 3.25rem 3.45rem, transparent 3.5rem 6.8rem),
		linear-gradient(180deg, #00a753 0%, #007d3d 100%);
}

.brand-footer__character {
	position: absolute;
	z-index: 0;
	top: 1.5rem;
	right: clamp(5rem, 7vw, 8rem);
	bottom: -1.25rem;
	width: clamp(18rem, 24vw, 29rem);
	margin: 0 !important;
	pointer-events: none;
}

.brand-footer__character img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center bottom;
}

.brand-footer__grid {
	position: relative;
	z-index: 1;
	display: grid !important;
	grid-template-columns: max-content max-content max-content;
	justify-content: start;
	align-content: center;
	min-height: 13rem;
	padding-right: 31%;
	align-items: flex-start !important;
	column-gap: clamp(3rem, 6vw, 6.5rem);
}

.brand-footer__grid > .wp-block-column {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
}

.brand-footer__grid > .wp-block-column > * {
	margin-block-start: 0;
}

.brand-footer h3 {
	min-height: 1.5rem;
	margin: 0 0 1rem;
	letter-spacing: .04em;
	line-height: 1.5;
}

.brand-footer__grid p {
	margin: 0;
	line-height: 1.65;
}

.brand-footer__grid a,
.brand-footer__grid > .wp-block-column:nth-child(2) p {
	white-space: nowrap;
}

.brand-footer__grid .wp-block-social-links {
	gap: .75rem;
	margin: 0 0 1rem !important;
}

.legal-footer {
	padding-block: 1rem;
}

.legal-footer p {
	margin: 0;
}

.floating-whatsapp {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 1001;
	margin: 0 !important;
	padding: 0;
}

.floating-whatsapp .wp-social-link {
	width: 4.25rem;
	height: 4.25rem;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #25d366 !important;
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(0,0,0,.25);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-whatsapp .wp-social-link:hover {
	transform: translateY(-3px) scale(1.04);
	box-shadow: 0 10px 24px rgba(0,0,0,.3);
}

.floating-whatsapp .wp-social-link a {
	padding: 1rem;
}

.floating-whatsapp .wp-social-link svg {
	width: 100%;
	height: 100%;
}

@media (max-width: 900px) {
	.hero-producto {
		min-height: 0;
	}
}

@media (max-width: 781px) {
	.admin-bar .site-header {
		top: 46px;
	}
	.site-header {
		padding-inline: .25rem;
	}

	.site-header .wp-block-buttons {
		display: none;
	}

	.hero-producto {
		min-height: 0;
		margin-top: 3.4rem;
	}

	.hero-producto__actions {
		width: 52%;
		margin-left: auto;
	}

	.hero-producto__content {
		padding-bottom: .5rem;
	}

	.contact-page-main {
		margin-top: 3.4rem;
	}

	.contact-page-hero {
		min-height: 18rem;
	}

	.contact-form__grid {
		grid-template-columns: 1fr;
	}

	.contact-form-card {
		padding: 1.5rem 1rem;
		border-radius: 1rem;
	}

	.quality-banner {
		min-height: 12rem;
	}

	.brand-footer {
		padding-bottom: 22rem;
		text-align: center;
	}

	.brand-footer__character {
		top: auto;
		right: clamp(.5rem, 3vw, 1.5rem);
		bottom: -2.75rem;
		width: min(21rem, 86vw);
		height: 21rem;
		transform: none;
	}

	.brand-footer__character img {
		object-position: right bottom;
	}

	.brand-footer__grid {
		display: flex !important;
		flex-direction: column;
		align-items: center !important;
		min-height: auto;
		padding-right: 0;
		gap: 2.25rem;
	}

	.brand-footer__grid > .wp-block-column {
		align-items: center;
	}

	.brand-footer .wp-block-social-links {
		justify-content: center;
	}
}
