body {
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
}

.wp-block-buttons .wp-block-button__link {
    width: 100%;
    border-radius: 6px;
}

@media (min-width:679px) {
    .wpml-language-switcher-navigation-block {
        border: 2px solid;
        border-radius: 6px;
        padding: 0 8px 0 8px;
        transform: scale(0.9);
        transform-origin: left center;
    }
    .wpml-language-switcher-navigation-block ul,
    .wpml-language-switcher-navigation-block li {
        min-width: 50px!important;
    }
}
/* Libros Home */
@media screen and (min-width: 1024px) {
  .booker {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 480px; 
  }

  .booker .wp-block-image.izq img {
    position: absolute;
    top: 10px;
    left: 25%;
    width: auto;
    height: 440px;
    box-shadow: 0 8px 32px rgba(30,30,35,0.18), 0 1.5px 7px rgba(60,60,80,0.12);
    opacity: 0.96;
    transform: translateX(-60px) rotate(-8deg) scale(0.98);
    z-index: 2;
    transition:
      transform 0.7s cubic-bezier(0.77, 0, 0.175, 1),
      box-shadow 0.7s;
    will-change: transform, box-shadow;
    animation: abanico-izq 1.2s cubic-bezier(0.77, 0, 0.175, 1) 0.24s both;
  }

  .booker .wp-block-image.der img {
    position: absolute;
    top: 10px;
    left: 50%;
    width: auto;
    height: 440px;
    box-shadow: 0 8px 32px rgba(30,30,35,0.18), 0 1.5px 7px rgba(60,60,80,0.12);
    opacity: 0.96;
    transform: translateX(60px) rotate(9deg) scale(0.98);
    z-index: 1;
    transition:
      transform 0.7s cubic-bezier(0.77, 0, 0.175, 1),
      box-shadow 0.7s;
    will-change: transform, box-shadow;
    animation: abanico-der 1.25s cubic-bezier(0.77, 0, 0.175, 1) 0.4s both;
  }
    .booker .wp-block-image.izq img:hover {
    box-shadow: 0 18px 50px rgba(30,30,35,0.33), 0 6px 24px rgba(60,60,80,0.20);
    transform: translateX(-60px) rotate(-8deg) scale(1.04);
    opacity: 1;
  }

  .booker .wp-block-image.der img:hover {
    box-shadow: 0 18px 50px rgba(30,30,35,0.33), 0 6px 24px rgba(60,60,80,0.20);
    transform: translateX(60px) rotate(9deg) scale(1.04);
    opacity: 1;
  }
}



