/* 📱 CORRECCIONES RESPONSIVE PARA MOBILE - LUIALON */
/* Versión: 3.0 - SEPARACIÓN CORRECTA HOME/ABOUT */

/* ========================================
   🎯 CORRECCIONES PRINCIPALES
======================================== */

/* 🚨 CORRECCIÓN CRÍTICA DEL LAYOUT PRINCIPAL */
@media screen and (max-width: 479px) {
  /* Contenedor principal */
  .wrp_homepage {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
  }
  
  /* Contenido principal */
  .div__main_content {
    flex: 1 !important;
    min-height: auto !important;
    padding-bottom: 20px !important;
  }
  
  /* Footer no estático */
  .footer-artsy {
    position: relative !important;
    margin-top: auto !important;
    z-index: 100 !important;
  }
  
  /* Wrapper de secciones */
  .div__wrappers {
    position: relative !important;
    margin-left: 0 !important;
    left: auto !important;
    display: block !important;
    overflow: visible !important;
  }

  /* 🔥 SEPARACIÓN CRÍTICA: ABOUT SECTION OCULTA POR DEFECTO EN HOME */
  .div__wrapper_about {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
  }

  /* 🔥 HOME SECTION VISIBLE POR DEFECTO */
  .div__wrapper_home {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 2 !important;
  }

  /* 🔥 CUANDO SE ACCEDE DIRECTAMENTE A ABOUT */
  body[data-section="about"] .div__wrapper_about,
  .div__wrappers[style*="100vw"] .div__wrapper_about {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
  }

  body[data-section="about"] .div__wrapper_home,
  .div__wrappers[style*="100vw"] .div__wrapper_home {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 1 !important;
  }

  /* 🔧 CENTRADO DEL CONTENEDOR HOME MOBILE */
  .div__home_m {
    object-fit: fill !important;
    align-items: center !important;
    justify-content: center !important;
    width: 91vw !important;
    height: 130vw !important;
    margin: 3vh auto !important;
    margin-bottom: 0 !important;
    display: flex !important;
    position: relative !important;
  }

  /* 🎨 SHOWCASE IMAGES - CENTRADO FORZADO */
  .img__showcase_1_m {
    width: 39.94% !important;
    height: auto !important;
    top: 46.58% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    position: absolute !important;
  }

  .img__showcase_2_m {
    width: 61.28% !important;
    height: auto !important;
    top: 0% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    position: absolute !important;
  }

  .img__showcase_3_m {
    width: 41.46% !important;
    height: auto !important;
    top: 25.12% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    position: absolute !important;
  }

  .img__showcase_4_m {
    width: 65.24% !important;
    height: auto !important;
    top: 29.43% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    position: absolute !important;
  }

  .img__showcase_5_m {
    width: 55.79% !important;
    height: auto !important;
    top: 61.73% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    position: absolute !important;
  }

  .img__showcase_6_m {
    width: 48.48% !important;
    height: auto !important;
    top: 60.22% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    position: absolute !important;
  }

  /* 🎯 NAVEGACIÓN CENTRADA */
  .div__nav {
    width: 91vw;
    margin: 8px auto;
    justify-content: center;
    align-items: center;
  }

  .div__nav_btn {
    justify-content: center;
    align-items: center;
    width: 13em;
    height: 28px;
    padding: 4px;
    margin: 0 4px;
    display: block;
    text-align: center;
  }

  /* 🎨 LOGO CENTRADO */
  .div__logo {
    padding-top: 0;
    text-align: center;
    width: 100%;
  }

  .div__logo-nav-lang {
    flex-direction: column;
    width: 91vw;
    align-items: center;
    margin: 0 auto;
  }

  /* 🔧 CORRECCIÓN DEL CONTENIDO PRINCIPAL */
  .div__main_content {
    background-image: url('../images/Noise--Texture-big.png');
    background-position: 50% 50%;
    background-repeat: repeat-y;
    background-size: 2100px;
    background-attachment: fixed;
    min-height: 210vw !important;
    width: 100%;
    overflow-x: hidden;
  }

  /* 🎯 ABOUT SECTION - SEPARADA DEL HOME */
  .div__about {
    justify-content: flex-start !important;
    align-items: center !important;
    width: 91vw !important;
    height: auto !important;
    min-height: 40vh !important;
    max-height: none !important;
    margin: 3vh auto !important;
    padding: 20px 0 !important;
    overflow: visible !important;
    position: relative !important;
    display: block !important;
  }

  .div__txt_about {
    width: 91vw !important;
    height: auto !important;
    padding: 25px 20px !important;
    margin: 0 auto !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    color: #000000 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    text-align: center !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 10 !important;
    backdrop-filter: blur(8px) !important;
  }

  /* 📝 TEXTO COMPLETAMENTE LEGIBLE EN ABOUT */
  .div__txt_about p,
  .div__txt_about .p1,
  .div__txt_about .p1.is--about,
  .div__txt_about .p1.is--wide {
    color: #000000 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    margin-bottom: 18px !important;
    text-shadow: none !important;
    letter-spacing: 0.3px !important;
    background: none !important;
  }

  /* 📝 TÍTULOS LEGIBLES EN ABOUT */
  .div__txt_about h1,
  .div__txt_about h2,
  .div__txt_about h3 {
    color: #000000 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    margin-bottom: 15px !important;
  }

  /* 🎨 GALERÍA CENTRADA */
  .div__gallery {
    width: 91vw;
    margin: 0 auto;
  }

  .div__content_gallery {
    width: 91vw;
    margin: 0 auto;
  }

  /* 🔧 FOOTER RESPONSIVE */
  .div__footer {
    width: 100%;
  }

  .div__footer_content {
    width: 91vw;
    margin: 0 auto;
  }

  /* ⬆️ BOTÓN BACK TO TOP */
  .btn__back2top {
    bottom: 20px;
    right: 20px;
  }

  /* 🎯 EFECTOS HOVER PARA MOBILE */
  .img__showcase_1_m,
  .img__showcase_2_m,
  .img__showcase_3_m,
  .img__showcase_4_m,
  .img__showcase_5_m,
  .img__showcase_6_m {
    transition: all 0.3s ease !important;
  }

  .img__showcase_1_m:active,
  .img__showcase_2_m:active,
  .img__showcase_3_m:active,
  .img__showcase_4_m:active,
  .img__showcase_5_m:active,
  .img__showcase_6_m:active {
    transform: translateX(-50%) scale(1.05) !important;
    z-index: 10 !important;
  }

  /* 🔧 CORRECCIONES GENERALES */
  body {
    overflow-x: hidden !important;
  }

  html {
    overflow-x: hidden !important;
  }

  /* 🎯 OCULTAR VERSIONES DESKTOP Y TABLET EN MOBILE */
  .div__wrapper_home,
  .div__home_pc,
  .div__home_t {
    display: block !important;
  }

  .div__home_pc,
  .div__home_t {
    display: none !important;
  }

  .div__home_m {
    display: flex !important;
  }
}

