/* =========================================
   VARIABLES DE MARCA SMART BUSINESS
========================================= */
:root {
  --brand-cyan: #5ce1e6;       
  --brand-cyan-hover: #4bbbc0; 
  --brand-blue: #091549;       
  --brand-blue-hover: #060d30;
  --brand-gray: #737373;       
  --brand-light-gray: #f3f4f6; 
  --white: #ffffff;
}

/* =========================================
   RESETEO Y TIPOGRAFÍA FLUIDA (NUEVO)
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--brand-light-gray);
  color: var(--brand-gray);
  line-height: 1.6;
}

/* Jerarquía consistente controlada por Clamp (Tamaño Mínimo, Ideal, Máximo) */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 800; color: var(--white); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); line-height: 1.2; font-weight: 800; color: var(--brand-blue); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; font-weight: 700; color: var(--brand-blue); }

.text-center { text-align: center; }
.section-tag { color: var(--brand-cyan); font-weight: 800; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.05em; display: block; margin-bottom: 0.5rem; }

/* =========================================
   NAVBAR
========================================= */
.navbar {
  background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #e5e7eb;
}
.nav-logo-link { display: flex; align-items: center; text-decoration: none; }
.nav-logo { height: 4rem; width: auto; object-fit: contain; }
.nav-links { display: none; align-items: center; gap: 2rem; list-style: none; }
.nav-link { font-size: 0.875rem; font-weight: 600; color: var(--brand-gray); text-decoration: none; transition: color 0.3s ease; }
.nav-link.active { color: var(--brand-blue); }
.nav-link:hover { color: var(--brand-cyan); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-cta {
  display: none; background-color: var(--brand-cyan); color: var(--brand-blue);
  font-size: 0.875rem; font-weight: 800; padding: 0.5rem 1.5rem; border-radius: 0.5rem;
  text-decoration: none; box-shadow: 0 4px 6px -1px rgba(92, 225, 230, 0.4); transition: all 0.3s ease;
}
.nav-cta:hover { background-color: var(--brand-cyan-hover); transform: translateY(-2px); }
.nav-toggle { display: block; background: transparent; border: none; color: var(--brand-blue); cursor: pointer; padding: 0.25rem; }
.hamburger-icon { width: 1.5rem; height: 1.5rem; }
.nav-links.active { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: white; padding: 2rem; border-bottom: 1px solid #e5e7eb; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; align-items: center; }
  .nav-toggle { display: none; }
}
@media (min-width: 1024px) { .navbar { padding: 1rem 6rem; } }

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
  position: relative; z-index: 1; padding: 3rem 1.5rem 6rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 2.5rem; overflow: hidden;
  background-image: url('../img/opcion.jpg'); background-size: cover; background-position: center;
}
.hero-section::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(9, 21, 73, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: -1;
}
.hero-content { width: 100%; display: flex; flex-direction: column; align-items: flex-start; text-align: left; position: relative; z-index: 10; }
.hero-subtitle { color: var(--brand-cyan); font-weight: 800; letter-spacing: 0.05em; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 1rem; }
.hidden-lg { display: none; }
.hero-description { font-size: 1.1rem; color: #d1d5db; margin-top: 1.5rem; margin-bottom: 2rem; max-width: 35rem; }
.hero-button {
  background-color: var(--brand-cyan); color: var(--brand-blue); font-weight: 800; padding: 1rem 2rem;
  border-radius: 0.5rem; border: none; box-shadow: 0 10px 15px -3px rgba(92, 225, 230, 0.3);
  transition: all 0.3s ease; display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; cursor: pointer;
}
.hero-button:hover { background-color: var(--brand-cyan-hover); transform: translateY(-3px); }
.hero-image-wrapper { width: 100%; position: relative; display: flex; justify-content: center; align-items: center; z-index: 10; }
.glow-effect { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 14rem; height: 14rem; background-color: var(--brand-cyan); border-radius: 50%; filter: blur(90px); opacity: 0.25; z-index: 0; }
.image-container { position: relative; z-index: 10; width: 100%; max-width: 32rem; margin: 0 auto; }
.mockup-img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.4)); }

