/* Ajustes móviles compartidos; la composición de escritorio se conserva. */
.mobile-disclosure > summary { display: none; }
.mobile-disclosure { min-width: 0; }
.mobile-disclosure-content { min-width: 0; }

@media (max-width: 991px) {
  :root { --header-offset: 122px; }
  html { scroll-padding-top: 0; }
  .site-header { z-index: 50; padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .header-main { height: 78px; min-height: 78px; }
  .brand-panel { width: 46%; padding: 14px 30px 14px 18px; }
  .brand-panel img { width: 230px; max-width: 100%; }
  .header-right { width: 54%; padding: 12px 16px 12px 8px; }
  .header-contact { display: flex; flex-wrap: nowrap; gap: 8px; min-height: 44px; }
  .header-contact .header-call { display: none; }
  .header-contact .quote-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; font-size: 14px; border-radius: 7px; }
  .header-contact .menu-toggle { width: 44px; height: 44px; flex-shrink: 0; }
  .menu-toggle span { width: 23px; }
  .notice-strip { min-height: 44px; padding: 11px 12px; font-size: 14px; line-height: 22px; }
  #navigation { top: 78px; padding: 10px 16px; max-height: calc(100vh - 146px); max-height: calc(100dvh - 146px); overscroll-behavior: contain; }
  #navigation > a { min-height: 48px; font-size: 15px; }
  main { padding-top: var(--header-offset); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  main [id], #contenido, .service-article section, .service-list li, .quote-panel, .sidebar-coverage { scroll-margin-top: calc(var(--header-offset) + 12px); }
}

@media (max-width: 767px) {
  :root { --header-offset: 116px; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { font-size: 17px; line-height: 1.55; }
  .header-main { height: 72px; min-height: 72px; }
  .brand-panel { width: 44%; padding: 12px 20px 12px 12px; }
  .header-right { width: 56%; padding: 10px 10px 10px 4px; }
  .header-contact { gap: 5px; }
  .header-contact .quote-button { font-size: 12px; padding: 9px 10px; }
  #navigation { top: 72px; }
  .notice-strip { font-size: 13px; }
  .notice-strip .notice-region { display: none; }
  .page-wrap { width: calc(100% - 32px); }
  main h1, main h2, main h3, main p, .footer-nav a { overflow-wrap: break-word; }
  input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), select, textarea { font-size: 16px !important; min-height: 48px; }
  input, select, textarea { scroll-margin-block: calc(var(--header-offset) + 16px) 100px; }
  a, button, summary { -webkit-tap-highlight-color: #044cd71a; }

  /* Una sola franja de contacto. SEC queda fijo y sin interacción. */
  .mobile-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: fixed; inset: auto 0 0; z-index: 40; gap: 8px; padding: 8px calc(64px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)); background: #fff; border-top: 1px solid var(--surface-line); box-shadow: 0 -4px 18px #03113312; }
  .mobile-actions a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 9px 6px; border-radius: 7px; font-size: 16px; font-weight: 700; line-height: 1.3; background: var(--yellow); color: var(--navy); }
  .mobile-actions a:last-child { background: #25d366; color: #063b22; }
  .sec-float { top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; transform: none; border-width: 2px; box-shadow: none; z-index: 45; }
  .wa-widget { display: none; }
  .site-footer { padding: 32px 20px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .footer-wrap { display: block; }
  .footer-nav { gap: 0 18px; justify-content: center; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
  .footer-contact { margin-top: 20px; }
  .footer-bottom button { min-height: 44px; }
  .mobile-keyboard-open .mobile-actions, .mobile-keyboard-open .sec-float { visibility: hidden; }

  /* Portada: título breve, fotografía y accesos compactos. */
  .hero-copy { padding: 22px 20px 20px; }
  .hero-copy::before { margin: 0 auto 12px; width: 34px; }
  .home-hero h1 { font-size: clamp(27px, 7.7vw, 36px); line-height: 1.15; }
  .hero-title-accent { display: inline; }
  .home-hero h1 .hero-audience { font-size: 19px; line-height: 1.3; margin-top: 10px; }
  .hero-subtitle { margin: 10px 0 0; font-size: 14px; }
  .hero-subtitle span { display: inline; }
  .hero-background { height: clamp(160px, 52vw, 300px); width: 100%; object-fit: cover; object-position: right center; }
  .hero-tiles { width: calc(100% - 32px); max-width: none; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px auto 22px; }
  .hero-tile { flex-direction: row; min-height: 86px; padding: 12px 9px; gap: 9px; border-width: 1px; box-shadow: none; text-align: left; }
  .hero-tile svg { width: 34px; height: 34px; }
  .hero-tile span { font-size: 14px; line-height: 1.35; }
  .hero-tile:hover { transform: none; }
  .appointment-band { padding: 24px 16px; }
  .appointment-band h2 { font-size: 20px; line-height: 1.35; margin-bottom: 16px; }
  .appointment-band form { grid-template-columns: 1fr; gap: 12px; }
  .appointment-band form > button { width: 100%; min-height: 48px; height: auto; font-size: 18px; margin: 0; }
  .appointment-band .appointment-field label { position: static; display: block; width: auto; height: auto; margin: 0 0 6px; overflow: visible; clip: auto; white-space: normal; font-size: 14px; color: var(--navy); }
  .home-services { display: flex; flex-direction: column; padding: 32px 0; }
  .services-intro { order: 0; padding: 0 18px; margin-bottom: 0; }
  .services-intro h2 { font-size: 25px; line-height: 1.25; margin-bottom: 16px; }
  .services-intro > p { font-size: 17px; }
  .category-grid { order: 1; grid-template-columns: 1fr; width: calc(100% - 32px); gap: 20px; margin-top: 18px; }
  .category-card { padding: 22px 16px 18px; border-width: 2px; border-radius: 14px; }
  .category-card h2 { font-size: 21px; line-height: 1.3; margin-bottom: 18px; min-height: 0; }
  .category-content { grid-template-columns: 1fr; gap: 16px; }
  .work-gallery-grid { height: 290px; }
  .work-gallery-grid--residential { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; height: 230px; }
  .work-photo-label { font-size: 10px; line-height: 1.3; }
  .category-links { display: grid; grid-template-columns: 1fr 1fr; padding: 0; gap: 8px; }
  .category-links a { min-height: 48px; padding: 9px 8px; font-size: 15px; border-radius: 7px; }
  .category-links a.all-services { min-height: 48px; font-size: 15px; grid-column: 1 / -1; }
  .work-comparison figcaption p { margin-bottom: 3px; }
  .address-request { order: 2; width: calc(100% - 32px); margin: 24px auto 0; border-radius: 12px; }
  .address-request-toolbar { grid-template-columns: 1fr; }
  .address-request-copy { padding: 18px; grid-template-columns: 1fr; border-right: 0; border-bottom: 1px solid var(--surface-line); }
  .address-request-copy .address-eyebrow, .address-request-copy h3, .address-request-copy > p:last-child { grid-column: 1; }
  .address-request-icon { display: none; }
  .address-request-body { padding: 18px; }
  .address-fields { grid-template-columns: 1fr; }
  .address-request > .mobile-disclosure { margin: 0; border: 0; border-radius: 0; border-top: 1px solid var(--surface-line); }
  #service-map, #service-map-interactive { height: 240px; }
  .address-map-heading, .address-map-footer { padding: 14px 18px; }
  .address-map-footer > span { display: none; }

  /* Los detalles siguen disponibles al desplegarlos. */
  .mobile-disclosure { margin: 14px 0; border: 1px solid var(--surface-line); border-radius: 9px; background: #fff; }
  .mobile-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 13px 15px; list-style: none; color: var(--navy); font-size: 16px; font-weight: 650; line-height: 1.4; cursor: pointer; }
  .mobile-disclosure > summary::-webkit-details-marker { display: none; }
  .mobile-disclosure > summary::after { content: '+'; flex-shrink: 0; color: var(--blue); font-size: 24px; line-height: 1; }
  .mobile-disclosure[open] > summary::after { content: '−'; }
  .mobile-disclosure[open] > summary { border-bottom: 1px solid var(--surface-line); }
  .mobile-disclosure-content { padding: 16px; }
  .mobile-disclosure-content > :last-child { margin-bottom: 0; }
  .mobile-disclosure--plain > .mobile-disclosure-content { padding: 0; }
  .mobile-disclosure--list { border: 0; background: transparent; margin: 0; }
  .mobile-disclosure--list > summary { padding: 12px 0; }
  .mobile-disclosure--list > .mobile-disclosure-content { padding: 14px 0 0; }
  .mobile-disclosure--dark { background: transparent; border-color: #ffffff35; color: #d6dfef; }
  .mobile-disclosure--dark > summary { color: #fff; }
  .mobile-disclosure--dark > summary::after { color: var(--yellow); }
  .mobile-disclosure--dark[open] > summary { border-color: #ffffff35; }
  .mobile-disclosure--card { border: 0; margin: 0; background: transparent; }
  .mobile-disclosure--card > summary { padding: 3px 0; min-height: 48px; }
  .mobile-disclosure--card > .mobile-disclosure-content { padding: 14px 0 0; }
  .mobile-disclosure--card > summary h3 { margin: 0; font-size: 18px; line-height: 1.35; }

  .sec-confidence { padding: 32px 18px; }
  .sec-confidence-wrap { grid-template-columns: 1fr; gap: 22px; }
  .sec-confidence-highlight { padding: 19px; display: grid; grid-template-columns: 42px 1fr; gap: 5px 14px; }
  .sec-confidence-shield { width: 42px; height: 48px; margin: 0; grid-row: 1 / 3; }
  .sec-highlight-brand, .sec-highlight-title { grid-column: 2; margin: 0; }
  .sec-highlight-title { font-size: 20px; }
  .sec-highlight-title br { display: none; }
  .sec-highlight-copy, .sec-highlight-footer { display: none; }
  .sec-confidence-content h2 { font-size: 25px; }
  .sec-confidence-lead { font-size: 17px; }
  .sec-confidence-details { grid-template-columns: 1fr; margin: 18px 0; }
  .home-coverage { padding: 32px 18px; }
  .coverage-wrap { display: block; }
  .home-coverage h2 { font-size: 26px; }
  .home-coverage .commune-box { margin-top: 12px; }

  /* Páginas interiores: una columna, fotos proporcionadas y menos bloques largos. */
  .inner-hero { padding: 18px 0 28px; }
  .breadcrumbs { margin-bottom: 18px; font-size: 12px; }
  .inner-hero-grid, .boards-page .inner-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .inner-hero h1, .boards-page .inner-hero h1, .lighting-page .inner-hero h1, .residential-page .inner-hero h1, .contact-page .contact-heading h1 { font-size: clamp(28px, 7.5vw, 36px); line-height: 1.15; margin-bottom: 16px; }
  .page-lead, .boards-page .page-lead, .contact-heading .page-lead { font-size: 18px; line-height: 1.55; }
  .boards-page .hero-support { font-size: 16px; margin-top: 12px; }
  .page-eyebrow { font-size: 11px; margin-bottom: 12px; }
  .page-actions { gap: 10px; margin-top: 20px; }
  .boards-page .page-actions a { flex: 1 1 140px; padding: 12px; font-size: 16px; min-height: 48px; }
  .boards-trust { margin-top: 20px; padding-top: 16px; gap: 8px 16px; font-size: 13px; }
  .boards-jump .page-wrap { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-block: 10px; }
  .boards-jump a { flex: 0 0 auto; display: flex; align-items: center; min-height: 44px; padding: 9px 12px; background: #f4f6fa; border-radius: 6px; font-size: 14px; white-space: nowrap; }
  .boards-jump a span { margin-right: 7px; }
  .boards-section { padding: 34px 0; }
  .boards-page h2, .company-content h2 { font-size: 25px; line-height: 1.25; }
  .boards-section-head { margin-bottom: 22px; }
  .boards-section-head > p { font-size: 17px; margin-top: 14px; }
  .boards-services-grid { grid-template-columns: 1fr; gap: 10px; }
  .boards-service { padding: 16px 18px; border-width: 1px; border-radius: 10px; }
  .boards-service-top { display: none; }
  .boards-gallery-grid, .boards-gallery-extra, .lighting-gallery, .residential-gallery { grid-template-columns: 1fr; gap: 18px; }
  .boards-gallery-extra .boards-gallery-card { grid-template-columns: 1fr; }
  .boards-hero-photo img, .residential-page .boards-hero-photo img { height: auto; max-height: 320px; object-fit: contain; }
  .boards-gallery-card img, .boards-gallery-extra .boards-gallery-card img, .residential-gallery .boards-gallery-card img, .boards-gallery-card:last-child img { height: auto; max-height: 360px; width: 100%; object-fit: contain; }
  .lighting-gallery .boards-gallery-card img { aspect-ratio: 4/3; height: auto; }
  .residential-gallery .boards-gallery-card:last-child { display: block; }
  .boards-gallery-card figcaption, .lighting-gallery figcaption, .residential-gallery figcaption, .residential-gallery .boards-gallery-card:last-child figcaption { padding: 18px; }
  .boards-gallery-card h3, .lighting-gallery h3, .residential-gallery h3 { font-size: 20px; }
  .boards-technical, .residential-overview { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; border-radius: 12px; }
  .boards-technical > .mobile-disclosure, .residential-overview > .mobile-disclosure { margin: 0; }
  .boards-quote-wrap { padding: 34px 0; }
  .boards-quote-grid, .boards-faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .boards-quote-copy > p { font-size: 17px; }
  .boards-quote-copy ul { margin-block: 16px; }
  .boards-page .boards-quote-panel { padding: 22px 18px; }
  .boards-page #quote-form { grid-template-columns: 1fr; }
  .boards-faq-grid .faq-section summary, .contact-faq summary, .faq-section summary { min-height: 44px; align-items: center; font-size: 16px; }
  .boards-sources a, .boards-other a { min-height: 44px; display: inline-flex; align-items: center; }
  .company-story, .company-experience, .company-purpose-grid, .company-principles-grid { grid-template-columns: 1fr; gap: 20px; }
  .company-content { padding-block: 32px; }
  .company-purpose-card { padding: 20px; }
  .company-purpose-card p { font-size: 17px; }
  .company-line-icon { width: 32px; height: 32px; margin-bottom: 10px; }
  .company-experience { padding-block: 32px; }
  .company-content .company-commitment h3 { font-size: 23px; }
  .contact-choices, .contact-information { grid-template-columns: 1fr; gap: 18px; }
  .contact-choice { padding: 22px 20px; }
  .contact-choice h2 { font-size: 23px; margin: 16px 0 10px; }
  .contact-choice > p { font-size: 17px; margin-bottom: 18px; }
  .contact-choice-top { gap: 12px; }
  .contact-choice-icon { width: 38px; height: 38px; }
  .contact-choice-note { font-size: 12px; }
  .contact-credentials { font-size: 12px; gap: 7px 12px; }
  .contact-information { padding-block: 34px; }
  .contact-faq { border-left: 0; padding: 24px 0 0; }
  .content-section { padding: 28px 16px 36px; }
  .content-wrap > h1 { margin-inline: 0; font-size: 28px; }
  .service-article, .service-sidebar { padding-inline: 0; }
  .service-article > section { margin-top: 22px; }
  .service-article h2 { font-size: 23px; }
  .service-sidebar { display: block; margin-top: 24px; }
  .service-list button { min-height: 44px; }
  .article-photo { max-width: 480px; }

  /* Diálogos y teclado: espacio utilizable y cierre accesible. */
  dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
  .dialog-close, .contact-dialog .contact-dialog-close, .wa-close { min-width: 44px; min-height: 44px; }
  .contact-dialog-head { position: relative; padding: 22px 20px 16px; }
  .contact-dialog-body { padding: 20px; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-client-options { gap: 8px; }
  .contact-client-options label { padding: 10px; font-size: 14px; }
  .contact-form-footer { flex-direction: column; align-items: stretch; }
  .work-comparison-dialog h2 { font-size: 22px; }
}

@media (max-width: 359px) {
  .header-contact .quote-button { font-size: 11px; padding-inline: 8px; }
  .brand-panel { padding-left: 8px; padding-right: 16px; }
  .hero-tile { gap: 7px; padding-inline: 7px; }
  .hero-tile svg { width: 28px; height: 28px; }
  .hero-tile span { font-size: 13px; }
  .category-links { grid-template-columns: 1fr; }
  .mobile-actions { gap: 6px; padding-left: 8px; }
  .mobile-actions a { font-size: 15px; }
}
