/* ─── SODIMAC ARGENTINA — SHARED PAGES CSS ─── */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

:root {
  --orange:      #DD0021;
  --orange-dark: #AC0111;
  --orange-lt:   #FFEBEB;
  --blue:        #0072CE;
  --blue-dark:   #044CC3;
  --text:        #333333;
  --text-2:      #585858;
  --text-3:      #8B8B8B;
  --bg:          #FFFFFF;
  --card-bg:     #FFFFFF;
  --border:      #DDDDDD;
  --header-bg:   #FFFFFF;
  --top-bg:      #F0F0F0;
  --top-border:  #D3D3D3;
  --red:         #DD0021;
  --green:       #0DA137;
  --shadow:      0 1px 3px rgba(0,0,0,.08);
  --radius:      3px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; overflow-x: hidden; }
body { font-family: 'Lato', sans-serif; background: var(--bg); color: var(--text); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ─── TOP BAR ─── */
.top-bar {
  background: var(--top-bg);
  border-bottom: 1px solid var(--top-border);
  font-size: .72rem;
  color: var(--text-2);
}
.top-bar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 6px 16px;
  display: flex; align-items: center; gap: 0;
}
.top-bar a {
  color: var(--text-2); font-weight: 700;
  font-size: .72rem; letter-spacing: .4px;
  text-transform: uppercase;
  padding: 0 14px;
  border-right: 1px solid var(--border);
  transition: color .2s;
}
.top-bar a:first-child { padding-left: 0; }
.top-bar a:hover { color: var(--orange); }

/* ─── HEADER ─── */
.main-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 200;
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 16px;
}
.logo-link { flex-shrink: 0; }
.logo-img { height: 38px; width: auto; display: block; }
.search-form { flex: 1; display: flex; max-width: 600px; }
.search-input {
  flex: 1; padding: 0 14px; height: 42px;
  border: 2px solid var(--border); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: .9rem; background: var(--card-bg); color: var(--text);
  outline: none; transition: border-color .2s;
}
.search-input:focus { border-color: var(--orange); }
.search-btn {
  height: 42px; padding: 0 18px;
  background: var(--orange); color: #fff;
  border: none; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem; transition: background .2s;
}
.search-btn:hover { background: var(--orange-dark); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.hdr-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 10px; border-radius: var(--radius);
  background: none; border: none; color: var(--text-2);
  font-size: .65rem; transition: color .2s, background .2s; gap: 2px;
}
.hdr-btn:hover { color: var(--orange); background: var(--orange-lt); }
.hdr-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ─── NAV BAR ─── */
.main-nav { background: var(--header-bg); border-bottom: 2px solid var(--orange); }
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 16px; display: flex; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-item {
  display: inline-flex; align-items: center;
  padding: 11px 14px; font-size: .82rem; font-weight: 500;
  color: var(--text); white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-item:hover { color: var(--orange); border-color: var(--orange); }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  max-width: 1280px; margin: 0 auto;
  padding: 12px 16px;
  font-size: .78rem; color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-3); }

/* ─── PAGE WRAPPER ─── */
.page-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 16px 60px; }

/* ─── PAGE HERO ─── */
.page-hero {
  background: linear-gradient(135deg, #DD0021 0%, #8a0014 100%);
  color: #fff;
  padding: 44px 24px;
  border-radius: 4px;
  margin-bottom: 36px;
}
.page-hero h1 { font-size: 2rem; font-weight: 900; margin-bottom: 8px; }
.page-hero p { font-size: 1rem; opacity: .88; max-width: 560px; }

/* ─── SECTION TITLE ─── */
.sec-title {
  font-size: 1.2rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

/* ─── CARD GRID ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.info-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.info-card .card-icon { font-size: 2rem; margin-bottom: 12px; }
.info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.info-card p { font-size: .85rem; color: var(--text-2); line-height: 1.6; }
.info-card a.card-link {
  display: inline-block; margin-top: 14px;
  color: var(--blue); font-size: .85rem; font-weight: 700;
}
.info-card a.card-link:hover { text-decoration: underline; }

/* ─── TWO COLUMN LAYOUT ─── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.one-col { margin-bottom: 36px; }

/* ─── ACCORDION / FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; text-align: left;
  padding: 16px 20px;
  font-size: .92rem; font-weight: 700;
  background: var(--card-bg); color: var(--text);
  border: none; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: background .2s;
}
.faq-q:hover { background: var(--orange-lt); }
.faq-q .arrow { font-size: .75rem; transition: transform .25s; }
.faq-q.open .arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px;
  font-size: .88rem; color: var(--text-2);
  line-height: 1.7;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s;
}
.faq-a.open { max-height: 400px; padding: 14px 20px 18px; }

/* ─── TABLE ─── */
.data-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; font-size: .88rem; }
.data-table th {
  background: #f5f5f5; color: var(--text);
  font-weight: 700; padding: 12px 16px;
  text-align: left; border-bottom: 2px solid var(--border);
}
.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafafa; }

