/*
  Estilos globales: tipografía, colores y botones
  Tipografías solicitadas:
  - Títulos: "Helvetica Neue LT Std" Bold Condensed
  - Descripciones: Raleway (Google Fonts)
  Nota: Se usan stacks con fuentes de respaldo por si la fuente no está instalada en el sistema.
*/

/* Cargar Raleway para descripciones (body) */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colores base */
  --color-primary: #CF2C29;
  --color-text: #1A171C;
  --color-background: #ffffff;

  /* Opcionales útiles */
  --radius-md: 8px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Reset/normalización mínima */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  color: var(--color-text);
  background-color: var(--color-background);
  font-family: "Raleway", Arial, Helvetica, sans-serif;
  font-weight: 400; /* Light para descripciones */
  line-height: 1.5;
}

/* Tipografía para títulos (Bold Condensed) */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--color-text);
  font-family: "Helvetica Neue LT Std", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700; /* Bold */
  line-height: 1.2;
}

/* Escala tipográfica básica */
h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
p { margin: 0 0 1rem; }

/* Enlaces (opcional, acorde a paleta) */
a { color: var(--color-primary); text-decoration: none; }

/* Accesibilidad: foco visible */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--color-background);
  color: var(--color-text);
  font-family: "Helvetica Neue LT Std", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700; /* Bold para mejor legibilidad en botones */
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.btn:hover { filter: brightness(0.98); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-text);  border-color: var(--color-text);}

.btn-secondary {
  background: var(--color-background);
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Utilidades de color */
.text-primary { color: var(--color-primary) !important; }
.text-dark { color: var(--color-text) !important; }
.text-white { color: #fff !important; }

.bg-primary { background-color: var(--color-primary) !important; }
.bg-dark { background-color: var(--color-text) !important; }
.bg-white { background-color: #fff !important; }

/* Contenedores y espaciado rápido (opcionales) */
.container { width: min(1100px, 92%); margin: 0 auto; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

/* Header / Navbar */
.navbar {
  background-color: #fff;
  border-bottom: 1px solid rgba(26, 23, 28, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1020;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar .navbar-brand img {
  display: block;
  height: 76px;
  max-height: 80px;
  width: auto;
}

.navbar .nav-link {
  color: var(--color-text);
  font-family: "Helvetica Neue LT Std", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 0.5rem 0.75rem;
  position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--color-primary);
}

.navbar .nav-link.active {
  color: var(--color-primary);
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.navbar .navbar-toggler {
  border: 1px solid rgba(26, 23, 28, 0.2);
}
.navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(207, 44, 41, 0.25);
}

/* Icono toggler oscuro para fondo claro */
.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26,23,28,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Estilos para móvil - centrar contenido */
@media (max-width: 991.98px) {
  .navbar .container-fluid {
    justify-content: center;
  }
  
  .navbar .navbar-brand {
    margin: 0 auto;
  }
  
  .navbar .navbar-collapse {
    text-align: center;
  }
  
  .navbar .navbar-nav {
    width: 100%;
    justify-content: center;
    margin: 1rem 0;
  }
  
  .navbar .navbar-nav .nav-item {
    margin: 0.25rem 0;
  }
  
  .navbar .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    display: block;
    width: 100%;
  }
  
  .navbar .navbar-nav:last-child {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 23, 28, 0.1);
  }
  
  .navbar .btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
}

@media (min-width: 992px) {
  .navbar .navbar-nav .nav-link { padding: 0.5rem 1rem; }
  .navbar .flex-grow-1 { margin-left: 1rem; }
}

.navbar .btn.btn-primary {
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: var(--color-background);
  padding: 56px 0 24px;
}
.site-footer a { color: var(--color-background); }
.site-footer a:hover { color: #fff; }

.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
  align-items: start;
}

.site-footer .brand { display: flex; align-items: center; gap: 12px; }
.site-footer .brand-name { font-weight: 800; font-size: 1.25rem; }
.site-footer .brand-desc { opacity: 0.85; margin-top: 8px; max-width: 520px; }

.site-footer .footer-title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: .5px; margin: 4px 0 10px; color: #fff; }
.site-footer .footer-links ul,
.site-footer .footer-contact ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin: 8px 0; }
.site-footer .footer-contact li { margin: 6px 0; opacity: 0.95; }

.site-footer .footer-social { display: flex; gap: 12px; padding: 0; margin: 14px 0 0; list-style: none; }
.site-footer .footer-social a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255,255,255,.06); }
.site-footer .footer-social a:hover { background: rgba(255,255,255,.12); }

.site-footer .footer-divider { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 24px 0; }

.site-footer .footer-bottom { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer .footer-legal { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; }

@media (max-width: 992px) {
  .site-footer .footer-top { grid-template-columns: 1fr; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366; /* Color oficial de WhatsApp */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1050; /* por encima de la navbar (1020) */
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
.whatsapp-float i { font-size: 28px; line-height: 1; }
.whatsapp-float:focus-visible { outline: 3px solid rgba(37, 211, 102, 0.5); outline-offset: 3px; }

@media (max-width: 576px) {
  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float i { font-size: 26px; }
}

@media print {
  .whatsapp-float { display: none; }
}