/* 
 * Cybko.com - Cyber-Corporate 2026 Theme
 * Paleta de colores:
 * - Deep Space: #0B0F19 (fondo principal)
 * - Electric Cyan: #00F0FF (CTA, acentos)
 * - AI Purple: #7B2CBF (degradados, IA)
 * - WhatsApp Green: #25D366 (éxito, WhatsApp)
 * - Texto Principal: #E0E6ED
 */

:root {
  --deep-space: #0B0F19;
  --electric-cyan: #00F0FF;
  --ai-purple: #7B2CBF;
  --whatsapp-green: #25D366;
  --text-primary: #E0E6ED;
  --text-secondary: #A0AEC0;
  --card-bg: #121825;
  --border-color: #1E293B;
  --success: #25D366;
  --warning: #F59E0B;
  --error: #EF4444;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-neon: 0 0 15px rgba(0, 240, 255, 0.5);
  --shadow-purple: 0 0 20px rgba(123, 44, 191, 0.4);
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--deep-space);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(90deg, var(--electric-cyan), var(--ai-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1.75rem;
  color: var(--electric-cyan);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--electric-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: white;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--electric-cyan);
  color: var(--deep-space);
}

.btn-primary:hover {
  background-color: white;
  box-shadow: var(--shadow-neon);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--electric-cyan);
  border: 2px solid var(--electric-cyan);
}

.btn-secondary:hover {
  background-color: rgba(0, 240, 255, 0.1);
  box-shadow: var(--shadow-neon);
}

.btn-success {
  background-color: var(--whatsapp-green);
  color: white;
}

.btn-success:hover {
  background-color: #1da851;
}

/* Header */
.sticky-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
}

.logo span {
  color: var(--electric-cyan);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--electric-cyan);
}

.nav-cta {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Secciones */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

/* Tarjetas */
.card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--electric-cyan);
  box-shadow: var(--shadow-neon);
  transform: translateY(-5px);
}

.card-highlight {
  border-color: var(--ai-purple);
  position: relative;
  overflow: hidden;
}

.card-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ai-purple), var(--electric-cyan));
}

/* Grid */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Footer */
.footer {
  background-color: #080B14;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-section h4 {
  color: var(--electric-cyan);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: all 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .header-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .footer-content {
    flex-direction: column;
  }
}

/* Utilidades */
.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(90deg, var(--electric-cyan), var(--ai-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }

/* Animaciones */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float {
  animation: float 3s ease-in-out infinite;
}/* Add this to your existing style.css */

.image-placeholder {
    background-color: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    height: 100%;
    min-height: 350px;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: var(--electric-cyan);
    color: var(--text-primary);
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--electric-cyan);
    margin-bottom: 20px;
    opacity: 0.5;
}

.image-placeholder-text {
    font-weight: 600;
    font-size: 1.2rem;
}

.image-placeholder-subtext {
    font-size: 0.9rem;
    margin-top: 10px;
}

/* === Simulador de Chat === */
.phone-mockup {
    background-color: var(--card-bg);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid var(--border-color);
}
.chat-screen {
    background-color: var(--deep-space);
    border-radius: 30px;
    padding: 20px 15px;
    height: 450px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-bubble {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    animation: bubble-pop-in 0.4s ease forwards;
    opacity: 0;
    transform: scale(0.8);
}
.chat-bubble.user {
    background-color: #2c3a52;
    color: var(--text-primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    animation-delay: 0.5s;
}
.chat-bubble.bot {
    background: linear-gradient(90deg, var(--ai-purple), var(--electric-cyan));
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    animation-delay: 1.2s;
}
.chat-bubble.bot.delay-2 { animation-delay: 2.2s; }
.chat-bubble.bot.delay-3 { animation-delay: 3.5s; }
.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 10px;
    opacity: 0;
    animation: bubble-pop-in 0.4s ease forwards;
    animation-delay: 3s;
}
.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bubble-pop-in {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* === Mini Dashboard === */
.mini-dashboard {
    background: linear-gradient(145deg, var(--card-bg), #1a202c);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}
.metric-card {
    background-color: var(--deep-space);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--electric-cyan);
    margin-bottom: 20px;
}
.metric-card h4 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
}
.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}
.metric-value span {
    font-size: 1.2rem;
    color: var(--electric-cyan);
    margin-left: 5px;
}
.metric-value .unit {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* === New Problem vs Solution Section === */
.problem-solution-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 50px;
}
.column {
    padding: 40px;
    background-color: #0F1522; /* Slightly lighter than main bg */
}
.column h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.5rem;
}
.column .icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.column.problem .icon-wrapper { background-color: rgba(239, 68, 68, 0.1); }
.column.problem h3 { color: #F87171; }
.column.solution .icon-wrapper { background: linear-gradient(45deg, rgba(123, 44, 191, 0.2), rgba(0, 240, 255, 0.2)); }
.column.solution h3 { color: var(--electric-cyan); }

.column ul { list-style: none; }
.column ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1rem;
}
.column ul li i {
    margin-top: 5px;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}
.column.problem ul li i { color: var(--error); }
.column.solution ul li i { color: var(--success); }

