/*
Theme Name: Nosoloverde
Author: Jose A. Catalan
Author URI: http://joseacat.io/
Description: Plantilla en blanco para WordPress
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nosoloverde
*/

/* Colores estilo claro */
::backdrop,
:root {
	--sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica, "Helvetica Neue", sans-serif;
	--mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
	--standard-border-radius: 5px;
	--bg: var(--wp--preset--color--background);
	--accent-bg: var(--wp--preset--color--background);
	--text: var(--wp--preset--color--text);
	--text-light: #4d4d4d;
	--border: #0D0D0D;
	--accent: var(--wp--preset--color--violet);
	--code: #7C8C03;
	--preformatted: #444;
	--marked: #D96704;
	--disabled: #efefef;
}

/* Colores estilo oscuro */
@media (prefers-color-scheme: dark) {

	::backdrop,
	:root {
		color-scheme: dark;
	}
}

/* Medidas */
::backdrop,
:root {
	--acotado: 1248px;
	--acotado-min: 720px;
}

/* --wp--style--global--content-size: 840px; */
/* --wp--style--global--wide-size: 1100px; */
body {
	min-height: 100vh;
	scroll-behavior: smooth;
	text-rendering: optimizeSpeed;
	grid-template-columns: 1fr min(var(--acotado), 58%) 1fr;
	background-color: var(--wp--preset--color--background);
}
body.post-type-archive-receta,
body.blog,
body.archive.category{
	grid-template-columns: 1fr min(var(--acotado), 90%) 1fr;
}

