/* ==========================================================
   faj-site.css — estilos compartidos de Flores Agro y Jardín
   Menú, buscador, pie de página, botón de WhatsApp y
   productos relacionados. Se carga después del CSS de cada página.
   ========================================================== */

/* ---------- MENÚ ---------- */
header.faj-header { padding: 0 5%; height: 75px; display: flex; justify-content: space-between; align-items: center; background: #fff; border-bottom: 1px solid #e0dacc; position: sticky; top: 0; z-index: 1000; font-family: 'Jost', sans-serif; }
.faj-header .logo { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: #1c3a1c; text-decoration: none; white-space: nowrap; }
.faj-header .nav-container { display: flex; align-items: center; gap: 22px; height: 100%; }
.faj-header .main-nav { display: flex; align-items: center; height: 100%; list-style: none; margin: 0; padding: 0; }
.faj-header .nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.faj-header .nav-link { text-decoration: none; color: #1a2a1a; font-size: 15px; font-weight: 500; padding: 0 12px; display: flex; align-items: center; gap: 6px; cursor: pointer; transition: color .2s; background: none; border: 0; font-family: inherit; }
.faj-header .nav-link:hover { color: #2d5a2d; }
.faj-header .dropdown-menu { position: absolute; top: 100%; left: 0; background: #fff; min-width: 250px; box-shadow: 0 10px 25px rgba(0,0,0,.08); border: 1px solid #e0dacc; border-radius: 0 0 8px 8px; list-style: none; margin: 0; padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease; }
.faj-header .nav-item:hover .dropdown-menu, .faj-header .nav-item.active .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.faj-header .dropdown-menu li a { display: block; padding: 10px 20px; text-decoration: none; color: #1a2a1a; font-size: 14px; transition: background .2s, color .2s; }
.faj-header .dropdown-menu li a:hover { background: #f8f4ed; color: #1c3a1c; }
.faj-header .dropdown-menu li a small { display: block; color: #6a7a6a; font-size: 12px; }

.faj-header .search-box { position: relative; display: flex; align-items: center; }
.faj-header .search-input-wrap { display: flex; align-items: center; background: #f8f4ed; border: 1px solid #d5cebf; border-radius: 20px; padding: 6px 14px; margin: 0; transition: all .3s ease; }
.faj-header .search-input-wrap:focus-within { border-color: #1c3a1c; background: #fff; box-shadow: 0 0 0 3px rgba(28,58,28,.1); }
.faj-header .search-input-wrap input { border: none; background: transparent; outline: none; font-family: 'Jost', sans-serif; font-size: 13px; color: #1a2a1a; width: 170px; transition: width .3s ease; }
.faj-header .search-input-wrap input:focus { width: 220px; }
.faj-header .search-btn { background: none; border: none; cursor: pointer; color: #6a7a6a; display: flex; align-items: center; justify-content: center; padding: 0; }
.faj-header .search-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.faj-search-results { position: absolute; top: calc(100% + 6px); right: 0; width: 340px; max-height: 380px; overflow-y: auto; background: #fff; border: 1px solid #e0dacc; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.12); display: none; z-index: 1100; padding: 6px 0; }
.faj-search-results.open { display: block; }
.faj-search-results a { display: block; padding: 9px 16px; text-decoration: none; color: #1a2a1a; font-size: 14px; line-height: 1.35; }
.faj-search-results a small { display: block; font-size: 12px; color: #6a7a6a; }
.faj-search-results a:hover, .faj-search-results a.sel { background: #f8f4ed; }
.faj-search-results .empty { padding: 12px 16px; font-size: 14px; color: #6a7a6a; }
.faj-search-results .empty a { display: inline; padding: 0; color: #2d5a2d; text-decoration: underline; }

.faj-header .header-cta { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 30px; white-space: nowrap; }
.faj-header .header-cta svg { width: 16px; height: 16px; fill: currentColor; }
.faj-header .mobile-toggle { display: none; background: none; border: none; font-size: 24px; color: #1c3a1c; cursor: pointer; }

@media (max-width: 1100px) {
    .faj-header .search-input-wrap input, .faj-header .search-input-wrap input:focus { width: 130px; }
}
@media (max-width: 900px) {
    .faj-header .mobile-toggle { display: block; }
    .faj-header .nav-container { position: fixed; top: 75px; left: -100%; width: 100%; height: calc(100vh - 75px); background: #fff; flex-direction: column; align-items: stretch; padding: 24px 5%; gap: 16px; transition: left .3s ease; overflow-y: auto; }
    .faj-header .nav-container.active { left: 0; }
    .faj-header .main-nav { flex-direction: column; width: 100%; height: auto; align-items: stretch; }
    .faj-header .nav-item { width: 100%; height: auto; flex-direction: column; align-items: stretch; border-bottom: 1px solid #efe9dc; }
    .faj-header .nav-link { width: 100%; padding: 14px 0; font-size: 18px; justify-content: space-between; }
    .faj-header .dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 10px 12px; display: none; opacity: 1; visibility: visible; transform: none; min-width: 100%; }
    .faj-header .nav-item.open .dropdown-menu { display: block; }
    .faj-header .search-box { width: 100%; }
    .faj-header .search-input-wrap { width: 100%; padding: 10px 16px; }
    .faj-header .search-input-wrap input, .faj-header .search-input-wrap input:focus { width: 100%; font-size: 16px; }
    .faj-search-results { left: 0; right: 0; width: auto; }
    .faj-header .header-cta { justify-content: center; padding: 14px 18px; font-size: 16px; }
}

/* ---------- PRODUCTOS RELACIONADOS ---------- */
.faj-related { max-width: 1200px; margin: 0 auto; padding: 56px 5% 64px; font-family: 'Jost', sans-serif; }
.faj-related h2 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 600; color: #1c3a1c; margin: 0 0 6px; }
.faj-related > p { color: #6a7a6a; margin: 0 0 24px; font-size: 15px; }
.faj-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.faj-related-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #ddd4c0; border-radius: 10px; overflow: hidden; text-decoration: none; color: #1a2a1a; transition: transform .2s, border-color .2s; }
.faj-related-card:hover { transform: translateY(-3px); border-color: #2d5a2d; }
.faj-related-card .ph { aspect-ratio: 4 / 3; background: linear-gradient(135deg,#fcfaf5,#e6deca); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.faj-related-card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.faj-related-card .ph span { font-family: 'Cormorant Garamond', serif; color: #b8942e; font-size: 20px; padding: 0 12px; text-align: center; }
.faj-related-card .nm { padding: 12px 14px 16px; font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.faj-related-card .nm small { display: block; margin-top: 6px; font-size: 13px; color: #2d5a2d; font-weight: 600; }
.faj-related .all { display: inline-block; margin-top: 22px; color: #1c3a1c; font-weight: 500; }
@media (max-width: 900px) { .faj-related-grid { grid-template-columns: repeat(2, 1fr); } .faj-related h2 { font-size: 26px; } }

/* ---------- PIE DE PÁGINA ---------- */
footer.faj-footer { background: #1c3a1c; color: #dbe5d6; font-family: 'Jost', sans-serif; padding: 56px 5% 0; margin-top: 0; text-align: left; font-size: 14.5px; line-height: 1.6; }
.faj-footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.faj-footer h3 { font-family: 'Cormorant Garamond', serif; color: #fff; font-size: 22px; font-weight: 600; margin: 0 0 12px; }
.faj-footer h4 { color: #e7cf8a; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
.faj-footer p { margin: 0 0 10px; }
.faj-footer ul { list-style: none; margin: 0; padding: 0; }
.faj-footer li { margin-bottom: 8px; }
.faj-footer a { color: #dbe5d6; text-decoration: none; }
.faj-footer a:hover { color: #fff; text-decoration: underline; }
.faj-footer .brands { font-size: 13px; color: #b9c9b2; }
.faj-footer-bottom { max-width: 1200px; margin: 44px auto 0; padding: 18px 70px 26px 0; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #b9c9b2; }
.faj-footer-bottom nav a, .faj-footer-bottom nav button { color: #b9c9b2; margin-left: 16px; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.faj-footer-bottom nav a:first-child { margin-left: 0; }
@media (max-width: 900px) {
    .faj-footer-grid { grid-template-columns: 1fr 1fr; }
    .faj-footer-grid > div:first-child { grid-column: 1 / -1; }
    .faj-footer-bottom nav a, .faj-footer-bottom nav button { margin: 0 14px 0 0; }
}

/* ---------- BOTÓN FLOTANTE DE WHATSAPP ---------- */
.faj-wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.22); z-index: 1500; transition: transform .2s; }
.faj-wa-float:hover { transform: scale(1.08); }
.faj-wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- AJUSTES DE PÁGINAS DE PRODUCTO EN CELULAR ---------- */
@media (max-width: 900px) {
    .product-container { grid-template-columns: minmax(0, 1fr) !important; }
    .product-container > * { min-width: 0; }
    .product-info table, .tech-table { display: block; overflow-x: auto; max-width: 100%; }
}

/* ---------- INICIO: CONFIANZA, MAYOREO Y CONTACTO ---------- */
.faj-stats { background: #1c3a1c; color: #f8f4ed; padding: 56px 5%; font-family: 'Jost', sans-serif; scroll-margin-top: 80px; }
.faj-stats-inner { max-width: 1200px; margin: 0 auto; }
.faj-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.faj-stat strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 52px; font-weight: 600; color: #e7cf8a; line-height: 1; }
.faj-stat span { display: block; margin-top: 10px; font-size: 15px; color: #dbe5d6; }
.faj-stats-brands { margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.15); text-align: center; font-size: 15px; color: #dbe5d6; }
.faj-stats-brands b { color: #fff; font-weight: 600; }

.faj-volume { max-width: 1200px; margin: 0 auto; padding: 80px 5%; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; font-family: 'Jost', sans-serif; }
.faj-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #b8942e; display: block; margin-bottom: 12px; }
.faj-volume h2, .faj-contact h2 { font-family: 'Cormorant Garamond', serif; font-size: 42px; font-weight: 600; color: #1c3a1c; line-height: 1.1; margin: 0 0 16px; }
.faj-volume > div > p { font-size: 16px; color: #4a5a4a; margin: 0 0 26px; line-height: 1.7; }
.faj-volume ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.faj-volume li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid #ddd4c0; border-radius: 10px; padding: 16px 18px; font-size: 15px; line-height: 1.5; }
.faj-volume li b { display: block; color: #1c3a1c; font-size: 16px; margin-bottom: 2px; }
.faj-volume li svg { flex: 0 0 22px; width: 22px; height: 22px; stroke: #b8942e; fill: none; stroke-width: 1.7; margin-top: 2px; }
.faj-btn-wa { display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; padding: 15px 30px; border-radius: 50px; }
.faj-btn-wa svg { width: 20px; height: 20px; fill: currentColor; }
.faj-btn-line { display: inline-flex; align-items: center; gap: 8px; color: #1c3a1c; font-weight: 500; text-decoration: none; padding: 15px 10px; }
.faj-btn-line:hover { text-decoration: underline; }

.faj-contact { background: #fff; border-top: 1px solid #e8e1d2; font-family: 'Jost', sans-serif; scroll-margin-top: 80px; }
.faj-contact-inner { max-width: 1200px; margin: 0 auto; padding: 72px 5%; }
.faj-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.faj-contact-card { background: #f8f4ed; border: 1px solid #e8e1d2; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.faj-contact-card h3 { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #6a7a6a; font-weight: 600; margin: 0; }
.faj-contact-card .big { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: #1c3a1c; line-height: 1.15; text-decoration: none; }
.faj-contact-card p { margin: 0; font-size: 15px; color: #4a5a4a; line-height: 1.6; }
.faj-contact-card a.link { color: #2d5a2d; font-weight: 500; margin-top: auto; }

@media (max-width: 900px) {
    .faj-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
    .faj-stat strong { font-size: 42px; }
    .faj-volume { grid-template-columns: 1fr; gap: 32px; padding: 56px 5%; }
    .faj-volume h2, .faj-contact h2 { font-size: 32px; }
    .faj-contact-grid { grid-template-columns: 1fr; }
    .faj-btn-wa { width: 100%; justify-content: center; }
}
.faj-stat strong.sm { font-size: 40px; line-height: 1.3; }
.features { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important; }
@media (max-width: 900px) { .faj-stat strong.sm { font-size: 32px; } }
