@media screen and (min-width: 768px) and (max-width: 1300px) {
  .slide-content {
    padding-left: 4rem;
  }
  .slider {
    padding-left: 5vw;
  }

  .section1-inner,
  .section3-inner {
    gap: 40px;
  }

  .section1 .col-right {
    gap: 5em;
  }
}


@media (max-width: 1024px) {
  .hero--page .hero-container,
  .single-news .hero-container,
  .single-event .hero-container { padding:80px 40px 50px; }
  .hero--page .hero-title,
  .single-news .hero-title,
  .single-event .hero-title { font-size: clamp(2rem,5vw,5rem); }
  .hero--page .hero-description,
  .single-news .hero-description,
  .single-event .hero-description { font-size: clamp(0.95rem,2vw,1.1rem); }

  .archive-featured-news {
    padding: 3em 2em;
  }

  .archive-news-grid {
    flex-direction: column;
    gap: 0.6em;
  }

  .archive-news-left,
  .archive-news-right {
    width: 100%;
    flex: unset;
  }

  .archive-news-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
  }

  .archive-news-right .archive-news-item {
    min-height: 220px;
  }

  .archive-news-image-wrapper {
    aspect-ratio: 16/9;
  }

  .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: 992px) {

  .section1-inner {
    grid-template-columns: 1fr;
  }

  .section1::before {
    height: 35%;
  }

  .section1 .col-left .photo-wrapper {
    height: 350px;
    padding-right: 0;
  }

  .section1 .col-right {
    margin-top: 0;
    gap: 3em;
  }

  .section-links-list {
    padding-left: 0;
    text-align: center;
  }

  .section-links-list li a::before {
    display: none;
    content: none;
  }

  .section3-inner {
    grid-template-columns: 1fr;
  }

  .section3-left {
    padding: 2em 0;
  }

  .section3-cta {
    margin: 0;
    padding: 2.5em 2em;
  }

  .section-org1-inner .col-left,
  .section-org1-inner .col-right,
  .section-org2-inner .col-left,
  .section-org2-inner .col-right {
    flex: 1 1 100%;
  }

  .section-org3-inner .wp-block-column {
    flex: 1 1 100%;
    margin-bottom: 2rem;
  }
}


