/* Estilos del catálogo: base, componentes y ajustes responsive.
   Sin dependencias externas; mantener foco visible y contraste al editar. */
:root {
    color-scheme:light;
    --ink:#15342e;
    --muted:#53645e;
    --green:#17634b;
    --line:#dae3dc;
    --paper:#f7f8f4;
    --white:#fff
}

* {
    box-sizing:border-box
}

body {
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    line-height:1.6
}

a {
    color:var(--green);
    text-underline-offset:4px
}

button,input {
    font:inherit
}

a,button,input,summary {
    touch-action:manipulation
}

:focus-visible {
    outline:3px solid #b65c16;
    outline-offset:4px
}

.container,.header-inner {
    width:min(1180px,calc(100% - 48px));
    margin:auto
}

.site-header {
    background:var(--white);
    border-bottom:1px solid var(--line)
}

.header-inner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    min-height:92px
}

.brand {
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:var(--ink);
    font-weight:750;
    line-height:1.3
}

.brand small {
    display:block;
    font-size:12px;
    font-weight:450;
    color:var(--muted);
    margin-top:5px
}

.header-contact {
    font-weight:650;
    white-space:nowrap
}

.eyebrow {
    color:var(--green);
    font-size:12px;
    font-weight:750;
    letter-spacing:.14em;
    margin:0 0 10px
}

/* Separación del encabezado sin depender del colapso de márgenes. */
main.container {
    padding-top:28px;
}

/* Etiqueta accesible sin agregar texto visible sobre el campo. */
.visually-hidden {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
    border:0
}

.search-controls .search-button {
    display:grid;
    place-items:center;
    flex:0 0 52px;
    padding:0;
    min-height:48px
}

.search-controls {
    display:flex;
    gap:10px
}

.search-controls input {
    width:100%;
    min-width:0;
    padding:13px 16px;
    background:white;
    border:1px solid #91a89b;
    border-radius:8px;
    color:var(--ink)
}

button {
    background:var(--green);
    border:0;
    color:white;
    padding:12px 28px;
    border-radius:8px;
    font-weight:650;
    cursor:pointer
}

.section-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    margin:38px 0 20px
}

.section-heading h1,
.section-heading h2 {
    font-size:23px;
    line-height:1.3;
    margin:0;
    overflow-wrap:anywhere
}

.section-heading p {
    margin:6px 0 0;
    color:var(--muted)
}

.section-heading>a {
    flex-shrink:0
}

.products-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px
}

/* Listado ligero: una foto y su nombre, sin contenedor visible. */
.product-card { min-width:0; }
.product-link { display:block; color:var(--ink); text-decoration:none; }
.product-photo { aspect-ratio:1; display:grid; place-items:center; overflow:hidden; border-radius:8px; background:white; }
.product-photo img { display:block; width:100%; height:100%; object-fit:contain; border-radius:8px; }
.product-link h3 { font-size:16px; font-weight:400; line-height:1.35; margin:7px 0 0; overflow-wrap:anywhere; }
.product-link:hover h3 { text-decoration:underline; text-underline-offset:3px; }
.product-code { color:var(--muted); font-size:13px; margin:0 0 10px; }

/* Ficha individual. Descripción y consulta se concentran aquí. */
.breadcrumb { margin:0 0 26px; font-size:14px; }
.product-detail { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); align-items:start; gap:48px; margin-bottom:52px; }
.detail-photo { aspect-ratio:1; background:white; border-radius:10px; overflow:hidden; }
.detail-photo img { display:block; width:100%; height:100%; object-fit:contain; border-radius:10px; }
.detail-info { padding-top:12px; min-width:0; overflow-wrap:anywhere; }
.detail-info h1 { font-size:clamp(24px,3vw,36px); line-height:1.2; font-weight:500; margin:0 0 26px; }
.detail-description h2 { font-size:17px; margin:0 0 10px; }
.detail-description p { color:var(--muted); margin:0 0 26px; line-height:1.7; }
.contact-button { display:flex; justify-content:space-between; gap:16px; max-width:360px; padding:14px 18px; background:var(--green); color:white; border-radius:8px; text-decoration:none; font-size:15px; font-weight:650; }
.contact-button:hover { background:#104b38; }

.pagination {
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
    margin-top:30px
}

.pagination a {
    padding:10px
}

.empty-state {
    padding:40px 24px;
    background:white;
    border:1px dashed #9db1a3;
    border-radius:14px
}

.empty-state h3 {
    margin:0
}

.help {
    background:var(--ink);
    color:white;
    padding:30px;
    border-radius:14px;
    margin:55px 0 35px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px
}

.help h2 {
    font-size:23px;
    margin:0
}

.help p {
    margin:6px 0 0;
    color:#d6e5dc
}

.help a {
    color:white;
    font-weight:650
}

.footer {
    border-top:1px solid var(--line);
    padding:24px 0 35px;
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:10px;
    color:var(--muted);
    font-size:13px
}

.footer p {
    flex-basis:100%;
    max-width:850px
}

.skip-link {
    position:absolute;
    left:10px;
    top:-100px;
    background:white;
    padding:12px;
    z-index:1
}

.skip-link:focus {
    top:10px
}

@media(min-width:1200px) {
    .products-grid {
    grid-template-columns:repeat(4,minmax(0,1fr))
}


}

@media(max-width:850px) {
    .products-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
}

.help {
    align-items:flex-start;
    flex-direction:column
}


}

@media(max-width:520px) {
    .container,.header-inner {
    width:calc(100% - 32px)
}

.header-inner {
    min-height:82px
}

.brand {
    font-size:13px
}

.header-contact {
    font-size:13px
}

.search-controls {
    gap:8px
}

button {
    padding:12px 16px
}

.products-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px 14px
}

.section-heading {
    align-items:flex-start;
    flex-direction:column;
    margin-top:28px
}

.product-link h3 {
    font-size:13px;
    margin-top:6px
}

.help {
    padding:24px
}

.footer {
    flex-direction:column
}


}



@media(max-width:700px) {
    .product-detail { grid-template-columns:1fr; gap:22px; }
    .detail-info { padding-top:0; }
    .contact-button { max-width:none; }
}

/* Acciones de la ficha: consulta y compartir, con área táctil accesible. */
.product-actions { display:flex; align-items:stretch; flex-wrap:wrap; gap:12px; }
.product-actions .contact-button { flex:1 1 220px; align-items:center; }
.share-button { display:grid; place-items:center; flex:0 0 52px; min-height:52px; border:1px solid var(--green); border-radius:8px; color:var(--green); text-decoration:none; }
.share-button:hover { background:#eaf0e9; }
