/* Ferretería Higuerillas - Estilos modernos */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --fh-bg-dark: #000000;
  --fh-bg-navy: #001845;
  --fh-bg-page: linear-gradient(135deg, #000000 0%, #001845 50%, #000000 100%);
  --fh-bg-card: #0a1628;
  --fh-bg-card-hover: #0f2040;
  --fh-blue: #003DA5;
  --fh-blue-light: #1a56c4;
  --fh-accent: #E30613;
  --fh-accent-hover: #c00510;
  --fh-text-white: #ffffff;
  --fh-text-gray: #94a3b8;
  --fh-text-light: #e2e8f0;
  --fh-border: rgba(0, 61, 165, 0.25);
  --fh-radius: 12px;
  --fh-radius-sm: 8px;
  --fh-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --fh-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --fh-shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --fh-shadow-btn: 0 4px 14px rgba(227, 6, 19, 0.35);
  --fh-shadow-btn-hover: 0 6px 20px rgba(227, 6, 19, 0.45);
  --fh-shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3);
  --fh-max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  height: 100%;
}

body.fh-modern {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', Verdana, Arial, sans-serif;
  background-color: var(--fh-bg-navy);
  background-image: var(--fh-bg-page);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--fh-text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.fh-modern a { text-decoration: none; color: inherit; }

/* ===== HERO / BANNER ===== */
.fh-hero {
  position: relative;
  overflow: hidden;
  background: transparent;
  border-bottom: 2px solid var(--fh-blue);
}

.fh-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background:
    linear-gradient(to left, var(--fh-bg-navy) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 61, 165, 0.12) 0%, transparent 60%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 12px
    );
  pointer-events: none;
}

.fh-hero.has-image::before {
  background:
    linear-gradient(to left, var(--fh-bg-dark) 0%, transparent 50%),
    url('../images/hero-tools.jpg') center/cover no-repeat;
  opacity: 0.4;
}

.fh-hero-inner {
  max-width: var(--fh-max-width);
  margin: 0 auto;
  padding: 48px 24px 44px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.fh-hero-content {
  flex: 1;
  min-width: 0;
}

.fh-hero-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fh-hero-logo-img {
  height: auto;
  max-height: 110px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  display: block;
}

.fh-hero-label {
  color: var(--fh-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.fh-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--fh-text-white);
  margin: 0 0 16px;
  line-height: 1.15;
}

.fh-hero-desc {
  color: var(--fh-text-gray);
  font-size: 15px;
  max-width: 520px;
  margin-bottom: 24px;
}

.fh-notice {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 14px 20px;
  font-size: 14px;
  color: var(--fh-text-light);
}

.fh-notice i {
  color: var(--fh-accent);
  font-size: 18px;
}

/* ===== MAIN CONTENT ===== */
.fh-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--fh-max-width);
  margin: 0 auto;
  padding: 32px 24px 48px;
}

/* ===== BRANCH CARDS ===== */
.fh-branches {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fh-branch-card {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  align-items: center;
  gap: 20px;
  background: var(--fh-bg-card);
  border: 1px solid var(--fh-border);
  border-left: 3px solid var(--fh-blue);
  border-radius: var(--fh-radius);
  padding: 20px 24px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}

.fh-branch-card:hover {
  background: var(--fh-bg-card-hover);
  border-color: rgba(227, 6, 19, 0.35);
  border-left-color: var(--fh-accent);
  transform: translateX(4px);
}

.fh-branch-icon {
  width: 56px;
  height: 56px;
  background: rgba(227, 6, 19, 0.1);
  border-radius: var(--fh-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fh-accent);
  font-size: 22px;
  flex-shrink: 0;
}

.fh-branch-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--fh-text-white);
  letter-spacing: 1px;
}

.fh-branch-info p {
  margin: 0;
  font-size: 12px;
  color: var(--fh-text-gray);
  line-height: 1.5;
}

.fh-branch-phones {
  text-align: right;
  min-width: 180px;
}

.fh-branch-phones .label {
  font-size: 10px;
  font-weight: 700;
  color: var(--fh-accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.fh-branch-phones .phone {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 13px;
  color: var(--fh-text-white);
  font-weight: 500;
  margin-bottom: 2px;
}

.fh-branch-phones .phone i {
  color: var(--fh-accent);
  font-size: 11px;
}

.fh-branch-arrow {
  color: var(--fh-accent);
  font-size: 18px;
  padding-left: 8px;
}

/* ===== HELP CARD ===== */
.fh-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--fh-bg-card);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 28px 32px;
  margin-top: 32px;
}

