/* ==========================================================================
   C3 — Layout compartido del sitio (única fuente de verdad)
   Fuentes, colores, navbar, hero con migas y footer.
   Lo usan: views/partials/navbar.ejs, hero.ejs y footer.ejs.

   Paleta y tipografía: docs/paleta-colores.md y kit de Elementor (post-4.css).
   Las reglas van con prefijo (.c3-navbar, .c3-hero, .c3-footer) y con
   especificidad suficiente para no ser pisadas por Elementor en la portada.
   ========================================================================== */

/* ---------- Fuentes de marca ---------- */
@font-face {
  font-family: "Avicenna";
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url("/fonts/AVICENNA.woff2") format("woff2"),
    url("/fonts/AVICENNA.woff") format("woff");
}

@font-face {
  font-family: "Gotham";
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url("/fonts/Gotham-Book.woff2") format("woff2"),
    url("/fonts/Gotham-Book.woff") format("woff");
}

@font-face {
  font-family: "Gotham";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/Gotham-Medium.woff2") format("woff2"),
    url("/fonts/Gotham-Medium.woff") format("woff");
}

@font-face {
  font-family: "Gotham";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Gotham-Bold.woff2") format("woff2"),
    url("/fonts/Gotham-Bold.woff") format("woff");
}

/* ---------- Tokens ---------- */
:root {
  --e-global-color-primary: #073652;
  --e-global-color-secondary: #33ca33;
  --e-global-color-accent: #1187d1;
  --e-global-color-text: #333333;
  --e-global-color-muted: #64748b;
  --e-global-color-light: #f8fafc;
  --font-heading: "Avicenna", sans-serif;
  --font-body: "Gotham", sans-serif;

  /* Paleta de marca (docs/paleta-colores.md) */
  --color-primary: #073652; /* Azul tecnológico */
  --color-secondary: #33ca33; /* Verde novedoso */
  --color-accent: #1187d1; /* Cyan de soporte */

  --c3-navbar-height: 70px;
}

/* ---------- Base para páginas propias (no se aplica a la portada) ---------- */
body.c3-page {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--e-global-color-text);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Deja espacio para el navbar fijo */
body.c3-page,
body.c3-nav-offset {
  padding-top: var(--c3-navbar-height);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.c3-navbar.navbar {
  background-color: var(--e-global-color-primary) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 12px 0;
}

.c3-navbar .navbar-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.c3-navbar .navbar-nav {
  gap: 12px;
}

.c3-navbar .nav-link {
  color: #ffffff !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 22px;
  padding: 8px 12px !important;
  transition: color 0.2s ease;
}

.c3-navbar .nav-link:hover,
.c3-navbar .nav-link.active,
.c3-navbar .nav-link.show {
  color: var(--e-global-color-secondary) !important;
}

.c3-navbar .dropdown-menu {
  background-color: #ffffff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
}

.c3-navbar .dropdown-item {
  color: #1e293b !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  padding: 10px 20px;
  transition: all 0.2s ease;
}

.c3-navbar .dropdown-item:hover,
.c3-navbar .dropdown-item.active {
  background-color: #f0fdf4;
  color: var(--e-global-color-secondary) !important;
}

.c3-navbar .btn-header-cta {
  display: inline-block;
  background-color: var(--e-global-color-secondary);
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
  padding: 8px 24px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(51, 202, 51, 0.25);
  transition: all 0.3s ease;
}

.c3-navbar .btn-header-cta:hover {
  background-color: #2bb32b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(51, 202, 51, 0.35);
}

.c3-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 6px 10px;
}

.c3-navbar .navbar-toggler:focus {
  box-shadow: none;
}

.c3-navbar .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%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (min-width: 992px) {
  .c3-navbar .navbar-nav {
    align-items: center;
  }

  .c3-navbar .btn-header-cta {
    margin-left: 8px;
  }
}

@media (max-width: 991.98px) {
  .c3-navbar .navbar-collapse {
    padding-top: 12px;
  }

  .c3-navbar .btn-header-cta {
    margin: 4px 0 8px;
  }
}

/* ==========================================================================
   HERO CON MIGAS (páginas internas)
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #073652 0%, #032135 100%);
  color: #ffffff;
  padding: 48px 0 42px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(51, 202, 51, 0.15) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.c3-breadcrumbs {
  margin-bottom: 12px;
}

.c3-breadcrumbs .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 14px;
}

.c3-breadcrumbs .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.c3-breadcrumbs .breadcrumb-item a:hover {
  color: var(--e-global-color-secondary);
}

.c3-breadcrumbs .breadcrumb-item.active {
  color: #ffffff;
  font-weight: 500;
}

.c3-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
  content: "›";
  font-size: 16px;
  line-height: 1;
  padding: 0 8px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: normal;
  margin: 0;
  color: #ffffff;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 32px 0 28px;
  }

  .hero-title {
    font-size: 28px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.c3-footer {
  background-color: var(--e-global-color-primary);
  color: #ffffff;
  padding: 48px 0 28px;
  margin-top: 72px;
  text-align: center;
  font-family: var(--font-body);
}

.c3-footer .footer-logo {
  display: inline-block;
  max-width: 145px;
  height: auto;
  margin-bottom: 22px;
}

.c3-footer .social-icons-wrap {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.c3-footer .social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: all 0.3s ease;
}

.c3-footer .social-icon-btn:hover {
  background: var(--e-global-color-secondary);
  transform: translateY(-3px);
}

.c3-footer .footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 12px;
  line-height: 1.6;
}

.c3-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  flex-wrap: wrap;
}

.c3-footer .footer-links a,
.c3-footer .footer-links button {
  color: rgba(255, 255, 255, 0.7) !important;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: normal;
  line-height: 1.5;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.c3-footer .footer-links a:hover,
.c3-footer .footer-links button:hover {
  color: var(--e-global-color-secondary) !important;
}