/* === Dynamic Chat Simulation === */
.phone-mockup {
    background-color: #000;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    border: 2px solid #333;
    position: relative;
}
.phone-mockup:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background-color: #333;
    border-radius: 5px;
}
.chat-screen {
    background-color: var(--deep-space);
    border-radius: 30px;
    padding: 20px 10px;
    height: 480px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-bubble {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.5;
}
.chat-bubble.user {
    background-color: #2c3a52;
    color: var(--text-primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-bubble.bot {
    background-color: #1c273a;
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 0.9em;
    background-color: var(--electric-cyan);
    animation: blink 0.8s infinite;
    margin-left: 3px;
    vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

/* === Feature Cards for Solutions === */
.solution-block {
    background: linear-gradient(145deg, #121825, #0d121c);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.solution-block:hover {
    border-color: var(--electric-cyan);
    transform: translateY(-5px);
}
.solution-block h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    margin-bottom: 20px;
}
.solution-block .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid var(--text-secondary);
}
.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--electric-cyan);
}
.feature-item h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}
.feature-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* === Tech Process Flow === */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--electric-cyan), var(--ai-purple));
    z-index: 0;
    opacity: 0.3;
}
.step-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
}
.step-icon {
    width: 80px;
    height: 80px;
    background: var(--deep-space);
    border: 2px solid var(--electric-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--electric-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}
.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ai-purple);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .process-steps::before { display: none; }
    .process-steps { flex-direction: column; }
}

/* === WHATSAPP REPLICA (Dark Mode) === */
.wa-mockup {
    background-color: #0b141a; /* Fondo oficial WA Dark */
    border-radius: 30px;
    overflow: hidden;
    border: 8px solid #1f2c34; /* Borde del teléfono */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    font-family: Helvetica, Arial, sans-serif;
    position: relative;
    height: 550px;
    display: flex;
    flex-direction: column;
}

/* Cabecera WhatsApp */
.wa-header {
    background-color: #202c33;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #2f3b43;
    z-index: 10;
}
.wa-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00F0FF, #7B2CBF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}
.wa-info h4 {
    color: #e9edef;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}
.wa-info span {
    color: #8696a0;
    font-size: 12px;
}

/* Pantalla de Chat */
.wa-screen {
    flex: 1;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); /* Fondo patrón WA opcional o color plano */
    background-color: #0b141a;
    background-blend-mode: overlay;
    background-size: 300px;
    opacity: 0.95;
    padding: 20px 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Burbujas WA */
.wa-bubble {
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%;
    font-size: 14.2px;
    line-height: 19px;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

/* Burbuja Usuario (Verde WA) */
.wa-bubble.user {
    background-color: #005c4b;
    color: #e9edef;
    align-self: flex-end;
    border-top-right-radius: 0;
    margin-right: 8px;
}
.wa-bubble.user::after {
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-top: 10px solid #005c4b;
    border-right: 10px solid transparent;
}

/* Burbuja Bot (Gris WA) */
.wa-bubble.bot {
    background-color: #202c33;
    color: #e9edef;
    align-self: flex-start;
    border-top-left-radius: 0;
    margin-left: 8px;
}
.wa-bubble.bot::after {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 10px solid #202c33;
    border-left: 10px solid transparent;
}

/* Metadata (Hora y Checks) */
.wa-meta {
    float: right;
    margin-left: 10px;
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 3px;
}
.wa-checks {
    color: #53bdeb; /* Azul de leído */
}

/* Footer Falso (Input) */
.wa-footer {
    background-color: #202c33;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wa-input-fake {
    background-color: #2a3942;
    height: 35px;
    border-radius: 8px;
    flex: 1;
}
.wa-mic {
    width: 35px;
    height: 35px;
    background-color: #00a884;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* === COMPARISON CARDS (Problema vs Solución) === */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.comp-card {
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.comp-header {
    padding: 25px;
    text-align: center;
    font-weight: 800;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comp-content {
    padding: 30px;
    background-color: rgba(255,255,255,0.03);
    height: 100%;
}

/* Estilos Problema */
.comp-card.problem {
    border: 1px solid #4a1818;
    background: linear-gradient(180deg, #1a0b0b 0%, #0B0F19 100%);
}
.comp-card.problem .comp-header {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-bottom: 1px solid #4a1818;
}
.pain-point {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 25px;
    color: #9ca3af;
}
.pain-point i {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 10px;
    border-radius: 8px;
    min-width: 40px;
    text-align: center;
}

/* Estilos Solución */
.comp-card.solution {
    border: 1px solid rgba(0, 240, 255, 0.3);
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.05) 0%, #0B0F19 100%);
    position: relative;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.05);
}
.comp-card.solution .comp-header {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.1), rgba(123, 44, 191, 0.1));
    color: var(--electric-cyan);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}
.gain-point {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 25px;
    color: #e0e6ed;
}
.gain-point i {
    color: #00F0FF;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(123, 44, 191, 0.2));
    padding: 10px;
    border-radius: 8px;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

@media (max-width: 768px) {
    .comparison-grid { grid-template-columns: 1fr; }
    .wa-mockup { height: 450px; }
}
