@charset "UTF-8";
/*
Theme Name: López y Tena
Theme URI:
Author: Baética Digital
Author URI:
Description: Tema a medida realizado por Baética Digital y diseñado por Buenaventura Studio
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version:
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lopezytena
Tags:
*/
*,
*::before,
*::after {
  box-sizing: border-box;
  background-repeat: no-repeat;
}

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

[style*="text-decoration:underline"],
[style*="text-decoration: underline"] {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
}

chrome_annotation[style] {
  text-decoration: none !important;
  border-bottom: none !important;
  border-bottom-width: 0px !important;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* Theme spacing presets */
:root {
  --wp--preset--spacing--display-100-170: 100px;
}

@media (min-width: 782px) {
  :root {
    --wp--preset--spacing--display-100-170: 170px;
  }
}
/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* Gap imposible de manejar en móvil */
@media (max-width: 781.9px) {
  :root :where(.is-layout-grid) {
    gap: 10px !important;
  }
}

/* Footer */
footer.wp-block-template-part {
  margin-block-start: 120px !important;
  padding-top: 20px;
  padding-bottom: 20px;
  position: relative;
}
@media (max-width: 1199.9px) {
  footer.wp-block-template-part .c-footer__main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}
@media (max-width: 1199.9px) {
  footer.wp-block-template-part .c-footer__legal {
    justify-content: flex-start;
  }
}
@media (min-width: 768px) and (max-width: 1399.9px) {
  footer.wp-block-template-part .c-footer__legal {
    grid-column: span 6 !important;
  }
}
@media (max-width: 781.9px) {
  footer.wp-block-template-part .c-footer__logo {
    position: absolute;
    bottom: 0;
    right: 0;
  }
  footer.wp-block-template-part .c-footer__logo img[style] {
    width: 33px !important;
    height: 20px !important;
  }
}
@media (max-width: 1199.9px) {
  footer.wp-block-template-part .c-footer__menu--legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}
@media (min-width: 768px) and (max-width: 1399.9px) {
  footer.wp-block-template-part .c-footer__menu--legal {
    gap: 5px 12px;
  }
}
@media (max-width: 781.9px) {
  footer.wp-block-template-part .c-footer__spacer {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1399.9px) {
  footer.wp-block-template-part .c-footer__spacer {
    grid-column: span 2 !important;
  }
}
@media (max-width: 781.9px) {
  footer.wp-block-template-part .c-footer__wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
  }
}

@media (max-width: 781.9px) {
  .c-grid__item--full-mobile {
    grid-column: 1/-1;
  }
}
@media (max-width: 781.9px) {
  .c-grid__spacer {
    display: none;
  }
}

.is-layout-grid > * {
  min-width: 0;
  min-height: 0;
}

.c-news-card {
  text-decoration: none;
  display: block;
  min-width: 0;
  min-height: 0;
}
.c-news-card__meta {
  margin-bottom: 8px;
}
.c-news-card__image {
  padding-top: 138.8888888889%;
  position: relative;
}
.c-news-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  max-height: none;
}
.c-news-card__title {
  font-weight: 400;
  margin-top: 15px;
}
.c-news-card--post .c-news-card__content {
  background-color: var(--wp--preset--color--custom-gray);
  overflow: hidden;
  aspect-ratio: 324/450;
}
.c-news-card--post .c-news-card__title {
  margin: 0;
  padding: 15px 10px;
}
.c-news-card--post .c-news-card__title span {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.c-news-card--external .c-news-card__image {
  background-color: var(--wp--preset--color--custom-gray);
}

@media (max-width: 781.9px) {
  .c-section--two .c-section__header, .c-section--two .c-section__content {
    grid-column: 1/-1;
  }
}
@media (max-width: 781.9px) {
  .c-section--two .c-section__header {
    order: 1;
    margin-top: 60px;
    margin-bottom: calc(60px - var(--wp--style--block-gap));
  }
}
@media (min-width: 782px) and (max-width: 1249.9px) {
  .c-section--two .c-section__header {
    display: flex;
    flex-direction: column;
  }
}
@media (max-width: 781.9px) {
  .c-section--two .c-section__content {
    order: 2;
  }
}
@media (max-width: 781.9px) {
  .c-section__spacer {
    display: none;
  }
}

header.wp-block-template-part {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 499;
  background-color: var(--wp--preset--color--custom-white);
}
@media (max-width: 781.9px) {
  header.wp-block-template-part .is-nowrap[style] {
    padding-top: 15px !important;
    padding-bottom: 5px !important;
  }
}
header.wp-block-template-part p {
  position: relative;
  z-index: 100001;
}
@media (max-width: 781.9px) {
  header.wp-block-template-part [rel=home] {
    font-size: var(--wp--preset--font-size--custom-heading-2) !important;
  }
}
header.wp-block-template-part .wp-block-navigation__responsive-container .wp-block-navigation__responsive-dialog {
  margin-top: 0px !important;
}
header.wp-block-template-part .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
  height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
header.wp-block-template-part .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
  text-align: center;
  font-size: clamp(50px, 3.125rem + (1vw - 3.2px) * -0.536, 44px) !important;
}
header.wp-block-template-part .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-close {
  top: 6px !important;
}
header.wp-block-template-part .wp-block-navigation__responsive-container ul.wp-block-navigation__container {
  justify-content: center !important;
  align-items: center !important;
}

