/**
 * Bridge: force Elementor + Hello to match the HTML prototype (web/assets/css/main.css).
 * Loaded AFTER Hello/Elementor so it wins specificity where needed.
 */

/* ---- Desktop width = prototype .container (1200px) ---- */
body.theme-paco-de-lola {
  --pdl-max: 1200px;
  --pdl-gutter: 1.25rem;
}

body.theme-paco-de-lola .e-con-boxed,
body.theme-paco-de-lola .e-con.e-con--boxed,
body.theme-paco-de-lola .pdl-hero,
body.theme-paco-de-lola .pdl-section-soft,
body.theme-paco-de-lola .pdl-values,
body.theme-paco-de-lola .pdl-portfolio,
body.theme-paco-de-lola .pdl-container,
body.theme-paco-de-lola .pdl-site-header-bar,
body.theme-paco-de-lola .pdl-site-footer,
body.theme-paco-de-lola .pdl-site-footer-bottom,
body.theme-paco-de-lola .pdl-estudio-split,
body.theme-paco-de-lola .pdl-contact-grid {
  --container-max-width: var(--pdl-max) !important;
  max-width: var(--pdl-max) !important;
  width: min(100% - (var(--pdl-gutter) * 2), var(--pdl-max)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Full-bleed backgrounds: soft section stretches edge-to-edge, content stays boxed */
body.theme-paco-de-lola .pdl-section-soft {
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
  padding-left: max(var(--pdl-gutter), calc((100% - var(--pdl-max)) / 2)) !important;
  padding-right: max(var(--pdl-gutter), calc((100% - var(--pdl-max)) / 2)) !important;
}

body.theme-paco-de-lola .pdl-site-header-wrap {
  max-width: none !important;
  width: 100% !important;
}

body.theme-paco-de-lola .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--pdl-max) !important;
}

