/* =========================================================
   IMPRESIONES AL VUELO - Ajustes responsive (CSS puro)
   Mantiene colores, fuentes y estilo del diseño original;
   solo reordena y reescala en tablet (<992px) y móvil (<576px).
   ========================================================= */

.iav-solo-movil { display: none; }
img { max-width: 100%; }
html, body { overflow-x: hidden; }

/* ---------------------------------------------------------
   LAPTOP PEQUEÑA, TABLET Y MÓVIL  (hasta 1199px)
   --------------------------------------------------------- */
@media (max-width: 1199px) {
  .iav-solo-escritorio { display: none; }
  .iav-solo-movil { display: inline; }

  /* ---------- 1. PORTADA ---------- */
  .u-section-1 { background-size: cover; background-position: 50% 50%; }
  .u-section-1 .u-sheet-1 {
    min-height: 0; display: flex; flex-direction: column; align-items: center;
    padding: 30px 0 50px;
  }
  .u-section-1 .u-shape-1 { display: none; }
  .u-section-1 .u-image-2 {
    order: -1; width: 240px; height: 256px; margin: 0 auto 10px;
  }
  .u-section-1 .u-group-1 {
    width: 100%; max-width: 640px; min-height: 0; margin: 0 auto;
    background-color: #4d4d4d; border-radius: 15px;
  }
  .u-section-1 .u-container-layout-1 {
    padding: 0 30px 34px; display: flex; flex-direction: column;
  }
  .u-section-1 .u-image-1 {
    width: 340px; height: 409px; max-width: 100%; object-fit: contain;
    margin: -20px auto 0;
  }
  .u-section-1 .u-text-1,
  .u-section-1 .u-text-3 {
    font-size: 1.25rem; letter-spacing: 8px; margin: 20px 0 0; text-align: center;
  }
  .u-section-1 .u-text-2 {
    font-size: 3rem; line-height: 1.1; margin: 10px 0 0; text-align: center;
  }
  .u-section-1 .u-text-4 {
    font-size: 2rem; line-height: 1.15; margin: 26px 0 0; text-align: left;
  }
  .u-section-1 .u-btn-1 { margin: 28px auto 0; align-self: center; }
  .u-section-1 .u-text-5 {
    font-size: 1.1rem; letter-spacing: 6px; line-height: 1.6;
    margin: 26px 0 0; padding: 0 16px; text-align: center; align-self: stretch;
  }

  /* ---------- 7. el aro naranja no tapa los iconos ---------- */
  .u-section-7 .u-group-1 { position: relative; z-index: 1; }
}

/* ---------------------------------------------------------
   TABLET Y MÓVIL  (hasta 991px)
   --------------------------------------------------------- */