/* ========================================
   📱 TABLET RESPONSIVE (480px - 767px)
======================================== */
@media screen and (min-width: 480px) and (max-width: 767px) {
  /* Contenedor HOME para tablet */
  .div__home_t {
    width: 91vw;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
  }

  /* Imágenes showcase tablet centradas */
  .img__showcase_1_t,
  .img__showcase_2_t,
  .img__showcase_3_t,
  .img__showcase_4_t,
  .img__showcase_5_t,
  .img__showcase_6_t {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .img__showcase_1_t {
    width: 35% !important;
    top: 45% !important;
  }

  /* Navegación tablet */
  .div__nav {
    width: 91vw;
    margin: 0 auto;
  }

  .div__logo-nav-lang {
    width: 91vw;
    margin: 0 auto;
  }
}

/* ========================================
   💻 DESKTOP RESPONSIVE (992px+)
======================================== */
@media screen and (max-width: 991px) {
  /* Correcciones generales para desktop pequeño */
  .div__wrapper_home,
  .div__wrapper_about,
  .div__wrapper_gallery {
    width: 100%;
  }

  .h1 {
    font-size: 2.5rem;
  }

  .h2, .h3 {
    font-size: 1.8rem;
  }

  .p1 {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* ========================================
   🔧 DEBUG Y DESARROLLO
======================================== */

/* Descomenta para debug visual */
/*
@media screen and (max-width: 479px) {
  .div__home_m {
    border: 2px solid red !important;
  }
  
  .img__showcase_1_m,
  .img__showcase_2_m,
  .img__showcase_3_m,
  .img__showcase_4_m,
  .img__showcase_5_m,
  .img__showcase_6_m {
    border: 1px solid blue !important;
  }
}
*/ 