@media (max-width: 1024px) {

  
  header { padding: 14px 28px; }

  
  .carousel-section { margin: 24px auto 0; padding: 0 16px; }
  .slide img { height: 420px; }
  .overlay { padding: 40px 50px; }
  .date { font-size: 64px; }
  .title { font-size: 38px; }
  .subtitle { font-size: 15px; }

  
  .info-section { padding: 0 16px; gap: 16px; }
  .card { padding: 26px 22px; }
  .card h3 { font-size: 20px; }

  
  .nosotros-layout { grid-template-columns: 240px 1fr; gap: 40px; }
  .nosotros-foto-frame img { width: 200px; height: 235px; }

  
  .footer-container { gap: 28px; }

  
  .evento-img { flex: 0 0 200px; }
}

@media (max-width: 768px) {

  
  header {
    padding: 12px 18px;
    min-height: auto;
  }
  .logo-box {
    padding: 10px 16px;
    gap: 12px;
  }
  .logo-img { width: 50px; height: 50px; }
  .logo-text { font-size: 12px; }
  .logo-text span { font-size: 15px; letter-spacing: 1.5px; }

  
  nav {
    padding: 0 10px;
    gap: 2px;
    min-height: 52px;
    overflow-x: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a {
    font-size: 11px;
    padding: 7px 11px;
    letter-spacing: 0.8px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  
  .social-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 90px;
    top: auto;
    flex-direction: row;
    gap: 10px;
    z-index: 89;
  }
  .social-bar a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
  }
  .social-bar a:hover { transform: scale(1.08); }

  
  .carousel-section { margin: 16px auto 0; padding: 0 10px; }
  .carousel { border-radius: 14px; }
  .slide img { height: 300px; }
  .overlay { padding: 24px 28px; }
  .overlay-content { max-width: 100%; }
  .date { font-size: 48px; }
  .month { font-size: 18px; letter-spacing: 4px; margin-bottom: 10px; }
  .title { font-size: 26px; margin-bottom: 8px; }
  .subtitle { font-size: 13px; }
  .arrow { width: 40px; height: 40px; font-size: 14px; border-radius: 10px; }
  .prev { left: 10px; }
  .next { right: 10px; }
  .dots { bottom: 14px; right: 16px; }

  
  .info-section {
    grid-template-columns: 1fr;
    margin: 22px auto 40px;
    padding: 0 14px;
    gap: 16px;
  }
  .card { padding: 24px 20px; }
  .card h3 { font-size: 20px; }
  .card p { font-size: 14px; }
  .card-icon { width: 48px; height: 48px; font-size: 20px; }

  
  .section-title { font-size: 30px; }
  .section-badge { font-size: 10px; }
  .section-header { margin-bottom: 36px; }

  
  .nosotros-section { padding: 52px 18px; }
  .nosotros-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .nosotros-foto-wrapper {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nosotros-foto-frame img { width: 200px; height: 235px; }
  .nosotros-texto p { font-size: 15px; line-height: 1.8; }
  .nosotros-texto p:first-child { font-size: 16px; }

  
  .tramites-section { padding: 52px 18px; }
  .tramites-grid { gap: 20px; margin-top: 32px; }
  .tramite-card { width: calc(33.33% - 14px); min-width: 130px; }
  .tramite-img-box { width: 110px; height: 110px; }
  .tramite-card-inner { height: 165px; }

  
  .servicios-section { padding: 52px 18px; }
  .servicios-grid { gap: 20px; margin-top: 32px; }
  .servicio-card { width: calc(50% - 14px); max-width: 200px; }
  .servicio-img-box { width: 130px; height: 130px; }

  
  .eventos-section { padding: 52px 16px; }
  .evento-card {
    flex-direction: column;
    border-radius: 14px;
  }
  .evento-img {
    flex: 0 0 auto;
    width: 100%;
    height: 190px;
  }
  .evento-img a { height: 100%; }
  .evento-img img { height: 190px; min-height: auto; border-radius: 0; }
  .evento-info {
    padding: 18px 20px;
    border-left: none;
    border-top: 1px solid var(--gris-medio);
  }
  .evento-info::before {
    top: 0; left: 18px; right: 18px; bottom: auto;
    width: auto; height: 3px;
  }
  .evento-info h3 { font-size: 17px; }

  
  .comites-section { padding: 52px 16px; }

  
  .footer-contacto { padding: 40px 20px; }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .footer-bottom p { font-size: 11px; }

  
  .whatsapp {
    width: 54px;
    height: 54px;
    font-size: 22px;
    right: 16px;
    bottom: 20px;
    border-radius: 15px;
  }

  
  #back-to-top { bottom: 86px; right: 16px; width: 42px; height: 42px; }
  #presentation-btn { right: 16px; }

  
  #presentation-bar {
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
  }
  .pres-controls { flex-wrap: wrap; gap: 6px; }
  .pres-btn { padding: 7px 13px; font-size: 11px; }

  
  .countdown-widget {
    padding: 12px 16px;
    right: 10px;
    top: 70px;
  }
  .countdown-timer { gap: 6px; }
  .countdown-unit span { font-size: 22px; }

  
  .modal-box { border-radius: 18px; }
  .modal-imagen { width: 100%; }
}