@media (max-width: 991px) {

  /* ---------- 4. ¿POR QUÉ ELEGIRNOS? ---------- */
  .u-section-4 .u-sheet-1 {
    min-height: 0; display: flex; flex-direction: column; padding: 50px 0;
  }
  .u-section-4 .u-shape-1, .u-section-4 .u-shape-2 { display: none; }
  .u-section-4 .u-group-2 {
    order: 1; width: 100%; min-height: 0; margin: 0;
    background-color: #f2f2f2; border-radius: 15px;
  }
  .u-section-4 .u-container-layout-2 { padding: 34px 30px 36px; }
  .u-section-4 .u-text-1, .u-section-4 .u-text-2 { margin-left: 0; margin-right: 0; }
  .u-section-4 .u-btn-1 { margin: 34px 0 0; }
  .u-section-4 .u-group-1 {
    order: 2; width: 100%; min-height: 0; margin: 30px 0 0;
    background: #ff7e05; border-radius: 15px; overflow: hidden;
  }
  .u-section-4 .u-container-layout-1 { position: relative; padding: 30px; }
  .u-section-4 .u-image-1 {
    position: absolute; left: 0; top: 0; width: 70%; height: 100%; margin: 0; opacity: .9;
  }
  .u-section-4 .u-image-2 {
    position: relative; width: 100%; max-width: 520px; height: auto; aspect-ratio: 1600 / 1452;
    margin: 0 auto; box-shadow: 0 12px 30px rgba(0,0,0,.25);
  }

  /* ---------- 5. QUIÉNES SOMOS ---------- */
  .u-section-5 .u-sheet-1 {
    min-height: 0; display: flex; flex-direction: column; padding: 50px 0;
  }
  .u-section-5 .u-shape-1, .u-section-5 .u-shape-2,
  .u-section-5 .u-shape-3 { display: none; }
  .u-section-5 .u-image-1 {
    order: 1; width: 100%; height: 360px; margin: 0; border-radius: 15px 15px 0 0;
  }
  .u-section-5 .u-group-1 {
    order: 2; width: 100%; min-height: 0; margin: 0; border-radius: 0 0 15px 15px;
  }
  .u-section-5 .u-container-layout-1 { padding: 30px; }

  /* ---------- 6. SUCURSALES ---------- */
  .u-section-6 .u-sheet-1 { min-height: 0; }
  .u-section-6 .u-layout-wrap-1 { margin-top: 30px; }
  .u-section-6 .u-layout-cell-1,
  .u-section-6 .u-layout-cell-2 { min-height: 0; }
  .u-section-6 .u-container-layout-1 { padding: 20px 10px; }
  .u-section-6 .u-text-1 { margin-top: 0; }
  .u-section-6 .u-container-layout-2 { padding: 10px; }
  .u-section-6 .u-btn-1 { margin: 30px auto 50px; }

  /* ---------- 7. REDES SOCIALES ---------- */
  .u-section-7 .u-sheet-1 {
    min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 50px 0;
  }
  .u-section-7 .u-shape-1, .u-section-7 .u-shape-2, .u-section-7 .u-shape-3 { display: none; }
  .u-section-7 .u-image-1 {
    width: 320px; height: 320px; margin: 0 auto;
  }
  .u-section-7 .u-group-1 {
    width: 100%; max-width: 560px; min-height: 0; margin: 30px auto 0;
  }
  .u-section-7 .u-container-layout-1 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px;
    padding: 30px 24px 34px; justify-items: center; align-items: start;
  }
  .u-section-7 .u-text-1 {
    grid-column: 1 / -1; justify-self: start; margin: 0 0 10px; font-size: 2.25rem;
  }
  .u-section-7 .u-container-layout-1 img,
  .u-section-7 .u-container-layout-1 p,
  .u-section-7 .u-container-layout-1 h2 { margin: 0 !important; }
  /* orden en cuadrícula: icono arriba y nombre abajo */
  .u-section-7 .u-image-2 { grid-area: 2 / 1; }
  .u-section-7 .u-text-2  { grid-area: 3 / 1; }
  .u-section-7 .u-image-3 { grid-area: 2 / 2; }
  .u-section-7 .u-text-4  { grid-area: 3 / 2; }
  .u-section-7 .u-image-4 { grid-area: 4 / 1; }
  .u-section-7 .u-text-3  { grid-area: 5 / 1; }
  .u-section-7 .u-image-5 { grid-area: 4 / 2; }
  .u-section-7 .u-image-2, .u-section-7 .u-image-3,
  .u-section-7 .u-image-4 { width: 170px; height: 170px; max-width: 100%; }
  .u-section-7 .u-image-5 { width: 140px; height: 140px; max-width: 100%; margin-top: 15px !important; }
  .u-section-7 .u-text-2, .u-section-7 .u-text-3, .u-section-7 .u-text-4 {
    text-align: center; margin-bottom: 14px !important;
  }

  .u-footer .u-sheet-1 { min-height: 0; padding: 30px 0; }
}

/* ---------------------------------------------------------
   MÓVIL  (hasta 575px)
   --------------------------------------------------------- */
