/* =========================
   1. Custom Properties / Variables
   ========================= */

:root {
  --color-teal: #23646C;
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-headings: 'acumin-pro-condensed', sans-serif;
}

/* =========================
   2. Reset / Normalización
   ========================= */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
  height: 100%;
  margin: 0;
  max-width: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  touch-action: pan-y;
  color: #404040;
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.5;
  background: #fff;
  margin: 0;
  font-weight: 300;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


/* Media */
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
  border-style: none;
}
/* Base HTML elements */
hr {
  box-sizing: content-box;
  height: 1px;
  overflow: visible;
  background-color: #ccc;
  border: 0;
  margin-bottom: 1.5em;
}

pre {
  background: #eee;
  font-family: "Courier 10 Pitch", courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}

/* Display helpers */
details { display: block; }
summary { display: list-item; }
template, [hidden] { display: none; }

/* =========================
   3. Typography
   ========================= */
h1, h2, h3, h4, h5, h6 { 
  clear: both;
  font-family: var(--font-headings);
}

h1, h2 { text-transform: uppercase; }

h1 { 
  font-size: 2em;
  margin: 0.67em 0;
  font-weight: 700;
}

h2 {
  font-weight: 400;
  font-size: 3em; 
}

p { margin-bottom: 1.5em; }
dfn, cite, em, i { font-style: italic; }

/* Links */
/* Efecto subrayado */
.single-news .page-body a:not(.btn):not(:has(img)),
.entry-content a:not(.btn):not(:has(img)),
.text-content a:not(.btn):not(:has(img)) {
  color: var(--color-teal);
  background-color: transparent;
  text-decoration: none;
  position: relative;
}

.single-news .page-body a:not(.btn):not(:has(img))::after,
.entry-content a:not(.btn):not(:has(img))::after,
.text-content a:not(.btn):not(:has(img))::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.single-news .page-body a:not(.btn):not(:has(img)):hover::after,
.entry-content a:not(.btn):not(:has(img)):hover::after,
.text-content a:not(.btn):not(:has(img)):hover::after {
  transform: scaleX(1);
}

/* Code elements */
code, kbd, tt, var, samp {
  font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  font-size: 1em;
}

/* Text utilities */
small { font-size: 80%; }
mark, ins { background: #fff9c0; text-decoration: none; }

/* =========================
   4. Layout
   ========================= */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  max-width: 1200px;
}

main { display: block; }
footer { padding: 1rem 0; }
section { margin-bottom: 6rem; }

.page-content,
.entry-content,
.entry-summary { margin: 1.5em 0 0; }

.page-links { clear: both; margin: 0 0 1.5em; }

/* =========================
   5. Header & Navigation
   ========================= */

:root {
  --header-bg: #fff;
  --header-color: #333;
  --hover-color: var(--color-burgundy);
  --transition: 0.3s ease;
}

/* Header base */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  width: 100%; z-index: 100;
  transition: transform var(--transition), opacity var(--transition), background-color var(--transition), box-shadow var(--transition);
  display: flex; justify-content: space-between; align-items: center;
}

.header-inner, .site-logo-wrapper { display: flex; align-items: center; padding: 0 auto;}

.site-logo { 
  max-height: 50px; 
  width: auto; 
  transition: opacity 0.3s ease;
}


.menu-menu_principal-container,
.primary-menu-container {
  display: flex; align-items: center; justify-content: flex-end; gap: 1.2rem; width: 100%;
}

.nav-socios {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  font-size: 1.4rem; text-decoration: none;
  transition: transform 0.2s ease, color var(--transition);
}
.nav-socios:hover { transform: scale(1.1); }

/* =========================
   Header variantes
   ========================= */
