/* ====================================
   RIVAS SUPPLY & SERVICES
   styles.css — Shared Styles
   ==================================== */

:root {
  --black:        #000000;
  --white:        #FFFFFF;
  --orange:       #FF6B35;
  --orange-dark:  #E55A25;
  --gray-text:    #666666;
  --gray-bg:      #F5F5F5;
  --gray-border:  #DDDDDD;
  --font:         'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow:       0 4px 20px rgba(0,0,0,.1);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.15);
  --radius:       8px;
  --t:            .3s ease;
  --max-w:        1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--black); background: var(--white); line-height: 1.6; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5rem 0; }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: .75rem;
}
.section-title span { color: var(--orange); }
.section-sub {
  text-align: center;
  color: var(--gray-text);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--t);
  border: 2px solid transparent;
  line-height: 1;
}
.btn-primary  { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,53,.4); }
.btn-outline  { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-dark     { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #1a1a1a; transform: translateY(-2px); }

/* ====================================
   ANNOUNCEMENT BAR
   ==================================== */
.ann-bar {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: .55rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .3px;
}

/* ====================================
   NAVBAR
   ==================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--black);
  transition: box-shadow var(--t);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.4); }

.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 175px;
}

/* Logo */
.logo-wrap { display: flex; align-items: center; gap: .6rem; }
.logo-wrap img {
  height: 160px;
  width: auto;
  filter: invert(1) brightness(2);
  mix-blend-mode: screen;
}
.logo-text {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.5px;
  line-height: 1.1;
}
.logo-text span { color: var(--orange); }
.logo-sub { font-size: .65rem; color: rgba(255,255,255,.5); font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; display: block; }

/* Nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  font-weight: 500;
  position: relative;
  transition: color var(--t);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width var(--t);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Language switch */
.lang-sw {
  display: flex;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  overflow: hidden;
  margin-left: 1rem;
}
.lang-sw a {
  padding: .35rem .75rem;
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  transition: all var(--t);
}
.lang-sw a.active { background: var(--orange); color: var(--white); }
.lang-sw a:hover:not(.active) { color: var(--white); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-nav {
  display: none;
  background: #0a0a0a;
  padding: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,.8);
  padding: .8rem 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--t);
}
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav .mob-lang {
  display: flex; gap: .75rem; margin-top: 1.25rem;
}
.mobile-nav .mob-lang a {
  flex: 1; text-align: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: .55rem;
  font-size: .85rem; font-weight: 700;
}
.mobile-nav .mob-lang a.active { background: var(--orange); border-color: var(--orange); }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .hamburger  { display: none; }
}

/* ====================================
   HERO
   ==================================== */
.hero {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  padding-top: 175px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,107,53,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,53,.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  position: relative; z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,107,53,.12);
  border: 1px solid rgba(255,107,53,.3);
  color: var(--orange);
  padding: .4rem 1rem;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: .3px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.4rem;
}
.hero h1 span { color: var(--orange); }
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.7;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}
.stat-lbl {
  color: rgba(255,255,255,.55);
  font-size: .8rem;
  margin-top: .25rem;
}

/* Hero right side card */
.hero-card-wrap { display: none; justify-content: center; }
.hero-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 2rem;
  width: 340px;
}
.hero-prod-star {
  background: var(--orange);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.hero-prod-star img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; margin: 0 auto .75rem; }
.hero-prod-star .prod-name { color: var(--white); font-weight: 800; font-size: 1rem; margin-bottom: .3rem; }
.hero-prod-star .prod-tag {
  display: inline-block;
  background: rgba(0,0,0,.25);
  color: var(--white);
  font-size: .7rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .5px;
}
.hero-mini-list { display: flex; flex-direction: column; gap: .6rem; }
.hero-mini-item {
  display: flex; align-items: center; gap: .75rem;
  color: rgba(255,255,255,.7);
  font-size: .87rem;
}
.hero-mini-item span:first-child {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .hero-card-wrap { display: flex; }
}

/* ====================================
   PRODUCTS
   ==================================== */
#productos, #products { background: var(--gray-bg); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.prod-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--t);
  position: relative;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.prod-card.star { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(255,107,53,.15); }

.prod-img {
  width: 100%; height: 200px;
  background: #f8f8f8;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 1rem;
}
.prod-img img { width: 100%; height: 100%; object-fit: contain; }
.prod-img .prod-icon { font-size: 4rem; }

.prod-body { padding: 1.25rem; }
.prod-body h3 { font-weight: 700; margin-bottom: .3rem; font-size: .95rem; }
.prod-body p { color: var(--gray-text); font-size: .83rem; margin-bottom: 1rem; line-height: 1.5; }

.star-badge {
  position: absolute; top: .75rem; right: .75rem;
  background: var(--orange); color: var(--white);
  padding: .25rem .65rem; border-radius: 4px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.prod-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 700; color: var(--orange);
  transition: gap var(--t);
}
.prod-cta:hover { gap: .7rem; }

