/* ============================================================
   PREMIOS AVA — styles-mobile.css
   ============================================================ */
/* Responsive */
@media (max-width: 992px) {
    .section-memorias .owl-carousel .item img {
        height: 250px;
    }
}


@media (max-width: 778px) {

  /* ── Reset global ── */
  html, body {
    overflow-x: hidden;
    max-width: 100%;
    background-color: #fff;
  }

  /* Tipografía */
  h1 { font-size: 26px; line-height: 1.3; }
  h2 { font-size: 21px; line-height: 1.35; }
  h3 { font-size: 16px; line-height: 1.4; }
  h4, h5 { font-size: 14px; }
  p, a { font-size: 14px; line-height: 1.6; }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ─────────────────────────────────────────
     NAVBAR
  ───────────────────────────────────────── */
  .navbar-brand img { max-height: 60px; }

  .navbar-light {
  padding: 0;}

  .navbar-toggler {
    border: none;
    box-shadow: none !important;
    padding: 4px 8px;
  }

  .navbar-toggler-icon {
    width: 2rem;
    height: 2.1rem;
    background-color: #1d52a4;
    border-radius: 5px;
    background-size: 80%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

 .navbar-collapse {
  background-color: #0e3575;
  border: none;
  box-shadow: none;
  margin-left: -16px;  
  margin-right: -16px;  
  padding-left: 0;
  padding-right: 0;
}

  .navbar-nav .nav-link {
    color: #fff !important;
    font-size: 14px;
    padding: 14px 32px;
    text-align: center;
    border: none;
    box-shadow: none;
     width: 100%;
  }

  .navbar-light .navbar-nav .nav-link.active {
    color: #fff;
    padding-bottom: 12px;
    border: none;
  }

 .navbar-nav .nav-item {
  margin: 0;
  padding: 0;
}

 .navbar-light .navbar-nav .nav-link:hover {
  background-color: #124296;
  color: #fff;
  padding: 14px 16px;  
  margin: 0;
}

  /* ─────────────────────────────────────────
     SECCIÓN QUÉ ES AVA
  ───────────────────────────────────────── */
  .section-que-es {
    background-size: cover;
    background-position: center top;
    padding: 24px 0 0;
  }

  .section-que-es .container {
    padding-top: 60px;
  }

  /* Ocultar colibríes — causan solapamientos */
  .colibri-flotante,
  .colibri-flotante2 {
    display: none !important;
  }

  .section-que-es h1 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    padding-top: 8px;
    text-align: center;
  }

  .btn-custom-ava {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    text-align: center;
  }

  /* Card Alma / Valor / Ambiente */
  .section-que-es-fondo-card {
    padding: 20px 16px 16px;
    margin-top: 0;
  }

  .section-que-es-fondo-card h2 {
    font-size: 18px;
    margin-bottom: 16px !important;
  }

  .concepto-ava {
    background-size: 40px auto;
    background-position: 12px center;
    padding: 12px 12px 12px 60px;
    min-height: 56px;
    margin-bottom: 12px !important;
    display: flex;
    align-items: center;
  }

  .concepto-ava p {
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
  }

  .fondo-alma,
  .fondo-valor,
  .fondo-ambiente {
    background-size: 280px auto;
    background-position: 12px center;
    padding-left: 80px;
  }

  .ava-descripcion-final {
    padding: 18px 16px;
    margin: 0;
  }

  .ava-descripcion-final p {
    font-size: 13px;
    line-height: 1.6;
    min-height: auto;
    margin-top: 0;
    padding: 0;
  }

  /* ─────────────────────────────────────────
     CATEGORÍAS
  ───────────────────────────────────────── */
  .section-catg {
    padding: 24px 12px;
    margin-top: 0 !important;
  }

  .section-catg h2 { font-size: 20px; }

  .section-catg > .container > p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px !important;
  }

  .section-catg-card-title1,
  .section-catg-card-title2,
  .section-catg-card-title3 {
    font-size: 15px;
    margin-top: 10px;
  }

  .section-catg .card-text {
    font-size: 13px;
    line-height: 1.5;
  }

  .section-catg .card-body {
    padding: 16px 14px;
    max-width: 100%;
    height: 350px;
  }

  .section-catg img {
    width: 75px;
    height: auto;
  }

  .section-catg .col-md-3 {
    margin-bottom: 12px;
  }

  /* ─────────────────────────────────────────
     GALARDÓN
  ───────────────────────────────────────── */
  .section-galardon img {
    width: 75%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
  }

  .accordion-button {
    font-size: 15px;
    padding: 12px 14px;
    margin-top: 0;
  }

  .section-galardon .accordion-item {
    font-size: 14px;
  }

  .section-galardon .btn-custom-galardon {
    font-size: 14px;
    display: block;
    width: fit-content;
    margin: 16px auto 0;
    border-radius: 30px;
    padding: 10px 26px;
  }

  /* ─────────────────────────────────────────
     BENEFICIOS
     CRÍTICO: el container desktop tiene margin-top: 450px
  ───────────────────────────────────────── */
  .section-benef {
    background-size: cover;
    background-position: center center;
    padding: 40px 16px 40px;
    min-height: auto;
    position: relative;
  }

  /* Anular el margin-top: 450px del desktop */
  .section-benef .container {
    margin-top: 70px !important;
  }

  .section-benef h2 { font-size: 22px; }
  .section-benef h3 { font-size: 15px; }

  .card-beneficio { border-radius: 14px; }

  .card-beneficio h3 {
    font-size: 17px;
    line-height: 1.2;
  }

  .section-benef .accordion-button {
    font-size: 13px;
    padding: 11px 14px;
  }

  .section-benef li {
    font-size: 13px;
    line-height: 1.6;
  }

  .section-benef .col-md-6 {
    margin-bottom: 14px;
  }

  /* ─────────────────────────────────────────
     PREMIOS — Fix del overlay oscuro
     El ::before cubre toda la pantalla por overflow
  ───────────────────────────────────────── */
  .section-premios {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 36px 30px 36px;
    position: relative;
    overflow: hidden; /* Contiene el ::before */
  }

  /* El overlay debe empezar en 0, no en -100px */
  .section-premios::before {
    top: 0 !important;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .section-premios h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
  }

  .titulo-premios {
    font-size: 36px;
    line-height: 1;
  }

  .section-premios h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .section-premios .text-md-start {
    padding-left: 0;
    text-align: left;
  }

  .section-premios .btn {
    font-size: 16px;
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin: 16px 0 0;
    padding: 10px 22px;
    border-radius: 16px;
  }

  /* Video 16:9 responsive */
  .section-premios .col-12.col-md-8 {
   padding-left: 0;
  padding-right: 0;
  }

  .section-premios .video-redondo {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 0;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
}

