/* ============================================================
   CHAMA IA — components.css
   Header, Footer, componentes reutilizáveis
   ============================================================ */

/* ── HEADER / NAV ── */
#main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(13, 34, 68, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34,197,227,0.12);
  transition: box-shadow 0.3s;
}

#main-header.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.28);
}

.header-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.2px;
  transition: color 0.2s;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--cyan);
  transition: width 0.2s;
}

.header-nav a:hover { color: var(--white); }
.header-nav a:hover::after { width: 100%; }

.header-nav a.active {
  color: var(--cyan);
}
.header-nav a.active::after { width: 100%; }

.header-cta {
  background: var(--cyan) !important;
  color: var(--navy) !important;
  padding: 9px 22px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background 0.2s, transform 0.15s !important;
}
.header-cta:hover {
  background: var(--cyan-light) !important;
  transform: translateY(-1px) !important;
  color: var(--navy) !important;
}
.header-cta::after { display: none !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── FOOTER ── */
#main-footer {
  background: var(--navy-deep);
  padding: 64px 5vw 32px;
  color: rgba(255,255,255,0.5);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 32px;
}

.footer-brand .footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 260px;
  color: rgba(255,255,255,0.45);
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  transition: background 0.2s, color 0.2s;
}
.social-btn:hover {
  background: var(--cyan);
  color: var(--navy);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  display: grid;
  gap: 11px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cyan); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 11px;
  transition: color 0.2s;
}
.footer-contact-item:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a {
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--cyan); }

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* ── CARDS GENÉRICOS ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: rgba(34,197,227,0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(34,197,227,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ── PILL / TAG ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

/* ── BADGE ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-cyan {
  background: rgba(34,197,227,0.12);
  color: var(--cyan);
  border: 1px solid rgba(34,197,227,0.25);
}

.badge-navy {
  background: rgba(13,34,68,0.08);
  color: var(--navy);
}

/* ── RESPONSIVO HEADER ── */
@media (max-width: 900px) {
  .header-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px 5vw 32px;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .header-nav.open { display: flex; }
  .header-nav a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 100%;
  }
  .header-nav a::after { display: none; }
  .header-cta {
    margin-top: 16px;
    width: 100%;
    text-align: center !important;
    padding: 13px 22px !important;
  }
  .menu-toggle { display: flex; }
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