.fh-help-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fh-help-icon {
  width: 56px;
  height: 56px;
  background: rgba(227, 6, 19, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fh-accent);
  font-size: 24px;
  flex-shrink: 0;
}

.fh-help h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--fh-text-white);
}

.fh-help p {
  margin: 0;
  font-size: 13px;
  color: var(--fh-text-gray);
}

.fh-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--fh-accent);
  border-radius: 50px;
  color: var(--fh-accent) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.fh-btn-outline:hover {
  background: var(--fh-accent);
  color: #fff !important;
}

/* ===== FEATURES BAR ===== */
.fh-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--fh-border);
}

.fh-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.fh-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(227, 6, 19, 0.1);
  border-radius: var(--fh-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fh-accent);
  font-size: 16px;
  flex-shrink: 0;
}

.fh-feature h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fh-text-white);
}

.fh-feature p {
  margin: 0;
  font-size: 11px;
  color: var(--fh-text-gray);
  line-height: 1.4;
}

/* ===== FOOTER ===== */
.fh-footer {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  background: rgba(0, 8, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--fh-border);
  padding: 28px 24px;
}

.fh-footer-inner {
  max-width: var(--fh-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.fh-footer-center {
  text-align: center;
  font-size: 11px;
  color: var(--fh-text-gray);
  line-height: 1.6;
}

.fh-footer-social {
  display: flex;
  gap: 12px;
}

.fh-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fh-text-gray);
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.fh-footer-social a:hover {
  background: var(--fh-accent);
  color: #fff;
}

.fh-footer-logo {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* ===== CONFIRM DIALOG (cambio sucursal) ===== */
.fh-confirm {
  flex: 1 0 auto;
  width: 100%;
  max-width: 560px;
  margin: 48px auto;
  text-align: center;
  padding: 0 24px 48px;
}

.fh-confirm h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--fh-text-white);
  margin-bottom: 16px;
}

.fh-confirm h2 .accent { color: var(--fh-accent); }

.fh-confirm p {
  color: var(--fh-text-gray);
  font-size: 15px;
  margin-bottom: 32px;
}

.fh-confirm-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.fh-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(180deg, #f01825 0%, var(--fh-accent) 50%, #b8040f 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--fh-shadow-btn);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.fh-btn-primary:hover {
  background: linear-gradient(180deg, #ff2030 0%, #f01825 50%, var(--fh-accent) 100%);
  box-shadow: var(--fh-shadow-btn-hover);
  transform: translateY(-1px);
}

.fh-btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--fh-shadow-sm);
}

.fh-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 28px;
  background: rgba(10, 22, 40, 0.6);
  color: var(--fh-text-gray);
  border: 1px solid var(--fh-border);
  border-radius: 50px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--fh-shadow-sm);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.fh-btn-secondary:hover {
  border-color: var(--fh-blue-light);
  color: var(--fh-text-white);
  background: var(--fh-bg-card-hover);
  transform: translateY(-1px);
  box-shadow: var(--fh-shadow-md);
}

/* ===== BUSCADOR ===== */
.fh-main-buscador {
  padding-top: 28px;
}

.fh-hero-compact .fh-hero-inner {
  padding: 36px 24px 32px;
}

.fh-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.fh-toolbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(145deg, var(--fh-bg-card) 0%, rgba(10, 22, 40, 0.8) 100%);
  border: 1px solid var(--fh-border);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fh-text-gray);
  box-shadow: var(--fh-shadow-sm);
  transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.fh-toolbar a:hover {
  color: var(--fh-text-white);
  border-color: var(--fh-blue-light);
  transform: translateY(-1px);
  box-shadow: var(--fh-shadow-md);
}

.fh-toolbar a i {
  color: var(--fh-accent);
  font-size: 13px;
}

.fh-search-form {
  background: linear-gradient(160deg, var(--fh-bg-card) 0%, rgba(10, 22, 40, 0.95) 100%);
  border: 1px solid var(--fh-border);
  border-left: 4px solid var(--fh-blue);
  border-radius: var(--fh-radius);
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: var(--fh-shadow-card);
}

.fh-search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: end;
}

.fh-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fh-text-gray);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.fh-field label i {
  color: var(--fh-blue-light);
  font-size: 11px;
}