/* ─── FORM ─── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .9rem; font-family: inherit;
  background: var(--card-bg); color: var(--text);
  outline: none; transition: border-color .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--orange); }
.form-textarea { min-height: 110px; resize: vertical; }
.btn-primary {
  display: inline-block; padding: 12px 28px;
  background: var(--orange); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline {
  display: inline-block; padding: 11px 26px;
  background: none; color: var(--orange);
  border: 2px solid var(--orange); border-radius: var(--radius);
  font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--orange); color: #fff; }

/* ─── TABS ─── */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 28px; gap: 0; }
.tab-btn {
  padding: 12px 22px; background: none; border: none;
  font-size: .9rem; font-weight: 700; color: var(--text-3);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: color .2s, border-color .2s;
}
.tab-btn:hover { color: var(--orange); }
.tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── ALERT BOXES ─── */
.alert { padding: 14px 18px; border-radius: 4px; font-size: .88rem; margin-bottom: 20px; line-height: 1.6; }
.alert-info { background: #EBF4FF; border-left: 4px solid var(--blue); color: #1a4a7a; }
.alert-success { background: #EDFAF1; border-left: 4px solid var(--green); color: #0a5c28; }
.alert-warn { background: #FFF8E1; border-left: 4px solid #F5A623; color: #7a5600; }

/* ─── STORE LOCATOR ─── */
.store-list { display: flex; flex-direction: column; gap: 16px; }
.store-card {
  border: 1px solid var(--border); border-radius: 4px;
  padding: 20px; background: var(--card-bg);
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 16px;
}
.store-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.store-card p { font-size: .85rem; color: var(--text-2); line-height: 1.6; }
.store-badge {
  display: inline-block; padding: 3px 10px;
  background: var(--orange-lt); color: var(--orange);
  border-radius: 20px; font-size: .72rem; font-weight: 700;
  margin-top: 4px;
}
.store-hours { font-size: .82rem; font-weight: 700; text-align: right; color: var(--text-2); }

/* ─── TEAM GRID ─── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-bottom: 36px; }
.team-card { text-align: center; }
.team-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, #DD0021, #8a0014);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: #fff; font-weight: 900;
}
.team-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.team-card p { font-size: .8rem; color: var(--text-3); }

/* ─── STAT STRIP ─── */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 36px; }
.stat-item { background: var(--card-bg); padding: 24px 16px; text-align: center; }
.stat-item .stat-num { font-size: 2rem; font-weight: 900; color: var(--orange); display: block; }
.stat-item .stat-label { font-size: .8rem; color: var(--text-3); margin-top: 4px; }

/* ─── FOOTER ─── */
.site-footer {
  background: #1A1A1A;
  color: #ccc;
  padding: 40px 0 0;
  margin-top: 60px;
}
.footer-cols {
  max-width: 1280px; margin: 0 auto;
  padding: 0 16px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-col h4 { color: #fff; font-size: .88rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col li a { font-size: .82rem; color: #aaa; transition: color .2s; }
.footer-col li a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.soc-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: #333; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: background .2s;
}
.soc-btn:hover { background: var(--orange); }
.footer-bottom {
  border-top: 1px solid #333;
  max-width: 1280px; margin: 0 auto;
  padding: 18px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.footer-logo-text {
  font-size: 1.3rem; font-weight: 900;
  color: #fff; letter-spacing: 2px;
}
.footer-bottom p { font-size: .73rem; color: #666; }
.footer-pb { padding-bottom: 24px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-cols { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.4rem; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .search-form { order: 3; max-width: 100%; width: 100%; }
}