/* ====================================
   SERVICES
   ==================================== */
#servicios, #services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.75rem;
}
.srv-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  transition: all var(--t);
}
.srv-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-3px); }
.srv-icon {
  width: 68px; height: 68px;
  background: rgba(255,107,53,.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.1rem;
  transition: background var(--t);
}
.srv-card:hover .srv-icon { background: var(--orange); }
.srv-card h3 { font-weight: 700; margin-bottom: .45rem; font-size: 1rem; }
.srv-card p  { color: var(--gray-text); font-size: .87rem; line-height: 1.55; }

/* ====================================
   MARCAS PRINCIPALES
   ==================================== */
#marcas { background: var(--black); }
#marcas .section-title { color: var(--white); }
#marcas .section-sub   { color: rgba(255,255,255,.55); }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.brand-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  transition: all var(--t);
  border: 2px solid transparent;
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255,107,53,.35);
  border-color: var(--orange);
}
.brand-card img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1024px) { .brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .brands-grid { grid-template-columns: repeat(2, 1fr); } }

/* ====================================
   CATEGORIES
   ==================================== */
#categorias, #categories { background: var(--gray-bg); }

.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all var(--t);
  cursor: pointer;
}
.cat-card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-icon { font-size: 2.5rem; margin-bottom: .75rem; display: block; }
.cat-name { font-weight: 700; font-size: .87rem; }
.cat-count { color: var(--gray-text); font-size: .75rem; margin-top: .2rem; }

/* ====================================
   WHY CHOOSE US
   ==================================== */
#por-que, #why-us { background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
.why-feats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-ico {
  width: 50px; height: 50px;
  background: rgba(255,107,53,.1);
  border: 1px solid rgba(255,107,53,.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.why-txt h4 { font-weight: 700; margin-bottom: .3rem; font-size: 1rem; }
.why-txt p  { color: var(--gray-text); font-size: .88rem; line-height: 1.55; }

.why-panel {
  background: var(--black);
  border-radius: 20px;
  padding: 2.5rem;
  color: var(--white);
}
.why-panel h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
.why-panel > p { color: rgba(255,255,255,.55); margin-bottom: 2rem; font-size: .95rem; }
.counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.counter {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
}
.counter-n { font-size: 2.2rem; font-weight: 900; color: var(--orange); line-height: 1; }
.counter-l { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: .3rem; }

@media (min-width: 768px) {
  .why-grid  { grid-template-columns: 1fr 1fr; }
  .why-feats { grid-template-columns: 1fr 1fr; }
}

/* ====================================
   CONTACT
   ==================================== */
#contacto, #contact { background: var(--gray-bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.75rem; }
.ci-item { display: flex; gap: 1rem; align-items: flex-start; }
.ci-ico {
  width: 50px; height: 50px;
  background: var(--orange); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0; color: var(--white);
}
.ci-txt h4 { font-weight: 700; margin-bottom: .2rem; font-size: 1rem; }
.ci-txt p, .ci-txt a { color: var(--gray-text); font-size: .9rem; }
.ci-txt a:hover { color: var(--orange); }

.contact-hours {
  background: var(--black);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--white);
  margin-top: 1rem;
}
.contact-hours h4 { font-weight: 700; margin-bottom: .85rem; font-size: .95rem; }
.hours-row {
  display: flex; justify-content: space-between;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .87rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { color: rgba(255,255,255,.6); }
.hours-row .time { color: var(--orange); font-weight: 600; }

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-card h3 { font-weight: 800; font-size: 1.3rem; margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; }
.form-ctrl {
  width: 100%; padding: .8rem 1rem;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: .95rem; font-family: var(--font);
  outline: none;
  transition: border-color var(--t);
  background: var(--white);
}
.form-ctrl:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,53,.1); }
textarea.form-ctrl { resize: vertical; min-height: 120px; }

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.4fr; }
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
  background: var(--black);
  color: rgba(255,255,255,.65);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-text { font-size: 1.4rem; margin-bottom: .7rem; }
.footer-brand p { font-size: .88rem; max-width: 260px; line-height: 1.65; }

.footer-col h4 { color: var(--white); font-weight: 700; margin-bottom: 1.1rem; font-size: .95rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul li a { font-size: .875rem; transition: color var(--t); }
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-size: .83rem;
}
.footer-bottom a:hover { color: var(--orange); }

.footer-social { display: flex; gap: .75rem; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background var(--t);
}
.social-btn:hover { background: var(--orange); }

@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ====================================
   FLOATING BUTTONS
   ==================================== */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 46px; height: 46px;
  background: var(--orange); color: var(--white);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(255,107,53,.4);
  transition: all var(--t);
  opacity: 0; pointer-events: none;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(255,107,53,.5); }

.wa-float {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 999;
  width: 54px; height: 54px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all var(--t);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,.5); }