.fh-input {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fh-input:focus {
  border-color: var(--fh-blue);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(0, 61, 165, 0.2), 0 4px 12px rgba(0, 61, 165, 0.15);
}

.fh-input-secondary {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.fh-field-btn .fh-btn-search-submit {
  width: 100%;
  min-width: 150px;
  padding: 15px 28px;
  white-space: nowrap;
  border-radius: 10px;
}

.fh-search-help {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fh-accent) !important;
  transition: opacity 0.2s, transform 0.2s;
}

.fh-link:hover {
  opacity: 0.9;
  transform: translateX(2px);
}

.fh-results-header {
  margin-bottom: 18px;
}

.fh-results-tip {
  font-size: 13px;
  color: var(--fh-text-gray);
  margin: 0;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(0, 61, 165, 0.12) 0%, rgba(0, 61, 165, 0.04) 100%);
  border-radius: 10px;
  border-left: 4px solid var(--fh-blue);
  box-shadow: var(--fh-shadow-sm);
}

.fh-results-tip i {
  color: var(--fh-blue-light);
  margin-right: 6px;
}

.fh-results-tip strong {
  color: var(--fh-accent);
}

.fh-products {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fh-product-card {
  background: linear-gradient(145deg, var(--fh-bg-card) 0%, rgba(8, 18, 32, 0.98) 100%);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow-card);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.fh-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 61, 165, 0.4);
}

.fh-product-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0;
}

.fh-product-body {
  padding: 20px 22px;
  min-width: 0;
  border-left: 4px solid var(--fh-blue);
}

.fh-product-card:hover .fh-product-body {
  border-left-color: var(--fh-accent);
}

.fh-product-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fh-text-gray);
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.fh-product-code i {
  color: var(--fh-blue-light);
  font-size: 10px;
}

.fh-product-name {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fh-text-white);
  line-height: 1.45;
  text-transform: none;
}

.fh-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.fh-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fh-stock-badge.fh-stock-low {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.fh-price-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fh-price-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--fh-text-gray);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.fh-price-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--fh-text-white);
  line-height: 1.2;
}

.fh-product-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 22px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 140px;
}

.fh-qty-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--fh-text-gray);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fh-qty-input {
  width: 80px;
  padding: 12px 10px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
  background: linear-gradient(180deg, #fffef0 0%, #fef9c3 100%);
  border: 1px solid #e8d44d;
  border-radius: 10px;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fh-qty-input:focus {
  border-color: var(--fh-accent);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(227, 6, 19, 0.15);
}

.fh-btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 120px;
  padding: 13px 20px;
  background: linear-gradient(180deg, #f01825 0%, var(--fh-accent) 45%, #b8040f 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--fh-shadow-btn);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.fh-btn-add:hover {
  background: linear-gradient(180deg, #ff2030 0%, #f01825 50%, var(--fh-accent) 100%);
  box-shadow: var(--fh-shadow-btn-hover);
  transform: translateY(-2px);
}

.fh-btn-add:active {
  transform: translateY(0);
  box-shadow: var(--fh-shadow-sm);
}

.fh-empty {
  text-align: center;
  padding: 52px 28px;
  background: linear-gradient(160deg, var(--fh-bg-card) 0%, rgba(10, 22, 40, 0.95) 100%);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow-card);
}

.fh-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  background: linear-gradient(145deg, rgba(227, 6, 19, 0.15) 0%, rgba(227, 6, 19, 0.05) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fh-accent);
  font-size: 28px;
  box-shadow: var(--fh-shadow-sm);
}

.fh-empty h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--fh-text-white);
}

.fh-empty > p {
  margin: 0 0 24px;
  color: var(--fh-text-gray);
  font-size: 14px;
}

.fh-empty-tips {
  padding-top: 24px;
  border-top: 1px solid var(--fh-border);
}

.fh-empty-tips h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--fh-text-white);
}

.fh-empty-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--fh-text-gray);
}

.fh-pagination {
  margin-top: 36px;
  padding: 28px 24px;
  background: linear-gradient(160deg, var(--fh-bg-card) 0%, rgba(10, 22, 40, 0.6) 100%);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow-card);
  text-align: center;
}

.fh-pagination-info {
  display: block;
  font-size: 13px;
  color: var(--fh-text-gray);
  margin-bottom: 18px;
}

.fh-pagination-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.fh-btn-sm {
  padding: 10px 20px;
  font-size: 12px;
  border-radius: 10px;
}