@media (max-width: 600px) {

  
  header { padding: 10px 14px; }
  .logo-box { padding: 9px 14px; gap: 10px; }
  .logo-img { width: 44px; height: 44px; }
  .logo-text { font-size: 11px; }
  .logo-text span { font-size: 13.5px; letter-spacing: 1px; }

  
  nav { min-height: 46px; }
  nav a {
    font-size: 10px;
    padding: 6px 9px;
    letter-spacing: 0.5px;
  }
  nav a i { display: none; } 

  
  .slide img { height: 240px; }
  .overlay { padding: 18px 20px; align-items: flex-end; }
  .date { font-size: 38px; }
  .month { font-size: 14px; letter-spacing: 3px; margin-bottom: 6px; }
  .title { font-size: 20px; margin-bottom: 6px; }
  .subtitle { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .arrow { width: 34px; height: 34px; font-size: 12px; border-radius: 8px; }
  .prev { left: 8px; }
  .next { right: 8px; }

  
  .info-section { margin: 18px auto 32px; padding: 0 12px; }
  .card { padding: 22px 18px; }
  .card h3 { font-size: 18px; }
  .btn-vermas { padding: 10px 22px; font-size: 12px; }

  
  .section-title { font-size: 26px; }
  .section-header { margin-bottom: 28px; }

  
  .tramites-grid { gap: 16px; }
  .tramite-card { width: calc(50% - 10px); }
  .tramite-img-box { width: 100px; height: 100px; }
  .tramite-card h3 { font-size: 13px; }
  .tramite-card-inner { height: 150px; }

  
  .servicios-grid { gap: 16px; }
  .servicio-card { width: calc(50% - 10px); max-width: 180px; }
  .servicio-img-box { width: 110px; height: 110px; }
  .servicio-card h3 { font-size: 11px; }

  
  .evento-img { height: 170px; }
  .evento-img img { height: 170px; }
  .evento-info { padding: 16px 16px; }
  .evento-info h3 { font-size: 15px; }
  .evento-info p { font-size: 13px; -webkit-line-clamp: 2; }
  .evento-fecha { font-size: 10.5px; }

  
  .nosotros-section { padding: 44px 14px; }
  .nosotros-foto-frame img { width: 170px; height: 200px; }
  .nosotros-foto-caption { font-size: 14px; }
  .nosotros-texto p { font-size: 14.5px; }

  
  .comites-section { padding: 44px 12px; }
  .comites-title { font-size: 26px !important; }
  .comites-directiva-grid { gap: 36px 16px; }
  .directiva-ring-outer { width: 120px; height: 120px; }
  .directiva-presidente .directiva-ring-outer { width: 145px; height: 145px; }
  .directiva-cargo { font-size: 10px; }
  .directiva-nombre { font-size: 13px; }
  .comites-nota { font-size: 12px; padding: 14px 16px; }

  
  .footer-contacto { padding: 36px 16px; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-item { font-size: 12px; }
  .footer-item h4 { font-size: 9.5px; }

  
  .social-bar { bottom: 82px; }

  
  .toast-notification { max-width: 260px; right: 10px; }

  
  .card-counter { font-size: 13px; }
  .counter-label { font-size: 11px; }

  
  #custom-cursor, #cursor-trail { display: none; }
}

@media (max-width: 480px) {

  
  header { padding: 8px 12px; }
  .logo-text span { font-size: 12px; }
  .logo-text { font-size: 10px; }

  
  .slide img { height: 210px; }
  .title { font-size: 17px; }
  .overlay { padding: 14px 16px; }
  .date { font-size: 32px; }
  .month { font-size: 12px; margin-bottom: 4px; }

  
  .tramites-grid { justify-content: center; }
  .tramite-card { width: calc(50% - 10px); max-width: 155px; }

  
  .servicio-card { width: calc(50% - 10px); }

  
  .evento-img { height: 150px; }
  .evento-img img { height: 150px; }

  
  .footer-container { grid-template-columns: 1fr; gap: 18px; }
  .footer-item { border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 18px; }
  .footer-item:last-child { border-bottom: none; }

  
  .social-bar a { width: 36px; height: 36px; font-size: 13px; }

  
  .whatsapp { width: 50px; height: 50px; font-size: 20px; right: 12px; bottom: 16px; }

  
  .modal-cuerpo { padding: 18px 18px 22px; }
  .modal-titulo { font-size: 18px; }
  .modal-desc { font-size: 13px; }
  .modal-btn-ver { padding: 11px 22px; font-size: 13px; }

  
  .nosotros-foto-frame img { width: 150px; height: 180px; }
}

@media (max-width: 360px) {

  .logo-img { width: 38px; height: 38px; }
  .logo-text span { font-size: 11px; }
  .logo-text { font-size: 9.5px; }

  nav a { font-size: 9px; padding: 5px 8px; }

  .slide img { height: 185px; }
  .title { font-size: 15px; }
  .date { font-size: 28px; }

  .tramite-card { width: calc(50% - 8px); }
  .tramite-img-box { width: 86px; height: 86px; }
  .tramite-card h3 { font-size: 12px; }

  .servicio-img-box { width: 96px; height: 96px; }

  .info-section { padding: 0 10px; }
  .card { padding: 18px 16px; }
  .card h3 { font-size: 16px; }
}

@media (hover: none) and (pointer: coarse) {

  
  .card:hover { transform: none; box-shadow: 0 4px 24px var(--sombra); }
  .tramite-card:hover { transform: none; }
  .servicio-card:hover { transform: none; }
  .evento-card:hover { transform: none; }
  .btn-vermas:hover { transform: none; }
  .logo-box:hover { transform: none; }

  
  nav a { padding: 10px 12px; }
  .btn-vermas { padding: 13px 26px; }
  .evento-link { padding: 6px 0; }
  .modal-btn-ver { padding: 14px 28px; }
  .modal-btn-cerrar-txt { padding: 8px; }

  
  #custom-cursor, #cursor-trail { display: none !important; }

  
  [data-tilt] { transform: none !important; }
}

@media (max-width: 768px) and (orientation: landscape) {
  .slide img { height: 200px; }
  .nosotros-layout { grid-template-columns: 200px 1fr; gap: 24px; }
  .nosotros-foto-frame img { width: 160px; height: 190px; }
  .nosotros-foto-wrapper { position: static; }
  .social-bar { flex-direction: column; left: 8px; top: 50%; transform: translateY(-50%); bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .aurora-wave, .pl-bar-fill, .nosotros-foto-frame.animated-border::before { animation: none !important; }
}