.header--transparent { background: transparent; color: #fff; }
.header--transparent .main-navigation > ul > li > a { color: #333; }
.header--transparent .nav-socios { color: #fff; }

.header--transparent #primary-menu > li > a {
    color: #fff;
}

.header--transparent.scrolled,
.header--solid {
  background: var(--header-bg); color: var(--header-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header--transparent.scrolled .main-navigation > ul > li > a,
.header--solid .main-navigation a,
.header--transparent.scrolled .nav-socios,
.header--solid .nav-socios { color: var(--header-color); }

.header--transparent.scrolled .main-navigation > ul > li > a:hover,
.header--solid .main-navigation a:hover,
.header--transparent.scrolled .nav-socios:hover,
.header--solid .nav-socios:hover { color: var(--hover-color); }

.header--transparent.scrolled #primary-menu > li > a {
    color: var(--header-color);
}

/* =========================
   Navegación base
   ========================= */
.main-navigation {
  display: flex; flex-grow: 1; width: 100%;
  position: relative; z-index: 1000;
}

.main-navigation ul {
  display: flex; list-style: none; margin: 0; padding: 0;
  align-items: center; justify-content: flex-end; gap: 1em;
}

.main-navigation li { position: relative; margin: 0 1rem; }

.main-navigation a {
  display: flex; text-decoration: none;
  font-size: 19px; text-transform: uppercase; font-family: var(--font-headings);
  transition: color var(--transition);
}

/* =========================
   Dropdown Desktop
   ========================= */
@media screen and (min-width: 769px) {
  .main-navigation ul ul {
    display: block; position: absolute; top: calc(100% + 10px); left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px; background: #fff; border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 0.5em 0; z-index: 9999;
    opacity: 0; pointer-events: none; white-space: nowrap; overflow: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .main-navigation li:hover > ul,
  .main-navigation li.focus > ul { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

  .main-navigation ul ul li { display: block; width: 100%; }
  .main-navigation ul ul a {
    display: block; width: 100%; padding: 0.75em 1.2em;
    font-size: 1rem; font-weight: 500; text-transform: none;
    color: var(--header-color); background: #fff; transition: color var(--transition);
  }
  .main-navigation ul ul a:hover { color: var(--hover-color); }

  .menu-toggle, .hamburger { display: none; }

  #primary-menu > li > a {
    text-decoration: none;
    position: relative;
  }

  #primary-menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  #primary-menu > li > a:hover::after {
    transform: scaleX(1);
  }
}

/* =========================
   Responsive (mobile)
   ========================= */
@media (max-width: 768px) {
  .menu-menu_principal-container,
  .primary-menu-container { flex-direction: column; align-items: center; gap: 1.5rem; }

  .main-navigation {
    position: fixed; top: 0; right: -100%; bottom: 0;
    width: 80%; background: rgba(51,51,51,1); z-index: 2000;
    display: flex; flex-direction: column; justify-content: flex-start;
    padding-top: 4rem; transition: right 0.4s ease; overflow-y: auto;
  }
  .main-navigation.toggled { right: 0; }
  .main-navigation ul { flex-direction: column; align-items: flex-start; gap: 1em; width: 100%; }
  .main-navigation ul ul { display: none; flex-direction: column; width: 100%; background: rgba(51,51,51,0.95); }
  .main-navigation li.focus > ul { display: flex !important; }

  /* Botón hamburguesa */
  .menu-toggle {
    display: block; position: relative; width: 28px; height: 24px;
    border: none; background: none; cursor: pointer; z-index: 2002;
  }
  .menu-toggle::before,
  .menu-toggle::after,
  .menu-toggle i {
    content: ''; position: absolute; left: 0; width: 100%; height: 4px;
    background-color: white; transition: all 0.3s ease-out;
  }
  .menu-toggle::before { top: 0; }
  .menu-toggle::after { bottom: 0; }
  .menu-toggle i { top: 50%; transform: translateY(-50%); }

  .menu-toggle.active-menu::before { transform: rotate(45deg); top: 50%; }
  .menu-toggle.active-menu::after { transform: rotate(-45deg); top: 50%; }
  .menu-toggle.active-menu i { opacity: 0; }

  .hamburger { display: flex; align-items: center; justify-content: center; height: 64px; margin-left: auto; z-index: 2001; }
}


/* ========================= 
   6. Hero Section 
   ========================= */ 
.hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateY(30px);
  animation: heroBgFadeUp 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes heroBgFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-overlay {
  background: rgba(0,0,0,0.5);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 80px 70px;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-logo img {
  max-height: 50px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.hero-title,
.hero-subtitle {
  text-align: center;
  display: block;
  margin: 0 auto;
  color: white;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
}

.hero-title .line,
.hero-subtitle .line {
  display: block;
  overflow: hidden;
}

.hero-title .line .letter,
.hero-subtitle .line .letter {
  display: inline-block;
  transform: translate3d(0, 100%, 0);
  opacity: 0;
  will-change: transform, opacity;
  animation: heroTextIn 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes heroTextIn {
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

.site-main {
  width: 100%;
  overflow-x: hidden;
  position: relative;
  z-index: 9;
  background-color: white;
}

/* --- Ajustes de site-main según tipo de página --- */
.home .site-main {
  margin-top: 90vh;
}

.page .site-main {
  margin-top: 0;
  box-shadow: 0px -20px 50px -20px rgba(0, 0, 0, 0.5);
}

.page-template-page-no-hero .site-main {
  margin-top: 0;
  box-shadow: none;
  min-height: calc(100vh - 120px);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* --- Responsive --- */
  @media screen and (max-width: 1024px) {
    .hero-container {
      padding: 80px 40px 50px;
    }

    .hero-title {
      font-size: 3rem;
    }

    .hero-subtitle {
      font-size: 1.1rem;
    }

    .hero-logo img {
      max-height: 45px;
    }

    .site-main {
      margin-top: 70vh; 
    }
  }

  @media screen and (max-width: 768px) {
    .hero-container {
      padding: 60px 30px 40px;
    }

    .hero-title {
      font-size: 2.3rem;
      line-height: 1.2;
    }

    .hero-subtitle {
      font-size: 1rem;
    }

    .hero-logo img {
      max-height: 40px;
    }

    .site-main {
      margin-top:70vh;
    }
  }

  @media screen and (max-width: 480px) {
    .hero-container {
      padding: 50px 20px 30px;
    }

    .hero-title {
      font-size: 1.8rem;
    }

    .hero-subtitle {
      font-size: 0.95rem;
    }

    .hero-logo img {
      max-height: 35px;
    }

    .site-main {
      margin-top: 70vh;
    }
  }

/* --- Hero front --- */
.hero--front {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateY(30px);
  animation: heroBgFadeUp 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

/* --- Hero small --- */
.hero--small {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 0;
  text-align: center;
  min-height: 300px;
  margin-bottom: 0;
}

.hero-overlay--small {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 0 40px;
}

.hero-container--small {
  position: relative; 
  z-index: 2;
}

.hero-title--small {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: none;
}

/* =========================
7. Slider
========================= */
.slider {
  padding-top: 10vw;
}

.slider-container {
  position: relative;
  overflow: visible;
  transition: height 0.4s ease;
  min-height: 520px;
}

.slide {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  display: none;
  z-index: 0;
  transform: translateY(30px);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
}

.slide-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 0 2em;
  position: relative;
  z-index: 2;
}

.slide.animate {
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.slide-text {
  flex: 1;
}

.slide-text h2,
.slide-text p,
.slide-text .btn {
  opacity: 0;
  transform: translateY(20px);
}

.slide-image {
  flex: 1;
  height: 300px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: left;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: none;
}

.slide-image img {
  width: 70%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 3;
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.25);
}

.arrow-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 15px 50px -20px rgba(0, 0, 0, 0.69);
  color: rgba(51, 51, 51, 0.25);
  font-size: 45px;
  line-height: 20px;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.2s ease;
}

.arrow:hover {
  color: #333;
}

.slider:hover .arrow {
  pointer-events: auto;
}

.slider-pagination {
  display: none;
}

.image-accent {
  position: absolute;
  top: -100px;
  left: 65%;
  width: 25%;
  height: 0%;
  background-color: var(--color-teal);
  z-index: 1;
  opacity: 0;
  overflow: hidden;
}

@keyframes slideImageUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accentExpandDown {
  0% {
    height: 0;
    opacity: 0;
  }
  100% {
    height: 130%;
    opacity: 1;
  }
}

@keyframes slideTitleUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideTextUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideBtnUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide.active.animate {
  .slide-text h2 {
    animation: slideTitleUp 0.8s ease forwards;
    animation-delay: 0.2s;
  }

  .slide-text p {
    animation: slideTextUp 0.8s ease forwards;
    animation-delay: 0.4s;
  }

  .slide-text .btn {
    animation: slideBtnUp 0.8s ease forwards;
    animation-delay: 0.7s;
    font-weight: bold;
  }

  .slide-image {
    animation: slideImageUp 0.8s ease forwards;
    animation-delay: 0.4s;
  }

  .image-accent {
    animation: accentExpandDown 0.8s ease forwards;
    animation-delay: 0.4s;
  }
}

@media screen and (min-width: 768px) and (max-width: 1300px) {
  .slide-content {
    padding-left: 4rem;
  }
}

@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
    touch-action: pan-y;
  }

  .slider {
    overflow-x: hidden;
    position: relative;
    width: 100%;
  }

  .slider-container {
    overflow: hidden;
    width: 100%;
    height: auto;
    min-height: 140vw;
    margin-top: 10vw;
    padding-bottom: 2em;
  }

  .slide {
    position: absolute;
    width: 100%;
    display: none;
    opacity: 0;
    transform: none;
    transition: opacity 0.5s ease;
    z-index: 0;
  }

  .slide.active {
    display: block;
    opacity: 1;
    z-index: 1;
  }

  .slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    width: 100%;
    height: auto;
    justify-content: flex-start;
    padding: 0 1rem;
  }

  .slide-image {
    order: 1;
    width: 100%;
    height: auto;
    margin: 0;
  }

  .slide-image img {
    width: 100%;
    max-width: 100%;
    height: auto; 
    object-fit: cover;
    box-shadow: none;
    display: block;
    transition: none;
  }

  .slide-text {
    order: 2;
    position: relative;
    width: 90%;
    background: #fff;
    padding: 20px 20px 40px;
    box-shadow: 11px 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 2;
    margin-top: -8rem;
    margin-bottom: 4rem;
  }

  .slide-text h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #333;
  }

  .slide-text p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #666;
  }

  .arrow-wrapper {
    display: none;
  }

  .image-accent {
    display: none;
  }

  .slider-pagination {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: 10;
  }

  .pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    padding: 0;
    background-color: #efefef;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .pagination-dot.active {
    background-color: #c1c1c1;
  }

  @keyframes slideImageUpMobile {
    from { 
      opacity: 0;
      transform: translateY(15px);
    }
    to { 
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slideTitleUpMobile {
    from { 
      opacity: 0;
      transform: translateY(10px);
    }
    to { 
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slideTextUpMobile {
    from { 
      opacity: 0;
      transform: translateY(8px);
    }
    to { 
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slideBtnUpMobile {
    from { 
      opacity: 0;
      transform: translateY(5px);
    }
    to { 
      opacity: 1;
      transform: translateY(0);
    }
  }

  .slide.active.animate {
    .slide-image {
      animation: slideImageUpMobile 0.5s ease-out forwards;
      animation-delay: 0.2s;
    }

    .slide-text h2 {
      animation: slideTitleUpMobile 0.45s ease-out forwards;
      animation-delay: 0.25s;
    }

    .slide-text p {
      animation: slideTextUpMobile 0.45s ease-out forwards;
      animation-delay: 0.35s;
    }

    .slide-text .btn {
      animation: slideBtnUpMobile 0.45s ease-out forwards;
      animation-delay: 0.45s;
    }
  }
}

/* ========================= 
   8. Noticias - Front
   ========================= */ 
.latest-news {
  background-color: var(--color-beige);
  padding: 4em 5em 6em;
}

.news-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
}

.latest-news h2 {
  text-align: center;
  color: #333;
}

.news-grid {
  display: flex;
  gap: 1em;
  align-items: stretch;
  margin-top: 3.5em;
}

.news-left,
.news-right {
  height: 100%;
}

.news-left {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.news-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-right .news-item:not(:last-child) {
  margin-bottom: 1.4em;
}

.news-left .news-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-right .news-item {
  flex: 1; 
  min-height: 150px;
  display: flex;
  flex-direction: column;
}

/* Imagen */
.news-image-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.news-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Overlay */
.news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  box-sizing: border-box;
  opacity: 0.9;
  transition: all 0.5s ease, background 0.3s ease;
}

.news-overlay h3 {
  font-size: 1.5rem;
  margin: 0 0 5px 0;
}

.news-overlay p {
  font-size: 1rem;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

/* Hover effects */
.news-link:hover .news-overlay p {
  max-height: 100px;
}

.news-link:hover .news-overlay h3 {
  transform: translateY(-10px);
}

.news-link:hover .news-overlay {
  background: rgba(0,0,0,0.7);
}

.news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-right .news-item {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-right .news-image-wrapper {flex: 1;}

.news-date {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3em;
  margin-top: 0.3em; 
  margin-bottom: 0.3em;
}

.news-date i.ph-calendar-blank {
  font-size: 1rem;
  vertical-align: middle;
}

/* =========================
   Animaciones
   ========================= */
.latest-news h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.latest-news h2.visible {
  opacity: 1;
  transform: translateY(0);
}

.news-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.news-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay escalonado */
.news-item.visible:nth-child(1) { transition-delay: 0.15s; }
.news-item.visible:nth-child(2) { transition-delay: 0.3s; }
.news-item.visible:nth-child(3) { transition-delay: 0.45s; }



@media (max-width: 1024px) {
  .latest-news {
    padding: 3em 2em;
  }

  .news-grid {
    flex-direction: column;
    gap: 1.4em;
  }

  .news-left,
  .news-right {
    width: 100%;
    flex: unset;
  }

  .news-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
  }

  .news-right .news-item {
    min-height: 220px;
  }

  .news-image-wrapper {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .latest-news {
    padding: 2em 1em;
  }

  .news-grid {
    flex-direction: column;
  }

  .news-left,
  .news-right {
    width: 100%;
    flex-direction: column;
  }

  .news-right {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .news-right .news-item {
    min-height: 180px;
  }

  .news-image-wrapper {
    aspect-ratio: 16/9;
  }

  .news-overlay h3 {
    font-size: 1.4rem;
  }

  .news-overlay p {
    font-size: 0.9rem;
  }

  .news-date {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .latest-news {
    padding: 1.5em 0.8em;
  }

  .news-right .news-item {
    min-height: 150px;
  }

  .news-overlay {
    padding: 12px;
  }

  .news-overlay h3 {
    font-size: 1.2rem;
  }

  .news-overlay p {
    font-size: 0.9rem;
  }

  .news-date {
    font-size: 0.8rem;
  }
}

.news-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}



/* =========================
   9. Forms, buttons & inputs
   ========================= */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #e6e6e6;
  color: rgba(0,0,0,0.8);
  line-height: 1;
  padding: 0.6em 1em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #bbb;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: #999;
}

/* Form fields */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 6px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus { color: #111; }

/* =========================
   Botones personalizados
   ========================= */

.btn {
  position: relative;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border: 1.5px solid currentColor;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  background: transparent;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn span {
  position: relative;
  z-index: 1;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before { transform: scaleX(1); }
.btn:hover span { color: #fff; }

.btn::after {
  content: none !important;
}


/* Variant: Burgundy */
.btn-burgundy { color: #fff; border-color: #fff; }
.btn-burgundy::before { background-color: #fff; }
.btn-burgundy:hover span { color: var(--color-burgundy); }

/* Variant: Teal */
.btn-teal { color: var(--color-teal); border-color: var(--color-teal); }
.btn-teal::before { background-color: var(--color-teal); }
.btn-teal:hover { color: #fff; }
.btn-teal:hover span { color: var(--color-teal); }

/* =========================
   10. Widgets, gallery, misc
   ========================= */
.widget { margin: 0 0 1.5em; }
.widget select { max-width: 100%; }

.wp-caption { margin-bottom: 1.5em; max-width: 100%; }
.wp-caption img[class*="wp-image-"] { display: block; margin-left: auto; margin-right: auto; }
.wp-caption .wp-caption-text { margin: 0.8075em 0; }
.wp-caption-text { text-align: center; }

.gallery { margin-bottom: 1.5em; display: grid; grid-gap: 1.5em; }
.gallery-item { display: inline-block; text-align: center; width: 100%; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }

/* =========================
   11. Utilities / Floats / alignment
   ========================= */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1.5em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; margin-bottom: 1.5em; }

/* =========================
   12. Navigation / post lists
   ========================= */
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation { margin: 0 0 1.5em; }
.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links { display: flex; }
.comment_navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous { flex: 1 0 50%; }
.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next { text-align: end; flex: 1 0 50%; }

/* =========================
   13. Misc / helpers
   ========================= */
.sticky { display: block; }
.updated:not(.published) { display: none; }
.comment-content a { word-wrap: break-word; }
.bypostauthor { display: block; }
.custom-logo-link { display: inline-block; }
.table, table { margin: 0 0 1.5em; width: 100%; }

/* =========================
   14. Print / Accessibility adjustments
   ========================= */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus { 
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}


/* =========================
   15. Footer
   ========================= */
.site-footer {
  position: relative;
  background-color: #2e2e2e;
  color: #e0e0e0;
  text-align: center;
  padding: 3rem 1rem; 
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bg-logo { 
  position: absolute; 
  top: 140%;
  right: 0;
  width: 900px;
  height: 900px;
  background-image: url(https://actie.es/wp-content/uploads/2025/10/Logo1-blanco-scaled.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.1;
  transform: translateY(-50%) rotate(-30deg);
  pointer-events: none;
  z-index: 1;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: 0;
  position: relative;
  z-index: 2;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  z-index: 2;
  position: relative;
}

.social-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.social-menu li a { 
  position: relative;
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  width: 50px; 
  height: 50px; 
  border-radius: 50%; 
  background-color: transparent; 
  color: #fff; 
  border: solid 1px #fff; 
  font-size: 22px; 
  overflow: hidden;
  text-decoration: none; 
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.social-menu li a::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: 50%;
}

.social-menu li a i { 
  font-size: 1.6rem; 
  line-height: 1; 
  z-index: 1;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-menu li a:hover::before {
  transform: scaleX(1);
}

.social-menu li a:hover {
  color: #2e2e2e !important;
}
.social-menu li a i {
  font-size: 1.6rem;
  line-height: 1;
}

.footer-legal {
  position: relative;
  padding-top: 1.5em;
  color: #ccc;
  font-size: 0.85rem;
  z-index: 2;
}

.footer-divider {
  width: 90%;
  height: 1px;
  background-color: rgba(255,255,255,0.15);
  margin: 0 auto 1.2em auto;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8em;
}

.footer-legal-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: #fff;
}

.footer-legal-links .separator {
  color: rgba(255,255,255,0.4);
  user-select: none;
}

@media (max-width: 600px) {
  .footer-bg-logo {
    width: 200px;
    height: 200px;
  }

  .footer-copy {
    font-size: 0.8rem;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 0.5em;
  }
  .footer-legal-links .separator {
    display: none;
  }
}

/* ==============
   16. Page styles
   ============== */

body:not(.home) .page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

body:not(.home) .page-content {
  background-color: #fff;
  padding: 0 2rem;
}

body:not(.home) .page-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

body:not(.home) .page-title {
  font-size: 3rem;
  font-weight: 500;
  color: #222;
  margin: 0;
}

body:not(.home) .page-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

body:not(.home) .page-body p {
  margin-bottom: 1.5rem;
}

body:not(.home) .page-body h2, 
body:not(.home) .page-body h3, 
body:not(.home) .page-body h4 {
  margin-top: 2rem;
  color: #111;
}

body:not(.home) .page-comments {
  margin-top: 3rem;
  border-top: 1px solid #eee;
  padding-top: 2rem;
}

/* Sidebar (si lo usas) */
body:not(.home) #secondary {
  background-color: #fafafa;
  padding: 2rem;
  border-left: 1px solid #eee;
}

@media (min-width: 900px) {
  body:not(.home) .site-main {
    display: flex;
    gap: 2rem;
  }

  body:not(.home) .page-container {
    flex: 1;
  }

  body:not(.home) #secondary {
    flex-basis: 300px;
  }
}

/* =========================
   17. Páginas sin hero
   ========================= */

.page-template-page-no-hero .site-main {
  margin-top: 0;
  box-shadow: none;
  background-color: #fff;
  min-height: calc(100vh - 120px); 
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Mapa del sitio */
.wsp-pages-list {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.wsp-pages-list li {
  margin-bottom: 0.4rem;
}

.wsp-pages-list a {
  text-decoration: none;
  transition: color 0.2s ease;
}
.wsp-pages-list .children {
  padding-left: 1.5rem; /* indentación de hijos */
  margin-top: 0.3rem;
}


/* =========================
   18. Noticias - single
   ========================= */
.single-news .hero-title--small {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: none;
}

.single-post .hero-meta {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 400;
}
.hero-meta .news-date {
  justify-content: center;
}

.single-post .hero-meta span:first-child::before {
  content: none;
}

.single-news .page-body {
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  line-height: 1.7;
  font-size: 1.1rem;
}

.single-news .page-body p:first-of-type::first-letter {
  float: left;
  font-size: 5rem;         
  line-height: 1;
  margin-right: 0.15em;
  margin-top: 0.05em;
  font-weight: 500;
  font-family: 'abril text', serif;
}

/* Related Posts Section */
.related-posts {
    margin-top: 40px;
}

.related-posts h3 {
    margin-bottom: 20px;
    font-size: 1.8em;
}

.related-posts-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.related-post-card {
    flex: 1 1 calc(33.333% - 20px);
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.related-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.related-post-card h4 {
    font-size: 1.2em;
    margin: 10px;
}

.related-post-card p {
    font-size: 0.95em;
    margin: 0 10px 10px;
}


@media (max-width: 1024px) {
  .single-news .page-body {
    max-width: 90%;
    font-size: 1rem;
  }

  .single-news .page-body p:first-of-type::first-letter {
    font-size: 4rem;
  }

  .related-post-card {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 767px) {
  .single-news .page-body {
    max-width: 95%;
    font-size: 0.95rem;
    padding-left: 15px;
    padding-right: 15px;
  }

  .single-news .page-body p:first-of-type::first-letter {
    font-size: 3rem;
    line-height: 1.1;
    margin-right: 0.1em;
  }
  
  .related-post-card {
    flex: 1 1 100%;
  }

  .related-posts h3 {
    font-size: 1.5em;
  }

  .related-post-card h4 {
    font-size: 1.1em;
  }

  .related-post-card p {
    font-size: 0.9em;
  }
}

/* =========================
   Compartir
   ========================= */
.share-bar {
    position: relative;
    padding: 15px 0;
    text-align: center;
    margin-top: 30px;
}

.share-bar::before,
.share-bar::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 0.8px;
    background-color: #ccc;
}

.share-bar::before {
    top: 0;
}

  .share-bar::after {
    bottom: 0;
  }

.share-bar a {
    color: #555;
    margin: 0 10px;
    font-size: 18px;
    transition: color 0.3s;
}

.share-bar a:hover {
    color: var(--color-teal);
}

.share-bar a {
    color: #555;
    margin: 0 10px;
    font-size: 18px;
    transition: color 0.3s;
    text-decoration: none; 
    display: inline-block; 
    vertical-align: middle; 
}