@media (min-width: 640px) { .hero-section { padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1024px) {
  .hero-section { flex-direction: row; padding: 4rem 6rem 8rem 6rem; gap: 4rem; }
  .hero-content { width: 55%; }
  .hidden-lg { display: block; }
  .hero-image-wrapper { width: 45%; }
}

/* =========================================
   TECH STACK BANNER (NUEVO)
========================================= */
.tech-stack-banner {
  background-color: var(--white); padding: 1.5rem; text-align: center;
  border-bottom: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 1rem;
}
.tech-stack-banner p { font-size: 0.85rem; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.tech-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; align-items: center; }
.tech-logos span { font-weight: 800; font-size: 1.1rem; color: #d1d5db; transition: color 0.3s ease; cursor: default; }
.tech-logos span:hover { color: var(--brand-blue); }

@media (min-width: 768px) {
  .tech-stack-banner { flex-direction: row; justify-content: center; align-items: center; gap: 3rem; padding: 2rem; }
}

/* =========================================
   SECCIÓN SOLUCIONES (Overlap)
========================================= */
.solutions-section { position: relative; z-index: 20; padding: 3rem 1.5rem; background-color: var(--brand-light-gray); }
.solutions-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.solutions-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.solutions-list { display: flex; flex-wrap: wrap; gap: 1rem; }
.solution-pill {
  display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.5rem; border-radius: 0.75rem;
  font-size: 0.95rem; font-weight: 700; background-color: var(--white); color: var(--brand-blue);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; border: 1px solid #f3f4f6;
}
.solution-pill svg { width: 1.5rem; height: 1.5rem; color: var(--brand-cyan); }
.solution-pill:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(92, 225, 230, 0.2); border-color: var(--brand-cyan); }

@media (min-width: 1024px) {
  .solutions-section { padding: 4rem 6rem; margin-top: 0; }
  .solutions-container { flex-direction: row; align-items: center; justify-content: space-between; }
  .solutions-header { width: 40%; }
  .solutions-list { width: 60%; justify-content: flex-end; }
}

/* =========================================
   SECCIÓN PROYECTOS (NUEVO)
========================================= */
.projects-section { padding: 5rem 1.5rem; background-color: var(--white); }
.projects-container { max-width: 1200px; margin: 0 auto; }
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.project-card {
  background: var(--white); border-radius: 1rem; overflow: hidden;
  border: 1px solid #e5e7eb; transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(9, 21, 73, 0.1); border-color: var(--brand-cyan); }
.project-img-placeholder {
  height: 200px; background: linear-gradient(135deg, #091549, #1a2a6c);
  display: flex; align-items: center; justify-content: center;
}
.project-img-placeholder span { color: var(--brand-cyan); font-weight: 800; font-size: 1.25rem; opacity: 0.8; }
.project-info { padding: 1.5rem; }
.project-info h3 { margin-bottom: 0.5rem; }
.project-info p { font-size: 0.95rem; margin-bottom: 1.5rem; color: var(--brand-gray); }
.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; background: var(--brand-light-gray); color: var(--brand-blue); border-radius: 99px; }

@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

/* =========================================
   SECCIÓN 2: PROCESO (Fondo Oscuro Blur)
========================================= */
.process-3d-section {
  position: relative; z-index: 20; padding: 6rem 1.5rem;
  background-image: url('../img/cliente1.jpg'); background-size: cover; background-position: center;
}
.process-3d-section::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(9, 21, 73, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: -1;
}
.process-3d-container { max-width: 1200px; margin: 0 auto; }
.process-3d-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@keyframes bounceSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.card-3d {
  background-color: rgba(255, 255, 255, 0.03); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  padding: 2.5rem 1.5rem; border-radius: 1rem; text-align: center; border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card-3d:hover {
  transform: translateY(-15px); background-color: var(--white); border-color: var(--brand-cyan);
  box-shadow: 0 20px 25px -5px rgba(92, 225, 230, 0.2);
}
.icon-3d {
  width: 4rem; height: 4rem; margin: 0 auto 1.5rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-weight: 900; transition: all 0.3s ease; background-color: rgba(255, 255, 255, 0.05); color: var(--brand-cyan);
}
.card-3d:hover .icon-3d { background-color: var(--brand-cyan); color: var(--brand-blue); animation: bounceSlow 2s infinite ease-in-out; box-shadow: 0 10px 15px -3px rgba(92, 225, 230, 0.5); }
.card-3d h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 1rem; transition: color 0.3s ease; }
.card-3d:hover h3 { color: var(--brand-blue); } 
.card-3d p { font-size: 0.95rem; color: #9ca3af; transition: color 0.3s ease; }
.card-3d:hover p { color: var(--brand-gray); }

@media (min-width: 768px) { .process-3d-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-3d-grid { grid-template-columns: repeat(4, 1fr); } }

/* =========================================
   SECCIÓN FAQ (NUEVO)
========================================= */
.faq-section { padding: 5rem 1.5rem; background-color: var(--brand-light-gray); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--white); border-radius: 0.75rem; border: 1px solid #e5e7eb; overflow: hidden; transition: all 0.3s ease; }
.faq-item[open] { border-color: var(--brand-cyan); box-shadow: 0 10px 15px -3px rgba(9, 21, 73, 0.05); }
.faq-item summary {
  padding: 1.5rem; font-weight: 700; font-size: 1.1rem; color: var(--brand-blue); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--brand-cyan); font-weight: 300; transition: transform 0.3s ease; }
.faq-item[open] summary::after { content: '−'; transform: rotate(180deg); }
.faq-content { padding: 0 1.5rem 1.5rem 1.5rem; color: var(--brand-gray); font-size: 0.95rem; line-height: 1.6; }

/* =========================================
   SECCIÓN CONTACTO COMPACTO
========================================= */
.contact-compact-section { position: relative; z-index: 1; padding: 5rem 1.5rem; background-color: var(--white); }
.contact-compact-container { max-width: 700px; margin: 0 auto; }
.contact-form-minimal { background-color: var(--white); padding: 2.5rem; border-radius: 1rem; border: 1px solid #e5e7eb; box-shadow: 0 20px 25px -5px rgba(9, 21, 73, 0.05); }
.contact-form-minimal form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 1rem; border: 1px solid #e2e8f0; border-radius: 0.5rem;
  font-size: 0.95rem; font-family: inherit; transition: all 0.3s ease; color: var(--brand-blue); background-color: #f8fafc;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brand-cyan); background-color: var(--white); box-shadow: 0 0 0 3px rgba(92, 225, 230, 0.15);
}
.submit-btn-minimal {
  background-color: var(--brand-cyan); color: var(--brand-blue); font-weight: 800;
  padding: 1rem; border-radius: 0.5rem; border: none; cursor: pointer; transition: all 0.3s ease; font-size: 1rem;
}
.submit-btn-minimal:hover { background-color: var(--brand-cyan-hover); transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(92, 225, 230, 0.3); }

@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* =========================================
   FOOTER COMPACTO
========================================= */
.footer-section { background-color: var(--brand-blue); padding: 4rem 1.5rem 1.5rem 1.5rem; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.footer-logo { height: 2.5rem; object-fit: contain; filter: brightness(0) invert(1); }
.footer-desc { max-width: 300px; font-size: 0.95rem; color: #9ca3af; }
.footer-email { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--brand-cyan); font-weight: 800; text-decoration: none; transition: color 0.3s ease; }
.footer-email svg { width: 1.25rem; height: 1.25rem; }
.footer-email:hover { color: var(--white); }
.footer-links h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 1rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: #9ca3af; text-decoration: none; transition: color 0.3s ease; font-size: 0.95rem; }
.footer-links a:hover { color: var(--brand-cyan); }
.footer-legal { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; margin-top: 3rem; color: #6b7280; }

@media (min-width: 768px) {
  .footer-container { flex-direction: row; justify-content: space-between; }
}

/* =========================================
   NOTIFICACIÓN FLOTANTE (TOAST)
========================================= */
.toast-notification {
  position: fixed; bottom: 30px; right: 30px; background-color: var(--white); color: var(--brand-blue);
  padding: 16px 24px; border-radius: 8px; box-shadow: 0 10px 25px rgba(9, 21, 73, 0.2);
  display: flex; align-items: center; gap: 12px; z-index: 1000;
  transform: translateX(150%); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-weight: 600; font-size: 0.95rem; border-left: 4px solid var(--brand-cyan);
}
.toast-notification.show { transform: translateX(0); }
.toast-notification.error { border-left-color: #ef4444; }

/* =========================================
   WHATSAPP FLOTANTE (NUEVO)
========================================= */
.whatsapp-float {
  position: fixed; width: 60px; height: 60px; bottom: 30px; left: 30px;
  background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
  font-size: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); z-index: 100;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4); }
.whatsapp-float svg { width: 35px; height: 35px; }