@font-face {
	font-family: "Kurale";
	src: url("./recursos/fonts/Kurale-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Nunito";
	src: url("./recursos/fonts/Nunito-VariableFont_wght.ttf") format("truetype");
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Nunito";
	src: url("./recursos/fonts/Nunito-Italic-VariableFont_wght.ttf") format("truetype");
	font-style: italic;
	font-display: swap;
}

img,
video {
	opacity: 1;
}

/* General */

body {
	font-family: 'Nunito', sans-serif;
}

input,
textarea,
select {
	border: 0;
	backdrop-filter: blur(25px);
	-webkit-backdrop-filter: blur(25px);
	padding: 1rem;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
	background-color: #f6f6ed;
}
.wpcf7-form{
	background-color: var(--wp--preset--color--white);
	padding: 2rem;
	border-radius: 1rem;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
input::placeholder,
textarea::placeholder {
	color: var(--text);
	opacity: 0.7;
}

.alignright {
	float: right;
}

.alignleft {
	float: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Kurale', sans-serif;
}

.has-text-color.has-white-color {
	color: var(--wp--preset--color--white) !important;
}

.main-general {
	margin-top: 6rem;
	padding-top: 0;
}

body.single-receta .main-general {
	margin-top: 8rem;
}

body.page-template-page-top .main-general {
	margin-top: 0;
}

*.has-text-align-center {
	text-align: center;
}

.title-xl {
	font-size: 6vw;
}

/* Fin General */

/* Cabecera */
.cabecera-general {
	position: fixed;
	z-index: 90;
	width: 100vw;
	padding: 1rem 0 0;
	border: 0;
	background-color: transparent;
}

.cabecera-logo,
.cabecera-buscador {
	transition: all 0.3s ease-in-out;
	opacity: 1;
}

.cabecera-buscador {
	overflow: hidden;
	max-width: 300px;
}

.cabecera-buscador * {
	transition: opacity 0.2s ease-in-out;
}

body.scroll-down .cabecera-logo,
body.scroll-up .cabecera-logo {
	opacity: 0;
	transform: scale(0.9);
	width: 0;
}

body.scroll-down .cabecera-buscador {
	max-width: 0;
	opacity: 0;
}

body.scroll-down .cabecera-buscador * {
	opacity: 0;
}

.cabecera-menu {
	transition: all 0.3s ease-in-out;
}

body.scroll-down .cabecera-menu,
body.scroll-up .cabecera-menu {
	margin: 0;
	flex: 1;
}

body.scroll-up .cabecera-menu {
	margin-right: 4rem;
}

.wp-block-search__button-inside .wp-block-search__label {
	margin-bottom: 0.2rem;
}

.wp-block-search__button-inside .wp-block-search__inside-wrapper {
	position: relative;
}

.wp-block-search__button-inside .wp-block-search__input {
	width: 100%;
	padding: 1rem;
	margin: 0;
}

.wp-block-search__button-inside .wp-block-search__button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	right: 8px;
	top: 8px;
	bottom: 8px;
	z-index: 1;
	margin: 0;
	padding: 0.3rem 1rem;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: normal;
	background-color: var(--wp--preset--color--violet);
	color: var(--wp--preset--color--white);
}

.interior-cabecera-general {
	display: flex;
	align-items: center;
	max-width: var(--acotado);
	margin-left: auto;
	margin-right: auto;
}

.cabecera-menu {
	flex: 1;
	margin: 0 4rem;
}

.cabecera-menu .menu {
	display: flex;
	align-items: center;
	justify-content: space-around;
	list-style: none;
	padding-inline-start: 0;
	margin: 0;
	backdrop-filter: blur(25px);
	-webkit-backdrop-filter: blur(25px);
	border-radius: 1rem;
	padding: 1rem;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
	background-color: rgba(255, 255, 255, 0.5);
}

.cabecera-menu .menu .page_item {}

.cabecera-menu .menu a {
	position: relative;
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	font-size: 1.2rem;
}

.cabecera-menu .menu a:hover {
	color: var(--wp--preset--color--violet);
	transition: all 0.3s ease-in-out 0s;
}

.cabecera-menu .menu .current-menu-item a{
	color: var(--text);
	transition: all 0.3s ease-in-out 0s;
}

.cabecera-menu .menu a::before,
.cabecera-menu .menu .current-menu-item a::before{
	position: absolute;
	content: '';
	display: block;
	width: 100%;
	height: 2px;
	bottom: -0.1rem;
	left: 0;
	background-color: var(--wp--preset--color--violet);
	visibility: hidden;
	transform: scaleX(0);
	transition: all 0.3s ease-in-out 0s;
}

.cabecera-menu .menu .current-menu-item a::before{
	visibility: visible;
	transform: scaleX(1);
	background-color: var(--text);
}

.cabecera-menu .menu a:hover::before{
	visibility: visible;
	transform: scaleX(1);
}

.cabecera-logo {
	width: 180px;
}

.cabecera-logo img {
	max-width: 100%;
}

.search-form .search-field {
	margin: 0;
	padding: 1rem;
	border: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
	backdrop-filter: blur(25px);
	-webkit-backdrop-filter: blur(25px);
	background-color: rgba(255, 255, 255, 0.5);
}

.search-form .search-field:focus {
	outline: 1px solid var(--wp--preset--color--violet);
}

.search-form .search-field::placeholder {
	font-size: 1rem;
}

.search-form .search-label {
	position: relative;
}

.search-form button[type=submit] {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	right: 8px;
	top: 8px;
	bottom: 8px;
	width: 3rem;
	z-index: 1;
	margin: 0;
	padding: 0.3rem;
	background-color: var(--wp--preset--color--violet);
}

.search-form button[type=submit] img {
	filter: brightness(0) invert(1);
}

/* Fin Cabecera */

/* Footer */
.footer-general {
	position: relative;
	background-color: var(--wp--preset--color--primary);
	border: 0;
	margin-top: 2rem;
	padding-top: 14rem;
	padding-bottom: 4rem;
	color: #fff;
	clip-path: polygon(0 0, 100% 28%, 100% 100%, 0 100%);
	border-bottom: 1rem solid var(--wp--preset--color--secondary);
}

.footer-general .inner-footer-general {
	margin-top: 8rem;
}

.footer-general ul.menu {
	display: flex;
	justify-content: center;
	align-items: center;
	padding-inline-start: 0;
	list-style: none;
	margin-bottom: 2rem;
}

.footer-general ul.menu li {
	margin: 0 1rem;
}

.footer-general ul.menu a {
	position: relative;
	color: var(--wp--preset--color--white);
	text-decoration: none;
	font-size: 1.5rem;
	font-family: var(--wp--preset--font-family--serif);
}

.footer-general .menu a:hover {
	transition: all 0.3s ease-in-out 0s;
}

.footer-general .menu a::before {
	position: absolute;
	content: '';
	display: block;
	width: 100%;
	height: 2px;
	bottom: -0.1rem;
	left: 0;
	background-color: var(--wp--preset--color--white);
	visibility: hidden;
	transform: scaleX(0);
	transition: all 0.3s ease-in-out 0s;
}

.footer-general .menu a:hover::before {
	visibility: visible;
	transform: scaleX(1);
}

/* Contenedor de la carita */
.kawaii-face {
	position: absolute;
	top: 8rem;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	max-width: 520px;
	height: 24rem;
	background-color: var(--wp--preset--color--secondary);
	z-index: -1;
	border-bottom-left-radius: 50%;
	border-bottom-right-radius: 50%;
}

/* Ojos */
.kawaii-face .eye {
	position: absolute;
	top: 8rem;
	width: 120px;
	height: 120px;
	background: var(--wp--preset--color--terciary);
	border-radius: 50%;
}

.kawaii-face .eye.left {
	left: 1rem;
	animation: wink 3s infinite;
}

.kawaii-face .eye.right {
	right: 1rem;
	animation: wink 3s infinite;
}

/* Sonrisa medio círculo */
.kawaii-face .smile {
	position: absolute;
	bottom: 6rem;
	left: 50%;
	transform: translateX(-50%);
	width: 120px;
	height: 60px;
	background: var(--wp--preset--color--terciary);
	border-radius: 0 0 120px 120px;
}

/* Animación del guiño */
@keyframes wink {

	0%,
	94%,
	100% {
		height: 120px;
		transform-origin: 0 0;
		transform: translate(0, 0);
		/* ojo abierto */
	}

	95%,
	97% {
		height: 10px;
		transform-origin: 0 0;
		transform: translate(0, 60px);
		/* ojo cerrado */
	}
}

/* Fin Footer */

/* Recetas */
.header-archive {
	margin-top: 6vh;
}

.grid-cards-recipes {
	display: grid;
	grid-template-columns: repeat(2, minmax(auto, 1fr));
	gap: 2rem;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.card-recipe {
	display: flex;
	border: none;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
	background-color: var(--wp--preset--color--white);
}

.card-recipe>div {
	flex: 1;
}

.card-recipe>div:first-child {
	margin-right: 1rem;
}

.card-recipe>div:last-child {
	position: relative;
}

.card-recipe .title-card h2 {
	margin-top: 0;
	font-size: 2rem;
}

.card-recipe .link {
	position: absolute;
	bottom: 0;
	margin-top: 2rem;
}

.card-recipe .image-card-recipe {
	min-height: 260px;
	max-height: 300px;
}

.card-recipe .image-card-recipe img {
	object-fit: cover;
	height: 100%;
	width: 100%;
}

.card-recipe .link .button {
	margin: 0;
	display: block;
	background-color: var(--wp--preset--color--violet);
}

.card-recipe .categories a {
	position: relative;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	margin-right: 0.5rem;
	background-color: var(--wp--preset--color--terciary);
	color: var(--wp--preset--color--white);
	padding: 0.2rem 0.5rem;
	border-radius: 5px;
	font-size: var(--wp--preset--font-size--medium);
	transition: all 0.3s ease-in-out;
	padding-left: 2rem;
}

.card-recipe .categories a::before {
	position: absolute;
	content: '';
	background-image: url("./recursos/img/ic_fruit.svg");
	background-size: cover;
	background-repeat: no-repeat;
	left: 0.5rem;
	width: 16px;
	height: 16px;
	filter: brightness(0) invert(1);
}

.card-recipe .categories a:hover {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--text);
}

.content-recipe{
	display: flex;
}

.content-recipe .ingredients{
	position: relative;
	flex: 0.3;
	margin-right: 2rem;
}

.content-recipe .ingredients .title{
	position: relative;
	margin-top: 0;
	margin-bottom: 2rem;
}

.content-recipe .ingredients .title::after{
	position: absolute;
	content: '';
	display: block;
	width: 100%;
	height: 2px;
	bottom: -0.4rem;
	left: 0;
	background-color: var(--wp--preset--color--secondary);
}

.content-recipe .ingredients .section-fixed{
	position: sticky;
	top: 8rem;
}
.section-fixed{
	--paper: #f6f6ed;
	--grid: rgba(0, 90, 200, .12);
	--shadow: rgba(0,0,0,.12);

	position: relative;
	padding: 2rem 2rem 3rem;
	border-radius: 14px;
	background:
			linear-gradient(to right, var(--grid) 1px, transparent 1px) 0 0/28px 28px,
			linear-gradient(to bottom, var(--grid) 1px, transparent 1px) 0 0/28px 28px,
			var(--paper);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
	overflow: hidden;
}
.section-fixed::after{
	content:"";
	position:absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 40px;
	background: #ededda;
	-webkit-mask: radial-gradient(14px 10px at 12px 16px, #000 98%, transparent 101%) 0 0 / 60px 100% repeat-x;
	mask: radial-gradient(14px 14px at 24px 18px, #000 98%, transparent 101%) 0 0 / 60px 100% repeat-x;
	box-shadow: 0 8px 10px rgba(0, 0, 0, .18);
}
.content-single-recipe .wp-block-list li.done {
	text-decoration: line-through;
	color: var(--wp--preset--color--terciary);
}
.content-single-recipe .wp-block-list li {
	position: relative;
	cursor: pointer;
}
.content-single-recipe .wp-block-list li:hover::after {
	content: "¡Interacúa con la lista!";
	position: absolute;
	top: -2rem;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: #fff;
	font-size: 0.8rem;
	padding: 4px 8px;
	border-radius: 6px;
	white-space: nowrap;
	pointer-events: none; /* no bloquea el click */
	animation: fadeIn 0.25s forwards;
	z-index: 10;
}

.content-recipe .description{
	flex: 0.7;
}

.image-single-recipe {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2rem;
	max-height: 420px;
	overflow-y: hidden;
	border-bottom: 1rem solid var(--wp--preset--color--terciary);
}

.form-nsv {
	position: absolute;
	top: 70vh;
	right: 0;
	width: 60vw;
	z-index: 0;
	opacity: 0.8;
}
.card-blog{
	position: relative;
	border: none;
	padding-bottom: 5rem;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
	background-color: var(--wp--preset--color--white);
}
.card-blog .image-card-blog{
	height: 210px;
	overflow-y: hidden;
	background-color: var(--wp--preset--color--secondary);
	border-radius: var(--standard-border-radius);
}
.card-blog .image-card-blog img{
	display: block;
	object-fit: cover;
	height: 100%;
	width: 100%;
}
.card-blog .link a{
	display: block;
	text-align: center;
	margin: 0;
}
.card-blog h2{
	font-size: 1.8rem;
}
.card-blog .date-blog{
	font-style: italic;
	font-size: 1rem;
	opacity: 0.8;
}
.card-blog .link{
	position: absolute;
	bottom: 1rem;
	left: 1rem;
	right: 1rem;
}
.grid-cards-blog{
	display: grid;
	grid-template-columns: repeat(3, minmax(auto, 1fr));
	gap: 2rem;
}
.header-archive .categories-list{
	background-color: var(--wp--preset--color--secondary);
	padding: 2rem 0;
	margin-bottom: 2rem;
}
.categories-list > ul{
	display: flex;
	list-style: none;
	padding-inline-start: 0;
	max-width: calc(90% - 8px);
	margin: 0 auto;
}
.categories-list > ul > li{
	margin-right: 1rem;
}
.categories-list a{
	background-color: var(--wp--preset--color--white);
	padding: 0.4rem 1rem;
	border-radius: var(--standard-border-radius);
	text-decoration: none;
	color: var(--text);
	font-size: 1rem;
	border: 1px solid transparent;
}
.categories-list a:hover{
	border-color: var(--text-light);
}
.inner-header-single-blog{
	display: flex;
	align-items: center;
}
.image-single-blog{
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: 320px;
	overflow-y: hidden;
	margin-right: 2rem;
}
.image-single-blog img{
	display: block;
	object-fit: cover;
	height: 100%;
	width: 100%;
}
.meta-single-blog{
	position: relative;
	margin-left: -10rem;
	background-color: var(--bg);
	padding: 2rem;
	border-radius: var(--standard-border-radius);
}
.breadcrumb-single-blog {
	background-color: var(--wp--preset--color--secondary);
	padding: 1rem 0;
}
.breadcrumb-single-blog .rank-math-breadcrumb{
	max-width: calc(90% - 8px);
	margin-right: auto;
	margin-left: auto;
	font-size: 1rem;
}
.breadcrumb-single-blog .rank-math-breadcrumb p{
	margin: 0;
}
.breadcrumb-single-blog .rank-math-breadcrumb a{
	color: var(--text);
	text-decoration: none;
	font-weight: 700;
}
/* Fin Recetas */

/* Page */
.page-default-content{

}

@media (max-width: 950px) {
	#wpadminbar{
		display: none !important;
	}
	body {
		grid-template-columns: 1fr min(var(--acotado), 92%) 1fr;
	}
	.menu-desplegable {
		width: 42px;
		height: 42px;
		position: absolute;
		top: 1rem;
		right: 1rem;
		z-index: 18;
		margin-left: 18px;
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg);
		-webkit-transition: 0.5s ease-in-out;
		-moz-transition: 0.5s ease-in-out;
		-o-transition: 0.5s ease-in-out;
		transition: 0.5s ease-in-out;
		border: 2px solid transparent;
		border-radius: 50%;
		background-color: var(--wp--preset--color--secondary);
	}
	.menu-desplegable span {
		display: block;
		position: absolute;
		height: 2px;
		width: 70%;
		background: var(--text);
		border-radius: 9px;
		opacity: 1;
		left: 15%;
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg);
		-webkit-transition: 0.25s ease-in-out;
		-moz-transition: 0.25s ease-in-out;
		-o-transition: 0.25s ease-in-out;
		transition: 0.25s ease-in-out;
	}
	.menu-desplegable span:nth-child(1) {
		top: 12px;
		-webkit-transform-origin: left center;
		-moz-transform-origin: left center;
		-o-transform-origin: left center;
		transform-origin: left center;
	}
	.menu-desplegable span:nth-child(2) {
		top: 18px;
		-webkit-transform-origin: left center;
		-moz-transform-origin: left center;
		-o-transform-origin: left center;
		transform-origin: left center;
	}
	.menu-desplegable span:nth-child(3) {
		top: 24px;
		-webkit-transform-origin: left center;
		-moz-transform-origin: left center;
		-o-transform-origin: left center;
		transform-origin: left center;
		width: 50%;
	}
	.menu-desplegable.open span:nth-child(1) {
		-webkit-transform: rotate(45deg);
		-moz-transform: rotate(45deg);
		-o-transform: rotate(45deg);
		transform: rotate(45deg);
		top: 8px;
		left: 10px;
	}
	.menu-desplegable.open span:nth-child(2) {
		width: 0%;
		opacity: 0;
	}
	.menu-desplegable.open span:nth-child(3) {
		-webkit-transform: rotate(-45deg);
		-moz-transform: rotate(-45deg);
		-o-transform: rotate(-45deg);
		transform: rotate(-45deg);
		top: 27px;
		left: 10px;
		width: 70%;
	}
	.main-general{
		margin-top: 2rem;
	}
	.cabecera-general{
		padding: 1rem;
		top: 0;
	}
	.cabecera-general .cabecera-logo a{
		display: flex;
		align-items: center;
	}
	.cabecera-buscador{
		display: none;
	}
	body.scroll-down .cabecera-logo, body.scroll-up .cabecera-logo{
		opacity: 1;
		transform: scale(1);
		width: 180px;
	}
	body.scroll-down .cabecera-general, body.scroll-up .cabecera-general{
		background-color: var(--wp--preset--color--background);
	}
	.cabecera-menu {
		display: none;
		position: relative;
		top: 1rem;
		margin: 0;
		width: 100%;
	}
	.cabecera-menu .menu{
		display: block;
	}
	.cabecera-menu .menu a{
		display: inline-block;
		padding: 0.5rem 0;
		text-align: center;
	}
	.cabecera-menu.open{
		display: block;
	}
	body.scroll-down .cabecera-logo, body.scroll-up .cabecera-logo {
		margin: 0;
	}
	body.single-receta .main-general{
		margin-top: 4rem;
	}
	.page-default-content {
		background-color: transparent;
		padding: 0;
		box-shadow: none;
	}
	.content-recipe,
	.interior-cabecera-general,
	.footer-general ul.menu{
		display: block;
	}
	.grid-cards-recipes {
		grid-template-columns: repeat(1, minmax(auto, 1fr));
		gap: 1rem;
	}
	.content-recipe .ingredients{
		margin-right: 0;
		margin-bottom: 2rem;
	}
	.title-single-recipe h1{
		margin-bottom: 4rem;
	}
	.content-recipe .ingredients .title{
		margin-bottom: 1rem;
	}
	.content-recipe .ingredients .title::after{
		display: none;
	}
	.card-blog{
		display: block;
	}
	.card-blog .image-card-blog{
		margin-right: 0;
		min-height: 180px;
	}
	.header-single-blog{
		background-color: var(--wp--preset--color--secondary);
		padding: 0;
	}
	.inner-header-single-blog{
		display: block;
	}
	.image-single-blog{
		margin-right: 0;
	}
	.meta-single-blog{
		background-color: var(--wp--preset--color--secondary);
		margin-top: -16rem;
		max-width: 90%;
		margin-left: auto;
		margin-right: auto;

	}
	.meta-single-blog .date-blog{
		margin-bottom: 0;
	}
	.breadcrumb-single-blog{
		display: none;
	}
	.grid-cards-blog {
		grid-template-columns: repeat(1, minmax(auto, 1fr));
	}

}