:root {
  --almar-primary: #0284c7;
  --almar-primary-hover: #0369a1;
  --almar-primary-light: #e0f2fe;
  --almar-accent: #0ea5e9;
  --almar-success: #10b981;
  --almar-dark: #0f172a;
  --almar-slate: #334155;
  --almar-muted: #64748b;
  --almar-light: #f8fafc;
  --almar-border: #e2e8f0;
  --almar-white: #ffffff;
  --almar-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --almar-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --almar-shadow-lg: 0 12px 28px rgba(0,0,0,0.12);
  --almar-radius: 12px;
  --almar-font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
  --almar-font-heading: 'Outfit', system-ui, sans-serif;
}

body.almar-home-template {
  margin: 0; padding: 0; font-family: var(--almar-font-main); color: var(--almar-slate); background-color: #f1f5f9; -webkit-font-smoothing: antialiased; line-height: 1.5;
}
body.almar-home-template * { box-sizing: border-box; }
.almar-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* 1. TOPBAR */
.almar-topbar { background: #090d16; color: #ffffff; font-size: 13px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.almar-topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.almar-topbar-left { display: flex; align-items: center; gap: 8px; }
.almar-pulse-dot { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; display: inline-block; animation: almarPulse 1.5s infinite; }
@keyframes almarPulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.almar-topbar-right a { color: #38bdf8; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* 2. HEADER */
.almar-header { background: #ffffff; border-bottom: 1px solid var(--almar-border); position: sticky; top: 0; z-index: 1000; box-shadow: var(--almar-shadow-sm); }
.almar-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; gap: 16px; flex-wrap: wrap; }
.almar-brand { font-family: var(--almar-font-heading); font-size: 26px; font-weight: 800; color: var(--almar-primary); }
.almar-nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 20px; }
.almar-nav-item a { text-decoration: none; color: var(--almar-dark); font-weight: 600; font-size: 15px; padding: 6px 0; }
.almar-nav-item a:hover, .almar-nav-item.active a { color: var(--almar-primary); border-bottom: 2px solid var(--almar-primary); }
.almar-search-wrapper { flex: 1; max-width: 440px; position: relative; }
.almar-input-group { display: flex; align-items: center; background: var(--almar-light); border: 2px solid var(--almar-border); border-radius: 30px; padding: 4px 6px 4px 14px; }
.almar-search-input { border: none; background: transparent; outline: none; width: 100%; font-size: 14px; color: var(--almar-dark); }
.almar-search-btn { background: var(--almar-primary); color: #ffffff; border: none; border-radius: 20px; padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: pointer; }
.almar-search-dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #ffffff; border: 1px solid var(--almar-border); border-radius: var(--almar-radius); box-shadow: var(--almar-shadow-lg); max-height: 400px; overflow-y: auto; display: none; z-index: 1050; }
.almar-search-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--almar-dark); border-bottom: 1px solid var(--almar-light); }
.almar-search-item-img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.almar-search-item-price { font-size: 13px; color: var(--almar-primary); font-weight: 700; }
.almar-header-actions { display: flex; align-items: center; gap: 14px; }
.almar-cart-btn { position: relative; color: var(--almar-dark); text-decoration: none; padding: 6px; }
.almar-cart-count { position: absolute; top: -2px; right: -4px; background: var(--almar-primary); color: #ffffff; font-size: 11px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.almar-wa-cta-btn { background: #25d366; color: #ffffff !important; text-decoration: none; font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 20px; display: inline-flex; align-items: center; }

/* 3. HERO */
.almar-hero-section { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #ffffff 100%); padding: 40px 0; border-bottom: 1px solid var(--almar-border); }
.almar-hero-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
@media (min-width: 900px) { .almar-hero-grid { grid-template-columns: 1.2fr 0.8fr; } }
.almar-badge-pill { display: inline-flex; background: #ffffff; border: 1px solid var(--almar-border); padding: 6px 14px; border-radius: 30px; font-size: 13px; font-weight: 600; color: var(--almar-primary); margin-bottom: 16px; }
.almar-hero-title { font-family: var(--almar-font-heading); font-size: 32px; font-weight: 800; color: var(--almar-dark); margin: 0 0 16px; }
@media (min-width: 768px) { .almar-hero-title { font-size: 42px; } }
.almar-hero-desc { font-size: 16px; color: var(--almar-slate); margin: 0 0 24px; }
.almar-hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.almar-btn { display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.almar-btn-primary { background: var(--almar-primary); color: #ffffff !important; }
.almar-btn-secondary { background: #ffffff; color: var(--almar-dark) !important; border: 1px solid var(--almar-border); }
.almar-hero-card { background: #ffffff; border-radius: 16px; padding: 24px; box-shadow: var(--almar-shadow-lg); border: 1px solid var(--almar-border); }
.almar-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: var(--almar-light); padding: 12px; border-radius: 10px; text-align: center; margin-top: 15px; }
.almar-hero-stats strong { display: block; font-size: 18px; color: var(--almar-primary); }

/* 4. SECCIONES Y CATEGORÍAS */
.almar-section { padding: 45px 0; }
.almar-section-header { text-align: center; max-width: 680px; margin: 0 auto 35px; }
.almar-sub-badge { text-transform: uppercase; color: var(--almar-primary); font-weight: 800; font-size: 12px; letter-spacing: 1px; }
.almar-section-title { font-family: var(--almar-font-heading); font-size: 28px; font-weight: 800; color: var(--almar-dark); margin: 6px 0; }
.almar-categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.almar-cat-card { background: #ffffff; border-radius: var(--almar-radius); padding: 20px; text-decoration: none; border: 1px solid var(--almar-border); transition: all 0.2s; display: flex; flex-direction: column; }
.almar-cat-card:hover { transform: translateY(-4px); box-shadow: var(--almar-shadow-md); border-color: var(--almar-primary); }
.almar-cat-icon { font-size: 32px; margin-bottom: 10px; }
.almar-cat-title { font-family: var(--almar-font-heading); font-size: 17px; font-weight: 700; color: var(--almar-dark); margin: 0 0 6px; }
.almar-cat-desc { font-size: 13px; color: var(--almar-muted); margin: 0 0 14px; flex: 1; }
.almar-cat-arrow { font-size: 13px; font-weight: 700; color: var(--almar-primary); }

/* 5. PRODUCTOS ESTRELLA (TOP VENTAS) */
.almar-star-section { background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border-top: 1px solid var(--almar-border); border-bottom: 1px solid var(--almar-border); }
.almar-star-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.almar-star-card { background: #ffffff; border-radius: 16px; padding: 20px; border: 2px solid #e0f2fe; box-shadow: var(--almar-shadow-md); display: flex; flex-direction: column; transition: all 0.25s; }
.almar-star-card:hover { border-color: var(--almar-primary); transform: translateY(-5px); }
.almar-star-badge-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.almar-star-badge { background: #fee2e2; color: #b91c1c; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 20px; }
.almar-stock-dot { font-size: 11px; font-weight: 700; color: #15803d; display: flex; align-items: center; gap: 4px; }
.almar-dot-green { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; display: inline-block; }
.almar-star-icon-box { font-size: 34px; margin-bottom: 8px; }
.almar-star-title { font-family: var(--almar-font-heading); font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.almar-star-title a { text-decoration: none; color: var(--almar-dark); }
.almar-star-title a:hover { color: var(--almar-primary); }
.almar-star-desc { font-size: 13px; color: var(--almar-slate); margin: 0 0 12px; flex: 1; }
.almar-star-status-pill { background: #ecfdf5; color: #065f46; font-size: 12px; font-weight: 700; padding: 6px; border-radius: 6px; margin-bottom: 14px; text-align: center; }
.almar-star-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.almar-btn-star-web { background: var(--almar-dark); color: #ffffff !important; text-decoration: none; font-size: 12px; font-weight: 700; padding: 10px 6px; border-radius: 6px; text-align: center; }
.almar-btn-star-wa { background: #25d366; color: #ffffff !important; text-decoration: none; font-size: 12px; font-weight: 700; padding: 10px 6px; border-radius: 6px; text-align: center; }

/* 6. CATÁLOGO GENERAL & BANNERS */
.almar-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.almar-product-card { background: #ffffff; border-radius: var(--almar-radius); border: 1px solid var(--almar-border); padding: 16px; display: flex; flex-direction: column; }
.almar-prod-img { max-width: 100%; height: 170px; object-fit: contain; }
.almar-prod-title { font-size: 15px; font-weight: 600; margin: 8px 0; }
.almar-prod-title a { text-decoration: none; color: var(--almar-dark); }
.almar-prod-price { font-size: 18px; font-weight: 800; color: var(--almar-primary); margin-bottom: 10px; }
.almar-btn-add-cart { background: var(--almar-dark); color: #ffffff !important; text-decoration: none; padding: 10px; border-radius: 8px; text-align: center; font-weight: 700; font-size: 13px; display: block; }
.almar-ad-container { background: #ffffff; border: 1px dashed var(--almar-border); border-radius: 8px; padding: 10px; text-align: center; margin: 15px auto; }
.almar-double-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }

/* 7. MULTIMEDIA (YOUTUBE & INSTAGRAM) */
.almar-media-section { background: #ffffff; border-top: 1px solid var(--almar-border); border-bottom: 1px solid var(--almar-border); }
.almar-media-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .almar-media-grid { grid-template-columns: 1.2fr 0.8fr; } }
.almar-media-video-box { background: #0f172a; border-radius: 16px; padding: 16px; }
.almar-video-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.almar-yt-tag { color: #ef4444; font-weight: 700; font-size: 13px; }
.almar-yt-channel-link { color: #38bdf8; text-decoration: none; font-size: 13px; font-weight: 600; }
.almar-responsive-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; }
.almar-responsive-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.almar-insta-card { background: linear-gradient(135deg, #fdf2f8 0%, #f0fdf4 100%); border: 1px solid #fbcfe8; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.almar-insta-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.almar-insta-avatar { width: 44px; height: 44px; background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.almar-insta-desc { font-size: 14px; color: #334155; margin-bottom: 14px; }
.almar-btn-insta-follow { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); color: #ffffff !important; text-decoration: none; font-weight: 700; font-size: 14px; padding: 12px 20px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* 8. BARRA DE CONFIANZA (ALTO CONTRASTE CORREGIDO) */
.almar-trust-section { background: #0f172a !important; color: #ffffff !important; padding: 40px 0; border-top: 1px solid #1e293b; }
.almar-trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.almar-trust-item { display: flex; gap: 14px; align-items: flex-start; }
.almar-trust-icon { font-size: 28px; background: rgba(255,255,255,0.12); width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 12px; flex-shrink: 0; }
.almar-trust-title { color: #ffffff !important; margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.almar-trust-text { margin: 0; font-size: 13px; color: #cbd5e1 !important; }

/* 9. FOOTER (ALTO CONTRASTE & LEGIBILIDAD) */
.almar-footer { background: #060911 !important; color: #cbd5e1 !important; padding: 50px 0 25px; font-size: 14px; border-top: 1px solid rgba(255,255,255,0.1); }
.almar-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.almar-footer-title { color: #ffffff !important; font-family: var(--almar-font-heading); font-size: 22px; font-weight: 800; margin: 0 0 14px; }
.almar-footer-subtitle { color: #ffffff !important; font-size: 16px; font-weight: 700; margin: 0 0 16px; border-bottom: 2px solid var(--almar-primary); display: inline-block; padding-bottom: 4px; }
.almar-footer-desc { color: #cbd5e1 !important; line-height: 1.6; margin-bottom: 16px; }
.almar-footer-payment-badge { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #93c5fd; font-weight: 600; }
.almar-footer-links { list-style: none; padding: 0; margin: 0; }
.almar-footer-links li { margin-bottom: 10px; }
.almar-footer-links a { color: #cbd5e1 !important; text-decoration: none; transition: color 0.2s; }
.almar-footer-links a:hover { color: #38bdf8 !important; }
.almar-footer-contact { color: #cbd5e1 !important; margin: 0 0 8px; }
.almar-footer-contact strong { color: #ffffff !important; }
.almar-footer-social-links { display: flex; flex-direction: column; gap: 10px; }
.almar-social-pill { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 13px; }
.almar-social-ig { background: rgba(220, 39, 67, 0.15); color: #f472b6 !important; border: 1px solid rgba(220, 39, 67, 0.3); }
.almar-social-yt { background: rgba(239, 68, 68, 0.15); color: #f87171 !important; border: 1px solid rgba(239, 68, 68, 0.3); }
.almar-social-wa { background: rgba(37, 211, 102, 0.15); color: #4ade80 !important; border: 1px solid rgba(37, 211, 102, 0.3); }
.almar-footer-bottom { padding-top: 25px; text-align: center; font-size: 13px; color: #94a3b8 !important; }
.almar-float-wa { position: fixed; bottom: 24px; right: 24px; background: #25d366; color: #ffffff !important; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); z-index: 9999; }