.fh-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.fh-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fh-text-gray) !important;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--fh-border);
  border-radius: 8px;
  box-shadow: var(--fh-shadow-sm);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.fh-page-link:hover {
  color: var(--fh-text-white) !important;
  border-color: var(--fh-blue-light);
  transform: translateY(-1px);
}

.fh-page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #f01825 0%, var(--fh-accent) 100%);
  border-radius: 8px;
  box-shadow: var(--fh-shadow-btn);
}

/* ===== PÁGINAS SECUNDARIAS (carro, cta, ayuda) ===== */
.fh-toolbar-active {
  color: var(--fh-text-white) !important;
  border-color: var(--fh-accent) !important;
  background: rgba(227, 6, 19, 0.12) !important;
}

.fh-btn-lg {
  padding: 16px 36px;
  font-size: 15px;
  border-radius: 12px;
}

.fh-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(227, 6, 19, 0.15);
  color: #ff6b6b !important;
  border: 1px solid rgba(227, 6, 19, 0.35);
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--fh-shadow-sm);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.fh-btn-danger:hover {
  background: rgba(227, 6, 19, 0.25);
  transform: translateY(-1px);
  box-shadow: var(--fh-shadow-md);
}

.fh-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0 20px;
  padding: 18px 22px;
  background: linear-gradient(160deg, var(--fh-bg-card) 0%, rgba(10, 22, 40, 0.95) 100%);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow-card);
}

.fh-cart-id {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fh-text-light);
}

.fh-cart-id i {
  color: var(--fh-blue-light);
}

.fh-cart-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.fh-cart-header-actions form {
  margin: 0;
}

.fh-cart-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.fh-summary-card {
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(160deg, var(--fh-bg-card) 0%, rgba(10, 22, 40, 0.9) 100%);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow-sm);
}

.fh-summary-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--fh-text-gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fh-summary-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--fh-text-white);
}

.fh-summary-total {
  background: linear-gradient(160deg, rgba(227, 6, 19, 0.2) 0%, rgba(10, 22, 40, 0.95) 100%);
  border-color: rgba(227, 6, 19, 0.35);
}

.fh-summary-total .fh-summary-value {
  color: var(--fh-accent);
}

.fh-cart-list {
  background: linear-gradient(160deg, var(--fh-bg-card) 0%, rgba(10, 22, 40, 0.6) 100%);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow-card);
  overflow: hidden;
}

.fh-cart-list-head {
  display: grid;
  grid-template-columns: 60px 1fr 120px 90px;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(0, 61, 165, 0.15);
  font-size: 11px;
  font-weight: 700;
  color: var(--fh-text-gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--fh-border);
}

.fh-cart-item {
  display: grid;
  grid-template-columns: 60px 1fr 120px 90px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.fh-cart-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.fh-cart-item:last-child {
  border-bottom: none;
}

.fh-cart-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(0, 61, 165, 0.15);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--fh-text-white);
  box-shadow: var(--fh-shadow-sm);
}

.fh-cart-desc h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fh-text-white);
  line-height: 1.4;
}

.fh-cart-unit {
  margin: 0;
  font-size: 12px;
  color: var(--fh-text-gray);
}

.fh-cart-total {
  font-size: 16px;
  font-weight: 800;
  color: var(--fh-text-white);
  text-align: right;
}

.fh-cart-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.fh-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--fh-border);
  border-radius: 8px;
  color: var(--fh-text-gray) !important;
  font-size: 14px;
  box-shadow: var(--fh-shadow-sm);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.fh-btn-icon:hover {
  background: rgba(0, 61, 165, 0.2);
  color: var(--fh-text-white) !important;
  transform: translateY(-1px);
}

.fh-btn-icon-danger:hover {
  background: rgba(227, 6, 19, 0.2);
  color: #ff6b6b !important;
  border-color: rgba(227, 6, 19, 0.35);
}

.fh-cart-footer {
  margin-top: 28px;
  text-align: center;
}

