/* =====================================================
   Lux Interiores · AJUSTES PARA CELULAR
   Cargar SIEMPRE al final (después de nuevos-estilos.css)
   ===================================================== */

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, iframe, video { max-width: 100%; }

/* ---------- Tablet / celular grande ---------- */
@media (max-width: 800px) {
    .nav { min-height: 68px; gap: 12px; }
    .logo { font-size: 34px; letter-spacing: .12em; }
    .logo small { font-size: 11px; letter-spacing: .4em; }
    .menu { gap: 10px; }
    .menu .btn { padding: 10px 16px; font-size: 14px; }

    section { padding: 60px 0; }
    #servicios, .nx-about, .nx-works, .nx-quote, .nx-contacto,
    .lx-servicios, .lx-ba-sec, .lx-testi, .sp-options, .sp-gallery, .lb-sec {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .sp-cta { padding: 56px 0; }
    .sp-more { padding: 40px 0; }

    .lx-hero { min-height: 72vh; }
    .lx-hero.sub { min-height: 56vh; }
    .lx-hero-copy { padding-top: 90px; padding-bottom: 48px; }
    .lx-hero h1 { max-width: none; }
}

/* ---------- Celular ---------- */
@media (max-width: 560px) {
    .wrap { width: 90%; }

    /* Encabezado */
    .nav { min-height: 60px; }
    .logo { font-size: 26px; letter-spacing: .1em; text-align: left; }
    .logo small { font-size: 9px; letter-spacing: .34em; text-align: left; }
    .menu .btn { padding: 9px 14px; font-size: 13px; }

    /* Títulos */
    h2 { font-size: clamp(26px, 8vw, 34px); }
    .lead { font-size: 15px; }

    /* Portada */
    .lx-hero { min-height: 68vh; }
    .lx-hero.sub { min-height: 52vh; }
    .lx-hero-copy { padding-top: 80px; padding-bottom: 36px; }
    .lx-hero h1 { font-size: clamp(32px, 10vw, 44px); }
    .lx-hero p { font-size: 15px; margin-bottom: 20px; }
    .lx-hero-btns { gap: 10px; }
    .lx-hero-btns .btn { flex: 1 1 100%; text-align: center; padding: 13px 16px; }
    .sp-back { margin-bottom: 12px; font-size: 14px; }

    /* Franja de confianza: 2 columnas compactas */
    .lx-trust { padding: 22px 0; }
    .lx-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
    .lx-trust-grid b { font-size: 13px; }
    .lx-trust-grid span { font-size: 12px; }

    /* Mosaico de servicios */
    .lx-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; }
    .lx-tile span { font-size: 15px; left: 10px; bottom: 10px; right: 8px; line-height: 1.2; }

    /* Antes / después */
    .lx-ba { aspect-ratio: 4 / 3; }
    .lx-ba-tag { font-size: 12px; padding: 4px 10px; }

    /* Quiénes somos y proceso */
    .nx-about-grid { gap: 28px; }
    .nx-about-img img { height: 240px; }
    .lx-proc-title { font-size: 24px; }
    .lx-proc li { padding: 16px; }

    /* Galerías */
    .nx-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 22px; }
    .nx-gallery img { height: 170px; }
    #trabajos-realizados .nx-gallery img { height: 170px; }
    .nx-gallery figcaption { padding: 10px 10px 12px; }
    .nx-gallery figcaption strong { font-size: 13px; }
    .nx-gallery figcaption span { font-size: 11px; align-items: flex-start; }
    #trabajos.nx-works .nx-gallery { grid-template-columns: 1fr; gap: 14px; }
    #trabajos.nx-works .nx-gallery img { height: 220px; }
    #trabajos.nx-works .nx-gallery figcaption strong { font-size: 16px; }
    #trabajos.nx-works .nx-gallery figcaption span { font-size: 13px; }

    /* Tarjetas de opciones en subpáginas */
    .sp-opts { gap: 14px; }
    .sp-opt-body { padding: 16px 18px 20px; }
    .sp-opt h3 { font-size: 20px; }

    /* Catálogos (lambrín, pisos, mármol) */
    .lb-tabs { gap: 8px; margin-bottom: 20px; }
    .lb-tab { flex: 1 1 auto; padding: 10px 14px; font-size: 14px; text-align: center; }
    .lb-grid, .lb-grid.plates { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .lb-info { padding: 10px 10px 12px; }
    .lb-info b { font-size: 15px; }
    .lb-info span { font-size: 11px; }
    .lb-ask { font-size: 13px; padding: 6px 0; }

    /* Testimonios */
    .lx-testi blockquote { padding: 20px; }
    .lx-testi blockquote p { font-size: 17px; }

    /* Formulario (16px evita el zoom automático en iPhone) */
    .nx-form { padding: 20px; gap: 14px; }
    .nx-form h3 { font-size: 22px; }
    .nx-form input, .nx-form select, .nx-form textarea { font-size: 16px; }
    .nx-form .btn { width: 100%; justify-self: stretch; text-align: center; padding: 14px; }
    .nx-quote-grid { gap: 28px; }

    /* Contacto */
    .nx-map, .nx-map iframe { min-height: 240px; }
    .nx-info { padding: 20px; gap: 20px; }
    .nx-actions .btn { flex: 1 1 100%; text-align: center; justify-content: center; }
    .nx-social a { width: 42px; height: 42px; }

    /* Franja de cotización */
    .sp-cta h2 { font-size: clamp(24px, 7vw, 30px); }
    .sp-cta .btn { display: block; max-width: 320px; margin: 0 auto; }
    .sp-chips a { padding: 8px 14px; font-size: 14px; }

    /* Pie de página */
    footer { padding: 36px 0 90px; }
    .foot { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Celulares muy chicos ---------- */
@media (max-width: 360px) {
    .logo { font-size: 22px; }
    .lx-mosaic { grid-auto-rows: 130px; }
    .lb-grid, .lb-grid.plates { gap: 8px; }
}

/* En pantallas táctiles no hace falta el zoom al pasar el dedo */
@media (hover: none) {
    .nx-gallery figure:hover img,
    .lx-tile:hover img,
    .sp-opt:hover img,
    .lb-card:hover .lb-sw img { transform: none; }
}