/* Ajustes Puertas Diazsa (se carga después de style.css) */
:root { --brand: #052927; --wood: #a8642a; --wood-dark: #8a4f1f; --cream: #f7f3ee; }

html { scroll-behavior: smooth; }
body { background: #fff; }

/* Top nav */
.top-nav { background-color: var(--brand) !important; font-size: 14px; }
.top-nav a { color: #fff; font-weight: 400; text-decoration: none; }
.top-nav a:hover { color: #e9c9a6; }
.top-nav p { margin-right: 18px; }
.top-nav .social-icons a { margin-left: 4px; }

/* Navbar */
.navbar { padding-top: 6px; padding-bottom: 6px; }
.navbar-brand { padding: 0; }
.navbar .logo-mark { width: 64px; height: auto; margin-right: 12px; }
.navbar .logo-text { width: auto; max-height: 36px; }
.navbar .nav-link { font-weight: 600; }
.navbar .nav-link.active { color: var(--wood) !important; }
.dropdown-item:active { background: var(--cream); }
@media (max-width: 575px) {
    .navbar .logo-mark { width: 48px; }
    .navbar .logo-text { max-height: 28px; }
    .top-nav p { font-size: 13px; margin-right: 10px; }
}

/* Botones */
.btn-brand:hover, .btn-brand:focus { background-color: var(--wood); border-color: var(--wood); color: #fff; }
.btn-wood { background: var(--wood); border-color: var(--wood); color: #fff; }
.btn-wood:hover { background: var(--wood-dark); border-color: var(--wood-dark); color: #fff; }
.btn-wsp { background: #25d366; z-index: 1000; }
.btn-wsp:hover { color: #25d366; }

/* Hero */
.hero-slider .slide { min-height: 78vh; background-size: cover; background-position: center; }
.hero-slider .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin: 0; color: #fff; }
.hero-slider .display-3 { font-weight: 700; text-transform: uppercase; color: #fff; }
@media (max-width: 767px) {
    .hero-slider .slide { min-height: 62vh; }
    .hero-slider .display-3 { font-size: 2.2rem; }
}

/* Cabecera de páginas internas */
.page-header { background-size: cover; background-position: center; padding: 90px 0 70px; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .5rem; }
.page-header .lead { color: #f1e7dc; max-width: 720px; margin: 0 auto; }

section { padding-top: 70px; padding-bottom: 70px; }
.bg-light-wood { background: var(--cream); }
.intro p { max-width: 760px; }
.intro h6 { color: var(--wood); letter-spacing: .08em; text-transform: uppercase; }
.lead-text { max-width: 820px; text-align: center; font-size: 1.1rem; margin-bottom: 40px; }
.sub-title { text-align: center; margin: 70px 0 10px; }
.breadcrumb a { text-decoration: none; }

/* Beneficios */
.beneficios i { font-size: 34px; color: var(--wood); margin-bottom: 12px; }
.beneficios h3 { font-size: 1.25rem; }

/* Tarjetas de categoría */
.cat-card { display: block; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; height: 100%; transition: transform .3s, box-shadow .3s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 34px rgba(0,0,0,.14); }
.cat-card img { aspect-ratio: 4/3; object-fit: cover; height: auto; }
.cat-body { padding: 18px 20px 22px; }
.cat-body h3, .cat-body .h3 { font-size: 1.25rem; margin-bottom: 6px; }
.cat-body p { color: var(--body); font-weight: 400; margin-bottom: 10px; font-size: .95rem; }
.cat-body span { color: var(--wood); font-weight: 600; }
@media (max-width: 575px) { .cat-body p { display: none; } .cat-body { padding: 12px 14px 14px; } .cat-body h3 { font-size: 1.05rem; } }

/* Tarjetas de producto */
.producto { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .3s; }
.producto:hover { box-shadow: var(--shadow); }
.producto-img { background: #fafafa; padding: 16px; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; }
.producto-img img { max-height: 100%; width: auto; max-width: 100%; height: auto; object-fit: contain; }
.producto-body { padding: 12px 14px 16px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.producto-code { font-size: .8rem; font-weight: 700; color: var(--wood); letter-spacing: .06em; }
.producto-body h3 { font-size: 1rem; margin: 2px 0 12px; flex: 1; }
.btn-cotizar { display: inline-block; background: #25d366; color: #fff; border-radius: 30px; padding: 6px 14px; font-size: .9rem; text-decoration: none; }
.btn-cotizar:hover { background: #1da851; color: #fff; }

/* Galerías */
.gal-link { display: block; border-radius: 10px; overflow: hidden; }
.gal-link img { aspect-ratio: 4/5; object-fit: cover; height: auto; transition: transform .4s; }
.gal-link:hover img { transform: scale(1.04); }
.rounded-img { border-radius: 10px; height: auto; }
.filtros button { border: 1px solid var(--brand); background: #fff; color: var(--brand); border-radius: 30px; padding: 6px 18px; margin: 4px; font-weight: 600; }
.filtros button.active, .filtros button:hover { background: var(--brand); color: #fff; }
.gal-item.oculto { display: none; }

.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--wood); }

.pasos span { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--wood); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; font-size: 1.2rem; }
.pasos h3 { font-size: 1.1rem; }

/* CTA */
.cta-band { background: linear-gradient(rgba(5,41,39,.88), rgba(5,41,39,.88)), url(../img/banners/taller-carpinteria.webp) center/cover; color: #e8efe9; }

/* Footer */
footer { background: #06201f !important; }
footer h5 { font-size: 1.05rem; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; color: #ADB3B9; }
.footer-links a { color: #ADB3B9; font-weight: 400; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-links i { width: 18px; color: var(--wood); }
footer .social-icons a { width: 42px; height: 42px; font-size: 17px; margin: 0 6px 0 0; }
.footer-bottom p { color: #8b979f; font-size: 14px; }

/* Formulario */
.hp { position: absolute; left: -9999px; }
#formMsg.ok { color: #198754; }
#formMsg.err { color: #c0392b; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; border-radius: 6px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 48px; line-height: 1; padding: 10px 16px; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* Proyectos */
.proj-item.oculto { display: none; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wood); margin-bottom: 4px; }
.cat-body .tag { color: var(--wood); }
.proyecto { scroll-margin-top: 90px; }
.proyecto-head { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.proyecto-head h2 { margin-bottom: 8px; }
