/*
Theme Name: BdTierras
Theme URI: https://webcordoba.es
Author: Web Córdoba
Author URI: https://webcordoba.es
Description: Theme a medida para el proyecto BdTierras
Version: 1.2.2
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Text Domain: BdTierras
*/
/* 

TOC

1. Variables
2. General	
	.container
	.container.medio
	.section-separator
	.page-wrapper
	.text-content
		.text-content h1
		.text-content h2
		.text-content h3
		.text-content h4
		.text-content h5
		.text-content h6
		.text-content p
		.text-content ul
		.text-content ol
		.text-content li
		.text-content blockquote
		.text-content cite
3. Botones
	thm-btn
	thm-btn.transparente
	thm-btn.transparente.small
4. Botón editar post y WP

*/
/* --------------------------------------------- */
/* Variables */
:root {
  --theme-font: "Wix Madefor Display", sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --theme-font-two: 'Caveat', cursive;
  --theme-white: #f8f4f3;
  --theme-white-rgb: 248, 244, 243;
  --theme-base: #F4B121;
  --theme-base-rgb: 247, 183, 51;
  --theme-black: #191e25;
  --theme-black-rgb: 25, 30, 37;
  --theme-gradient: linear-gradient(#f8f4f3, #fff);
  --theme-background: #F8F4F3;
  --theme-blue: #132F4E;
}
/* --------------------------------------------- */
/* General */
.font_caveat {
  font-family: var(--theme-font-two);
}
.fontSize_1-0 {
  font-size: 1rem;
}
.fontSize_1-5 {
  font-size: 1.5rem;
}
.fontSize_2-0 {
  font-size: 2rem;
}
.fontSize_2-5 {
  font-size: 2.5rem;
}
.fontSize_3-0 {
  font-size: 3rem;
}
.fontSize_3-5 {
  font-size: 3.5rem;
}
.fontSize_4-0 {
  font-size: 4rem;
}
.fontSize_4-5 {
  font-size: 4.5rem;
}
.fontSize_5-0 {
  font-size: 5rem;
}
.fontSize_5-5 {
  font-size: 5.5rem;
}
.fontSize_6-0 {
  font-size: 6rem;
}
.fontWeight_300 {
  font-weight: 300;
}
.fontWeight_400 {
  font-weight: 400;
}
.fontWeight_500 {
  font-weight: 500;
}
.fontWeight_600 {
  font-weight: 600;
}
.fontWeight_700 {
  font-weight: 700;
}
.color_base {
  color: var(--theme-base);
}
.color_black {
  color: var(--theme-black);
}
.color_white {
  color: var(--theme-white);
}
.bg_base {
  background-color: var(--theme-base);
}
.bg_black {
  background-color: var(--theme-black);
}
.bg_white {
  background-color: var(--theme-white);
}
.bg_gradient {
  background: var(--theme-gradient);
}
html * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.row {
  --bs-gutter-x: 30px;
}
.gutter-y-30 {
  --bs-gutter-y: 30px;
}
strong {
  font-weight: 600;
}
body {
  font-family: var(--theme-font);
  color: var(--theme-black);
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
}
body.locked {
  overflow: hidden;
}
a {
  color: var(--theme-base);
}
a,
a:hover,
a:focus,
a:visited {
  text-decoration: none;
  transition: all 500ms ease;
}
a:hover {
  color: var(--theme-base);
}
::-webkit-input-placeholder {
  color: inherit;
  opacity: 1;
}
:-ms-input-placeholder {
  color: inherit;
  opacity: 1;
}
::-ms-input-placeholder {
  color: inherit;
  opacity: 1;
}
::placeholder {
  color: inherit;
  opacity: 1;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--theme-font);
  color: var(--theme-black);
  margin: 0;
}
p {
  margin: 0;
}
dl,
ol,
ul {
  margin-top: 0;
  margin-bottom: 0;
}
::-webkit-input-placeholder {
  color: inherit;
  opacity: 1;
}
:-ms-input-placeholder {
  color: inherit;
  opacity: 1;
}
::-ms-input-placeholder {
  color: inherit;
  opacity: 1;
}
::placeholder {
  color: inherit;
  opacity: 1;
}
.container {
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 576px) {
  .container.medio {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container.medio {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container.medio {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container.medio {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .container.medio {
    max-width: 1320px;
  }
}
::-webkit-input-placeholder {
  color: inherit;
  opacity: 1;
}
:-ms-input-placeholder {
  color: inherit;
  opacity: 1;
}
::-ms-input-placeholder {
  color: inherit;
  opacity: 1;
}
::placeholder {
  color: inherit;
  opacity: 1;
}
/* --------------------------------------------- */
/* Botones */
.thm-btn {
  position: relative;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  padding-block: 0.5rem;
  padding-inline: 1rem;
  background-color: var(--theme-base);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 10px;
  font-weight: bold;
  outline: none;
  overflow: hidden;
  text-wrap: nowrap;
  transform-origin: center;
}
.thm-btn .webc-icon {
  transition: all 0.3s ease-in-out;
}
.thm-btn::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70%);
  top: 0;
  left: -100px;
  opacity: 0.6;
}
.thm-btn:hover {
  transform: scale(1.05);
  color: #fff;
}
.thm-btn:hover::before {
  animation: shine 1.5s ease-out infinite;
}
.thm-btn.black {
  background-color: var(--theme-black);
}
.thm-btn.blue {
  background-color: var(--theme-blue);
}
.thm-btn.small {
  padding-block: 0.3rem;
  padding-inline: 1.25rem;
}
@keyframes shine {
  0% {
    left: -100px;
  }
  60% {
    left: 100%;
  }
  to {
    left: 100%;
  }
}
/* Botón editar post y WP */
.sq_edit_post {
  position: fixed;
  z-index: 9999999;
  bottom: 210px;
  left: 30px;
  border-radius: 100%;
  background: #333;
  border: 3px #e00034 solid;
  box-shadow: 0 1px 16px 0px rgba(0, 0, 0, 0.75);
  transition: 0.5s;
}
.sq_edit_post a {
  display: block;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.sq_edit_post a svg {
  width: 25px;
  height: 20px;
}
.sq_edit_post a svg path {
  fill: #fff;
  transition: 0.3s;
}
.sq_edit_post.sq_wp_link {
  bottom: 90px;
}
.sq_edit_post.sq_info_link {
  bottom: 150px;
}
.sq_edit_post:hover {
  border: 3px #000 solid;
}
.sq_edit_post:hover a svg path {
  fill: #ebebeb;
}
figure.wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
}
/* select tipo A */
.select_tipoA,
.select_tipoB,
select,
::picker(select) {
  appearance: base-select;
  transition: all 0.3s ease;
  position: relative;
}
.select_tipoA::picker-icon,
.select_tipoB::picker-icon,
select::picker-icon,
::picker(select)::picker-icon {
  transition: all 0.3s ease;
  display: none;
}
.select_tipoA:open::picker-icon,
.select_tipoB:open::picker-icon,
select:open::picker-icon,
::picker(select):open::picker-icon {
  rotate: 180deg;
}
.select_tipoA::picker(select),
.select_tipoB::picker(select),
select::picker(select),
::picker(select)::picker(select) {
  border: 1px solid var(--theme-base);
  border-radius: 8px;
  opacity: 0;
  transition: all 0.4s allow-discrete;
  top: calc(anchor(bottom) + 1px);
}
.select_tipoA::picker(select):popover-open,
.select_tipoB::picker(select):popover-open,
select::picker(select):popover-open,
::picker(select)::picker(select):popover-open {
  opacity: 1;
}
@starting-style {
  .select_tipoA::picker(select):popover-open,
  .select_tipoB::picker(select):popover-open,
  select::picker(select):popover-open,
  ::picker(select)::picker(select):popover-open {
    opacity: 0;
  }
}
select::after {
  content: '';
  position: absolute;
  right: 5px;
  top: 37%;
  width: 1em;
  height: 1em;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3E%3Cpath fill="none" stroke="%23343a40" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m2 5 6 6 6-6"/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
  /* espacio para el icono */
  transition: all 0.3s ease;
}
select:open::after {
  rotate: 180deg;
}
select option {
  padding: 5px;
}
.select_tipoA {
  padding: 10px 10px 10px 0;
  border-radius: 0;
  border-width: 0 0 1px 0;
  background-color: transparent;
  box-shadow: none;
  border-color: var(--theme-black);
  background-image: none;
}
.select_tipoA:focus,
.select_tipoA:hover {
  border-color: var(--theme-base);
  box-shadow: none;
  background-color: transparent;
}
.select_tipoB {
  padding: 10px 10px 10px 10px;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  border-color: var(--theme-black);
  background-image: none;
}
.select_tipoB:focus,
.select_tipoB:hover {
  border-color: var(--theme-base);
  box-shadow: none;
  background-color: transparent;
}
/* Template Textos Legales */
body.page-template-page-textos-legales main .wp-block-post-content p {
  margin-bottom: 15px;
}
body.page-template-page-textos-legales main .wp-block-post-content p strong {
  font-weight: 600;
}
body.page-template-page-textos-legales main .wp-block-post-content ol {
  margin-bottom: 15px;
}
body.page-template-page-textos-legales main .wp-block-post-content ul {
  margin-bottom: 15px;
}
body.page-template-page-textos-legales main .wp-block-post-content h2,
body.page-template-page-textos-legales main .wp-block-post-content h3,
body.page-template-page-textos-legales main .wp-block-post-content h4,
body.page-template-page-textos-legales main .wp-block-post-content h5,
body.page-template-page-textos-legales main .wp-block-post-content h6 {
  margin-bottom: 25px;
}
