:root {
  /* Paleta Base Oscura */
  --bg-dark: #070a0d;
  --bg-card-dark: #10171c;
  
  /* Acentos de la Marca (Ajustados para contraste > 4.5:1) */
  --lime: #c2cd10;          /* Verde Lima con mayor luminancia */
  --lime-hover: #d3e012;
  --magenta: #d90082;       /* Magenta más vibrante */
  --magenta-hover: #f50093;
  
  /* Textos (Optimizados para legibilidad sobre oscuro) */
  --text-light: #ffffff;
  --text-gray: #a1b0be;     /* Gris más claro para pasar el ratio en fondo oscuro */
  --bg-light-card: #ffffff;
  --text-dark: #121a21;
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif; 
  scroll-behavior: smooth; 
}

body { 
  background-color: var(--bg-dark); 
  color: var(--text-light); 
  line-height: 1.6; 
  padding-top: 80px; 
  text-rendering: optimizeLegibility;
}

/* --- Accesibilidad para Navegación por Teclado --- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

header { 
  position: fixed; 
  top: 0; 
  width: 100%; 
  background-color: rgba(7, 10, 13, 0.95); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
  z-index: 1000; 
}

.nav-container { 
  max-width: 1200px; 
  margin: 0 auto; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 15px 20px; 
}

.logo-area { 
  font-size: 20px; 
  font-weight: 800; 
}

.logo-area span { 
  color: var(--lime); 
}

nav ul { 
  display: flex; 
  list-style: none; 
  gap: 20px; 
  align-items: center; 
}

nav ul a { 
  color: var(--text-light); 
  text-decoration: none; 
  font-size: 14px; 
  font-weight: 600; 
  transition: color 0.3s;
}

nav ul a:hover { 
  color: var(--lime); 
}

.btn-gold-nav { 
  background-color: var(--lime); 
  color: #000000 !important; /* Ajuste para máximo contraste */
  padding: 8px 16px; 
  border-radius: 4px; 
  font-weight: 700; 
  transition: background-color 0.3s;
}

.btn-gold-nav:hover {
  background-color: var(--lime-hover);
}

.hero-section { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 60px 20px; 
  display: grid; 
  grid-template-columns: 1.2fr 0.8fr; 
  gap: 40px; 
  align-items: center; 
}

.hero-text h2 { 
  font-size: 13px; 
  color: var(--magenta); 
  text-transform: uppercase; 
  letter-spacing: 2px; 
  margin-bottom: 15px; 
  font-weight: 700;
}

.hero-text h1 { 
  font-size: 44px; 
  font-weight: 800; 
  line-height: 1.2; 
  margin-bottom: 25px; 
}

.hero-text h1 span { 
  color: var(--lime); 
}

.hero-text p { 
  color: var(--text-gray); 
  font-size: 16px; 
  margin-bottom: 30px; 
}

#hero-action-btn { 
  background-color: var(--lime); 
  color: #000000; 
  padding: 14px 28px; 
  border: none; 
  border-radius: 4px; 
  font-weight: 700; 
  font-size: 15px; 
  cursor: pointer; 
  transition: all 0.3s; 
}

#hero-action-btn:hover { 
  background-color: var(--lime-hover); 
  transform: translateY(-2px); 
  box-shadow: 0 4px 15px rgba(191, 200, 30, 0.3);
}

.hero-card { 
  background-color: var(--bg-light-card); 
  color: var(--text-dark); 
  padding: 35px; 
  border-radius: 12px; 
  box-shadow: 0 20px 40px rgba(0,0,0,0.4); 
  border-top: 4px solid var(--lime);
}

.hero-card h3 { 
  font-size: 20px; 
  margin-bottom: 15px; 
  font-weight: 800; 
  border-bottom: 2px solid #e2e8f0; 
  padding-bottom: 10px; 
}

.hero-card ul { 
  list-style: none; 
}

.hero-card ul li { 
  margin-bottom: 12px; 
  font-size: 14px; 
  font-weight: 700; 
  display: flex; 
  align-items: center; 
}

.hero-card ul li::before { 
  content: "✓"; 
  color: var(--magenta); 
  font-weight: 900; 
  margin-right: 10px; 
  font-size: 16px; 
}

.main-section { 
  background-color: #f8fafc; 
  color: var(--text-dark); 
  padding: 90px 20px; 
}

.section-headline { 
  font-size: 32px; 
  font-weight: 800; 
  text-align: center; 
  margin-bottom: 50px; 
}

.section-headline span { 
  color: var(--magenta); 
}

.services-grid { 
  max-width: 1200px; 
  margin: 0 auto; 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 30px; 
}

.service-card-white { 
  background-color: var(--bg-light-card); 
  padding: 40px 30px; 
  border-radius: 12px; 
  border: 1px solid #e2e8f0; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.02); 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  transition: transform 0.3s, border-color 0.3s;
}

.service-card-white:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
}

.service-card-white h3 { 
  font-size: 21px; 
  margin-bottom: 15px; 
  font-weight: 800; 
}

