@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #f7f8fc 0%, #ffffff 100%);
  color: #121212;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 15%, rgba(120, 93, 255, 0.18), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(94, 205, 255, 0.14), transparent 28%),
    radial-gradient(circle at 50% 70%, rgba(156, 120, 255, 0.08), transparent 35%);
}

/* --- HEADER / NAV (SMART STICKY) --- */
nav {
  position: fixed; 
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 28px;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: top 0.4s ease-in-out; 
}

nav.nav-hidden {
  top: -100px;
}

.logo { display: flex; align-items: center; }
.logo img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.brand-name {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-weight: 700; font-size: 1.25rem; color: #121212;
}

.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-btn {
  background: linear-gradient(135deg, #7b5cff, #5fb6ff);
  color: white; padding: 12px 24px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(108, 92, 255, 0.28);
  transition: 0.3s;
}
.nav-btn:hover { transform: translateY(-2px); }

.hamburger-btn {
  width: 42px; height: 42px;
  background: transparent;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #121212; cursor: pointer;
  transition: 0.3s;
}
.hamburger-btn:hover { color: #7b5cff; transform: scale(1.05); }

/* --- MENU LATERAL --- */
.side-menu {
  position: fixed; top: 0; right: -320px;
  width: 300px; height: 100vh;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1); z-index: 2000;
  padding: 80px 40px; display: flex; flex-direction: column; gap: 24px;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.side-menu.active { right: 0; }
.close-menu {
  position: absolute; top: 30px; right: 30px;
  font-size: 1.8rem; background: none; border: none; color: #121212;
  cursor: pointer; transition: 0.2s;
}
.close-menu:hover { color: #7b5cff; }
.side-menu a { text-decoration: none; font-size: 1.3rem; font-weight: 600; color: #444; transition: 0.2s; position: relative; }
.side-menu a:hover { color: #7b5cff; }

.side-menu a.active { color: #7b5cff; padding-left: 14px; }
.side-menu a.active::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 20px; background: #7b5cff; border-radius: 4px;
}

/* --- HERO & DASHBOARD --- */
.hero { width: min(1180px, calc(100% - 32px)); margin: 140px auto 90px; text-align: center; position: relative; }
.hero h1 { max-width: 920px; margin: 0 auto; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1.1; letter-spacing: -0.04em; font-weight: 800; }
.hero .line-break { display: block; margin-top: 5px; }

/* Nuevo Estilo de Arte para el Hero */
.highlight-cursive {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(135deg, #7b5cff, #5fb6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p { max-width: 760px; margin: 28px auto 0; font-size: 1.15rem; line-height: 1.8; color: #5c5c73; }
.hero-buttons { margin-top: 40px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-buttons a { text-decoration: none; padding: 16px 28px; border-radius: 999px; font-weight: 600; transition: 0.3s; }
.primary-btn { background: linear-gradient(135deg, #7b5cff, #5fb6ff); color: white; box-shadow: 0 14px 30px rgba(108, 92, 255, 0.28); font-size: 1.05rem; }
.secondary-btn { border: 1px solid rgba(108, 92, 255, 0.25); color: #4f4f68; background: rgba(255,255,255,0.7); backdrop-filter: blur(8px); }

.visual-wrapper { position: relative; margin-top: 80px; padding-bottom: 40px; }
.dashboard { width: min(980px, 100%); margin: 0 auto; background: rgba(255,255,255,0.78); border-radius: 38px; border: 1px solid rgba(255,255,255,0.7); backdrop-filter: blur(20px); box-shadow: 0 30px 80px rgba(50, 50, 93, 0.12); padding: 40px; position: relative; overflow: hidden; }
.dashboard::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(123,92,255,0.05), rgba(95,182,255,0.05)); }
.dashboard-title { position: relative; font-size: 2.3rem; font-weight: 700; text-align: center; margin-bottom: 34px; }
.dashboard-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-card { background: rgba(255,255,255,0.82); border: 1px solid rgba(240,240,250,0.9); border-radius: 24px; padding: 22px; box-shadow: 0 12px 30px rgba(0,0,0,0.05); text-align: left; }
.mini-card h4 { font-size: 1rem; margin-bottom: 12px; }
.mini-card p { font-size: 0.92rem; color: #6a6a80; line-height: 1.6; }
.floating { position: absolute; background: rgba(255,255,255,0.88); backdrop-filter: blur(18px); border-radius: 24px; padding: 18px; box-shadow: 0 22px 50px rgba(50,50,93,0.14); border: 1px solid rgba(255,255,255,0.8); }
.floating.top-right { right: 5%; top: -30px; width: 220px; }
.floating.bottom-left { left: 4%; bottom: 10px; width: 240px; }

/* --- SECCIONES GENERALES --- */
.section { width: min(1180px, calc(100% - 32px)); margin: 0 auto 110px; }
.section.page-top { margin-top: 140px; } 
.section-header { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-header h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); margin-bottom: 18px; letter-spacing: -0.04em; }
.section-header p { color: #66667d; line-height: 1.8; font-size: 1.05rem; }

.services-grid, .pricing-grid, .faq-grid, .cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card, .pricing-card, .faq-card, .case-card { background: rgba(255,255,255,0.78); border: 1px solid rgba(255,255,255,0.7); border-radius: 28px; padding: 32px; box-shadow: 0 18px 50px rgba(50,50,93,0.08); transition: 0.3s; }
.service-card:hover, .pricing-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 24px 60px rgba(50,50,93,0.14); }
.service-icon { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, #7b5cff, #5fb6ff); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 22px; }
.service-card h3, .pricing-card h3 { margin-bottom: 16px; font-size: 1.35rem; }
.service-card ul, .pricing-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; color: #66667d; line-height: 1.6; }
.service-card li::before, .pricing-card li::before { content: "✦"; color: #7b5cff; margin-right: 10px; }

/* --- FAQ ACORDEON --- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: rgba(255,255,255,0.78); border: 1px solid rgba(255,255,255,0.7); border-radius: 20px; overflow: hidden; transition: 0.3s; box-shadow: 0 10px 30px rgba(50,50,93,0.05); }
.faq-question { padding: 24px; font-size: 1.15rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #121212; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding: 0 24px; }
.faq-answer p { color: #66667d; line-height: 1.8; padding-bottom: 24px; }
.faq-icon { transition: transform 0.3s; color: #7b5cff; }
.faq-item.active { border-color: rgba(108, 92, 255, 0.4); box-shadow: 0 14px 40px rgba(108, 92, 255, 0.1); }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* --- PRICING & MODAL --- */
.price { font-size: 2rem; font-weight: 800; margin-bottom: 20px; background: linear-gradient(135deg, #7b5cff, #5fb6ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.pricing-card button { margin-top: 28px; width: 100%; padding: 14px; border: none; border-radius: 18px; background: linear-gradient(135deg, #7b5cff, #5fb6ff); color: white; font-weight: 600; cursor: pointer; transition: 0.3s; }
.pricing-card.featured { border-color: #7b5cff; transform: scale(1.02); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; pointer-events: none; transition: 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: #fff; border-radius: 28px; padding: 40px; width: min(500px, 90%); position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.2); transform: translateY(30px); transition: 0.3s; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 20px; right: 24px; font-size: 1.5rem; cursor: pointer; border: none; background: none; color: #666; }
.modal-content h3 { margin-bottom: 8px; font-size: 1.6rem; }
.modal-content p { color: #66667d; margin-bottom: 24px; font-size: 0.95rem; line-height: 1.5;}
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-form input, .modal-form textarea { width: 100%; padding: 14px; border-radius: 14px; border: 1px solid rgba(0,0,0,0.1); background: #fcfcfc; font-family: inherit; }
.modal-form textarea { resize: vertical; min-height: 100px; }
.modal-form button { padding: 16px; border: none; border-radius: 14px; background: linear-gradient(135deg, #7b5cff, #5fb6ff); color: white; font-weight: 700; font-size: 1.05rem; cursor: pointer; transition: 0.3s; }

/* --- CASOS Y COMENTARIOS --- */
.case-card { text-align: center; }
.case-placeholder { background: rgba(0,0,0,0.03); border-radius: 16px; height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: #a0a0a0; font-size: 2rem; }
.comments-section { background: rgba(255,255,255,0.78); border: 1px solid rgba(255,255,255,0.7); border-radius: 28px; padding: 40px; margin-top: 40px; box-shadow: 0 18px 50px rgba(50,50,93,0.08); }
.comments-section h3 { margin-bottom: 24px; font-size: 1.5rem; }
.comment-form { display: flex; flex-direction: column; gap: 16px; max-width: 600px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 14px; border-radius: 14px; border: 1px solid rgba(0,0,0,0.1); font-family: inherit; }
.comment-form textarea { resize: vertical; min-height: 100px; }
.comment-form button { padding: 14px 24px; border: none; border-radius: 14px; background: linear-gradient(135deg, #7b5cff, #5fb6ff); color: white; font-weight: 700; cursor: pointer; width: fit-content; }

/* --- CTA & FOOTER --- */
.cta-box { background: linear-gradient(135deg, #121322, #2d245f); color: white; border-radius: 36px; padding: 60px 36px; text-align: center; box-shadow: 0 30px 80px rgba(25, 25, 55, 0.28); }
.cta-box h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.cta-box p { max-width: 760px; margin: 0 auto 32px; color: rgba(255,255,255,0.78); line-height: 1.8; }
.lead-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 860px; margin: 0 auto; }
.lead-form input, .lead-form textarea, .lead-form select { width: 100%; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.08); color: white; border-radius: 18px; padding: 16px; font-family: inherit; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: rgba(255,255,255,0.6); }
.lead-form textarea { min-height: 120px; resize: vertical; grid-column: span 2; }
.lead-form button { grid-column: span 2; border: none; border-radius: 18px; padding: 16px; font-weight: 700; background: linear-gradient(135deg, #7b5cff, #5fb6ff); color: white; cursor: pointer; }

footer { 
  width: min(1180px, calc(100% - 32px)); 
  margin: auto auto 42px; 
  display: flex; justify-content: space-between; align-items: center; 
  color: #5c5c73; padding-top: 36px; 
}
.footer-links { display: flex; gap: 18px; align-items: center; }
.footer-links a { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center; color: #6c5cff; text-decoration: none; box-shadow: 0 12px 28px rgba(0,0,0,0.06); transition: 0.3s; font-size: 1.1rem; }
.footer-links a:hover { transform: translateY(-3px); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .dashboard-grid, .lead-form { grid-template-columns: 1fr; }
  .lead-form textarea, .lead-form button { grid-column: span 1; }
  .floating { position: static; width: 100%; margin: 18px auto 0; }
  .hero h1 { max-width: 100%; background: linear-gradient(135deg, #111, #4f46e5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
  footer { flex-direction: column; gap: 18px; }
  .brand-name { display: none; }
  .nav-btn { display: none; } 
}