
    /* A.2 — COLORES: cambiar estas variables modifica toda la paleta. */
    :root {
      --blue: #1854b8;
      --navy: #153f78;
      --text: #253a52;
      --muted: #536477;
      --pale: #edf4fd;
      --border: #dce5f0;
      --white: #ffffff;
      --radius: 7px;
    }

    /* A.3 — REGLAS GENERALES: tipografía, márgenes y controles. */
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; font: 16px/1.65 Arial, Helvetica, sans-serif; color: var(--text); background: white; }
    h1, h2, h3, p { margin-top: 0; }
    h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }
    h1 { font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 600; }
    h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); font-weight: 600; }
    h3 { font-size: 1.2rem; }
    p { color: var(--muted); }
    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }
    button, input, select, textarea { font: inherit; }
    button, select { cursor: pointer; }
    button:disabled { cursor: default; opacity: .55; }
    button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
    a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #65a8ff; outline-offset: 4px; }
    [hidden] { display: none !important; }
    .container { max-width: 1320px; margin: auto; padding-left: 44px; padding-right: 44px; }
    .section { padding-top: 60px; padding-bottom: 65px; }
    .eyebrow { display: block; color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .12em; margin-bottom: 17px; }
    .small { font-size: .875rem; }
    .muted { color: var(--muted); }
    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
    .skip-link { position: fixed; top: -100px; left: 18px; z-index: 200; padding: 10px 18px; background: var(--navy); color: white; }
    .skip-link:focus { top: 10px; }
    .button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 13px 23px; border: 1px solid transparent; border-radius: var(--radius); font-size: .96rem; font-weight: 600; line-height: 1.45; cursor: pointer; }
    .primary { background: var(--blue); color: white; }
    .primary:hover { background: #124899; }
    .secondary { background: white; border-color: #b9cce6; color: var(--navy); }
    .secondary:hover { background: var(--pale); }
    .text-link { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; font-size: .96rem; font-weight: 600; }
    .blank-image { display: block; width: 100%; height: 100%; background: white; }

    /* A.4 — REGLAS BASE DEL ENCABEZADO. Las medidas vigentes están en A.20. */
    .masthead { min-height: 113px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
    .logo-slot { display: block; width: 238px; height: 77px; border: 1px solid #edf1f6; background: white; border-radius: 2px; }
    .masthead-contact { display: flex; align-items: center; gap: 34px; }
    .masthead-contact a { font-size: 1rem; white-space: nowrap; }
    .masthead-contact .header-phone { font-size: 1.2rem; font-weight: 600; letter-spacing: .02em; }

    /* A.5 — NAVEGACIÓN: barra azul y catálogo desplegable por categorías. */
    .nav-band { background: var(--blue); color: white; position: relative; z-index: 50; }
    .nav-inner { min-height: 54px; display: flex; align-items: center; justify-content: space-between; }
    .main-menu { display: flex; align-items: stretch; justify-content: space-between; width: 100%; list-style: none; padding: 0; margin: 0; }
    .main-menu > li { display: flex; align-items: center; }
    .nav-link, .catalog-toggle { min-height: 54px; display: flex; align-items: center; padding: 13px 12px; color: white; background: transparent; border: 0; font-size: .875rem; white-space: nowrap; }
    .nav-link:hover, .nav-link[aria-current="page"], .catalog-toggle:hover { background: #104697; }
    .catalog-toggle { font-size: 1.15rem; padding-left: 4px; padding-right: 12px; }
    .mega-menu { position: absolute; top: 100%; left: max(30px, calc((100vw - 1232px)/2)); width: 880px; max-width: calc(100vw - 60px); background: white; color: var(--text); padding: 26px; border: 1px solid var(--border); border-radius: 0 0 8px 8px; box-shadow: 0 14px 30px #173d6826; }
    .mega-grid { display: grid; grid-template-columns: 1.3fr 1fr .9fr; gap: 24px; }
    .mega-column { display: grid; align-content: start; gap: 4px; }
    .mega-category { display: flex; align-items: center; gap: 9px; font-weight: 700; margin-bottom: 9px; padding: 6px; }
    .menu-image-slot { display: block; width: 30px; height: 26px; background: white; border: 1px solid #eff2f7; flex-shrink: 0; }
    .menu-image-slot img { width: 100%; height: 100%; object-fit: contain; }
    .mega-product { font-size: .9rem; padding: 10px; border-radius: 4px; }
    .mega-product:hover, .mega-category:hover { background: var(--pale); }
    .mega-all { display: block; border-top: 1px solid var(--border); margin-top: 18px; padding-top: 16px; color: var(--blue); font-size: .94rem; font-weight: 600; }
    .mobile-menu-button, .mobile-catalog-link { display: none; }

    /* A.6 — PORTADA: dos fotos superpuestas, transición y texto legible. */
    .hero { height: 530px; position: relative; isolation: isolate; background: var(--pale); overflow: hidden; }
    .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
    .hero-slide.active { opacity: .96; }
    .hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg,#ffffffe0 0%,#ffffffc9 30%,#ffffff33 58%,#ffffff00 85%); }
    .hero-content { height: 100%; position: relative; display: flex; align-items: center; }
    .hero-copy { max-width: 510px; padding-bottom: 10px; }
    .hero-copy h1 { font-size: 3.35rem; line-height: 1.15; margin-bottom: 21px; color: #203a5d; }
    .hero-copy h1 em { font-style: normal; color: var(--blue); }
    .hero-copy p { font-size: 1.12rem; line-height: 1.85; max-width: 475px; color: #3d526c; margin-bottom: 23px; }
    .hero-consult { position: absolute; right: 44px; bottom: 83px; padding: 16px 28px; }
    .hero-controls { display: flex; align-items: center; gap: 8px; position: absolute; left: 44px; bottom: 24px; }
    .hero-controls button { width: 38px; height: 40px; display: grid; place-items: center; border: 1px solid #becfe3; border-radius: 6px; background: white; color: var(--blue); }
    .slide-dot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #b7c9df; }
    .slide-dot[aria-pressed="true"]::after { background: var(--blue); }

    /* A.7 — CATÁLOGO: tres recuadros por fila en escritorio. */
    .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
    .section-heading h2 { margin-bottom: 14px; }
    .section-heading p { margin-bottom: 0; }
    .product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 27px; }
    .product-card { background: white; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: transform .18s, box-shadow .18s; }
    .product-card:hover { transform: scale(1.025); box-shadow: 0 9px 28px #17345016; }
    .product-card > a { display: flex; flex-direction: column; height: 100%; cursor: pointer; }
    .product-picture { aspect-ratio: 1.5; background: white; }
    .product-picture img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
    .product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
    .product-category { color: #4a6b96; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; font-weight: 600; }
    .product-body h3 { font-size: 1.28rem; min-height: 54px; margin-bottom: 12px; line-height: 1.35; color: #203b61; }
    .product-body p { font-size: 1rem; min-height: 78px; margin-bottom: 21px; }
    .product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--border); }
    .status { display: inline-flex; padding: 6px 8px; border-radius: 5px; font-size: .875rem; line-height: 1.4; background: #edf2f6; color: #516778; font-weight: 600; }
    .status.available { background: #e8f2ec; color: #246443; }
    .status.unavailable { background: #f4eeee; color: #825653; }
    .card-details { color: var(--blue); font-size: .875rem; font-weight: 600; white-space: nowrap; }
    .catalog-page { padding-top: 34px; padding-bottom: 65px; }
    .catalog-page h1 { font-size: 2.4rem; margin-bottom: 15px; }
    .catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 27px 0; }
    .category-filters { display: flex; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--border); }
    .category-filters button { min-height: 44px; padding: 10px 12px; background: transparent; color: var(--muted); border: 0; border-bottom: 2px solid transparent; font-size: .94rem; }
    .category-filters button[aria-pressed="true"] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
    .stock-filter { display: flex; align-items: center; gap: 10px; font-size: .94rem; }
    select { min-height: 44px; padding: 8px 12px; border: 1px solid #bccfdf; border-radius: 6px; background: white; color: var(--text); }
    .empty-state { padding: 45px 24px; text-align: center; background: var(--pale); border-radius: 8px; }
    .empty-state p { margin-bottom: 18px; }

    /* A.8 — RUTAS Y TÍTULOS: barra de ubicación y encabezados de páginas. */
    .breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: .875rem; color: var(--muted); margin-bottom: 26px; }
    .breadcrumb a:hover { text-decoration: underline; }
    .page-top { background: var(--pale); padding: 42px 0; }
    .page-top h1 { max-width: 850px; margin-bottom: 20px; }
    .page-top p { max-width: 720px; font-size: 1.06rem; margin-bottom: 0; }
    .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; }
    .info-card { background: var(--pale); padding: 30px; border: 1px solid #e1eaf5; border-radius: 8px; }
    .reading { max-width: 790px; }
    .reading h2 { font-size: 1.8rem; margin-top: 35px; }

    /* A.9 — FICHAS: galería a la izquierda y características a la derecha. */
    .detail-section { padding-top: 30px; padding-bottom: 55px; min-height: 650px; }
    .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
    .gallery-main { position: relative; width: 100%; height: 365px; background: white; border: 1px solid var(--border); border-radius: 5px; padding: 8px; overflow: hidden; cursor: zoom-in; }
    .gallery-main:disabled { opacity: 1; cursor: default; }
    .gallery-main img { width: 100%; height: 100%; object-fit: contain; }
    .zoom-label { position: absolute; bottom: 13px; right: 13px; padding: 5px 9px; background: #ffffffed; color: var(--blue); border: 1px solid var(--border); font-size: .8rem; border-radius: 4px; }
    .gallery-thumbs { display: flex; gap: 14px; margin-top: 16px; }
    .gallery-thumbs button { width: 112px; max-width: calc((100% - 28px)/3); height: 83px; border: 1px solid var(--border); border-radius: 4px; background: white; padding: 4px; }
    .gallery-thumbs button[aria-pressed="true"] { border: 2px solid var(--blue); }
    .gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
    .detail-copy h1 { font-size: 2.15rem; margin-bottom: 18px; }
    .detail-copy .eyebrow { margin-bottom: 12px; }
    .checklist { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 13px; }
    .checklist li { position: relative; padding-left: 26px; color: var(--muted); font-size: 1rem; }
    .checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
    .product-note { font-size: .875rem; margin-top: 16px; }

    /* A.10 — VENTANA DE FOTO: el elemento dialog agrega soporte de teclado. */
    .image-dialog { border: 1px solid var(--border); border-radius: 10px; width: min(1100px,95vw); padding: 35px; max-height: 92vh; color: var(--text); }
    .image-dialog::backdrop { background: #092143b8; }
    .image-dialog img { width: 100%; height: 76vh; object-fit: contain; }
    .image-dialog .close-dialog { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--navy); font-size: 1.5rem; line-height: 1; }

    /* A.11 — SERVICIO: seis pasos compartidos entre las fichas. */
    .service-band { background: #f2f6fc; border-top: 1px solid #e4ebf4; }
    .steps-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 35px; }
    .step-number { display: grid; place-items: center; width: 43px; height: 43px; background: #e1edfd; color: var(--blue); font-size: .875rem; font-weight: 700; border-radius: 6px; margin-bottom: 18px; }
    .steps-grid h3 { margin-bottom: 12px; }
    .steps-grid p { font-size: 1rem; margin-bottom: 0; }
    .service-note { margin-top: 34px; border-top: 1px solid var(--border); padding-top: 20px; color: var(--blue); text-align: center; font-size: .94rem; }
    .consultation-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 55px; padding-bottom: 55px; }
    .consultation-cta h2 { font-size: 2rem; margin-bottom: 12px; }
    .consultation-cta p { margin-bottom: 0; }

    /* A.12 — COBERTURA: ciudades enlazadas y espacio de mapa todavía blanco. */
    .coverage-banner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 55px; align-items: center; background: var(--pale); padding: 42px; border-radius: 8px; }
    .coverage-banner h1 { font-size: 3rem; }
    .region-image-slot { display: block; height: 270px; background: white; border-radius: 5px; opacity: 1; }
    .region-image-slot img { width: 100%; height: 100%; object-fit: contain; }
    .town-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
    .town-link { display: block; padding: 22px; border: 1px solid var(--border); border-radius: 6px; background: white; font-weight: 600; transition: transform .16s; }
    .town-link:hover { color: var(--blue); border-color: var(--blue); transform: scale(1.025); }
    .local-intro { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; }
    .local-nearby { padding: 27px; background: var(--pale); border-radius: 8px; }
    .local-nearby .town-grid { grid-template-columns: 1fr; }

    /* A.13 — CONTACTO Y PANEL LOCAL: campos, avisos y disponibilidad. */
    .contact-links { display: grid; gap: 14px; margin: 25px 0; color: var(--blue); font-weight: 600; overflow-wrap: anywhere; }
    .form-card { background: var(--pale); border: 1px solid #dce7f5; border-radius: 8px; padding: 32px; }
    .form-card h2 { font-size: 1.7rem; }
    .form-fields { display: grid; gap: 20px; }
    .form-fields label { display: grid; gap: 8px; font-weight: 600; font-size: .94rem; }
    .form-fields input, .form-fields textarea { width: 100%; min-height: 45px; border: 1px solid #c3d3e0; border-radius: 6px; background: white; color: var(--text); padding: 11px 13px; font-size: 1rem; }
    .form-fields textarea { min-height: 130px; resize: vertical; }
    .form-fields .button { width: 100%; }
    .form-note { font-size: .875rem; margin-top: 20px; margin-bottom: 0; }
    .message { padding: 16px 20px; border-radius: 7px; background: var(--pale); color: var(--navy); margin: 20px 0; font-size: .94rem; }
    .message.error { background: #fff0f0; color: #853640; }
    .admin-list { display: grid; gap: 15px; }
    .admin-row { display: grid; grid-template-columns: 65px 1fr 230px 105px; gap: 18px; align-items: center; border: 1px solid var(--border); border-radius: 7px; padding: 16px; }
    .admin-image { width: 65px; height: 62px; background: white; border: 1px solid #e8eef5; }
    .admin-image img { width: 100%; height: 100%; object-fit: contain; }
    .admin-row h3 { font-size: 1rem; margin-bottom: 5px; }
    .admin-row select { width: 100%; font-size: .875rem; }
    .admin-row .button { font-size: .875rem; padding: 10px 14px; }

    /* A.14 — PIE: azul oscuro, reseña y enlaces de acceso rápido. */
    .site-footer { background: #1e69f6; color: white; }
    .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 65px; padding-top: 47px; padding-bottom: 35px; }
    .footer-logo { display: block; width: 190px; height: 60px; background: white; border-radius: 3px; margin-bottom: 22px; }
    .footer-logo img { width: 100%; height: 100%; object-fit: contain; }
    .footer-brand { font-size: 1.35rem; margin-bottom: 14px; }
    .footer-grid p { color: #d5e2f5; max-width: 360px; }
    .footer-grid h3 { color: white; }
    .footer-links { display: grid; gap: 11px; font-size: .94rem; color: #d9e6f8; }
    .footer-links a:hover { color: white; text-decoration: underline; }
    .footer-contact { display: block; font-size: .94rem; overflow-wrap: anywhere; }
    .footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; border-top: 1px solid #ffffff25; padding-top: 22px; padding-bottom: 24px; font-size: .875rem; color: #cfdef2; }

    /* A.15 — RESPONSIVE: estas reglas cambian el diseño en tabletas y móviles. */
    @media (max-width: 1150px) {
      .container { padding-left: 30px; padding-right: 30px; }
      .masthead-contact { flex-direction: column; align-items: flex-end; gap: 5px; }
      .nav-inner { flex-wrap: wrap; }
      .mobile-menu-button { display: inline-flex; gap: 9px; align-items: center; min-height: 54px; background: transparent; border: 0; color: white; padding: 10px 0; font-size: .94rem; }
      .mobile-catalog-link { display: block; font-size: .94rem; }
      .main-menu { display: none; width: 100%; padding-bottom: 20px; }
      .main-menu.mobile-open { display: flex; flex-direction: column; }
      .main-menu > li { display: block; }
      .main-menu .nav-link { padding: 11px 0; min-height: 44px; border-bottom: 1px solid #ffffff30; }
      .catalog-item { position: relative; }
      .catalog-toggle { position: absolute; right: 0; top: 0; min-height: 44px; padding: 8px 12px; }
      .mega-menu { position: static; width: 100%; max-width: 100%; border: 0; border-radius: 5px; padding: 17px; box-shadow: none; }
      .mega-grid { grid-template-columns: 1fr; gap: 18px; }
      .mega-category { margin-bottom: 3px; }
      .mega-product { padding: 7px 10px; }
      .hero-consult { right: 30px; }
      .hero-controls { left: 30px; }
      .product-bottom { align-items: flex-start; flex-direction: column; }
    }
    @media (max-width: 800px) {
      .logo-slot { width: 210px; height: 69px; }
      .masthead { min-height: 104px; }
      .masthead-contact a { font-size: .94rem; }
      .masthead-contact .header-phone { font-size: 1.08rem; }
      .hero-copy { max-width: 410px; }
      .hero-copy h1 { font-size: 2.75rem; }
      .hero-copy p { font-size: 1rem; max-width: 380px; }
      .hero-consult { bottom: 33px; }
      .hero-controls { bottom: 37px; }
      .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
      .steps-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
      .detail-grid { gap: 30px; }
      .detail-copy h1 { font-size: 1.85rem; }
      .gallery-main { height: 320px; }
      .admin-row { grid-template-columns: 55px 1fr 105px; }
      .admin-row select { grid-column: 2; grid-row: 2; }
      .admin-row button { grid-column: 3; grid-row: 2; }
      .admin-image { width: 55px; grid-row: 1/3; }
    }
    @media (max-width: 600px) {
      .container { padding-left: 22px; padding-right: 22px; }
      .masthead { gap: 15px; padding-top: 16px; padding-bottom: 16px; }
      .logo-slot { width: 82px; height: 58px; flex-shrink: 0; }
      .masthead-contact { gap: 8px; max-width: 245px; }
      .masthead-contact a { font-size: .875rem; white-space: normal; overflow-wrap: anywhere; }
      .masthead-contact .header-phone { font-size: 1rem; }
      .hero { height: 580px; }
      .hero-copy { align-self: flex-start; padding-top: 35px; max-width: 100%; }
      .hero-copy h1 { font-size: 2.45rem; }
      .hero-copy p { max-width: 335px; line-height: 1.75; }
      .hero-slide { object-position: 65% center; }
      .hero-shade { background: linear-gradient(180deg,#ffffffe6 0%,#ffffffcc 40%,#ffffff66 70%,#ffffff0d 100%); }
      .hero .eyebrow { font-size: .75rem; letter-spacing: .055em; }
      .hero-consult { right: 22px; bottom: 37px; padding: 14px 18px; font-size: .94rem; }
      .hero-controls { left: 22px; gap: 5px; }
      .hero-controls button { width: 34px; height: 42px; }
      .section { padding-top: 44px; padding-bottom: 47px; }
      .section-heading { display: block; }
      .section-heading .text-link { display: inline-block; margin-top: 20px; }
      .product-grid { grid-template-columns: 1fr; }
      .product-body h3, .product-body p { min-height: 0; }
      .product-body h3 { font-size: 1.25rem; }
      .product-bottom { flex-direction: row; align-items: center; }
      .product-picture { aspect-ratio: 1.4; }
      .catalog-page { padding-top: 25px; padding-bottom: 45px; }
      .catalog-page h1 { font-size: 2rem; }
      .category-filters { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 0; }
      .stock-filter { width: 100%; justify-content: space-between; }
      .stock-filter select { flex: 1; min-width: 0; }
      .detail-grid, .info-grid, .local-intro, .coverage-banner { grid-template-columns: 1fr; gap: 30px; }
      .detail-section { min-height: 0; padding-top: 25px; padding-bottom: 38px; }
      .detail-copy h1 { font-size: 2rem; }
      .gallery-main { height: 290px; }
      .gallery-thumbs button { height: 74px; width: 100px; }
      .image-dialog { padding: 28px 13px; }
      .steps-grid { grid-template-columns: 1fr; gap: 24px; }
      .steps-grid article { display: grid; grid-template-columns: 43px 1fr; gap: 0 16px; }
      .step-number { grid-row: 1/3; margin: 0; }
      .steps-grid h3 { margin-bottom: 8px; font-size: 1.1rem; }
      .steps-grid p { grid-column: 2; }
      .consultation-cta { display: block; padding-top: 44px; padding-bottom: 44px; }
      .consultation-cta h2 { font-size: 1.85rem; }
      .consultation-cta .button { margin-top: 23px; }
      .town-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
      .town-link { padding: 16px 12px; font-size: .875rem; }
      .coverage-banner { padding: 25px; }
      .coverage-banner h1 { font-size: 2.4rem; }
      .region-image-slot { height: 170px; }
      .form-card, .info-card { padding: 25px; }
      .footer-grid { grid-template-columns: 1fr 1fr; gap: 31px; }
      .footer-grid > div:first-child { grid-column: 1/-1; }
      .footer-logo { width: 175px; height: 56px; }
      .admin-row { grid-template-columns: 45px 1fr 85px; gap: 10px; padding: 13px 10px; }
      .admin-image { width: 45px; }
      .admin-row h3, .admin-row button, .admin-row select { font-size: .875rem; }
    }
    /* Respetar a las personas que desactivaron las animaciones del sistema. */
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      * { transition: none !important; }
    }
    /* A.16 — ACTUALIZACIÓN: logo real, colores y cabecera compacta al hacer scroll. */
    #site-header { position: sticky; top: 0; z-index: 60; background: white; box-shadow: 0 2px 9px #173d680a; }
    .masthead { min-height: 0; height: 95px; max-height: 130px; overflow: hidden; transition: height .2s, max-height .2s, padding .2s; }
    .logo-slot { width: 220px; height: 86px; border: 0; }
    .logo-slot img { width: 100%; height: 100%; object-fit: contain; }
    .masthead-contact { gap: 24px; color: var(--blue); }
    .masthead-contact a, .masthead-contact .header-phone { font-size: .95rem; font-weight: 600; }
    .compact-contact { display: none; min-height: 30px; align-items: center; justify-content: center; gap: 28px; background: #f4f4f4; color: var(--blue); font-size: .8rem; }
    .compact .masthead { max-height: 0; height: 0; padding-top: 0; padding-bottom: 0; }
    .compact .compact-contact { display: flex; }
    .menu-image-slot { width: 40px; height: 40px; border: 0; }
    .menu-image-slot img { width: 100%; height: 100%; object-fit: contain; }
    .footer-logo { width: 205px; height: 90px; }
    .hero { height: 454px; }
    .hero-copy h1 { font-size: 3.05rem; }
    .hero-copy p { font-size: 1.06rem; line-height: 1.75; }
    .product-bottom { justify-content: space-between; min-height: 40px; }
    .card-details { margin-left: auto; }

    .gallery-thumbs { flex-wrap: wrap; }

    /* A.17 — PRECIO: recuadro mensual y botón desactivado cuando no hay equipo. */
    .monthly-price { border: 1px solid #bad6fb; border-left: 4px solid var(--blue); border-radius: 5px; padding: 18px 20px; background: #f0f7ff; margin: 23px 0 19px; }
    .monthly-price > span { display: block; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; }
    .monthly-price strong { display: block; color: var(--navy); font-size: 2rem; }
    .monthly-price small { font-size: .85rem; font-weight: 400; color: var(--muted); }
    .monthly-price p { font-size: .875rem; margin: 5px 0 0; }
    .unavailable-button { background: #e4e9ef; color: #5a687a; cursor: default; opacity: 1; }

    /* A.18 — EDITOR: secciones plegables y campos de ancho adaptable. */
    .admin-editors { margin-top: 25px; }
    .product-editor { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: 15px 0; background: white; }
    .product-editor > summary { display: flex; gap: 18px; align-items: center; padding: 20px; cursor: pointer; background: #f7faff; list-style: none; }
    .editor-image { display: block; width: 64px; height: 56px; flex-shrink: 0; }
    .editor-image img { width: 100%; height: 100%; object-fit: contain; }
    .product-editor strong { display: block; color: var(--navy); }
    .product-editor small { display: block; color: var(--muted); margin-top: 5px; }
    .editor-open { margin-left: auto; color: var(--blue); font-weight: 600; }
    .editor-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 25px; }
    .editor-form label { display: grid; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--navy); }
    .editor-form input, .editor-form textarea, .editor-form select { width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid #bbcde2; border-radius: 5px; background: white; color: var(--text); font: inherit; font-weight: 400; }
    .editor-form textarea { resize: vertical; }
    .editor-form details > summary { color: var(--blue); cursor: pointer; }
    .full-field { grid-column: 1 / -1; }
    .editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
    @media (max-width: 1150px) {
      .masthead-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
      .masthead-contact > a:last-child { grid-column: 1 / -1; justify-self: end; }
    }
    @media (max-width: 800px) {
      .logo-slot { width: 180px; height: 80px; }
      .masthead-contact a, .masthead-contact .header-phone { font-size: .83rem; }
      .compact-contact { gap: 15px; font-size: .72rem; }
      .hero { height: 460px; }
      .hero-copy h1 { font-size: 2.6rem; }
    }
    @media (max-width: 600px) {
      .masthead { height: 118px; padding: 12px 18px; gap: 10px; }
      .logo-slot { width: 122px; height: 88px; }
      .masthead-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; max-width: 225px; }
      .masthead-contact a, .masthead-contact .header-phone { font-size: .76rem; white-space: nowrap; line-height: 1.3; }
      .masthead-contact a:last-child { white-space: normal; overflow-wrap: anywhere; text-align: right; }
      .compact-contact { min-height: 43px; flex-wrap: wrap; gap: 2px 14px; padding: 5px 12px; font-size: .7rem; line-height: 1.2; }
      .compact-contact a:last-child { flex-basis: 100%; text-align: center; }
      .hero { height: 555px; }
      .hero-copy h1 { font-size: 2.45rem; }
      .hero-copy p { font-size: 1rem; }
      .monthly-price strong { font-size: 1.9rem; }
      .editor-form { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
      .full-field { grid-column: auto; }
      .product-editor > summary { padding: 15px; gap: 10px; }
      .product-editor strong { font-size: .9rem; }
      .editor-image { width: 45px; }
      .editor-open { font-size: .8rem; }
    }


    /* A.20 — ENCABEZADO SOLICITADO: cobertura (8 mm), marca (30 mm) y menú (12 mm).
       Las medidas en mm son proporciones CSS de escritorio; en móvil se adaptan
       para conservar el tamaño legible de los contactos y del buscador. */
    :root {
      --utility-height: 8mm;
      --brand-height: 30mm;
      --navigation-height: 12mm;
    }
    .site-header-frame {
      --header-utility-space: var(--utility-height);
      --header-brand-space: var(--brand-height);
      --header-navigation-space: var(--navigation-height);
      height: calc(var(--header-utility-space) + var(--header-brand-space) + var(--header-navigation-space));
      position: sticky; top: 0; z-index: 60; pointer-events: none;
    }
    .site-header-frame > #site-header { position: relative; top: auto; background: white; pointer-events: auto; }

    /* La banda gris permanece visible: texto oscuro, monoespaciado y sin negrita. */
    .utility-bar { background: #f4f4f4; color: #153f78; }
    .utility-content {
      min-height: var(--utility-height); display: flex; align-items: center;
      justify-content: space-between; flex-wrap: wrap; gap: 4px 18px;
      font: 400 .77rem/1.35 Consolas, 'Lucida Console', 'Courier New', monospace;
    }
    .delivery-label, .utility-links a { display: inline-flex; align-items: center; gap: 7px; font-weight: 400; }
    .delivery-label { white-space: nowrap; }
    .utility-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 20px; padding: 4px 0; }
    .utility-links a { min-height: 22px; white-space: nowrap; }
    .utility-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
    .ui-icon { display: inline-block; width: 17px; height: 17px; flex: 0 0 17px; color: currentColor; vertical-align: middle; }

    /* Marca y buscador: esta es la única fila que se oculta durante el scroll. */
    .brand-row { position: relative; z-index: 65; height: var(--brand-height); max-height: var(--brand-height); background: #fff; transition: height .22s, max-height .22s; }
    .brand-row-inner { height: var(--brand-height); display: flex; align-items: center; justify-content: space-between; gap: 35px; }
    .brand-home { display: block; flex: 0 0 auto; }
    .brand-image { display: block; width: 306px; height: 102px; object-fit: contain; }
    .compact .brand-row { height: 0; max-height: 0; overflow: hidden; }
    .product-search { position: relative; width: min(450px, 48%); margin: 0; }
    .search-control { display: flex; align-items: stretch; width: 100%; min-height: 46px; border: 2px solid #1854b8; border-radius: 6px; background: #fff; overflow: hidden; }
    .search-control:focus-within { box-shadow: 0 0 0 3px #1854b822; }
    .search-control input { min-width: 0; width: 100%; padding: 10px 14px; border: 0; background: transparent; color: #253a52; outline: none; font: 400 .94rem/1.4 Arial, Helvetica, sans-serif; }
    .search-control input::-webkit-search-cancel-button { cursor: pointer; }
    .search-control button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; min-width: 102px; padding: 10px 17px; background: #1854b8; color: #fff; font-size: .9rem; }
    .search-control button:hover { background: #124899; }
    .search-control .ui-icon { width: 19px; height: 19px; }
    .search-suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 90; max-height: min(420px, 65vh); overflow: auto; background: #fff; border: 1px solid #c8d8eb; border-radius: 7px; box-shadow: 0 12px 30px #153f7824; }
    .search-suggestions ul { list-style: none; padding: 5px; margin: 0; }
    .search-suggestions li + li { border-top: 1px solid #edf2f8; }
    .search-suggestions a { display: grid; gap: 3px; padding: 11px 12px; border-radius: 4px; color: #153f78; font-size: .9rem; line-height: 1.45; }
    .search-suggestions a:hover, .search-suggestions a:focus-visible { background: #eef5ff; }
    .search-suggestions small { color: #536477; font-size: .78rem; }
    .search-suggestions p { font-size: .9rem; padding: 15px; margin: 0; }
    .search-suggestions .all-search-results { border-top: 1px solid #e1eaf5; color: #1854b8; font-weight: 600; }

    /* Barra azul de navegación: altura constante tanto arriba como al compactarse. */
    .nav-band { background: #1854b8; }
    .nav-inner { min-height: var(--navigation-height); }
    .nav-link, .catalog-toggle { min-height: var(--navigation-height); height: var(--navigation-height); padding: 0 11px; line-height: 1.4; }
    .catalog-toggle { padding: 0 5px; min-width: 30px; }
    .mobile-menu-button { min-height: var(--navigation-height); height: var(--navigation-height); padding-top: 0; padding-bottom: 0; }
    .mobile-catalog-link { line-height: 1.4; }
    .menu-image-slot { border: 0; width: 40px; height: 40px; }
    .mega-menu { top: 100%; }
    .main-menu.mobile-open { max-height: 70vh; overflow-y: auto; }

    /* Portada de 17 cm en escritorio. El botón comienza a 9 cm del menú. */
    .hero { height: 17cm; }
    .hero-copy { max-width: 530px; }
    .hero-copy h1 { font-size: 3.35rem; line-height: 1.13; letter-spacing: -.04em; }
    .hero-copy p { font-size: 1.1rem; line-height: 1.75; max-width: 480px; }
    .hero-shade { background: linear-gradient(90deg,#ffffffe0 0%,#ffffffc9 30%,#ffffff33 58%,#ffffff00 85%); }
    .hero-consult { top: 9cm; bottom: auto; right: 44px; padding: 16px 28px; }
    .hero-controls { bottom: 27px; }
    .site-footer { background: #1e69f6; }
    .footer-logo { width: 245px; height: 88px; }
    .footer-grid p, .footer-links, .footer-bottom { color: #fff; }

    @media (max-width: 1150px) {
      .main-menu .nav-link { height: auto; min-height: 44px; padding: 11px 0; }
      .brand-image { width: 280px; height: 94px; }
      .hero-consult { right: 30px; }
      .utility-links { gap: 4px 12px; }
    }
    @media (max-width: 850px) {
      .brand-image { width: 255px; height: 86px; }
      .brand-row-inner { gap: 25px; }
      .product-search { width: 49%; }
      .search-control button { min-width: 48px; padding: 10px 12px; }
      .search-button-text { display: none; }
      .utility-content { font-size: .71rem; }
      .utility-links { gap: 4px 12px; }
      .hero-copy { max-width: 435px; }
      .hero-copy h1 { font-size: 2.8rem; }
      .hero-copy p { max-width: 400px; font-size: 1rem; }
    }
    @media (max-width: 600px) {
      :root { --brand-height: 142px; }
      .site-header-frame { --header-utility-space: 76px; --header-brand-space: var(--brand-height); }
      .utility-content { flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 20px; font-size: .7rem; }
      .delivery-label { justify-content: center; min-height: 18px; }
      .utility-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 0; }
      .utility-links a { justify-content: center; min-height: 18px; gap: 5px; }
      .utility-links a:last-child { grid-column: 1 / -1; }
      .utility-links .ui-icon, .delivery-label .ui-icon { width: 14px; height: 14px; flex-basis: 14px; }
      .brand-row-inner { display: grid; grid-template-columns: 1fr; grid-template-rows: 70px 44px; align-content: center; align-items: center; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
      .brand-image { width: 210px; height: 70px; }
      .product-search { width: 100%; }
      .search-control { min-height: 44px; height: 44px; }
      .search-control input { font-size: .9rem; padding: 9px 12px; }
      .search-control button { min-width: 48px; padding: 9px 12px; }
      .search-suggestions { max-height: 52vh; }
      .hero { height: 630px; }
      .hero-copy { padding-top: 33px; max-width: 100%; }
      .hero-copy h1 { font-size: 2.45rem; }
      .hero-copy p { max-width: 335px; line-height: 1.75; }
      .hero-shade { background: linear-gradient(180deg,#ffffffe6 0%,#ffffffcc 40%,#ffffff66 70%,#ffffff0d 100%); }
      .hero-consult { top: auto; bottom: 34px; right: 22px; padding: 14px 18px; font-size: .94rem; }
      .hero-controls { bottom: 34px; left: 22px; }
      .footer-logo { width: 225px; height: 80px; }
    }


    /* A.21 — AJUSTES DEL 23 DE OCTUBRE: cabecera común, tarjetas de 12 cm,
       fotos de cobertura y contacto único. Cambiar textos/contactos en PARTE D,
       bloque config; cambiar títulos y reseñas en products y localCoverage. */
    .utility-content { font-family: Ebrima, "Segoe UI", Arial, sans-serif; font-size: .82rem; color:#1854b8; font-weight:400; }
    .utility-links { gap:6px 22px; }
    .brand-image { height:auto; aspect-ratio:2048/684; max-height:102px; }
    .product-card { height:12cm; border:2px solid var(--border); transition:border-color .18s,box-shadow .18s; }
    .product-card:hover { transform:none; border-color:var(--blue); box-shadow:0 0 0 1px var(--blue),0 9px 28px #17345016; }
    .product-picture { height:205px; aspect-ratio:auto; flex:0 0 205px; overflow:hidden; }
    .product-picture img { transition:transform .2s; }
    .product-card:hover .product-picture img { transform:scale(1.045); }
    .product-body { padding:18px 20px; }
    .product-body h3 { font-size:1.08rem; min-height:46px; margin-bottom:10px; }
    .product-body p { font-size:.92rem; line-height:1.55; min-height:0; margin-bottom:12px; }
    .product-bottom { padding-top:12px; }
    .coverage-banner { background:#e0f1ff; position:relative; isolation:isolate; overflow:hidden; min-height:340px; grid-template-columns:1fr; }
    .coverage-banner > div:first-child { position:relative; z-index:2; max-width:570px; }
    .coverage-banner p { color:#253a52; }
    .coverage-banner::after { content:''; position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(90deg,#e0f1ffe0 0%,#e0f1ffb8 40%,#e0f1ff14 100%); }
    .region-image-slot { position:absolute; inset:0; width:100%; height:100%; z-index:0; overflow:hidden; border:0; border-radius:0; background:#e0f1ff; }
    .region-image-slot img { width:100%; height:100%; object-fit:cover; opacity:.94; }
    .local-banner { position:relative; height:300px; overflow:hidden; border-radius:8px; background:#e0f1ff; }
    .local-banner-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.94; }
    /* Todas las fotos llenan el recuadro: cover recorta los bordes sin deformar.
       En la foto vertical se ajusta el encuadre para mostrar el edificio. */
    .local-banner-image.portrait { object-fit:cover; object-position:center 20%; }
    .local-banner::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,#e0f1ffb8 0%,#e0f1ff70 40%,#e0f1ff0d 100%); }
    .local-banner-copy { position:relative; z-index:1; padding:80px 42px; }
    .local-banner-copy strong { display:block; font-size:2.5rem; line-height:1.2; color:var(--navy); }
    .local-intro { padding-top:15px; }
    .local-intro h1 { font-size:2.35rem; }
    @media(max-width:850px) { .utility-content {font-size:.78rem;} }
    @media(max-width:600px) {
      .utility-content {font-size:.75rem;padding:8px 16px;gap:6px;}
      .delivery-label {white-space:normal;line-height:1.3;}
      .utility-links {display:flex;justify-content:center;flex-wrap:wrap;gap:4px 14px;}
      .utility-links a {font-size:.73rem;}
      .brand-image {height:70px;}
      .product-card {height:auto;min-height:12cm;}
      .product-picture {height:210px;flex-basis:210px;}
      .local-banner {height:230px;}
      .coverage-banner::after { background:linear-gradient(180deg,#e0f1ffb3 0%,#e0f1ff99 100%); }
      .local-banner-copy {padding:60px 24px;}
      .local-banner-copy strong {font-size:2rem;}
      .local-intro h1 {font-size:2rem;}
    }
  
/* Formularios PHP y miniaturas: la imagen y la ficha siguen las mismas medidas. */
.gallery-thumbnails{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}.gallery-thumb{height:84px;border:1px solid var(--border);border-radius:5px;background:#fff;padding:5px}.gallery-thumb img{width:100%;height:100%;object-fit:contain}.gallery-thumb.selected{border:2px solid var(--blue)}
.portable-filters{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:24px}.portable-filters label{display:grid;gap:6px}.portable-filters select{padding:10px;border:1px solid var(--border);border-radius:5px;background:#fff}
.category-page,.coverage-page-top{padding-top:34px}.catalog-page-heading{margin-bottom:28px}.form-card form{display:grid;gap:16px}.form-card input,.form-card textarea{width:100%;padding:11px;border:1px solid #bbcbdf;border-radius:5px;font:inherit}.form-card label{display:grid;gap:7px}.direct-contact{display:grid;gap:12px;margin:25px 0}.contact-section{background:#e0f1ff;padding:30px;border-radius:8px}.inquiry{padding:20px;border:1px solid var(--border);margin-top:15px}.logout-form{margin-top:30px}.editor-form small{display:block}.footer-logo-slot{display:block;width:245px;background:#fff}.product-editor summary small{display:block}#photo-dialog{max-width:95vw;border:1px solid var(--border);border-radius:8px;padding:45px 15px 15px}#photo-dialog::backdrop{background:#122d56b3}#photo-dialog img{width:80vw;height:75vh;object-fit:contain}#photo-close{position:absolute;top:8px;right:10px;border:1px solid var(--border);padding:5px 10px;border-radius:4px;background:#fff}