/* Páginas legales / contenido WP (Adapta RGPD): mismo ancho que el resto */
body.theme-paco-de-lola .pdl-main--boxed,
body.theme-paco-de-lola .pdl-main--legal {
  width: min(100% - (var(--pdl-gutter) * 2), var(--pdl-max)) !important;
  max-width: var(--pdl-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 3.5rem 0 5rem;
  box-sizing: border-box;
}

body.theme-paco-de-lola .pdl-main--legal .elementor,
body.theme-paco-de-lola .pdl-main--legal .elementor-section,
body.theme-paco-de-lola .pdl-main--legal .elementor-container,
body.theme-paco-de-lola .pdl-main--legal .e-con,
body.theme-paco-de-lola .pdl-main--legal .e-con-boxed,
body.theme-paco-de-lola .pdl-main--legal .e-con-full {
  max-width: 100% !important;
  width: 100% !important;
  --container-max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.theme-paco-de-lola .pdl-main--legal,
body.theme-paco-de-lola .pdl-main--boxed {
  font-family: "Manrope", sans-serif;
  color: #1a1a1a;
  line-height: 1.65;
}

body.theme-paco-de-lola .pdl-main--legal h1,
body.theme-paco-de-lola .pdl-main--boxed h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

body.theme-paco-de-lola .pdl-main--legal h2,
body.theme-paco-de-lola .pdl-main--boxed h2,
body.theme-paco-de-lola .pdl-main--legal h3,
body.theme-paco-de-lola .pdl-main--boxed h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  margin: 2rem 0 0.85rem;
}

body.theme-paco-de-lola .pdl-main--legal p,
body.theme-paco-de-lola .pdl-main--boxed p,
body.theme-paco-de-lola .pdl-main--legal li,
body.theme-paco-de-lola .pdl-main--boxed li {
  color: #4a4a4a;
}

body.theme-paco-de-lola .pdl-main--legal a,
body.theme-paco-de-lola .pdl-main--boxed a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Fallback por slug (por si el contenido va fuera del main) */
body.page-aviso-legal #content,
body.page-cookies #content,
body.page-privacidad #content,
body.page-politica-de-privacidad #content,
body.page-politica-de-cookies #content {
  width: min(100% - 2.5rem, 1200px) !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.theme-paco-de-lola,
body.theme-paco-de-lola .elementor {
  font-family: "Manrope", sans-serif !important;
  color: #1a1a1a;
  background-color: #fafafa;
}

body.theme-paco-de-lola .elementor-heading-title,
body.theme-paco-de-lola h1,
body.theme-paco-de-lola h2,
body.theme-paco-de-lola h3,
body.theme-paco-de-lola .pdl-display {
  font-family: "Syne", sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Kill Hello Elementor default site header/footer chrome when present */
body.theme-paco-de-lola .site-header:not(.pdl-site-header):not(.pdl-fallback-header) .site-branding,
body.theme-paco-de-lola header.site-header:not(.pdl-site-header):not(.pdl-fallback-header) {
  display: none !important;
}

body.theme-paco-de-lola footer:not(.pdl-site-footer):not(.pdl-fallback-footer):not(.elementor-location-footer) > .footer-inner {
  display: none !important;
}

/* Hide Hello page title above Elementor content */
body.theme-paco-de-lola .page-header,
body.theme-paco-de-lola .entry-title.main,
body.theme-paco-de-lola h1.entry-title {
  display: none !important;
}

/* Elementor buttons → prototype link-arrow look (CTA) */
body.theme-paco-de-lola .elementor-button-wrapper .elementor-button,
body.theme-paco-de-lola .pdl-cta .elementor-button {
  background: transparent !important;
  color: #1a1a1a !important;
  border: none !important;
  border-bottom: 1px solid #1a1a1a !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.15rem 0 !important;
  min-height: 0 !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  fill: #1a1a1a;
}

body.theme-paco-de-lola .elementor-button-wrapper .elementor-button:hover,
body.theme-paco-de-lola .pdl-cta .elementor-button:hover {
  background: transparent !important;
  color: #1a1a1a !important;
  opacity: 0.75;
}

/* Header nav buttons: no underline bar, compact */
body.theme-paco-de-lola .pdl-site-header .elementor-button,
body.theme-paco-de-lola .pdl-header-nav .elementor-button {
  border-bottom: none !important;
  letter-spacing: 0.12em !important;
  font-size: 0.78rem !important;
  padding: 0.35rem 0.25rem !important;
}

body.theme-paco-de-lola .pdl-site-header .elementor-button:hover {
  opacity: 1;
  border-bottom: 1px solid currentColor !important;
}

/* Containers */
body.theme-paco-de-lola .elementor-element {
  --border-radius: 0;
}

body.theme-paco-de-lola .elementor-widget-image img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Hero / section helpers from layouts */
.pdl-hero,
.pdl-section-soft,
.pdl-values,
.pdl-portfolio,
.pdl-site-header,
.pdl-site-footer {
  --e-global-color-primary: #1a1a1a;
}

.pdl-section-soft {
  background-color: #f3f3f1;
}

.pdl-values .elementor-element {
  border-color: #e2e2de !important;
}

/* Sticky header like prototype */
.pdl-site-header,
.elementor-location-header .pdl-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e2de;
}

.pdl-site-header .elementor-widget-image img {
  height: 2.35rem !important;
  width: auto !important;
  max-width: 220px;
  object-fit: contain;
}

/* Fallback PHP header/footer (when Theme Builder missing) */
.pdl-fallback-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 4.5rem;
  display: flex;
  align-items: center;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e2de;
}

.pdl-fallback-header__inner,
.pdl-fallback-footer__inner {
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pdl-fallback-header .pdl-logo img {
  height: 2.35rem;
  width: auto;
}

.pdl-fallback-nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
}

.pdl-fallback-nav a {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1a1a;
}

@media (min-width: 900px) {
  .pdl-fallback-nav {
    display: flex;
  }
}

.pdl-fallback-footer {
  border-top: 1px solid #e2e2de;
  padding: 5rem 0 3rem;
  margin-top: 5rem;
  background: #fafafa;
}

.pdl-fallback-footer__grid {
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
  display: grid;
  gap: 3rem;
}

