/* =========================================
   TABLET / PANTALLAS MEDIANAS
   ========================================= */

@media (max-width: 1050px) {

  /* -----------------------------------------
     HEADER
     ----------------------------------------- */

  .desktop-nav {
    gap: 14px;
  }

  .nav-wrap {
    gap: 15px;
  }

  .brand-social {
    gap: 14px;
  }

  .social-links {
    gap: 6px;
  }

  .social-links a {
    width: 28px;
    height: 28px;
  }

  .social-links svg {
    width: 14px;
    height: 14px;
  }

  .nav-actions {
    gap: 8px;
  }


  /* -----------------------------------------
     SECCIONES
     ----------------------------------------- */

  .two-col,
  .event-feature,
  .gbn-grid,
  .contact-grid {
    gap: 45px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  /* -----------------------------------------
     EVENTOS / NOTICIAS
     ----------------------------------------- */

  .event-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  /* -----------------------------------------
     FOOTER
     ----------------------------------------- */

  .footer-main {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }

  .footer-brand-column {
    grid-column: span 3;
  }

  .footer-location {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-location-info {
    max-width: 600px;
  }

}


/* =========================================
   TABLET PEQUEÑA / MÓVIL
   ========================================= */

@media (max-width: 780px) {

  .container {
    width: min(
      var(--container),
      calc(100% - 32px)
    );
  }

  .section {
    padding: 75px 0;
  }


  /* -----------------------------------------
     HEADER
     ----------------------------------------- */

  .desktop-nav,
  .nav-actions {
    display: none;
  }

  .nav-wrap {
    height: 82px;
  }

  .nav-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    cursor: pointer;
  }

  .nav-toggle span {
    height: 2px;
    width: 24px;
    background: currentColor;
    display: block;
    transition: .25s ease;
  }


  /* -----------------------------------------
     LOGO + REDES SOCIALES
     ----------------------------------------- */

  .brand-social {
    gap: 12px;
  }

  .social-links {
    gap: 6px;
  }

  .social-links a {
    width: 28px;
    height: 28px;
  }

  .social-links svg {
    width: 14px;
    height: 14px;
  }


  /* -----------------------------------------
     MENÚ MÓVIL
     ----------------------------------------- */

  .mobile-nav {
    display: flex;
    position: absolute;
    top: 82px;
    left: 0;
    width: 100%;
    background: white;
    color: var(--navy);
    flex-direction: column;
    padding: 10px 25px;

    max-height: 0;
    overflow: hidden;

    transition:
      max-height .3s ease,
      box-shadow .3s ease;
  }

  .mobile-nav.is-open {
    max-height: 600px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
  }

  .mobile-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }


  /* -----------------------------------------
     HERO CAROUSEL
     ----------------------------------------- */

  .hero {
    min-height: 760px;
  }

  .hero-slide .hero-content {
    padding-top: 150px;
  }

  .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
      linear-gradient(
        90deg,
        rgba(4, 18, 34, .92) 0%,
        rgba(4, 18, 34, .65) 100%
      );
  }

  .hero-controls {
    right: 25px;
    bottom: 35px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }

  .hero-dots {
    gap: 7px;
  }


  /* -----------------------------------------
     HERO ESTADÍSTICAS
     ----------------------------------------- */

  .hero-stats {
    gap: 20px;
    justify-content: space-between;
  }

  .hero-stats div {
    display: block;
  }

  .hero-stats strong {
    display: block;
  }

  .hero-stats span {
    display: block;
  }


  /* -----------------------------------------
     SECCIONES
     ----------------------------------------- */

  .two-col,
  .event-feature,
  .gbn-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-visual img {
    height: 450px;
  }

  .floating-card {
    left: 15px;
  }


  /* -----------------------------------------
     SERVICIOS / FORMACIÓN
     ----------------------------------------- */

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }


  /* -----------------------------------------
     CABECERAS DE SECCIÓN
     ----------------------------------------- */

  .section-heading.split {
    align-items: flex-start;
    flex-direction: column;
  }


  /* -----------------------------------------
     EVENTOS / NOTICIAS
     ----------------------------------------- */

  .event-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }


  /* -----------------------------------------
     FOOTER
     ----------------------------------------- */

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 35px 25px;
  }

  .footer-brand-column {
    grid-column: span 2;
  }

  .footer-location {
    grid-template-columns: 1fr;
    padding: 35px 0;
  }

  .footer-location-info {
    max-width: 600px;
  }

  .footer-map {
    width: 100%;
    height: 280px;
  }

  .footer-social-links {
    width: 100%;
  }


  /* -----------------------------------------
     GBN
     ----------------------------------------- */

  .tiers {
    grid-template-columns: 1fr 1fr;
  }

}


/* =========================================
   MÓVIL
   ========================================= */

@media (max-width: 520px) {

  /* -----------------------------------------
     HEADER
     ----------------------------------------- */

  .nav-wrap {
    height: 75px;
  }

  .mobile-nav {
    top: 75px;
  }

  .brand-social {
    gap: 9px;
  }

  .brand-name {
    font-size: .9rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .social-links {
    gap: 5px;
  }

  .social-links a {
    width: 27px;
    height: 27px;
  }

  .social-links svg {
    width: 13px;
    height: 13px;
  }


  /* -----------------------------------------
     HERO CAROUSEL
     ----------------------------------------- */

  .hero {
    min-height: 760px;
    display: flex;
    flex-direction: column;
  }

  .hero-slide .hero-content {
    padding-top: 140px;
  }

  .hero-slide .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content {
    padding: 150px 0 70px;
  }

  .hero-controls {
    right: 16px;
    bottom: 25px;
  }

  .hero-dots {
    gap: 6px;
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
  }


  /* -----------------------------------------
     HERO ACCIONES
     ----------------------------------------- */

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .hero-actions .btn {
    width: auto;
    max-width: 100%;
  }


  /* -----------------------------------------
     HERO ESTADÍSTICAS
     ----------------------------------------- */

  .hero-bottom {
    position: relative;
    margin-top: auto;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px 0;
  }

  .hero-stats strong {
    font-size: 1.2rem;
  }

  .hero-stats span {
    font-size: .6rem;
  }


  /* -----------------------------------------
     TITULARES
     ----------------------------------------- */

  h1 {
    font-size: 3.2rem;
  }


  /* -----------------------------------------
     CONTENIDO
     ----------------------------------------- */

  .icon-points,
  .form-row,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .about-visual img,
  .event-image img {
    height: 400px;
  }

  .floating-card {
    left: 10px;
    right: 10px;
    width: auto;
  }

  .date-badge {
    right: 10px;
  }


  /* -----------------------------------------
     FORMULARIO
     ----------------------------------------- */

  .contact-form {
    padding: 25px;
  }


  /* -----------------------------------------
     FOOTER
     ----------------------------------------- */

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand-column {
    grid-column: span 1;
  }

  .footer-location {
    grid-template-columns: 1fr;
    padding: 30px 0;
  }

  .footer-map {
    width: 100%;
    height: 250px;
    min-height: 250px;
  }

  .footer-map iframe {
    width: 100%;
    height: 250px;
  }

  .footer-social-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .social-link {
    width: auto !important;
  }

  .footer-bottom {
    display: block;
    padding-top: 22px;
  }

  .footer-bottom > div {
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 12px;
  }


  /* -----------------------------------------
     GBN
     ----------------------------------------- */

  .gbn-number {
    display: block;
  }

  .gbn-number strong {
    display: block;
  }


  /* -----------------------------------------
     REVISTA
     ----------------------------------------- */

  .magazine {
    min-height: 430px;
  }

}