.section-premios .video-redondo iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

  /* ─────────────────────────────────────────
     ALIADOS
  ───────────────────────────────────────── */
  .section-aliados { padding: 24px 0; }
  .section-aliados .container { padding-top: 8px; }
  .section-aliados h2 { font-size: 18px; }
  .owl-nav {top:20%;}
  .logo-item { height: 65px; }
  .logo-item img { max-height: 52px; height: auto; }

  /* ─────────────────────────────────────────
     NUESTRAS EMPRESAS
  ───────────────────────────────────────── */
  .section-nuestras-emprs { padding: 32px 16px; }
  .section-nuestras-emprs h2 { font-size: 20px; }

  .btn-ava-small {
    font-size: 13px;
    padding: 7px 16px;
  }

  .btn-ava-large {
    font-size: 13px;
    padding: 7px 12px;
  }

  /* Tarjetas empresa: imagen arriba, texto abajo */
  .empresa-card .card.d-flex,
  .section-nuestras-emprs .card.d-flex {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .card-img-left,
  .card-img-construtesla {
    width: 100% !important;
    max-width: 100% !important;
    height: 180px !important;
    object-fit: cover;
    border-radius: 8px 8px 0 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0;
  }

  .section-nuestras-emprs .card-body {
    text-align: left;
    padding: 12px 8px 10px !important;
  }

  .section-nuestras-emprs .card-title {
    font-size: 13px;
    margin-top: 0;
    line-height: 1.3;
  }

  .section-nuestras-emprs strong { font-size: 12px; }

  .section-nuestras-emprs p {
    font-size: 12px;
    line-height: 1.4;
  }

  .section-nuestras-emprs a {
    font-size: 12px;
  }

  .section-nuestras-emprs .card {
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .section-nuestras-emprs .col-md-6 {
    margin-bottom: 12px;
  }

  /* ─────────────────────────────────────────
     CONTACTO
  ───────────────────────────────────────── */
  .section-contacto {
    margin-top: 0;
    padding: 36px 16px;
    background-size: cover;
  }

  .section-contacto h2 {
    font-size: 17px;
    line-height: 1.45;
  }

  .section-contacto form {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .custom-input {
    width: 100% !important;
    font-size: 14px;
    height: 44px;
    padding: 10px 16px;
    border-radius: 22px;
  }

  .custom-btn {
    width: 100% !important;
    font-size: 13px;
    height: 44px;
    border-radius: 22px;
    padding: 10px 16px;
  }

  /* ─────────────────────────────────────────
     BENEFICIOS CCB
  ───────────────────────────────────────── */
  .section-benf-emprs {
    margin: 0;
    padding: 28px 16px;
  }

  .section-benf-emprs h2 {
    font-size: 19px;
    text-align: center;
    margin-bottom: 20px;
  }

  .section-benf-emprs .card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    margin: 0;
  }

  .section-benf-emprs .card {
    margin-top: 0;
    border: none;
    border-radius: 10px;
    overflow: hidden;
  }

  .section-benf-emprs .card-body {
    text-align: left;
    padding: 14px 12px;
  }

  .section-benf-emprs .card-title {
    font-size: 15px;
    line-height: 1.3;
  }

      .section-memorias .owl-carousel .item img {
        height: 200px;
    }

  .section-benf-emprs .card-text {
    font-size: 13px;
    line-height: 1.5;
  }

  .section-benf-emprs .col-md-4 {
    margin-bottom: 16px;
  }

  .section-benf-emprs .btnbenf_empresas {
    font-size: 13px;
    width: 110px;
    height: 38px;
    border-radius: 19px;
    padding: 8px 12px;
    display: block;
    margin-left: 0;
    margin-right: auto;
  }

  /* ─────────────────────────────────────────
     MEMORIAS / SLIDER
  ───────────────────────────────────────── */
  .slider { padding: 16px 0; }

  .section-memorias h2 {
    font-size: 22px !important;
    padding: 0 16px;
  }

  .section-memorias .owl-carousel { margin-top: 12px; }

  .section-memorias .owl-carousel .item img {
    height: 190px;
    object-fit: cover;
  }

  /* ─────────────────────────────────────────
     FOOTER
  ───────────────────────────────────────── */
  .section-fter {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .section-fter-titulo { padding-left: 16px; }

  .section-fter h3 {
    font-size: 16px;
    text-align: left;
  }

  .section-fter h5,
  .section-fter strong {
    font-size: 15px;
    text-align: left;
  }

  .section-fter p,
  .section-fter .link-hover {
    font-size: 13px !important;
  }

  .section-fter .col-12.col-md-6 {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Botones footer — sin desbordamiento */
  .section-fter .btn-primary,
  .section-fter .btn-outline-primary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .section-fter .d-grid { gap: 10px; }

  .section-fter .btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
}

/* ─────────────────────────────────────────
   MÓVIL PEQUEÑO ≤ 480px
───────────────────────────────────────── */
@media (max-width: 480px) {

  h1 { font-size: 22px; }
  h2 { font-size: 19px; }
  h3 { font-size: 15px; }
  p, a { font-size: 13px; }

  .section-que-es h1 { font-size: 20px; }

  .section-premios h2  { font-size: 38px; }
  .titulo-premios      { font-size: 30px; }

  /* Filtros compactos */
  .btn-ava-small,
  .btn-ava-large {
    font-size: 12px;
    padding: 6px 11px;
  }

  /* Ocultar SVGs en botones de categoría */
  .filter-cat svg {
    display: none;
  }

  .card-img-left,
  .card-img-construtesla {
    height: 155px !important;
  }

  .section-memorias .owl-carousel .item img {
    height: 155px;
  }
}