@media (min-width: 800px) {
  .pdl-fallback-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.pdl-fallback-footer__quote {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.35;
  font-weight: 600;
  margin: 0;
}

.pdl-fallback-footer h3 {
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.pdl-fallback-footer p,
.pdl-fallback-footer a {
  color: #4a4a4a;
  margin: 0 0 0.35rem;
  text-decoration: none;
  font-size: 0.95rem;
}

.pdl-fallback-footer__bottom {
  width: min(100% - 2.5rem, 1200px);
  margin: 3rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid #e2e2de;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #7a7a7a;
}

.pdl-fallback-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.pdl-fallback-footer__legal a {
  color: #7a7a7a;
}

/* Form Pro: square corners */
body.theme-paco-de-lola .elementor-field-group input,
body.theme-paco-de-lola .elementor-field-group textarea,
body.theme-paco-de-lola .elementor-field-group select {
  border-radius: 0 !important;
  border-color: #e2e2de !important;
  font-family: "Manrope", sans-serif !important;
}

body.theme-paco-de-lola .elementor-button[type="submit"],
body.theme-paco-de-lola .elementor-form .elementor-button {
  background: #1a1a1a !important;
  color: #fff !important;
  border: 1px solid #1a1a1a !important;
  border-radius: 0 !important;
  padding: 0.75rem 1.5rem !important;
}

body.theme-paco-de-lola .elementor-form .elementor-button:hover {
  background: transparent !important;
  color: #1a1a1a !important;
}

/* Projects grid — same as web/.project-grid */
.pdl-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  .pdl-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .pdl-projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1rem;
  }
}

