/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: Child theme for Hello Elementor.
Author: Your Name
Author URI: https://example.com
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/



/* =========================
   Single post (Gutenberg) – Pdeplanazos
   ========================= */

/* === Single Post (only blog posts) === */
body.single-post main.pde-single {
  background: #ffffff;
}

/* Hero full width */
body.single-post .pde-post-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-color: #34342F;
  overflow: hidden;
  padding: 90px 0 120px;
}

/* Background image layer */
body.single-post .pde-post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pde-hero-bg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

  filter: brightness(110%) contrast(98%) saturate(85%) blur(0px) hue-rotate(0deg);
  opacity: 1;
  z-index: 0;
}

/* Overlay to tint (adjust opacity if you want) */
body.single-post .pde-post-hero__overlay {
  position: absolute;
  inset: 0;
  background: #34342F;
  opacity: 0.55;
  z-index: 1;
}

body.single-post .pde-post-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

body.single-post .pde-post-title {
  font-family: "Etna", Sans-serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 1.7px;
  color: #ffffff;
  max-width: 500px;
  margin: 0 auto;
}



/* Curve (BOTTOM) + flip to match your sections */
.pde-single .pde-curve {
	position: absolute;
	left: 50%;
	bottom: -1px;
	transform: translateX(-50%) rotateY(180deg);
	width: calc(274% + 1.3px);
	height: 253px;
	z-index: 3;
	pointer-events: none;
}

.pde-single .pde-curve svg {
	display: block;
	width: 100%;
	height: 100%;
	transform: rotate(180deg);
}

body.single-post .pde-curve-fill {
  fill: #ffffff;
}

/* Content layout */
body.single-post .pde-post-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

body.single-post .pde-post-content p {
  line-height: 1.75;
  margin: 0 0 16px;
}

body.single-post .pde-post-content h2.wp-block-heading,
body.single-post .pde-post-content h3.wp-block-heading {
  margin: 34px 0 14px;
}

body.single-post .pde-post-content ul,
body.single-post .pde-post-content ol {
  margin: 0 0 18px 22px;
}

body.single-post .pde-post-content img,
body.single-post .pde-post-content video,
body.single-post .pde-post-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Bullet points amarillos solo en posts */
body.single-post .pde-post-content ul li::marker {
  color: #f4d400;
}

@media (max-width: 767px) {
  body.single-post .pde-post-title {
    font-size: 28px;
    line-height: 28px;
  }
.pde-single .pde-curve {
	height: 67px;
}
}


/* RELATED POSTS */
body.single-post .pde-related {
	background: #ffffff;
	padding: 48px 0 64px;
}

body.single-post .pde-related__inner {
	margin: 0 auto;
}

body.single-post .pde-related__title {
	font-family: "Etna", Sans-serif;
	font-size: 32px;
	line-height: 38px;
	letter-spacing: 1.2px;
	margin-bottom: 40px;
}

body.single-post .pde-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

body.single-post .pde-related__card {
	background: #FFFFFF;
	box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    padding: 0px;
	overflow: hidden;
}

body.single-post .pde-related__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

body.single-post .pde-related__thumb {
	border-radius: 10px;
}
body.single-post .pde-related__thumb img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

body.single-post .pde-related__card-content {
	padding: 30px;
}

body.single-post .pde-related__card-title {
	font-family: "Etna", Sans-serif;
	font-size: 18px;
	line-height: 22px;
	letter-spacing: 1.2px;
	margin: 0 0 20px 0;
}

body.single-post .pde-related__excerpt {
	margin: 0 14px;
	font-size: 14px;
	line-height: 26px;
	color: #010101;
}

body.single-post .pde-related__card:hover .pde-related__thumb img {
	transform: scale(1.05) rotate(1.5deg);
	opacity: 0.97;
	transition: transform .4s ease;
}
body.single-post .pde-related__link:hover .pde-related__card-title, body.single-post .pde-related__link:hover .pde-related__btn {
	color: #f4d400!important;
	transition: all .4s ease;
}
/* BOTÓN "VER PLAN" */
body.single-post .pde-related__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Open Sans", Sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

body.single-post .pde-related__btn svg {
	width: 1em;
    height: 1em;
	fill: #f4d400; 
	margin-left: 10px;
    margin-top: 2px;
	transition: transform .2s ease;
}

/* Responsive */
@media (max-width: 1024px){
	body.single-post .pde-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
	body.single-post .pde-related__grid { grid-template-columns: 1fr; }
}