/* assets/css/app.css */
:root{
  --campi-gray: #545454;
  --campi-gold: #b08b43;

  /* Gradiente marca (90°) */
  --campi-grad-1: #ffe500;
  --campi-grad-2: #005bb8;
  --campi-grad-3: #ef0808;

  --bg: #f6f6f6;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #6b7280;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-soft: 0 8px 20px rgba(0,0,0,.06);
}

*{ box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

img, svg, video, canvas{
  max-width: 100%;
  height: auto;
  display: block;
}

.container{ max-width: 1100px; }

/* NAVBAR */
.navbar-brand{ color: var(--campi-gray) !important; }
.nav-link{ color: #3a3a3a !important; font-weight: 500; }
.nav-link:hover{ color: var(--campi-gold) !important; }

.campi-logo{
  height: 34px;
  width: auto;
  object-fit: contain;
}

/* Botones Campi */
.btn-campi{
  border: 0;
  color: white;
  background: var(--campi-gray);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}
.btn-campi:hover{ filter: brightness(1.05); }
.btn-campi-outline{
  background: transparent;
  border: 1px solid rgba(84,84,84,.25);
  color: var(--campi-gray);
  border-radius: 12px;
}
.btn-campi-outline:hover{
  border-color: var(--campi-gold);
  color: var(--campi-gold);
}

/* HERO */
.hero{
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.10;
  background: linear-gradient(90deg, var(--campi-grad-1), var(--campi-grad-2), var(--campi-grad-3));
  pointer-events:none;
}
.hero-inner{
  position: relative;
  padding: 28px 18px; /* móvil first */
}
@media (min-width: 768px){
  .hero-inner{ padding: 56px 42px; }
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(176,139,67,.12);
  color: var(--campi-gold);
  font-weight: 800;
  font-size: 13px;
}
.hero-badge .dot{
  width:10px; height:10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--campi-grad-1), var(--campi-grad-2), var(--campi-grad-3));
}

.h-title{
  font-weight: 900;
  letter-spacing: -.6px;
  color: #202020;
}
.p-muted{ color: var(--muted); }

/* imagen hero responsiva sin desbordar */
.hero-img{
  width: 100%;
  aspect-ratio: 16/11;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,.06);
}

/* Cards productos */
.card{
  border-radius: var(--radius);
  overflow: hidden; /* clave para que no se “salga” nada */
}
.card.shadow-sm{ box-shadow: var(--shadow-soft) !important; }
.card-img-top{
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #f1f1f1;
}
@media (max-width: 576px){
  .card-img-top{ height: 160px; }
}

.section-title{
  font-weight: 900;
  letter-spacing: -.4px;
}
.section-sub{ color: var(--muted); }

/* CTA final */
.cta{
  border-radius: calc(var(--radius) + 6px);
  overflow:hidden;
  box-shadow: var(--shadow);
  background: var(--campi-gray);
  position: relative;
}
.cta::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.16;
  background: linear-gradient(90deg, var(--campi-grad-1), var(--campi-grad-2), var(--campi-grad-3));
}
.cta-inner{
  position: relative;
  padding: 38px 18px;
}
@media (min-width: 768px){
  .cta-inner{ padding: 54px 24px; }
}

/* Footer */
footer a:hover{ color: var(--campi-gold) !important; }