@media (max-width: 575px) {
  .u-sheet { width: calc(100% - 32px) !important; }

  /* ---------- 1. PORTADA ---------- */
  .u-section-1 .u-sheet-1 { padding: 20px 0 40px; }
  .u-section-1 .u-image-2 { width: 170px; height: 181px; }
  .u-section-1 .u-container-layout-1 { padding: 0 18px 28px; }
  .u-section-1 .u-image-1 { width: 260px; height: 313px; margin-top: -10px; }
  .u-section-1 .u-text-1,
  .u-section-1 .u-text-3 { font-size: .95rem; letter-spacing: 5px; margin-top: 16px; }
  .u-section-1 .u-text-2 { font-size: 2.2rem; }
  .u-section-1 .u-text-4 { font-size: 1.35rem; margin-top: 20px; }
  .u-section-1 .u-text-5 { font-size: .9rem; letter-spacing: 4px; padding: 0; }

  /* ---------- 2. CATEGORÍAS (2 x 2) ---------- */
  .u-section-2 .u-sheet-1 { min-height: 0; padding: 40px 0; }
  .u-section-2 .u-list-1 { margin: 0; }
  .u-section-2 .u-repeater-1 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-gap: 14px !important; min-height: 0;
  }
  .u-section-2 .u-list-item { min-height: 0 !important; }
  .u-section-2 .u-container-layout { padding: 20px 10px !important; }
  .u-section-2 .u-icon { width: 46px !important; height: 46px !important; margin-top: 0 !important; }
  .u-section-2 .u-list-item h4 { font-size: 1.05rem !important; margin: 12px 0 0 !important; }
  .u-section-2 .u-list-item .u-btn { margin: 12px auto 0 !important; }

  /* ---------- 3. ÚLTIMOS TRABAJOS (2 columnas) ---------- */
  .u-section-3 .u-sheet-1 { min-height: 0; padding-bottom: 30px; }
  .u-section-3 .u-text-1 { font-size: 2rem; margin-top: 40px; }
  .u-section-3 .u-text-2 { width: auto !important; font-size: 1.05rem; line-height: 1.5; margin: 16px 0 0; }
  .u-section-3 .u-list-1 { margin-top: 24px; }
  .u-section-3 .u-repeater-1 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-gap: 12px !important; min-height: 0;
  }
  .u-section-3 .u-list-item { min-height: 0 !important; }
  .u-section-3 .u-container-layout { padding: 0 0 16px !important; }
  .u-section-3 .u-list-item .u-image { height: 190px !important; margin-top: 0 !important; }
  .u-section-3 .u-list-item h4 { font-size: .95rem !important; margin: 14px 8px 0 !important; }
  .u-section-3 .u-list-item p { font-size: .8rem !important; margin: 8px 8px 0 !important; }
  .iav-badge-fotos { top: 6px; right: 6px; font-size: .68rem; padding: 4px 7px; }

  /* ---------- 4. ¿POR QUÉ ELEGIRNOS? ---------- */
  .u-section-4 .u-sheet-1 { padding: 40px 0; }
  .u-section-4 .u-container-layout-2 { padding: 26px 20px 30px; }
  .u-section-4 .u-text-1 { font-size: 2rem; }
  .u-section-4 .u-text-2 { font-size: 1rem; }
  .u-section-4 .u-btn-1 { display: flex !important; width: 100%; }
  .u-section-4 .u-container-layout-1 { padding: 18px; }

  /* ---------- 5. QUIÉNES SOMOS ---------- */
  .u-section-5 .u-sheet-1 { padding: 40px 0; }
  .u-section-5 .u-image-1 { height: 220px; }
  .u-section-5 .u-container-layout-1 { padding: 24px 20px 30px; }
  .u-section-5 .u-text-2, .u-section-5 .u-text-3 { font-size: 1rem; }

  /* ---------- 6. SUCURSALES ---------- */
  .u-section-6 .u-text-1 { font-size: 2rem; }
  .u-section-6 .u-container-layout-1, .u-section-6 .u-container-layout-2 { padding-left: 0; padding-right: 0; }
  .iav-mapa iframe { height: 300px; }
  .iav-mapa-tab { padding: 14px 6px; letter-spacing: 1px; }
  .iav-mapa-link { letter-spacing: 1px; font-size: .72rem; }

  /* ---------- 7. REDES SOCIALES ---------- */
  .u-section-7 .u-sheet-1 { padding: 40px 0; }
  .u-section-7 .u-image-1 { width: 240px; height: 240px; }
  .u-section-7 .u-container-layout-1 { padding: 24px 14px 28px; gap: 4px 10px; }
  .u-section-7 .u-text-1 { font-size: 1.75rem; }
  .u-section-7 .u-image-2, .u-section-7 .u-image-3,
  .u-section-7 .u-image-4 { width: 120px; height: 120px; }
  .u-section-7 .u-image-5 { width: 100px; height: 100px; }
  .u-section-7 .u-text-2, .u-section-7 .u-text-3, .u-section-7 .u-text-4 { font-size: .85rem; }
}