@media (max-width:600px) {
  .booker {
    flex-direction: row;
    height: auto;
    gap: 20px;
    align-items: end;
  }
  .booker img {
      filter: drop-shadow(2px 2px 4px #00000060);
      margin-bottom: 8px;
  }
  .booker .wp-block-image.izq img {
      transition:
      transform 0.7s cubic-bezier(0.77, 0, 0.175, 1),
      box-shadow 0.7s;
      will-change: transform, box-shadow;
      animation: abanico-izq 1.2s cubic-bezier(0.77, 0, 0.175, 1) 0.24s both;
  }
  .booker .wp-block-image.der img {
      transition:
      transform 0.7s cubic-bezier(0.77, 0, 0.175, 1),
      box-shadow 0.7s;
      will-change: transform, box-shadow;
      animation: abanico-der 1.25s cubic-bezier(0.77, 0, 0.175, 1) 0.4s both;
  }
}

  @keyframes abanico-izq {
    from {
      opacity: 0;
      transform: translateX(0) rotate(0) scale(0.93);
      box-shadow: 0 0px 9px rgba(30,30,35,0.14);
    }
    to {
      opacity: 0.96;
      transform: translateX(-60px) rotate(-8deg) scale(0.98);
      box-shadow: 0 8px 32px rgba(30,30,35,0.18), 0 1.5px 7px rgba(60,60,80,0.12);
    }
  }

  @keyframes abanico-der {
    from {
      opacity: 0;
      transform: translateX(0) rotate(0) scale(0.93);
      box-shadow: 0 0px 9px rgba(30,30,35,0.14);
    }
    to {
      opacity: 0.96;
      transform: translateX(60px) rotate(9deg) scale(0.98);
      box-shadow: 0 8px 32px rgba(30,30,35,0.18), 0 1.5px 7px rgba(60,60,80,0.12);
    }
  }


/* General */
@media (min-width:769px) {
    .lead {
        position: relative;
    }
    .lead::before {
        content: "";
        width: 6px;
        height: 100%;
        background: #555;
        position: absolute;
        left: -20px;
        border-radius: 4px;
    }
}

/* Menú */
.link-out::after,
.button-out a::after{
  content: "\2197";
  font-size: 0.65em;
  margin-left: 0.33em;
  vertical-align: middle;
  font-family: sans-serif;
  pointer-events: none;
}


/* Listado de entradas */
.wp-block-post-excerpt__more-link {
  display: inline-block;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  color: #322a1f;
  background: transparent;
  padding: 0.18em 1.1em 0.18em 0.7em;
  border-radius: 1.3em 0.5em 1.3em 0.5em;
  border: 1px solid rgba(80,70,55,0.14);
  box-shadow: 0 2px 10px -7px rgba(60,40,20,0.08);
  transition:
    color 0.24s cubic-bezier(.22,.61,.36,1),
    background 0.36s cubic-bezier(.22,.61,.36,1),
    border 0.36s,
    box-shadow 0.36s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.wp-block-post-excerpt__more-link::after {
  content: '';
  display: block;
  position: absolute;
  left: 0.8em;
  right: 0.8em;
  bottom: 0.37em;
  height: 2px;
  background: linear-gradient(90deg, #c9b998 0, #b7a57a 100%);
  border-radius: 1px;
  opacity: 0.25;
  transform: scaleX(0);
  transition: transform 0.36s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}

.wp-block-post-excerpt__more-link:hover,
.wp-block-post-excerpt__more-link:focus {
  color: #b48a3d;
  background: #f8f5ef;
  border-color: #b48a3d44;
  box-shadow: 0 3px 18px -8px rgba(180,138,61,0.22);
}

.wp-block-post-excerpt__more-link:hover::after,
.wp-block-post-excerpt__more-link:focus::after {
  transform: scaleX(1);
  opacity: 0.5;
}

/* Secciones */
.ds-wrapper {
  background: #fbfbfa;
  padding: 60px 10vw;
  border-radius: 6px;
  max-width: 1200px;
  margin: 5vh auto;
  animation: dsFadeIn 1s cubic-bezier(.12,.62,.37,1.31) forwards;
  opacity: 0;
}
.ds-title {
  font-size: 2.8rem;
  font-weight: 500;
  color: #181818;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.8px;
  animation: dsSlideFromBottom 1s 0.25s cubic-bezier(.18,.62,.43,1.24) forwards;
  opacity: 0;
}
.ds-intro {
  font-size: 1.25rem;
  color: #353542;
  text-align: center;
  margin-bottom: 48px;
  animation: dsFadeIn 1s 0.6s cubic-bezier(.12,.62,.37,1.31) forwards;
  opacity: 0;
}
.ds-columns {
  display: flex;
  gap: 48px;
  justify-content: center;
  animation: dsFadeIn 1s 0.9s cubic-bezier(.12,.62,.37,1.31) forwards;
  opacity: 0;
  flex-wrap: wrap;
}
.ds-card {
  background: #ece6dc;
  border-radius: 6px;
  padding: 32px 24px;
  width: min(320px,95vw);
  text-align: center;
  animation: dsZoomIn 1.3s 1.4s cubic-bezier(.13,.76,.38,1.12) forwards;
  opacity: 0;
}
@media (min-width: 769px) {
    .ds-card-img-top {
        position: relative;
        left: 16%;
        max-width: 200px;
        transform: rotate(0deg);
        filter: drop-shadow(2px 2px 4px #00000060);
        top: -60px;
        margin-bottom: -50px;
    }
    .ds-card .ds-card-img-top {
        transition: 0.5s;
    }
    .ds-card:hover .ds-card-img-top {
        transform: rotate(-5deg);
    }
}
@media (max-width: 768px) {
    .ds-card-img-top {
        max-width: 200px;
        margin: 0 auto 10px;
        filter: drop-shadow(2px 2px 4px #00000060);
    }
}

.ds-img img {
  border-radius: 100px;
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-bottom: 18px;
  animation: dsImgZoom 1s 1.7s cubic-bezier(.09, .86, .61, 1.12) forwards;
  opacity: 0;
}
.ds-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 9px;
  letter-spacing: -0.5px;
  animation: dsFadeIn 1.2s 2s cubic-bezier(.12,.62,.37,1.31) forwards;
  opacity: 0;
}
.ds-txt {
  color: #524f41;
  font-size: 1rem;
  text-align: center;
  line-height: 1.5;
  animation: dsFadeIn 1.2s 2.3s cubic-bezier(.12,.62,.37,1.31) forwards;
  opacity: 0;
}
/* ----- Apartado CTA ----- */
.ds-cta {
  margin-top: 60px;
  padding: 36px 24px;
  background: #ece6dc;
  border-radius: 6px;
  animation: dsFadeIn 1.2s 2.6s cubic-bezier(.12,.62,.37,1.31) forwards;
  opacity: 0;
}
.ds-cta-title {
  font-size: 1.4rem;
  color: #463a1c;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 600;
}
.ds-cta-txt {
  color: #505036;
  text-align: center;
  font-size: 1.02rem;
  margin-bottom: 18px;
}
.ds-cta-btn .wp-block-button__link {
  //background-color: #a18062;
  //color: #fff;
  border-radius: 6px;
  padding: 11px 32px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: background .23s;
  animation: dsFadeIn 1.2s 2.9s cubic-bezier(.12,.62,.37,1.31) forwards;
  opacity: 0;
  box-shadow: none;
}
.ds-cta-btn .wp-block-button__link:hover {
  //background-color: #b3937a;
  //color: #fff;
}

/* ----- Keyframes animaciones ----- */
@keyframes dsFadeIn {
  100% { opacity: 1; }
}
@keyframes dsSlideFromBottom {
  0%   { opacity: 0; transform: translateY(40px);}
  100% { opacity: 1; transform: translateY(0);}
}
@keyframes dsZoomIn {
  0%   { opacity: 0; transform: scale(0.95);}
  100% { opacity: 1; transform: scale(1);}
}
@keyframes dsImgZoom {
  0%   { opacity: 0; transform: scale(0.85);}
  100% { opacity: 1; transform: scale(1);}
}

/* ----- Responsive ----- */
@media (max-width: 700px) {
  .ds-wrapper {
    padding: 28px 2vw;
    border-radius: 6px;
  }
  .ds-title {
    font-size: 2rem;
    margin-bottom: 13px;
  }
  .ds-intro {
    font-size: 1.06rem;
    margin-bottom: 28px;
  }
  .ds-columns {
    flex-direction: column;
    gap: 26px;
    align-items: center;
  }
  .ds-card {
    width: 98vw;
    max-width: 350px;
    padding: 18px 10px;
    border-radius: 6px;
  }
  .ds-img img {
    width: 90px;
    height: 90px;
    margin-bottom: 12px;
  }
  .ds-cta {
    padding: 22px 4vw;
    margin-top: 38px;
    border-radius: 6px;
  }
  .ds-cta-title {
    font-size: 1.15rem;
  }
  .ds-cta-txt {
    font-size: 0.98rem;
  }
  .ds-cta-btn .wp-block-button__link {
    padding: 9px 20px;
    font-size: 0.98rem;
    border-radius: 6px;
  }
}

/* En Medios */
.ds-section { margin-bottom: 20px; }
.ds-media-list, .ds-media-list-small {
  list-style: none;
  padding: 0;
  margin: 0 0 0 0;
}
.ds-media-list li {
  padding: 18px 0 6px;
  border-bottom: 1px solid #b2a17b;
  margin-bottom: 0;
}
.ds-media-list li:last-child {
  border-bottom: none;
}
.ds-media-meta {
  font-size: 0.7em;
  color: #87806d;
  display: block;
  letter-spacing: 0.03em;
}
.ds-section-separator {
  border: none;
  border-top: 2px solid #e6ddce;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.ds-section-title {
  font-weight: 700; 
  color: #463a1c;
  margin-bottom: 12px;
}
.ds-media-list-small li {
  padding: 10px 0 10px 0;
  font-size: 1em;
}

/* En Editorial */
.ds-columns {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.ds-card-block {
  background: #fbfbfb;
  border-radius: 6px;
  padding: 36px 30px 32px 30px;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  animation: dsZoomIn 1.15s cubic-bezier(.13,.76,.38,1.12) forwards;
  opacity: 0;
  box-shadow: none;
  transition: border-color 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.max-100 {
  max-width: 100%!important;
}

.ds-card-block[style*="max-width:500px"] {
  max-width: 500px;
}

.ds-card-block h2 {
  font-size: 1.27rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 0;
}

.ds-card-block p {
  color: #5c5447;
  font-size: 1.07rem;
  margin-bottom: 16px;
  margin-top: 0;
}

.ds-card-block .wp-block-buttons {
  margin-top: 18px;
}

.ds-card-block .wp-block-button__link {
  //background: #a18062;
  //color: #fff;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 10px 28px;
  transition: background 0.2s;
}

.ds-card-block .wp-block-button__link:hover {
  //background: #b3937a;
  //color: #fff;
}

@media (max-width: 900px) {
  .ds-columns {
    flex-direction: column;
    gap: 22px;
    align-items: center;
  }
  .ds-card-block {
    max-width: 97vw;
    padding: 22px 5vw 22px 5vw;
  }
}

/* Blog */
.ds-blog-grid.wp-block-latest-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px 32px;
  margin-top: 32px;
}

.ds-blog-grid .wp-block-latest-posts__featured-image img {
  border-radius: 8px 8px 0 0;
  object-fit: cover;
  width: 100%;
  max-height: 210px;
}

.ds-blog-grid li {
  list-style: none;
  background: transparent;
  border-radius: 6px;
  padding: 0 0 22px 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .5s;
  opacity: 0;
  animation: dsZoomIn 0.7s cubic-bezier(.13,.76,.38,1.1) forwards;
}

.ds-blog-grid li:hover {
    background: #fbfbfb;
  //box-shadow: 0 12px 36px -10px rgba(50, 40, 20, 0.12);
}

.ds-blog-grid .wp-block-latest-posts__list-item {
  margin: 0;
}

.ds-blog-grid .wp-block-latest-posts__post-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #181818;
  margin: 18px 24px 5px 24px;
  text-align: left;
  text-decoration: none;
  display: block;
}

.ds-blog-grid .wp-block-latest-posts__post-date {
  font-size: 0.98rem;
  color: #786e5a;
  margin: 0 24px 10px 24px;
}

.ds-blog-grid .wp-block-latest-posts__post-author {
  font-size: 0.97rem;
  margin: 0 24px 8px 24px;
  color: #918162;
}

.ds-blog-grid .wp-block-latest-posts__excerpt {
  font-size: 1rem;
  color: #483d29;
  margin: 0 24px 10px 24px;
}

@media (max-width:650px){
  .ds-blog-grid.wp-block-latest-posts{
    grid-template-columns: 1fr;
    gap: 22px 0;
  }
}

/* Contacto */
.ds-contact-list {
  margin: 0 0 18px 0;
  padding-left: 0;
  list-style: none;
  text-align: center;
  font-size: 1.09rem;
  color: #5c5447;
}

.ds-contact-list li {
  margin-bottom: 9px;
}

.ds-contact-list a {
  color: #a18062;
  text-decoration: underline dotted;
}

/* Donde comprar */
.ds-buy-quote {
  border-left: 3px solid #a18062 !important;
  background: #faf8f3;
  border-radius: 6px;
  margin: 24px 0 0 0;
}

.ds-buy-quote p {
  font-size: 1.04rem;
  color: #57492f;
  margin: 0;
}

.ds-buy-gallery {
  margin-top: 18px !important;
  margin-bottom: 0 !important;
  gap: 16px;
}
.ds-buy-gallery img {
  border-radius: 8px;
  box-shadow: 0 4px 16px -8px rgba(50,40,20,0.10);
  object-fit: cover;
}

/* --- Menu --- */
@media screen and (min-width: 1024px) {
  .wp-block-navigation {
    z-index: 3;
  }

  .wp-block-navigation .wp-block-navigation__submenu-container {
    background: #fbfbfa;
    border: 1px solid rgba(80, 70, 55, 0.14);
    border-radius: 6px;
    box-shadow: 0 6px 22px -6px rgba(50,40,20,0.15);
    padding: 8px;
    min-width: 250px;
    animation: dsMenuFade 0.28s cubic-bezier(.22,.61,.36,1) both;
    transform-origin: top;
    z-index: 9999;
  }

  .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    display: block;
    padding: 0.55em 1.1em;
    color: #463a1c;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.25s ease;
    border-radius: 4px;
  }

  .wp-block-navigation__submenu-container 
  .wp-block-navigation-item__content:hover,
  .wp-block-navigation__submenu-container 
  .wp-block-navigation-item__content:focus {
    background: #f8f5ef;
    color: #a18062;
    box-shadow: inset 0 0 0 1px #a1806233;
  }

  .wp-block-navigation__responsive-container.is-menu-open 
  .wp-block-navigation__submenu-container 
  .wp-block-navigation-item__content {
    padding-left: 1.5rem;
    border-radius: 4px;
  }

  .wp-block-navigation__submenu-icon svg {
    width: 14px;
    height: 14px;
    transform: rotate(0deg);
    transition: transform .25s ease;
  }

  .has-child.is-open > .wp-block-navigation__submenu-icon svg {
    transform: rotate(90deg);
    fill: #a18062;
  }

  @keyframes dsMenuFade {
    0% { 
      opacity: 0; 
      transform: translateY(8px) scale(0.98);
    }
    100% { 
      opacity: 1; 
      transform: translateY(0) scale(1);
    }
  }
}


/* Blog */
.blog-listado li {
  list-style: none;
  background: transparent;
  border-radius: 6px;
  padding: 0 20px 20px 20px;
  box-shadow: none;
  overflow: hidden;
  /*display: flex;
  flex-direction: column;*/
  transition: .5s;
  opacity: 0;
  animation: dsZoomIn 0.7s cubic-bezier(.13,.76,.38,1.1) forwards;
}

.blog-listado li:hover {
    background: #fbfbfb;
}

:root :where(.wp-block-query-pagination a:where(:not(.wp-element-button))) {
    border-radius: 8px;
}