/*
Theme Name: Espacio Actual
Theme URI: https://espacioactual.online
Description: Tema hijo de Twenty Twenty-Five para guías de pesca en ríos y pequeños destinos de España.
Author: Espacio Actual
Template: twentytwentyfive
Version: 1.0.8
Text Domain: espacio-actual
*/

html {
  scroll-behavior: smooth;
}

body {
  text-wrap: pretty;
}

a {
  text-underline-offset: 0.18em;
}

.wp-block-post-title a,
.wp-block-site-title a,
.wp-block-navigation a {
  text-decoration: none;
}

.wp-block-site-logo img {
  width: min(220px, 58vw);
  height: auto;
}

.ea-card {
  height: 100%;
  border: 1px solid var(--wp--preset--color--mist);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(16, 49, 55, 0.08);
}

.ea-category-page {
  background: linear-gradient(180deg, #f7faf9 0, #fff 320px);
}

.ea-category-header {
  text-align: center;
}

.ea-category-header .wp-block-query-title {
  max-width: 980px;
  margin: 0 auto 0.6rem;
  color: var(--wp--preset--color--river, #0b4f5c);
  font-size: clamp(2.35rem, 4vw, 3.65rem) !important;
  line-height: 1.04;
}

.ea-category-header .wp-block-term-description {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: #4b6064;
}

.ea-category-query .wp-block-post-template {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 26px;
}

.ea-category-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ea-category-card-image {
  width: 100%;
  margin: 0;
}

.ea-category-card-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ea-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(16, 49, 55, 0.13);
}

.ea-category-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.ea-category-card-title {
  margin: 0;
  color: var(--wp--preset--color--river, #0b4f5c);
  font-size: clamp(1.25rem, 1.55vw, 1.6rem) !important;
  line-height: 1.14;
  overflow-wrap: break-word;
}

.ea-category-card-title a:hover,
.ea-category-card-title a:focus-visible {
  color: var(--wp--preset--color--forest, #315c45);
}

.ea-category-card-excerpt {
  margin: 0;
  color: #344b50;
}

.ea-category-card-excerpt p {
  margin: 0;
}

.ea-category-read-more {
  display: inline-flex;
  margin-top: auto;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--wp--preset--color--river, #0b4f5c);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.ea-category-read-more:hover,
.ea-category-read-more:focus-visible {
  background: var(--wp--preset--color--forest, #315c45);
  color: #fff;
}

.ea-category-pagination {
  margin-top: 48px;
}

.ea-home-hero {
  min-height: 380px;
}

.ea-home-hero .wp-block-cover__image-background {
  object-position: center 54%;
}

.ea-home-hero h1 {
  max-width: 880px;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 4.2vw, 3.7rem) !important;
  line-height: 1.02;
}

.ea-home-hero-copy {
  max-width: 780px;
}

.ea-home-topic-card h3 {
  margin-top: 0;
  font-size: clamp(1.4rem, 1.9vw, 1.75rem);
  line-height: 1.15;
}

.ea-home-topic-card p {
  margin-top: 0.65rem;
  margin-bottom: 0;
}

.ea-home-latest .wp-block-post-template {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.ea-home-latest-section h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.ea-home-post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
}

.ea-home-post-image,
.ea-home-post-image img {
  width: 100%;
  margin: 0;
}

.ea-home-post-image img {
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ea-home-post-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
}

.ea-home-post-title {
  margin: 0;
  font-size: clamp(1.25rem, 1.55vw, 1.55rem) !important;
  line-height: 1.15;
}

.ea-home-post-excerpt,
.ea-home-post-excerpt p {
  margin: 0;
}

@media (max-width: 1050px) {
  .ea-home-latest .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .ea-category-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ea-about-title-band {
  background: var(--wp--preset--color--sand, #f3ecdd);
}

.ea-about-title-band .wp-block-post-title {
  margin: 0;
  color: var(--wp--preset--color--river, #0b4f5c);
}

.ea-about-body {
  background: #fff;
}

.ea-about-lead {
  max-width: 760px;
  color: #344b50;
  line-height: 1.65;
}

.ea-about-profile-card {
  border: 1px solid var(--wp--preset--color--mist, #d8e4e3);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(216, 228, 227, 0.38), transparent 52%),
    #f8f6ef;
  box-shadow: 0 12px 34px rgba(16, 49, 55, 0.08);
}

.ea-about-avatar,
.ea-about-avatar img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
}

.ea-about-avatar img {
  object-fit: cover;
}

.ea-about-name {
  margin: 0;
  color: var(--wp--preset--color--river, #0b4f5c);
}

.ea-about-role {
  margin: -0.4rem 0 0;
  color: var(--wp--preset--color--reed, #a9783a);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.ea-about-heading {
  margin-top: 2.6rem;
  color: var(--wp--preset--color--river, #0b4f5c);
}

.ea-about-list {
  padding-left: 1.35rem;
}

.ea-about-list li + li {
  margin-top: 0.8rem;
}

@media (max-width: 700px) {
  .ea-category-query .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .ea-category-page {
    padding-top: 28px !important;
  }

  .ea-category-header .wp-block-query-title {
    font-size: clamp(2rem, 10vw, 2.65rem) !important;
  }

  .ea-home-hero {
    min-height: 380px !important;
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }

  .ea-home-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem) !important;
  }

  .ea-home-latest .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .ea-about-title-band {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }

  .ea-about-body {
    padding-top: 40px !important;
  }

  .ea-about-profile-card {
    padding: 26px !important;
  }

  .ea-about-avatar,
  .ea-about-avatar img {
    width: 140px;
    height: 140px;
  }
}

.wp-block-post-content h2.wp-block-heading {
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.wp-block-post-content h3.wp-block-heading {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.25;
}

.ea-contact-form {
  max-width: 720px;
}

.ea-contact-form label {
  display: block;
  font-weight: 650;
}

.ea-contact-form > p {
  margin: 0 0 1.2rem;
}

.ea-contact-form input[type="text"],
.ea-contact-form input[type="email"],
.ea-contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.8rem;
  border: 1px solid #8b9694;
  border-radius: 8px;
  font: inherit;
}

.ea-contact-form button {
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--wp--preset--color--river, #176b72);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ea-contact-form button:hover,
.ea-contact-form button:focus-visible {
  filter: brightness(0.9);
}

.ea-privacy-check label {
  font-weight: 400;
}

.ea-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ea-form-message {
  max-width: 720px;
  padding: 0.9rem 1rem;
  border-radius: 8px;
}

.ea-form-success {
  background: #e5f5e9;
  color: #174f27;
}

.ea-form-error {
  background: #fde9e7;
  color: #76271f;
}