.pdl-projects-grid .pdl-project-card {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.pdl-projects-grid .pdl-project-card__media {
  overflow: hidden;
  background: #f3f3f1;
  margin-bottom: 0.75rem;
}

.pdl-projects-grid .pdl-project-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.pdl-projects-grid .pdl-project-card:hover .pdl-project-card__media img {
  transform: scale(1.04);
}

.pdl-projects-grid .pdl-project-card__title {
  font-family: "Syne", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em;
  margin: 0 0 0.2rem !important;
  line-height: 1.2 !important;
}

.pdl-projects-grid .pdl-project-card__cat {
  margin: 0;
  color: #7a7a7a;
  font-size: 0.85rem;
}

/* Hide legacy Elementor flex cards if any remain */
.pdl-project-cards {
  display: none !important;
}

/* Mobile nav toggle — sin rosa Hello / Elementor */
.pdl-nav-toggle,
.pdl-header-burger .pdl-nav-toggle,
.pdl-header-burger button {
  display: inline-flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem !important;
  height: 2.75rem !important;
  min-width: 2.75rem;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: #1a1a1a !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.pdl-header-burger,
.pdl-header-burger.elementor-widget,
.pdl-header-burger .elementor-widget-container,
.pdl-header-burger .elementor-widget-html {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.pdl-nav-toggle:hover,
.pdl-nav-toggle:focus,
.pdl-nav-toggle:focus-visible,
.pdl-nav-toggle:active,
.pdl-nav-toggle[aria-expanded="true"],
.pdl-header-burger:hover,
.pdl-header-burger:focus-within,
.pdl-header-burger .elementor-widget-container:hover {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #1a1a1a !important;
  outline: none !important;
  filter: none !important;
}

.pdl-nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: #1a1a1a !important;
  border-radius: 1px;
  transition: transform 0.28s var(--pdl-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    opacity 0.2s ease;
  transform-origin: center;
}

.pdl-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.pdl-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.pdl-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 900px) {
  .pdl-nav-toggle {
    display: none !important;
  }
}

/* Overlay menú móvil: negro a pantalla completa */
.pdl-fallback-nav-mobile,
.pdl-el-nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 180;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 5.5rem 1.75rem 2.5rem;
  box-sizing: border-box;
  background: #111111 !important;
  border: 0 !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pdl-fallback-nav-mobile.is-open,
.pdl-el-nav-mobile.is-open {
  display: flex !important;
}

.pdl-fallback-nav-mobile a,
.pdl-el-nav-mobile a {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.55rem, 7vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  text-decoration: none;
  color: #fafafa !important;
  width: 100%;
  padding: 0.35rem 0;
  transition: opacity 0.2s ease;
}

.pdl-fallback-nav-mobile a:hover,
.pdl-el-nav-mobile a:hover,
.pdl-fallback-nav-mobile a:focus,
.pdl-el-nav-mobile a:focus {
  color: #fff !important;
  opacity: 0.72;
  background: transparent !important;
}

body.pdl-nav-open {
  overflow: hidden !important;
}

body.pdl-nav-open .pdl-site-header,
body.pdl-nav-open .pdl-site-header-wrap,
body.pdl-nav-open .pdl-fallback-header,
body.pdl-nav-open .pdl-header-burger {
  position: relative;
  z-index: 190;
}

body.pdl-nav-open .pdl-site-header-bar,
body.pdl-nav-open .pdl-fallback-header {
  background: #fafafa !important;
}

/* ========== RESPONSIVE FIXES (Elementor + prototype) ========== */
html {
  overflow-x: clip;
}

body.theme-paco-de-lola {
  overflow-x: clip;
}

body.theme-paco-de-lola .elementor-section,
body.theme-paco-de-lola .e-con-inner {
  max-width: 100%;
  box-sizing: border-box;
}

/* Header: desktop nav / burger */
.pdl-header-burger {
  display: none !important;
}

.pdl-el-nav-mobile:not(.is-open),
.pdl-fallback-nav-mobile:not(.is-open) {
  display: none !important;
}

@media (max-width: 899px) {
  .pdl-header-nav {
    display: none !important;
  }

  .pdl-header-burger {
    display: block !important;
    width: auto !important;
    flex: 0 0 auto !important;
    background: transparent !important;
  }

  .pdl-header-burger.elementor-widget,
  .pdl-header-burger .elementor-widget-container {
    background: transparent !important;
    box-shadow: none !important;
  }

  .pdl-site-header-bar.e-con,
  .pdl-site-header-bar > .e-con-inner {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }

  .pdl-site-header .elementor-widget-image img,
  .pdl-site-header-bar .elementor-widget-image img {
    max-width: 140px !important;
    height: 2rem !important;
  }

  .pdl-header-mobile-panel {
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
  }

  .pdl-header-mobile-panel .elementor-widget-container,
  .pdl-header-mobile-panel .elementor-shortcode {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }
}

@media (min-width: 900px) {
  .pdl-header-burger,
  .pdl-header-mobile-panel,
  .pdl-el-nav-mobile,
  .pdl-fallback-nav-mobile {
    display: none !important;
  }

  .pdl-header-nav {
    display: flex !important;
  }

  .pdl-lang-desktop {
    display: flex !important;
    align-items: center !important;
    margin-left: 0.5rem;
  }

  .pdl-lang-mobile {
    display: none !important;
  }
}

/* GTranslate flags */
.pdl-lang-desktop {
  display: none;
}

.pdl-lang-switcher,
.pdl-lang-switcher .gtranslate_wrapper,
.pdl-lang-switcher .gt_container,
.pdl-lang-switcher .gt_float_switcher,
.pdl-lang-switcher .gt_switcher {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
}

.pdl-lang-switcher img,
.pdl-lang-switcher a img {
  width: 22px !important;
  height: auto !important;
  display: block;
  border-radius: 2px;
}

.pdl-lang-mobile {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.pdl-lang-mobile .gtranslate_wrapper,
.pdl-lang-mobile .gt_container,
.pdl-lang-mobile .gt_switcher {
  justify-content: flex-start;
}

/* Stack Elementor rows marked with PDL classes */
@media (max-width: 1024px) {
  .pdl-hero.e-con,
  .pdl-hero > .e-con-inner,
  .pdl-section-soft.e-con,
  .pdl-section-soft > .e-con-inner,
  .pdl-values.e-con,
  .pdl-values > .e-con-inner,
  .pdl-site-footer.e-con,
  .pdl-site-footer > .e-con-inner,
  .pdl-site-footer-bottom.e-con,
  .pdl-site-footer-bottom > .e-con-inner,
  .pdl-estudio-split.e-con,
  .pdl-estudio-split > .e-con-inner,
  .pdl-contact-grid.e-con,
  .pdl-contact-grid > .e-con-inner {
    flex-direction: column !important;
    --flex-direction: column !important;
    align-items: stretch !important;
  }

  .pdl-hero.e-con > .e-con,
  .pdl-hero > .e-con-inner > .e-con,
  .pdl-section-soft.e-con > .e-con,
  .pdl-section-soft > .e-con-inner > .e-con,
  .pdl-values.e-con > .e-con,
  .pdl-values > .e-con-inner > .e-con,
  .pdl-site-footer.e-con > .e-con,
  .pdl-site-footer > .e-con-inner > .e-con,
  .pdl-estudio-split.e-con > .e-con,
  .pdl-estudio-split > .e-con-inner > .e-con,
  .pdl-contact-grid.e-con > .e-con,
  .pdl-contact-grid > .e-con-inner > .e-con,
  .pdl-value-col.e-con,
  .pdl-project-card-el.e-con {
    width: 100% !important;
    max-width: 100% !important;
    --width: 100% !important;
    flex: 0 0 auto !important;
  }

  .pdl-hero {
    min-height: 0 !important;
    --min-height: 0px !important;
  }

  .pdl-values .pdl-value-col,
  .pdl-values .e-con {
    border-right: none !important;
    border-bottom: 1px solid #e2e2de !important;
  }

  .pdl-values .e-con:last-child,
  .pdl-values .pdl-value-col:last-child {
    border-bottom: none !important;
  }

  .pdl-project-cards.e-con,
  .pdl-project-cards > .e-con-inner {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 1.25rem !important;
  }

  .pdl-project-card-el.e-con {
    width: calc(50% - 0.75rem) !important;
    --width: calc(50% - 0.75rem) !important;
  }

  body.theme-paco-de-lola .elementor-heading-title {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  body.theme-paco-de-lola .elementor-widget-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 70vh;
    object-fit: cover;
  }

  .pdl-hero-media .elementor-widget-image img {
    max-height: 50vh;
  }
}

@media (max-width: 767px) {
  .pdl-project-card-el.e-con {
    width: 100% !important;
    --width: 100% !important;
  }

  body.theme-paco-de-lola .elementor-heading-title.elementor-size-default,
  body.theme-paco-de-lola h1.elementor-heading-title {
    font-size: clamp(1.65rem, 7vw, 2rem) !important;
  }

  body.theme-paco-de-lola h2.elementor-heading-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem) !important;
  }

  .pdl-filters {
    gap: 0.4rem;
  }

  .pdl-filters a,
  .pdl-filters button {
    padding: 0.45rem 0.7rem;
    font-size: 0.68rem;
  }

  .pdl-projects-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .pdl-meta-list > div {
    grid-template-columns: 1fr !important;
    gap: 0.25rem !important;
  }

  .pdl-gallery {
    grid-template-columns: 1fr !important;
  }

  .pdl-fallback-footer {
    padding: 3rem 0 2rem;
    margin-top: 3rem;
  }

  body.theme-paco-de-lola .elementor-element {
    --padding-top: unset;
  }
}

@media (min-width: 640px) and (max-width: 999px) {
  .pdl-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1000px) {
  .pdl-projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.75rem 1rem !important;
  }

  .pdl-project-card-el.e-con {
    width: calc(33.333% - 0.75rem) !important;
    --width: calc(33.333% - 0.75rem) !important;
  }
}