.service-card-white p { 
  color: #475569; /* Oscurecido para pasar accesibilidad >4.5:1 */
  font-size: 14.5px; 
  margin-bottom: 20px; 
}

.service-card-white a { 
  color: var(--magenta); 
  font-weight: 700; 
  text-decoration: none; 
  font-size: 14px; 
}

.service-card-white a:hover {
  color: var(--magenta-hover);
}

.gemini-sales-box { 
  max-width: 1200px; 
  margin: 60px auto 0 auto; 
  background: linear-gradient(135deg, #10171c 0%, #050708 100%); 
  color: white; 
  border: 1px solid rgba(191, 200, 30, 0.3); 
  border-radius: 16px; 
  padding: 45px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 40px; 
  flex-wrap: wrap; 
}

.gemini-text { 
  flex: 1; 
  min-width: 300px; 
}

.gemini-text h3 { 
  font-size: 24px; 
  margin-bottom: 15px; 
  font-weight: 800; 
}

.gemini-text h3 span { 
  color: var(--lime); 
}

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

.gemini-sales-box a { 
  background-color: var(--lime); 
  color: #000000; 
  padding: 14px 28px; 
  border-radius: 6px; 
  text-decoration: none; 
  font-weight: 700; 
  transition: all 0.3s;
}

.gemini-sales-box a:hover {
  background-color: var(--lime-hover);
  box-shadow: 0 4px 15px rgba(191, 200, 30, 0.3);
}

.calculator-section { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 90px 20px; 
}

.calc-container { 
  display: grid; 
  grid-template-columns: 1.2fr 0.8fr; 
  gap: 40px; 
  background-color: var(--bg-card-dark); 
  padding: 45px; 
  border-radius: 16px; 
  border: 1px solid rgba(255,255,255,0.05); 
}

.calc-options h3 { 
  font-size: 14px; 
  color: var(--text-gray); 
  margin-bottom: 15px; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
}

.btn-group button {
  background-color: #1e293b;
  color: white;
  border: 1px solid #334155;
  padding: 12px 22px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-group button:hover {
  border-color: var(--lime);
  background-color: #24334f;
}

.btn-group button.active {
  background-color: var(--lime) !important;
  color: #000000 !important;
  border-color: var(--lime) !important;
}

.summary-card { 
  background-color: var(--bg-light-card); 
  color: var(--text-dark); 
  padding: 35px; 
  border-radius: 12px; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  border-top: 4px solid var(--magenta);
}

.summary-card h4 { 
  font-size: 18px; 
  margin-bottom: 10px; 
  font-weight: 800; 
}

.summary-card p { 
  font-size: 14px; 
  color: #475569; 
  margin-bottom: 20px; 
}

#whatsapp-sender { 
  background-color: var(--bg-dark); 
  color: white; 
  border: none; 
  padding: 14px; 
  border-radius: 6px; 
  font-size: 16px; 
  font-weight: 700; 
  cursor: pointer; 
  width: 100%; 
  transition: background-color 0.3s;
}

#whatsapp-sender:hover {
  background-color: var(--magenta);
}

/* --- SECCIÓN CASOS DE ÉXITO --- */
.casos-exito-section {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #1f2937;
}

.casos-container {
  max-width: 1200px;
  margin: 0 auto;
}

.casos-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.badge-tag {
  display: inline-block;
  padding: 4px 14px;
  background-color: rgba(197, 0, 117, 0.08);
  border: 1px solid rgba(197, 0, 117, 0.2);
  color: var(--magenta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 3px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.casos-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 15px 0;
  letter-spacing: -0.5px;
}

.casos-header p {
  font-size: 15px;
  color: #475569; /* Ajustado para contraste */
  line-height: 1.6;
  margin: 0;
}

.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.caso-card {
  background-color: #fdfdfd;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  padding: 30px 25px 20px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.caso-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  border-color: var(--lime);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.stars {
  color: var(--magenta);
  font-size: 16px;
  letter-spacing: 2px;
}

.quote-icon {
  font-family: Georgia, serif;
  font-size: 36px;
  color: #cbd5e1;
  line-height: 1;
  font-weight: bold;
}

.testimonial-text {
  font-size: 14px;
  font-style: italic;
  color: #334155; /* Ajustado para legibilidad superior */
  line-height: 1.6;
  margin: 0 0 25px 0;
  flex-grow: 1;
}

.card-footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.author-info strong {
  display: block;
  font-size: 12px;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.author-info span {
  font-size: 11px;
  color: #64748b; /* Ajustado contraste */
}

.author-location {
  display: flex;
  align-items: center;
  gap: 4px;
}

.author-location span {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
}

/* --- CHAT FLOTANTE IA --- */
#chat-trigger-button button { 
  position: fixed; 
  bottom: 25px; 
  right: 25px; 
  background-color: var(--lime); 
  color: #000000; 
  border: none; 
  padding: 15px 25px; 
  border-radius: 30px; 
  font-weight: 700; 
  font-size: 15px; 
  cursor: pointer; 
  box-shadow: 0 5px 20px rgba(191, 200, 30, 0.4); 
  z-index: 9999 !important; 
  transition: transform 0.2s;
}

#chat-trigger-button button:hover {
  transform: scale(1.05);
}

