/* 
 Theme Name:   deCBD
 Theme URI:    https://raulmar.es
 Description:  Tema para nicho CBD
 Author:       Raúl Martínez
 Author URI:   https://raulmar.es
 Template:     hello-elementor
 Version:      1.0

 /* == Add your own styles below this line ==
--------------------------------------------*/

/* Inter — variable, texto de cuerpo */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-VariableFont_opsz,wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Poppins — titulares, solo 700 y 800 */
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Variables tipográficas del tema */
:root {
  --decbd-font-titulos: 'Poppins', sans-serif;
  --decbd-font-cuerpo: 'Inter', sans-serif;
}

::selection {
  background-color: #0E4F45;
  color: #F7F7F5;
}
::-moz-selection {
  background-color: #0E4F45;
  color: #F7F7F5;
}

/* Cabecera Header Footer Builder visible dentro del editor Elementor
   (el plugin la deja en opacity:0 hasta que su JS —que no corre en el editor— la revela) */
body.elementor-editor-active #tahefobu-header {
	opacity: 1 !important;
	pointer-events: auto !important;
}
/* Fin */

body,
p,
a,
li,
input,
textarea,
select {
	font-family: var(--decbd-font-cuerpo) !important;
}

body {
	color: #171D1B;
	font-size: 1rem;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
	font-family: var(--decbd-font-titulos) !important;
}

h1, h2, h3, h4, h5, h6, a {
  text-underline-offset: 7px;
}

/* Los <button> no heredan font-family del tema — hay que fijarlo explícitamente */
button,
.elementor-button,
.elementor-button-text {
	font-family: var(--decbd-font-cuerpo) !important;
}

h1, .elementor-heading-title.elementor-size-default {
  font-size: 5rem;
}

h2 {
  font-size: 3.4rem;
}

h3 {
  font-size: 3rem;
}

h4 {
  font-size: 2.5rem;
}

h5 {
  font-size: 2.1rem;
}

h6 {
  font-size: 1.5rem;
}

main.site-main {
	margin-bottom: 50px;
}
.fuente-menu a,
.fuente-menu ul li a,
nav.fuente-menu a {
	font-weight: 600;

}
.decbd-breadcrumbs {
  font-size: 0.9em;
  color: #6E6A5E;
  margin-bottom: 1em;
}
.decbd-breadcrumbs a {
  color: #0E4F45;
  text-decoration: none;
}
.decbd-breadcrumbs a:hover {
  text-decoration: underline;
}
.texto-catalogo a {
	text-decoration: none !important;
}
.elementor-button {
	box-shadow: 5px 5px 10px rgba(0,0,0,.5) !important;
}
.page-content a.elementor-button,
.page-content a.elementor-button:hover,
.page-content a.elementor-button:focus {
	text-decoration: none; 
}
.flecha .elementor-icon {
  animation: decbd-float 2s ease-in-out infinite;
}
@keyframes decbd-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}
.tarjeta-categoria {
  aspect-ratio: 1/1;
}
.tarjeta-categoria::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg, 
    rgb(14 79 69) 15%, 
    rgba(14, 79, 69, 0.25) 45%, 
    rgba(14, 79, 69, 0) 70%
  );
  pointer-events: none; /* deja pasar el hover a la imagen de debajo, si lo necesitas */
  z-index: 1;
}
.tarjeta-categoria-cta {
  position: relative;
  display: inline;
  color: #FFFFFF;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 5px solid #E85D3D;
  transition: padding-right 0.3s ease;
}
.tarjeta-categoria-cta::after {
  content: "→";
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s ease;
}
.tarjeta-categoria-cta:hover::after {
  transform: translateX(8px);
}
.enlace-tarjeta {
  text-decoration: none !important;
}
.decbd-step-number {
  font-family: 'Inter', sans-serif;
  font-size: 60px;
  color: #E85D3D;
  line-height: 1.3em;
}
.pagination a {
  font-weight: 700;
  font-size: 1em;
  color: #E85D3D;
  text-decoration: none;
}
.pagination .meta-nav {
  color: #E85D3D;
}
.pagination a:hover,
.pagination a:hover .meta-nav {
  color: #0F4F45;
  text-decoration: underline;
}
/* ---- Faqs  ---- */
.decbd-faq {
  --decbd-primario: #ffffff;
  --decbd-secundario: #DADADA;
  --decbd-acento: #e85d3d;
  --decbd-texto: #171D1B;
  --decbd-fondo: #ececec;

  margin: 0 auto;
  padding: 0px 0px;
  color: var(--decbd-texto);
}
.decbd-faq__title {
  font-size: 28px;
  color: var(--decbd-texto);
  text-align: left;
  margin: 0 0 32px;
}
.decbd-faq__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.decbd-faq__item {
  background: var(--decbd-primario);
  border: 1px solid var(--decbd-secundario);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.decbd-faq__item:has(.decbd-faq__question[aria-expanded="true"]) {
  border-color: var(--decbd-secundario);
}
.decbd-faq .decbd-faq__question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  padding: 18px 20px;
  font-family: 'Inter', sans-serif;
}
.decbd-faq .decbd-faq__question h3.decbd-faq__question-text {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  color: var(--decbd-texto);
}
.decbd-faq .decbd-faq__question:hover,
.decbd-faq .decbd-faq__question:focus {
  background: #dbdbdb;
  color: var(--decbd-texto);
}
.decbd-faq .decbd-faq__question:hover h3.decbd-faq__question-text {
  color: var(--decbd-texto);
}
.decbd-faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.4rem;
}
.decbd-faq__icon::before,
.decbd-faq__icon::after {
  content: '';
  position: absolute;
  background: var(--decbd-texto);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.decbd-faq__icon::before {
  width: 14px;
  height: 2px;
}
.decbd-faq__icon::after {
  width: 2px;
  height: 14px;
}
.decbd-faq__question[aria-expanded="true"] .decbd-faq__icon {
  transform: rotate(0deg);
}
.decbd-faq__question[aria-expanded="true"] .decbd-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}
.decbd-faq__question[aria-expanded="true"] .decbd-faq__icon::before {
  background: var(--decbd-acento);
}
.decbd-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  border-top: 1px solid var(--decbd-secundario);
}
.decbd-faq__answer p {
  overflow: hidden;
  margin: 0;
  padding: 20px 20px 20px 20px;
}
/* ---- FIN Faqs  ---- */
/* ---- Menús del footer  ---- */
.decbd-footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
}
.decbd-footer-nav li {
	margin: 0;
	padding: 0;
}
.decbd-footer-nav a {
	display: block;
	padding: 0px 0px 0px 15px;
	font-family: "Poppins", sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: color 0.2s ease;
}
.enlace-footer {
	font-family: "Poppins", sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
}
@media (max-width: 767px) {
	.decbd-footer-nav ul {
		justify-content: center;
	}
  .decbd-footer-nav li:first-child a {
    padding-left: 0;
  }
}