.fh-content-card {
  background: linear-gradient(160deg, var(--fh-bg-card) 0%, rgba(10, 22, 40, 0.95) 100%);
  border: 1px solid var(--fh-border);
  border-left: 4px solid var(--fh-blue);
  border-radius: var(--fh-radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: var(--fh-shadow-card);
}

.fh-content-card h2 {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 700;
  color: var(--fh-text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.fh-content-card h2 i {
  color: var(--fh-accent);
  font-size: 18px;
}

.fh-tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fh-tips-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.fh-tip-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(227, 6, 19, 0.1);
  border-radius: 10px;
  color: var(--fh-accent);
  font-size: 16px;
  box-shadow: var(--fh-shadow-sm);
}

.fh-tip-text {
  font-size: 14px;
  color: var(--fh-text-gray);
  line-height: 1.6;
  padding-top: 8px;
}

.fh-tip-text strong {
  color: var(--fh-text-white);
}

.fh-highlight {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(227, 6, 19, 0.15);
  color: var(--fh-accent);
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
}

.fh-bank-card {
  background: linear-gradient(160deg, var(--fh-bg-card) 0%, rgba(10, 22, 40, 0.95) 100%);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow-card);
  overflow: hidden;
  margin-bottom: 24px;
}

.fh-bank-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  background: linear-gradient(90deg, rgba(0, 61, 165, 0.2) 0%, transparent 100%);
  border-bottom: 1px solid var(--fh-border);
}

.fh-bank-header i {
  font-size: 28px;
  color: var(--fh-blue-light);
}

.fh-bank-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--fh-text-white);
}

.fh-bank-details {
  padding: 8px 0;
}

.fh-bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}

.fh-bank-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.fh-bank-row:last-child {
  border-bottom: none;
}

.fh-bank-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fh-text-gray);
  flex-shrink: 0;
}

.fh-bank-label i {
  color: var(--fh-blue-light);
  width: 16px;
  text-align: center;
}

.fh-bank-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--fh-text-white);
  text-align: right;
}

.fh-page-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  padding-top: 24px;
}

.fh-empty .fh-btn-primary {
  margin-top: 8px;
}

/* ===== FORMULARIOS Y ALERTAS ===== */
.fh-alert {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 22px;
  border-radius: var(--fh-radius);
  margin-bottom: 20px;
  box-shadow: var(--fh-shadow-sm);
}

.fh-alert i {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.fh-alert strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--fh-text-white);
}

.fh-alert p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fh-text-gray);
}

.fh-alert-warning {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(10, 22, 40, 0.9) 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.fh-alert-warning i { color: #fbbf24; }

.fh-alert-error {
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.15) 0%, rgba(10, 22, 40, 0.9) 100%);
  border: 1px solid rgba(227, 6, 19, 0.4);
}

.fh-alert-error i { color: #ff6b6b; }

.fh-alert-info {
  background: linear-gradient(135deg, rgba(0, 61, 165, 0.15) 0%, rgba(10, 22, 40, 0.9) 100%);
  border: 1px solid rgba(0, 61, 165, 0.35);
}

.fh-alert-info i { color: var(--fh-blue-light); }

.fh-order-form-card {
  border-left-color: var(--fh-accent);
}

.fh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fh-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fh-form-field-full {
  grid-column: 1 / -1;
}

.fh-form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fh-text-gray);
  letter-spacing: 0.3px;
}

.fh-required {
  color: var(--fh-accent);
}

.fh-optional {
  font-weight: 400;
  color: var(--fh-text-gray);
  font-size: 11px;
}

.fh-input-error {
  border-color: var(--fh-accent) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(227, 6, 19, 0.2) !important;
  background: #fff5f5 !important;
}

.fh-select,
.fh-textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fh-select:focus,
.fh-textarea:focus {
  border-color: var(--fh-blue);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(0, 61, 165, 0.2);
}

.fh-textarea {
  resize: vertical;
  min-height: 100px;
}

.fh-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--fh-border);
}

.fh-info-text {
  margin: 0;
  font-size: 14px;
  color: var(--fh-text-gray);
  line-height: 1.6;
}

/* ===== AGREGAR / MODIFICAR PRODUCTO ===== */
.fh-product-modify {
  margin-bottom: 20px;
}

.fh-product-modify .fh-product-form {
  display: block;
}

.fh-qty-form-card {
  max-width: 480px;
  margin: 0 auto;
}

.fh-qty-form-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.fh-qty-input-lg {
  width: 100px;
  padding: 14px 12px;
  font-size: 20px;
}

/* ===== PEDIDO OK / ÉXITO ===== */
.fh-success-card {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(160deg, var(--fh-bg-card) 0%, rgba(10, 22, 40, 0.95) 100%);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow-card);
}