@media (max-width: 768px) {

  /* ---------------- Header and top ---------------- */
  .admin-bar .hero--page,
  .admin-bar .header { top: 46px; }

  .menu-menu_principal-container,
  .primary-menu-container { 
    flex-direction: column; 
    align-items: center;
  }

  .header-inner { padding: 0.5em 1.5em; }

  /* ---------------- Navegación móvil ---------------- */
  .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: 8em 0 0 2em;
    transition: right 0.4s ease;
    overflow-y: auto;
  }

  .main-navigation.toggled { 
    right: 0;
    box-shadow: -10vw 0 30px rgba(0,0,0,0.3);
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    z-index: 1;
    pointer-events: none;
    transition: background 0.4s ease;
  }

  .main-navigation.toggled ~ .menu-overlay {
    background: rgba(0,0,0,0.5);
    pointer-events: auto;
  }

  /* Header transparente + navegación */
  .header--transparent.scrolled .main-navigation.toggled #primary-menu > li > a,
  .header--transparent.scrolled .main-navigation.toggled .nav-socios,
  .header--transparent.scrolled .main-navigation.toggled #primary-menu > li > a:hover,
  .header--transparent.scrolled .main-navigation.toggled .nav-socios:hover {
    color: #fff;
  }

  .header--transparent.scrolled .main-navigation.toggled ul.sub-menu a {
    color: #e0e0e0;
  }

  .main-navigation ul { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 3em; 
    width: 100%; 
  }

  .main-navigation a { font-size: 1.8em; }

  .main-navigation ul ul {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    width: 100%;
    background: rgba(51,51,51,0.95);
    gap: 0.3em;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }

  .main-navigation li.focus > ul {
    max-height: 500px;
    opacity: 1;
  }

  .main-navigation ul ul a {
    color: #e0e0e0;
    background: rgba(51,51,51,0.95);
    padding: 0.5em 1.5em;
    width: 100%;
    display: block;
    font-size: 1.2em;
    font-weight: 500;
    text-transform: none;
    transition: color 0.3s ease;
  }

  .main-navigation ul ul a:hover {
    color: var(--hover-color);
  }

  .main-navigation a::after,
  .main-navigation a:hover::after {
    display: none;
    content: none;
  }

  .main-navigation li.menu-item-has-children > a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
  }

  .main-navigation li.menu-item-has-children > a i.ph.ph-caret-down {
    font-size: 0.8em;
    margin-left: 10px;
    transition: transform 0.3s ease;
  }

  /* Rotar caret cuando se abre el submenú */
  .main-navigation li.focus > a i.ph.ph-caret-down {
    transform: rotate(-180deg);
  }


  /* ---------------- 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;
  }

  .mobile-login {
    display: block;
    width: 100%;
    padding: 1em 2em;
    text-align: center;
    background-color: #404040;
    color: #fff !important;
    font-weight: 400;
    justify-content: center;
    gap: 0.5em;
  }

  .main-navigation.toggled .mobile-login {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .nav-socios { display: none !important; }

  .ph.ph-user { line-height: 1.5; }

  /* ---------------- Hero ---------------- */
  .hero--page { height: 50vh; }
  .has-hero .site-main {
    margin-top: 50vh;
  }

  .page-template-page-no-hero .site-main {
    margin-top: 0;
    box-shadow: none;
  }

  .hero--page .hero-container,
  .single-news .hero-container,
  .single-event .hero-container {
    align-items: center;
    text-align: center;
    max-width: 90%;
    padding: 60px 30px 40px;
  }

  .hero--page .hero-title,
  .single-news .hero-title,
  .single-event .hero-title { 
    font-size: 4em;
  }

  .hero-container--front {
    padding: 80px 20px 40px;
    text-align: center;
  }

  .hero-title--front { font-size: 2.2em; }
  .hero-subtitle--front { font-size: 1em; }

  .hero-breadcrumbs--bottom-right {
    bottom: 15px;
    right: 15px;
    font-size: 0.75rem;
  }

  /* ---------------- NEWS GRID ---------------- */
  .news-header .icon {display: none;}
  .news-header a {font-weight: 300;}
  .latest-news { padding: 3em 1.5em; }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
    margin-top: 0em;
  }

  .news-right {
    grid-template-rows: auto;
    gap: 1.5em;
  }

  .news-item { height: auto; }
  .news-image-wrapper { aspect-ratio: 16/9; }

  .news-overlay { padding: 15px; }
  .news-overlay h3 { font-size: 1.25rem; }
  .news-left .news-overlay h3 { font-size: 1.35rem; }
  .news-overlay p { display: none; }

  /* ---------------- ARCHIVE NEWS ---------------- */
  .news-container {margin-top: 1em;}
  section.archive-rest-news {margin-bottom: 0em;}
  .archive-featured-news { padding: 2em 1em; }

  .archive-news-grid { flex-direction: column; }

  .archive-news-left,
  .archive-news-right {
    width: 100%;
    flex-direction: column;
  }

  .archive-news-right {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .archive-news-right .archive-news-item { min-height: 180px; }
  .archive-news-image-wrapper { aspect-ratio: 16/9; }

  .archive-news-overlay h3 { font-size: 1.4rem; }
  .archive-news-overlay p { font-size: 0.9rem; }
  .archive-news-date { font-size: 0.8rem; }

  .archive-news-link {
    flex-direction: row;
  }

  .card-news {
    align-items: stretch;
  }

  .card-image {
    width: 40%;
    flex-shrink: 0;
  }

  .card-image img {
    height: 100%;
    min-height: 120px;
  }

  .card-content {
    width: 60%;
    padding: 10px 12px;
    justify-content: center;
  }

  .card-content p {
    display: none;
  }

  /* ---------------- PAGE BODY ---------------- */
  .single-news .page-body {
    max-width: 95%;
    font-size: 0.95rem;
    padding: 0;
  }

  .single-news .page-body p:first-of-type::first-letter {
    font-size: 3rem;
    line-height: 1.1;
    margin-right: 0.1em;
  }

  /* ---------------- RELATED POSTS ---------------- */
  .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; }

  /* ---------------- CONTACT ---------------- */
  .contact-block { flex: 1 1 100%; }
  .contact-block:not(:last-child)::after { display: none; }

  body.page-id-33 section { padding: 50px 30px; }

  h3 { font-size: 2rem; line-height: 1.3; }

  .section1 .col-right p { font-size: 1.1em; }

  .section3-left,
  .section3-cta { padding: 2em 1.5em; }

  /* ---------------- SLIDER ---------------- */
  html, body {
    overflow-x: hidden;
    touch-action: pan-y;
  }

  .slider {
    overflow-x: hidden;
    position: relative;
    width: 100%;
  }

  .slider-container {
    overflow: hidden;
    width: 100%;
    min-height: 140vw;
    height: auto;
    margin-top: 10vw;
    padding-bottom: 2em;
    touch-action: pan-y;
  }

  .slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
  }

  .slide.active {
    display: block;
    opacity: 1;
    z-index: 1;
  }

  .slide-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
  }

  .slide-image { width: 100%; order: 1;}

  .slide-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .slide-text {
    width: 90%;
    background: #fff;
    padding: 20px 20px 40px;
    margin-top: -8rem;
    margin-bottom: 4rem;
    box-shadow: 11px 10px 40px rgba(0,0,0,0.25);
    order: 2;
    z-index: 2;
  }

  .slide-text h2 { font-size: 2em; margin-bottom: 15px; color: #333; }
  .slide-text p { font-size: 1em; margin-bottom: 20px; color: #666; }

  .arrow-wrapper,
  .image-accent,
  .slide-number-bg { display: none; }

  .slider-pagination {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
  }

  .pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #efefef;
    transition: 0.3s ease;
    cursor: pointer;
    padding: 0;
  }

  .pagination-dot.active { background-color: #c1c1c1; }


  /* Animaciones */
  @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 0.2s; }
    .slide-text h2 { animation: slideTitleUpMobile 0.45s ease-out forwards 0.25s; }
    .slide-text p { animation: slideTextUpMobile 0.45s ease-out forwards 0.35s; }
    .slide-text .btn { animation: slideBtnUpMobile 0.45s ease-out forwards 0.45s; }
  }

  .section-about {
      padding-left: 20px;
      padding-right: 20px;
  }
    .section-about1::before { height: 30%; }
    .section-about3 .wp-block-columns {
      grid-template-columns: 1fr !important;
  }

  .section-about1 .col-left h3 {
    line-height: 30px;
}

  .section-about1 .col-right {
    gap: 4em;
  }

  .section3-inner {
    gap: 0;
  }

  .about-menu {
    margin-top: 0em;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center;
    gap: 0.8em;
  }
  .section-about1 .icon {
    display: none;
  }

  .about-menu p {
    font-size: 1em;
    font-weight: 400;
    padding: 0.3em 0.5em;
    border: 1px solid var(--color-burgundy);
    border-radius: 2em;
  }