body {
  margin-top: calc(var(--header-height, 86px));
}

body.single-proyecto--serif .entry-content .has-lt-studio-serif-font-family,
body.single-proyecto--serif .editor-visual-editor .has-lt-studio-serif-font-family {
  font-family: var(--wp--preset--font-family--lt-studio-serif);
}
body.single-proyecto--serif .entry-content .has-lt-studio-sans-font-family,
body.single-proyecto--serif .editor-visual-editor .has-lt-studio-sans-font-family {
  font-family: var(--wp--preset--font-family--lt-studio-sans);
}
body.single-proyecto--sans .entry-content .has-lt-studio-serif-font-family,
body.single-proyecto--sans .editor-visual-editor .has-lt-studio-serif-font-family {
  font-family: var(--wp--preset--font-family--lt-studio-sans) !important;
}
body.single-proyecto--sans .entry-content .has-lt-studio-sans-font-family,
body.single-proyecto--sans .editor-visual-editor .has-lt-studio-sans-font-family {
  font-family: var(--wp--preset--font-family--lt-studio-serif) !important;
}

/* Editor de bloques: clases en #wpbody (assets/scripts/editor-project-font.js) */
#wpbody.single-proyecto--serif :where(.editor-styles-wrapper) .has-lt-studio-serif-font-family {
  font-family: var(--wp--preset--font-family--lt-studio-serif);
}
#wpbody.single-proyecto--serif :where(.editor-styles-wrapper) .has-lt-studio-sans-font-family {
  font-family: var(--wp--preset--font-family--lt-studio-sans);
}
#wpbody.single-proyecto--sans :where(.editor-styles-wrapper) .has-lt-studio-serif-font-family {
  font-family: var(--wp--preset--font-family--lt-studio-sans) !important;
}
#wpbody.single-proyecto--sans :where(.editor-styles-wrapper) .has-lt-studio-sans-font-family {
  font-family: var(--wp--preset--font-family--lt-studio-serif) !important;
}

/* Fonts */
.has-custom-display-font-size {
  /* Mobile: 30 / auto */
  /* Desktop: 62 / 70 */
  font-size: 62px;
  line-height: 1.12;
}
@media (max-width: 781.9px) {
  .has-custom-display-font-size {
    font-size: 30px;
    line-height: normal;
  }
}

.has-custom-heading-1-font-size {
  /* Mobile: 30 / 32 */
  /* Desktop: 44 / 48 */
  font-size: 44px;
  line-height: 1.09;
}

.has-custom-heading-2-font-size {
  /* Blog title */
  /* Mobile: 30 / 35 */
  /* Desktop: 32 / 36 */
  font-size: 32px;
  line-height: 1.125;
}

.has-custom-body-font-size {
  /* Mobile: 20 / auto */
  /* Desktop: 24 / auto */
  font-size: 24px;
  line-height: auto;
}

.has-custom-small-font-size {
  /* Mobile: 16 / auto */
  /* Desktop: 16 / auto */
  font-size: 16px;
  line-height: auto;
}