/* Single proyecto — ficha 1:1 (texto | metadatos) */
body.theme-paco-de-lola .project-meta-grid,
.elementor-shortcode .project-meta-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2.5rem !important;
  width: 100% !important;
  margin: 0 !important;
  align-items: start !important;
}

@media (min-width: 900px) {
  body.theme-paco-de-lola .project-meta-grid,
  .elementor-shortcode .project-meta-grid {
    grid-template-columns: 1.4fr 0.8fr !important;
    gap: 3rem !important;
  }
}

body.theme-paco-de-lola .project-copy p {
  color: var(--pdl-ink-soft, #3a3a36);
  margin: 0 0 1rem;
}

body.theme-paco-de-lola .meta-list,
body.theme-paco-de-lola .pdl-meta-list,
.elementor-shortcode .meta-list,
.elementor-shortcode .pdl-meta-list {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--pdl-line, #e2e2de) !important;
  width: 100% !important;
}

body.theme-paco-de-lola .meta-list > div,
body.theme-paco-de-lola .pdl-meta-list > div,
.elementor-shortcode .meta-list > div,
.elementor-shortcode .pdl-meta-list > div {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 1rem !important;
  padding: 0.85rem 0 !important;
  border-bottom: 1px solid var(--pdl-line, #e2e2de) !important;
  font-size: 0.95rem !important;
}

body.theme-paco-de-lola .meta-list dt,
body.theme-paco-de-lola .pdl-meta-list dt {
  font-size: 0.72rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--pdl-muted, #6b6b66) !important;
  margin: 0 !important;
}

body.theme-paco-de-lola .meta-list dd,
body.theme-paco-de-lola .pdl-meta-list dd {
  margin: 0 !important;
  text-align: right !important;
}

body.theme-paco-de-lola .gallery,
body.theme-paco-de-lola .pdl-gallery,
.elementor-shortcode .gallery {
  display: grid !important;
  gap: 1rem !important;
  grid-template-columns: 1fr !important;
  margin-top: 0 !important;
  width: 100% !important;
}

@media (min-width: 700px) {
  body.theme-paco-de-lola .gallery,
  body.theme-paco-de-lola .pdl-gallery,
  .elementor-shortcode .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

body.theme-paco-de-lola .gallery img,
body.theme-paco-de-lola .pdl-gallery img {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  display: block !important;
}
