/* ============================================
   ESTUDIO M&G — components.css
   Navbar, footer, cards, botones, forms
   ============================================ */

/* =====================
   NAVBAR
   ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 32px;
}

/* Logo */
.navbar-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-text {
  line-height: 1.2;
}

.logo-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-primary);
}

.logo-tagline {
  display: block;
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-btn);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  transition: background var(--transition);
  flex-shrink: 0;
}

.nav-toggle:hover { background: var(--color-bg-alt); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links, .nav-actions { display: none; }
  .nav-actions .btn { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 800;
  }

  .nav-links.open a {
    padding: 12px 16px;
    font-size: 16px;
  }

  .nav-actions.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 0 24px 24px;
    z-index: 800;
    top: auto;
  }

  .nav-mobile-cta {
    display: block !important;
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }
}

/* =====================
   BOTONES
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-btn-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: #0d1f38;
  border-color: #0d1f38;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 43, 75, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: #00a082;
  border-color: #00a082;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 184, 148, 0.35);
}

.btn-wa {
  background: var(--color-wa);
  color: #fff;
  border-color: var(--color-wa);
}

.btn-wa:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--color-bg-alt);
}

.btn-white-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn-white-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* =====================
   WHATSAPP FLOTANTE
   ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: var(--color-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 950;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* =====================
   CARDS
   ===================== */
.card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(15, 163, 177, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.card p {
  color: var(--color-text-light);
  font-size: 15px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-secondary);
  transition: gap var(--transition);
}

.card-link:hover { gap: 10px; }

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-mark {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.footer-brand .logo-name,
.footer-brand .logo-tagline {
  color: rgba(255,255,255,0.9);
}

.footer-brand .logo-tagline {
  color: rgba(255,255,255,0.6);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

.footer-col h5 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-secondary);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: #fff; }

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* =====================
   FORMULARIOS
   ===================== */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-btn);
  font-size: 15px;
  color: var(--color-text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(15, 163, 177, 0.12);
}

.form-control.error {
  border-color: var(--color-error);
}

.form-control.error:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.form-error {
  display: block;
  font-size: 13px;
  color: var(--color-error);
  margin-top: 4px;
}

/* Honeypot — invisible */
.ohnohoney {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Alert de resultado de formulario */
.form-alert {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius-card);
  margin-bottom: 24px;
  font-size: 15px;
}

.form-alert.success {
  background: rgba(39, 174, 96, 0.08);
  border: 1.5px solid var(--color-success);
  color: var(--color-success);
}

.form-alert.error {
  background: rgba(231, 76, 60, 0.08);
  border: 1.5px solid var(--color-error);
  color: var(--color-error);
}

/* =====================
   HERO PAGE HEADER
   ===================== */
.page-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 64px 0 56px;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 16px;
}

.page-hero .lead {
  color: rgba(255,255,255,0.75);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: #fff; }

.breadcrumb span { color: rgba(255,255,255,0.35); }

/* =====================
   STATS / MÉTRICAS
   ===================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.stat-item {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--color-border);
  }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; border-bottom: 1px solid var(--color-border); }
  .stat-item:last-child { border-bottom: none; }
}

/* =====================
   PROCESO STEPS
   ===================== */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 4px;
}

.step-content p {
  font-size: 15px;
  color: var(--color-text-light);
}

/* =====================
   TEAM CARDS
   ===================== */
.team-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.team-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: var(--color-bg-alt);
}

.team-photo-placeholder {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-initials {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.team-info {
  padding: 28px;
}

.team-info h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  color: var(--color-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.team-bio {
  font-size: 15px;
  color: var(--color-text-light);
}

/* =====================
   CTA FINAL
   ===================== */
.cta-section {
  background: var(--color-primary);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section .lead {
  color: rgba(255,255,255,0.7);
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =====================
   FEATURE ITEMS
   ===================== */
.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(15, 163, 177, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-text h4 { margin-bottom: 4px; }
.feature-text p { font-size: 15px; color: var(--color-text-light); }

/* =====================
   MAP PLACEHOLDER
   ===================== */
.map-embed {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =====================
   ICON INLINE SVG HELPERS
   ===================== */
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