#studio-chat-box { 
  position: fixed; 
  bottom: 95px; 
  right: 25px; 
  width: 350px; 
  height: 480px; 
  background-color: #111111; 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  border-radius: 16px; 
  display: flex; 
  flex-direction: column; 
  z-index: 9999 !important; 
  box-shadow: 0 15px 35px rgba(0,0,0,0.6); 
  overflow: hidden; 
}

.chat-header { 
  background-color: #000000; 
  padding: 15px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  border-bottom: 1px solid rgba(255,255,255,0.05); 
}

#chat-close-button { 
  background: none; 
  border: none; 
  color: #ffffff; 
  font-size: 20px; 
  font-weight: bold; 
  cursor: pointer; 
  padding: 5px 10px; 
}

#chat-scroller-messages { 
  flex: 1; 
  padding: 15px; 
  overflow-y: auto; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  background: radial-gradient(circle at bottom, #161616 0%, #111111 100%); 
}

#chat-scroller-messages div.msg { 
  padding: 11px 15px; 
  border-radius: 12px; 
  max-width: 85%; 
  font-size: 14px; 
  line-height: 1.45; 
}

#chat-scroller-messages div span { 
  font-weight: 700; 
  font-size: 10px; 
  display: block; 
  margin-bottom: 4px; 
  text-transform: uppercase; 
  color: var(--lime); 
}

.msg.user { 
  background-color: var(--magenta); 
  color: white; 
  align-self: flex-end; 
  border-bottom-right-radius: 2px; 
}

.msg.bot { 
  background-color: #1e1e1e; 
  color: #e0e0e0; 
  align-self: flex-start; 
  border-bottom-left-radius: 2px; 
  border-left: 3px solid var(--lime); 
}

.chat-input { 
  padding: 12px; 
  display: flex; 
  gap: 8px; 
  background-color: #000000; 
  border-top: 1px solid rgba(255,255,255,0.05); 
}

.chat-input input { 
  flex: 1; 
  padding: 10px; 
  background-color: #141414; 
  border: 1px solid #262626; 
  color: white; 
  border-radius: 6px; 
}

.chat-input button { 
  background-color: var(--lime); 
  border: none; 
  padding: 0 18px; 
  border-radius: 6px; 
  cursor: pointer; 
  font-weight: bold; 
  color: #000000; 
}

/* --- FOOTER OPTIMIZADO --- */
.site-footer {
  background-color: #0b0f14; 
  color: #a0a6b1;
  font-size: 13.5px;
  padding-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 50px 20px;
  display: grid;
  grid-template-columns: 1.8fr 1.1fr 1fr 1.3fr;
  gap: 40px;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-logo-box {
  background-color: #ffffff;
  color: #1a1e26;
  font-weight: 800;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 2px;
  letter-spacing: -0.5px;
}

.brand-title-box h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.brand-title-box span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-desc {
  line-height: 1.6;
  color: #a1b0be;
  margin: 0 0 25px 0;
  max-width: 360px;
}

.footer-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-dark {
  background-color: #1a222d;
  color: #ffffff;
  border: 1px solid #2d3848;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-dark:hover {
  background-color: #263344;
}

.btn-gold {
  background-color: var(--lime);
  color: #000000;
  border: none;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}

.btn-gold:hover {
  opacity: 0.9;
}

.col-title {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 0 0 22px 0;
}

.social-icons-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icons-list li {
  margin: 0;
}

.social-icons-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: #1a222d;
  color: #a1b0be;
  border: 1px solid #2d3848;
  border-radius: 6px;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-icons-list a:hover {
  background-color: var(--magenta);
  color: #ffffff;
  border-color: var(--magenta);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(197, 0, 117, 0.35);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: #a1b0be;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--lime);
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  color: #a1b0be;
  line-height: 1.4;
}

.contact-info svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info a {
  color: #a1b0be;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1a222d;
  padding: 20px 0;
  background-color: #07090c;
}

.bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8893a0;
  letter-spacing: 0.5px;
}

.bottom-container p {
  margin: 0;
}

.bottom-meta {
  font-weight: 600;
}

/* --- MEDIA QUERIES UNIFICADAS Y LIMPIAS --- */
@media (max-width: 992px) {
  .casos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .logo-area { 
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr !important;
    text-align: center;
    padding: 100px 15px 40px 15px !important;
    gap: 20px !important;
  }

  .hero-text h1 {
    font-size: 28px !important;
    line-height: 1.3 !important;
  }

  .hero-card {
    padding: 20px !important;
    margin: 0 auto;
    width: 100% !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }

  .calc-container {
    grid-template-columns: 1fr !important;
    padding: 20px !important;
    gap: 25px !important;
  }

  .nav-container {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  
  nav ul {
    gap: 12px !important;
  }
}

@media (max-width: 650px) {
  .casos-grid {
    grid-template-columns: 1fr;
  }
  
  .casos-header h2 {
    font-size: 24px;
  }
  
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .bottom-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}