/* =========================================
   TABLET
========================================= */
@media (max-width: 1200px) {

  .upt-container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-content {
    grid-template-columns: 460px 360px 230px;
    padding: 0 35px;
    column-gap: 24px;
  }

  .hero-person img {
    height: 330px;
  }

  .candidates-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* =========================
   CANDIDATOS RESPONSIVE
  ========================= */
  .candidatos-layout {
    grid-template-columns: 1fr 280px;
    gap: 20px;
  }

  .candidatos-grid-page {
    grid-template-columns: repeat(3, 1fr);
  }

  /* =========================
   CONÓCENOS RESPONSIVE
  ========================= */
  .conocenos-intro {
    gap: 20px;
  }

  .valores-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 22px;
  }

  .valor-item:nth-child(3n) {
    border-right: 0;
  }

  /* =========================
   NOTICIAS RESPONSIVE
  ========================= */
  .noticias-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .noticias-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  /* =========================
   EN VIVO RESPONSIVE
  ========================= */
  .envivo-layout {
    grid-template-columns: 1fr;
  }

  .envivo-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .envivo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================================
   TABLET PEQUEÑA
========================================= */
@media (max-width: 991px) {

  /* MENU */
  .upt-header .navbar {
    padding: 14px 0;
  }

  .upt-brand img {
    height: 48px;
  }

  .upt-menu {
    gap: 0;
    padding: 18px 0 8px;
  }

  .upt-menu .nav-link {
    font-size: 17px;
    padding: 13px 0 !important;
  }

  .upt-menu .nav-link.active::before {
    left: 0;
    bottom: 4px;
    transform: none;
    width: 42px;
  }

  .upt-dropdown {
    position: static !important;
    transform: none !important;
    width: 100%;
    margin: 4px 0 10px 15px;
    background: #151515 !important;
    border: 0;
    box-shadow: none;
    padding: 5px 0;
  }

  .upt-dropdown .dropdown-item {
    padding: 10px 16px;
    color: #fff !important;
    font-size: 15px;
  }

  /* HERO */
  .hero {
    height: 390px;
  }

  .hero-bg-layer {
  background-image:
    linear-gradient(
      90deg,
      rgba(211,0,0,.94) 0%,
      rgba(211,0,0,.78) 45%,
      rgba(0,0,0,.28) 100%
    ),
    var(--hero-bg-url);
  }

  .hero-content {
    height: 390px;
    display: block;
    padding: 45px 28px;
  }

  .hero-text {
    max-width: 430px;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .hero-person {
    position: absolute;
    right: -35px;
    bottom: 0;
    height: 360px;
    opacity: .28;
  }

  .hero-person img {
    height: 360px;
  }

  .hero-name {
    display: none;
  }

  /* HOME */

  .candidates-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  /* DOCUMENTOS */

  .doc-search {
    width: 100%;
    min-width: auto;
    margin-left: 0;
  }

  .page-hero-content {
    padding: 32px 28px;
  }

  .page-hero-content h1 {
    font-size: 42px;
  }

  /* =========================
   CONTACTO RESPONSIVE
  ========================= */
  .contacto-page {
    padding: 20px 0 14px;
  }

  .contact-form-box,
  .contact-social-box,
  .join-card {
    margin-top: 0;
  }

  .contact-social-icons {
    justify-content: flex-start;
  }

  .contact-map-box {
    height: 220px;
  }

  /* =========================
   CANDIDATOS RESPONSIVE
  ========================= */
  .candidatos-layout {
    grid-template-columns: 1fr;
  }

  .candidatos-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .cand-featured {
    grid-column: 1 / -1;
  }

  .candidatos-hero h2 {
    font-size: 24px;
  }

  /* =========================
   CONÓCENOS RESPONSIVE
  ========================= */
  .conocenos-intro {
    grid-template-columns: 1fr;
  }

  .conocenos-card {
    min-height: auto;
  }

  .historia-timeline-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .timeline-box {
    border-left: 0;
    padding-left: 0;
  }

  .conocenos-cta {
    grid-template-columns: 60px 1fr;
  }

  .conocenos-cta a {
    grid-column: 1 / -1;
  }

  .conocenos-hero h2 {
    font-size: 26px;
  }

  /* =========================
   NOTICIAS RESPONSIVE
  ========================= */
  .noticias-hero h2 {
    font-size: 26px;
  }

  .noticias-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* =========================
   EN VIVO RESPONSIVE
  ========================= */
  .envivo-hero h2 {
    font-size: 26px;
  }

  .envivo-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .envivo-search {
    width: 100%;
  }

  .envivo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .envivo-sidebar {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   MOVIL
========================================= */
@media (max-width: 575px) {

  .upt-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* HEADER */

  .upt-brand img {
    height: 46px;
  }

  /* HERO */

  .hero {
    height: auto;
    min-height: 390px;
  }

  .hero-content {
    height: auto;
    min-height: 390px;
    padding: 42px 16px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .hero-text p {
    font-size: 15px;
    max-width: 95%;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-red,
  .btn-outline-yellow {
    width: 100%;
    text-align: center;
  }

  .hero-person {
    right: -75px;
    height: 355px;
    opacity: .20;
  }

  .hero-person img {
    height: 355px;
  }

  /* HOME */

  .section-title h2,
  .section-title.center h2 {
    font-size: 19px;
  }

  .candidates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .candidate-card img {
    height: 130px;
  }

  .candidate-info h3 {
    font-size: 13px;
  }

  .candidate-info p {
    font-size: 11px;
  }

  /* BASES */

  .bases-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }

  .bases-content img {
    width: 120px;
    height: 120px;
    margin: auto;
  }

  .bases-info p {
    margin-bottom: 10px;
  }

  .bases-info .btn-yellow {
    width: 100%;
    font-size: 11px;
  }

  /* DOCUMENTOS HERO */

  .page-hero-content {
    padding: 30px 18px;
  }

  .page-hero-content h1 {
    font-size: 36px;
  }

  .page-hero-content p {
    font-size: 15px;
  }

  /* FILTROS */

  .documentos-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .doc-filter {
    width: 100%;
    text-align: center;
  }

  .doc-search {
    width: 100%;
  }

  /* TABLA DOCUMENTOS */

  .document-table {
    min-width: 0;
  }

  .document-table thead {
    display: none;
  }

  .document-table,
  .document-table tbody,
  .document-table tr,
  .document-table td {
    display: block;
    width: 100%;
  }

  .document-table tbody tr {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
  }

  .document-table tbody td {
    border-bottom: 0;
    padding: 6px 0;
  }

  .doc-info {
    align-items: flex-start;
  }

  .doc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .btn-doc-view,
  .btn-doc-download {
    display: block;
    text-align: center;
  }

  /* SIDEBAR DOCUMENTOS */

  .doc-side-card {
    margin-top: 15px;
  }

  /* FOOTER */

  .footer-links {
    columns: 1;
  }

  .upt-footer {
    text-align: center;
  }

  .footer-logo {
    margin-bottom: 15px;
  }

  .social-icons {
    justify-content: center;
  }

  /* =========================
   CONTACTO RESPONSIVE
  ========================= */
  .contacto-hero::before {
    left: 12px;
    top: 20px;
    font-size: 110px;
    opacity: .06;
  }

  .contacto-page {
    padding: 18px 0 12px;
  }

  .contact-info-card {
    align-items: flex-start;
    padding: 12px;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-form-box,
  .contact-social-box,
  .join-card {
    padding: 14px;
  }

  .contact-social-icons {
    justify-content: center;
    gap: 12px;
  }

  .contact-social-icons a {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .join-card p {
    font-size: 12px;
  }

  .contact-map-section {
    margin-top: 16px;
  }

  .contact-map-box {
    height: 250px;
  }

  /* =========================
   CANDIDATOS RESPONSIVE
  ========================= */
  .candidatos-hero::before {
    left: 12px;
    top: 20px;
    font-size: 110px;
    opacity: .06;
  }

  .candidatos-hero h2 {
    font-size: 20px;
    line-height: 1.1;
  }

  .candidatos-page {
    padding: 18px 0 12px;
  }

  .candidatos-filters {
    gap: 9px;
  }

  .cand-filter {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .candidatos-grid-page {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
  }

  .cand-photo {
    height: 135px;
  }

  .cand-info {
    padding: 9px 6px;
  }

  .cand-info h3 {
    font-size: 12px;
  }

  .cand-info p {
    font-size: 10px;
  }

  .cand-link {
    font-size: 10px;
    padding: 9px 6px;
  }

  .candidatos-sidebar {
    grid-template-columns: 1fr;
  }

  .cand-featured-box {
    grid-template-columns: 115px 1fr;
  }

  .cand-featured-box img {
    width: 115px;
    height: 115px;
  }

  /* =========================
   CONÓCENOS RESPONSIVE
  ========================= */
  .conocenos-hero::before {
    left: 12px;
    top: 20px;
    font-size: 110px;
    opacity: .06;
  }

  .conocenos-hero h2 {
    font-size: 24px;
    line-height: 1.05;
  }

  .conocenos-page {
    padding: 18px 0 18px;
  }

  .conocenos-about {
    padding: 8px 0;
  }

  .conocenos-about h2,
  .valores-section h2,
  .historia-box h2,
  .timeline-box h2 {
    font-size: 19px;
  }

  .conocenos-card {
    padding: 20px;
  }

  .conocenos-icon {
    width: 48px;
    height: 48px;
    font-size: 21px;
  }

  .conocenos-card h3 {
    font-size: 21px;
    margin-left: 10px;
  }

  .card-watermark {
    font-size: 58px;
    right: 22px;
    bottom: 18px;
  }

  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }

  .valor-item {
    padding: 0 12px;
  }

  .valor-item:nth-child(3n) {
    border-right: 1px solid #e4e4e4;
  }

  .valor-item:nth-child(2n) {
    border-right: 0;
  }

  .historia-box img {
    height: 110px;
  }

  .timeline-item {
    grid-template-columns: 18px 48px 1fr;
    gap: 9px;
  }

  .timeline-item p {
    font-size: 13px;
  }

  .conocenos-cta {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px 18px;
    gap: 12px;
  }

  .conocenos-cta > div:first-child i {
    font-size: 46px;
  }

  .conocenos-cta h2 {
    font-size: 22px;
  }

  .conocenos-cta p {
    font-size: 14px;
  }

  .conocenos-cta a {
    font-size: 14px;
    padding: 13px 15px;
  }

  /* =========================
   NOTICIAS RESPONSIVE
  ========================= */
  .noticias-hero::before {
    left: 12px;
    top: 20px;
    font-size: 110px;
    opacity: .06;
  }

  .noticias-hero h2 {
    font-size: 22px;
    line-height: 1.08;
  }

  .noticias-page {
    padding: 18px 0;
  }

  .noticias-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .noticias-heading-left {
    align-items: flex-start;
  }

  .noticias-social-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 30px;
  }

  .noticias-heading h2 {
    font-size: 19px;
  }

  .noticias-heading p {
    font-size: 12px;
  }

  .noticias-view-all {
    width: 100%;
  }

  .noticias-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .noticia-img {
    height: 105px;
  }

  .noticia-body {
    padding: 9px;
  }

  .noticia-body h3 {
    font-size: 11px;
    min-height: 55px;
  }

  .noticia-body a {
    font-size: 9px;
  }

  /* =========================
   EN VIVO RESPONSIVE
  ========================= */
  .envivo-hero::before {
    left: 12px;
    top: 20px;
    font-size: 110px;
    opacity: .06;
  }

  .envivo-hero h2 {
    font-size: 22px;
    line-height: 1.08;
  }

  .envivo-page {
    padding: 18px 0;
  }

  .envivo-title {
    align-items: flex-start;
  }

  .envivo-title h2 {
    font-size: 19px;
  }

  .envivo-filters {
    gap: 9px;
  }

  .envivo-filter {
    width: 100%;
  }

  .envivo-grid {
    grid-template-columns: 1fr;
  }

  .envivo-thumb {
    height: 185px;
  }

  .envivo-card-body h3 {
    min-height: auto;
    font-size: 14px;
  }

  .envivo-featured-thumb {
    height: 165px;
  }
}

/* ===========================
   HOME - CANDIDATOS CARRUSEL MÓVIL
=========================== */

@media (max-width: 767.98px) {
  .home-candidates-carousel {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
    align-items: center;
  }

  .home-candidates-track {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    display: flex;
    gap: 14px;
    scroll-snap-type: x mandatory;
  }

  .home-candidates-track .candidate-card {
    flex: 0 0 170px !important;
    width: 170px !important;
    min-width: 170px !important;
    scroll-snap-align: center;
  }

  .candidate-card img {
    height: 150px;
    object-fit: cover;
    object-position: top center;
  }

  .candidate-info h3 {
    font-size: 12px;
    line-height: 1.05;
  }

  .candidate-info p {
    font-size: 10px;
    line-height: 1.15;
  }

  .home-cand-nav {
    width: 34px;
    height: 34px;
    font-size: 18px;
    padding: 0;
  }
}