/* Visual Insight — estilos custom */

:root {
  --brand-red: #C8102E;
  --brand-red-dark: #9A0B22;
  --brand-red-light: #FFE5EA;
  --bg-dark: #0F172A;
  --bg-darker: #020617;
  --text-body: #334155;
  --text-strong: #0F172A;
  --text-muted: #64748b;
}

/* ===== HERO ===== */
.hero-section {
  margin: -2rem -100vw 3rem -100vw;
  padding: 4rem 100vw 3rem 100vw;
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  color: white;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo {
  max-width: 380px;
  height: auto;
  margin: 0 auto 1.5rem auto !important;
  display: block;
}

.hero-tagline {
  font-size: 2.5rem !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white !important;
  margin: 0 0 0.5rem 0 !important;
  line-height: 1.1;
  border: none !important;
  padding: 0 !important;
}

.hero-tagline::after { display: none !important; }

.hero-subtagline {
  font-size: 1.1rem !important;
  font-weight: 300;
  color: #cbd5e1 !important;
  margin: 0 0 2rem 0 !important;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .hero-tagline { font-size: 1.85rem !important; }
  .hero-subtagline { font-size: 0.95rem !important; }
  .hero-logo { max-width: 200px; }
  .hero-section { padding: 3rem 100vw 2.5rem 100vw; }
}

/* ===== BOTONES CTA ===== */
.btn-cta, .btn-cta-secondary {
  display: inline-block;
  padding: 0.85rem 1.85rem;
  border-radius: 0.4rem;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-cta {
  background: var(--brand-red);
  color: white !important;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.4);
}

.btn-cta:hover {
  background: var(--brand-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.5);
}

.btn-cta-secondary {
  background: transparent;
  color: var(--brand-red) !important;
  border: 2px solid var(--brand-red);
  margin-top: 0.5rem;
}

.btn-cta-secondary:hover {
  background: var(--brand-red);
  color: white !important;
  transform: translateY(-2px);
}

/* ===== TARJETAS DE LENTES (paradigma — más livianas) ===== */
.lentes-grid {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.lente-card {
  padding: 0.85rem 1.1rem !important;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-strong);
  transition: all 0.2s ease;
  margin-bottom: 0.5rem !important;
}

.lente-card:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.lente-card strong {
  color: var(--brand-red);
  font-weight: 700;
}

/* ===== TARJETAS DE LÍNEAS DE TRABAJO (sustanciales — más peso visual) ===== */
.product-card {
  padding: 1.5rem 1.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--brand-red);
  border-radius: 0.5rem;
  height: 100%;
  transition: all 0.25s ease;
  margin-bottom: 1rem;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  background: white;
}

.product-card h3 {
  font-size: 1.1rem !important;
  font-weight: 700;
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
  border: none !important;
  padding-bottom: 0 !important;
  color: var(--text-strong);
}

.product-card h3::after { display: none !important; }

.product-card p {
  margin-bottom: 0;
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== TIPOGRAFÍA Y SECCIONES (más condensado) ===== */
h2 {
  font-weight: 700;
  margin-top: 2.5rem !important;
  margin-bottom: 0.85rem !important;
  font-size: 1.65rem !important;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--brand-red);
  margin-top: 0.5rem;
  border-radius: 1px;
}

main p, main li {
  line-height: 1.55;
  color: var(--text-body);
  font-size: 0.97rem;
}

main p {
  margin-bottom: 0.85rem;
}

main ul li {
  margin-bottom: 0.4rem;
}

main {
  padding-top: 0 !important;
}

body.quarto-page-layout-full main {
  padding-top: 0 !important;
}

strong {
  color: var(--text-strong);
  font-weight: 600;
}

/* ===== NAVBAR ===== */
.navbar {
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.navbar-brand img {
  max-height: 40px;
  width: auto;
}

/* ===== FOOTER (mezcla de colores, año en negro) ===== */
.nav-footer {
  font-size: 0.85rem;
  padding: 1rem 0;
}

.nav-footer .nav-footer-left,
.nav-footer .nav-footer-center {
  color: var(--text-strong);
}

.nav-footer .nav-footer-right a {
  color: var(--brand-red);
  font-weight: 500;
}

.nav-footer .nav-footer-right a:hover {
  color: var(--brand-red-dark);
}

/* Separador `::` en footer queda en gris medio */
.nav-footer .nav-footer-right {
  color: var(--text-muted);
}

/* ===== ENLACES INLINE ===== */
main a:not(.btn-cta):not(.btn-cta-secondary) {
  color: var(--brand-red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

main a:not(.btn-cta):not(.btn-cta-secondary):hover {
  border-bottom-color: var(--brand-red);
}

/* ===== POLÍTICA DE PRIVACIDAD Y PÁGINA ONA ===== */
.quarto-title-block .title {
  color: var(--text-strong);
  font-size: 1.75rem !important;
}

.quarto-title-block .subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
}

#TOC, .toc-active {
  font-size: 0.85rem;
}

/* ===== ILUSTRACIÓN SVG (página ONA) ===== */
.ona-illustration {
  display: flex;
  justify-content: center;
  margin: 1.5rem auto 2.5rem auto;
  max-width: 720px;
}

.ona-illustration svg {
  width: 100%;
  height: auto;
}

/* ===== TARJETAS DE REDES (página ONA, 2x2) ===== */
.red-card {
  padding: 1.4rem 1.3rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  transition: all 0.25s ease;
}

.red-card:hover {
  border-color: var(--brand-red);
  background: white;
}

.red-card h3 {
  font-size: 1.05rem !important;
  font-weight: 700;
  margin-top: 0 !important;
  margin-bottom: 0.4rem !important;
  border: none !important;
  padding-bottom: 0 !important;
  color: var(--text-strong);
}

.red-card h3::after { display: none !important; }

.red-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== BLOQUE DE MÉTRICAS (página ONA) ===== */
.metric-block {
  background: #f8fafc;
  border-left: 4px solid var(--brand-red);
  padding: 1.2rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
}

.metric-block p {
  margin-bottom: 0.85rem;
  font-size: 0.93rem;
}

.metric-block p:last-child {
  margin-bottom: 0;
}

/* ===== FOOTER CENTRADO ===== */
.nav-footer .nav-footer-center {
  text-align: center;
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.nav-footer .nav-footer-center a {
  color: var(--brand-red);
  font-weight: 500;
  text-decoration: none;
}

.nav-footer .nav-footer-center a:hover {
  text-decoration: underline;
}