@media (max-width: 600px) {

  /* ---------------- FOOTER ---------------- */
  .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; }

  /* ---------------- HERO ---------------- */
  .hero--page .hero-container,
  .single-news .hero-container,
  .single-event .hero-container {
    padding: 50px 20px 30px;
  }


  .hero--page .hero-description,
  .single-news .hero-description,
  .single-event .hero-description {
    font-size: 0.95rem;
  }

  .hero-breadcrumbs--bottom-right {
    bottom: 10px;
    right: 10px;
    font-size: 0.7rem;
  }

  /* ---------------- ARCHIVE ---------------- */
  .archive-featured-news { padding: 1.5em 0.8em; }

  .archive-news-right .archive-news-item { min-height: 150px; }

  .archive-news-overlay { padding: 12px; }

  .archive-news-overlay h3 { font-size: 1.2rem; }
  .archive-news-overlay p { font-size: 0.9rem; }
  .archive-news-date { font-size: 0.8rem; }

  /* ---------------- PAGE ID 33 ---------------- */
  body.page-id-33 section { padding: 40px 20px; }

  /* ---------------- TITLES ---------------- */
  .subtitle-line::after { width: 40px; }

  /* ---------------- SECTIONS ---------------- */
  .section1 .col-left .photo-wrapper { height: 250px; }

  .section3-cta { padding: 2em 1.2em; }
}

.page-content,
.entry-content,
.entry-summary { margin: 0 0 0; }
}



[data-cky-tag="powered-by"] {
    justify-content: flex-end;
    display: none !important;
}

/* =========================
Espacio privado responsive
=========================*/
@media (max-width: 992px) {
  .espacio-contenido {
      padding: 2rem;
  }

  .espacio-privado {
      display: flex;
      flex-direction: column;
  }
  
  .espacio-menu {
    display: block;
      width: 100%;
      order: -1;
      border-right: none;
      border-bottom: 1px solid #e9ecef;
  }
  
  .espacio-header-inner {
    padding: 0 1rem;
  }

  .espacio-logo a {
    font-size: 1rem;
  }
  
  .espacio-username {
      display: none;
  }

  .espacio-menu ul {
      display: flex;
      padding: 0;
      justify-content: space-around;
  }
  
  .espacio-menu li {
      margin-bottom: 0;
      flex: 1;
      text-align: center;
  }
  
  .espacio-menu li a {
      flex-direction: column;
      justify-content: center;
      padding: 10px 5px;
  }
  
  .espacio-menu li.active a i {
      border-bottom: 3px solid #000; 
      background-color: transparent;
      font-weight: bold;
  }

  .espacio-menu li a span {
      display: none;
  }
  
  .espacio-menu li a i {
      display: block;
      line-height: 1.5;
  }
  
  .espacio-contenido {
      width: 100%;
  }

  .espacio-icon {
      display: none;
  }

  .um-account-header {
    display: none;
  }
}