/* SBC Research — Custom styles v2 */
/* Applied on top of Bootswatch Flatly + Bootstrap 5.3 */

/* ── Fonts ──
   Tipografía 100% estándar (system fonts): cero descargas, carga instantánea.
   Tres roles, siguiendo la directriz de tipografia.html:
   1. Encabezados  → Trebuchet MS / Segoe UI  (reemplaza MPlusRounded)
   2. Cuerpo       → Helvetica Neue / Arial   (reemplaza Varela Rounded)
   3. Frases cortas→ Segoe Script / cursive   (reemplaza Hand Write)     */

:root {
  --sbc-font-heading: "Trebuchet MS", "Segoe UI", "Verdana", -apple-system, sans-serif;
  --sbc-font-body: "Helvetica Neue", "Arial", "Segoe UI", -apple-system, sans-serif;
  --sbc-font-accent: "Segoe Script", "Bradley Hand", "Snell Roundhand", cursive;
}

/* Clases de compatibilidad con la guía tipográfica original */
.fnt-main {
  font-family: var(--sbc-font-heading);
  text-transform: uppercase;
  font-weight: 700;
}
.fnt-body {
  font-family: var(--sbc-font-body);
}
.fnt-second {
  font-family: var(--sbc-font-accent);
}

/* ── Base ── */
:root {
  --sbc-teal: #41969A;
  --sbc-teal-dark: #2d6b6e;
  --sbc-orange: #ED642F;
  --sbc-green: #739A4E;
  --sbc-blue: #44719C;
  --sbc-burgundy: #793851;
  --sbc-text: #333333;
  --sbc-text-light: #6c757d;
  --sbc-bg-light: #f8f9fa;
  --sbc-bg-section: #f1f5f4;
}

body {
  font-family: var(--sbc-font-body);
  color: var(--sbc-text);
  line-height: 1.7;
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sbc-font-heading);
  font-weight: 700;
  color: var(--sbc-text);
}

/* ── Navbar ── */
.navbar {
  padding: 0.8rem 0;
  transition: box-shadow 0.3s ease;
}
.navbar-brand img {
  height: 3.5rem;
  transition: height 0.3s ease;
}
.navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  color: var(--sbc-text) !important;
  transition: color 0.2s ease;
}
.navbar .nav-link:hover {
  color: var(--sbc-teal) !important;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--sbc-teal) 0%, var(--sbc-teal-dark) 100%);
  color: white;
  padding: 6rem 0 5rem;
  margin-top: 4.5rem; /* offset for fixed navbar */
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero .lead {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 600px;
}
.hero .btn-light {
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}
.section-alt {
  background-color: var(--sbc-bg-section);
}
.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--sbc-text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
}

/* ── Cards ── */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.card-body {
  padding: 2rem;
}

/* ── Study cards ── */
.study-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: white;
}
.study-icon.teal    { background-color: var(--sbc-teal); }
.study-icon.orange  { background-color: var(--sbc-orange); }
.study-icon.green   { background-color: var(--sbc-green); }
.study-icon.blue    { background-color: var(--sbc-blue); }
.study-icon.burgundy { background-color: var(--sbc-burgundy); }

/* ── Stats bar ── */
.stats-bar {
  background: var(--sbc-teal);
  color: white;
  padding: 3rem 0;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
}
.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Client logos ── */
.client-logo {
  height: 40px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  filter: grayscale(100%);
}
.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ── Footer ── */
footer {
  background-color: #2c3e50;
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 2rem;
}
footer h6 {
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
footer a:hover {
  color: white;
}
footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ── Noticias ── */
.news-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.news-card {
  border-left: 4px solid var(--sbc-teal);
}
.news-card:hover {
  transform: none;
}
.news-featured {
  border-left-color: var(--sbc-orange);
}
.news-featured .card-body {
  padding: 2.25rem;
}

/* ── Values (nosotros) ── */
.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  color: white;
}

/* ── Buttons ── */
.btn-sbc {
  background-color: var(--sbc-teal);
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  transition: background-color 0.2s ease;
}
.btn-sbc:hover {
  background-color: var(--sbc-teal-dark);
  color: white;
}
.btn-outline-sbc {
  border: 2px solid var(--sbc-teal);
  color: var(--sbc-teal);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  background: transparent;
  transition: all 0.2s ease;
}
.btn-outline-sbc:hover {
  background-color: var(--sbc-teal);
  color: white;
}

/* ── Utilities ── */
.text-teal { color: var(--sbc-teal); }
.text-orange { color: var(--sbc-orange); }
.text-green { color: var(--sbc-green); }
.bg-teal { background-color: var(--sbc-teal); }

/* ── Newsletter ── */
.newsletter-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 4rem 0;
}
.newsletter-section h3 {
  color: white;
}
.newsletter-section .form-control {
  border-radius: 0.5rem 0 0 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
}
.newsletter-section .btn {
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 4rem 0 3rem; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 3rem 0; }
  .stat-number { font-size: 2rem; }
}