.fh-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(145deg, rgba(74, 222, 128, 0.2) 0%, rgba(74, 222, 128, 0.05) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  font-size: 40px;
  box-shadow: 0 4px 20px rgba(74, 222, 128, 0.2);
}

.fh-success-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--fh-text-white);
}

.fh-success-card > p {
  margin: 0 0 32px;
  font-size: 15px;
  color: var(--fh-text-gray);
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.fh-success-steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--fh-border);
  border-bottom: 1px solid var(--fh-border);
}

.fh-success-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fh-text-gray);
  max-width: 120px;
}

.fh-step-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f01825 0%, var(--fh-accent) 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--fh-shadow-btn);
}

.fh-success-actions {
  margin: 0;
}

/* ===== LEGACY STYLES (otras páginas) ===== */
.minimus{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 25px; font-weight: normal; color: #000000; background-color: #FFFFE6; text-align: center; width:100%; }
.minimus_error{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 25px; font-weight: normal; color: #ffffff; background-color: #ff0000; text-align: center; width:100%; }
.minimusg{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 25px; font-weight: normal; color: #000000; background-color: #e0e0e0; text-align: center; width:100%; }
.normal{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 25px; text-align: left; font-weight: normal; color: #ffffff; }
.botonera{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; text-align: left; font-weight: normal; color: #ffffff; text-decoration: none; }
.link{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 25px; text-align: right; font-weight: normal; color: orange; text-decoration: none; }
.titulob{ font-family: Arial, sans-serif; font-size: 25px; font-weight: bold; color: #ffffff; }
.titulob3{ font-family: Arial, sans-serif; font-size: 30px; text-align: left; font-weight: bold; color: #ffffff; }
.chico{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: normal; color: #ffffff; }
.btn_6{ font-family: Arial, Helvetica, sans-serif; font-size: 25px; font-weight: normal; color: #ffffff; background-color: #E30613; text-align: center; border: none; border-radius: 8px; padding: 8px 16px; cursor: pointer; }
.btn_A{ font-family: Arial; font-size: 25px; font-weight: normal; color: #ffffff; background-color: #FF8040; text-align: center; width:120px; height:120px; }

@media (max-width: 768px) {
  .fh-hero-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 20px 36px;
  }

  .fh-hero-logo {
    width: 100%;
    justify-content: flex-start;
  }

  .fh-hero-logo-img {
    max-height: 72px;
    max-width: 240px;
  }

  .fh-hero::before { width: 100%; opacity: 0.5; }

  .fh-branch-card {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
  }

  .fh-branch-phones {
    grid-column: 1 / -1;
    text-align: left;
    min-width: unset;
  }

  .fh-branch-phones .phone { justify-content: flex-start; }

  .fh-branch-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .fh-branch-card { position: relative; padding-right: 40px; }

  .fh-features {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .fh-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .fh-search-fields {
    grid-template-columns: 1fr;
  }

  .fh-field-btn .fh-btn-search-submit {
    width: 100%;
  }

  .fh-product-form {
    grid-template-columns: 1fr;
  }

  .fh-product-body {
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .fh-product-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    border-left: none;
    min-width: unset;
    padding: 16px 20px;
  }

  .fh-qty-input {
    width: 72px;
  }

  .fh-btn-add {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
  }

  .fh-cart-summary {
    grid-template-columns: 1fr;
  }

  .fh-cart-list-head {
    display: none;
  }

  .fh-cart-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .fh-cart-qty {
    width: auto;
    height: auto;
    padding: 6px 14px;
    display: inline-flex;
  }

  .fh-cart-total {
    text-align: left;
    font-size: 18px;
  }

  .fh-cart-actions {
    justify-content: flex-start;
  }

  .fh-cart-header {
    flex-direction: column;
    align-items: stretch;
  }

  .fh-cart-header-actions {
    justify-content: stretch;
  }

  .fh-cart-header-actions form,
  .fh-cart-header-actions .fh-btn-danger {
    flex: 1;
    justify-content: center;
  }

  .fh-bank-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .fh-bank-value {
    text-align: left;
  }

  .fh-form-grid {
    grid-template-columns: 1fr;
  }

  .fh-form-actions {
    flex-direction: column;
  }

  .fh-form-actions .fh-btn-primary,
  .fh-form-actions .fh-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .fh-qty-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .fh-qty-input-lg {
    width: 100%;
  }

  .fh-success-steps {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .fh-features { grid-template-columns: 1fr; }
}
