/*
Theme Name: IANESIS Intelligence
Theme URI: http://www.ianesis.com
Author: IANESIS Intelligence
Description: Tema corporativo IANESIS Intelligence - Intixia AI Chatbot
Version: 2.0.0
Text Domain: ianesis
*/

/* ===== DESIGN SYSTEM ===== */
:root {
  --primary: #38bdf8;
  --accent: #ff006e;
  --bg-dark: #020d1a;
  --bg-card: #1a1a2e;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html, body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Exo 2', sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0a0a14 100%);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
}

a { color: var(--primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}

/* ===== 3D CANVAS ===== */
#canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 0;
  display: block;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle 800px at 50% 50%, rgba(56,189,248,0.08) 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  animation: moveGradient 15s ease-in-out infinite;
}

@keyframes moveGradient {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(100px, 100px); }
}

/* ===== CONTAINER ===== */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
header, .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(2,13,26,0.95);
  border-bottom: 1px solid rgba(56,189,248,0.1);
  padding: 1rem 0;
}

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

.logo-section, .site-branding {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-svg { height: 45px; width: auto; display: flex; align-items: center; }

.logo-text {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-ianesis {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1.5px;
}

.logo-divider {
  width: 1px;
  height: 22px;
  background: rgba(56,189,248,0.3);
}

.logo-intixia {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
}

/* Navigation */
nav, .site-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav ul, .site-nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a, .site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
}

nav a:hover, .site-nav a:hover,
.site-nav .current-menu-item a,
.site-nav .current_page_item a {
  color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: #000;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(56,189,248,0.4);
  color: #000;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(56,189,248,0.1);
  transform: translateY(-2px);
  color: var(--primary);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ===== HERO ===== */
.hero {
  padding: 150px 0 100px;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== INTIXIA SHOWCASE ===== */
.intixia-showcase { padding: 100px 0; margin: 60px 0; }

.intixia-card {
  background: linear-gradient(135deg, rgba(56,189,248,0.1), rgba(255,0,110,0.05));
  border: 2px solid rgba(56,189,248,0.3);
  border-radius: 24px;
  padding: 4rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.intixia-card:hover {
  border-color: var(--primary);
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(56,189,248,0.2);
}

.intixia-info h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.intixia-tagline {
  font-size: 1.2rem;
  color: var(--primary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  margin-bottom: 2rem;
}

.intixia-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 700px;
}

.intixia-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-item {
  background: rgba(26,26,46,0.6);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 8px;
}

.feature-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-family: 'Rajdhani', sans-serif;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.intixia-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(56,189,248,0.1), rgba(255,0,110,0.05));
  border-radius: 24px;
  border: 1px solid rgba(56,189,248,0.2);
  text-align: center;
  margin: 100px 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  padding: 150px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ===== MOTTO / ABOUT ===== */
.motto-section {
  padding: 80px 0;
  margin: 60px 0;
  background: linear-gradient(135deg, rgba(56,189,248,0.1), rgba(255,0,110,0.05));
  border-radius: 24px;
  border: 2px solid rgba(56,189,248,0.3);
  text-align: center;
}

.motto-tagline {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Rajdhani', sans-serif;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.motto-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Section headers */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}
.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Info cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.info-card {
  background: rgba(26,26,46,0.6);
  border-left: 4px solid var(--primary);
  padding: 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(56,189,248,0.15);
}

.info-card-title {
  font-weight: 700;
  color: var(--primary);
  font-family: 'Rajdhani', sans-serif;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.info-card-desc {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== PILLARS ===== */
.pillars-section { padding: 100px 0; margin: 60px 0; }
.pillars-header { text-align: center; margin-bottom: 5rem; }
.pillars-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary);
}
.pillars-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pilar {
  background: rgba(26,26,46,0.6);
  border: 2px solid rgba(56,189,248,0.2);
  border-radius: 16px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease forwards;
}

.pilar:nth-child(1) { animation-delay: 0.1s; }
.pilar:nth-child(2) { animation-delay: 0.2s; }
.pilar:nth-child(3) { animation-delay: 0.3s; }

.pilar:hover {
  border-color: var(--primary);
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(56,189,248,0.2);
}

.pilar-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.pilar-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.pilar-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== PRICING ===== */
.pricing-section { padding: 60px 0; }
.pricing-intro { text-align: center; margin-bottom: 4rem; }
.pricing-intro p { font-size: 1.1rem; color: var(--text-secondary); max-width: 700px; margin: 0 auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 6rem;
}

.plan-card {
  background: linear-gradient(135deg, rgba(56,189,248,0.1), rgba(255,0,110,0.05));
  border: 2px solid rgba(56,189,248,0.3);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(255,0,110,0.1));
  transform: scale(1.05);
}

.plan-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(56,189,248,0.2);
}

.plan-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.badge {
  position: absolute;
  top: -12px; right: 20px;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.plan-period {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.plan-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
  flex-grow: 1;
}

.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li {
  padding: 0.75rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(56,189,248,0.1);
  font-size: 0.95rem;
}
.plan-features li::before {
  content: '✓ ';
  color: #00ff88;
  font-weight: 700;
  margin-right: 0.75rem;
}
.plan-features li:last-child { border-bottom: none; }

.plan-button {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.plan-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(56,189,248,0.4);
}

/* ===== FAQ ===== */
.faq-section { padding: 80px 0; }
.faq-title {
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--primary);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.faq-item {
  background: rgba(26,26,46,0.6);
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.faq-item:hover { border-color: var(--primary); }

.faq-question {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.faq-toggle { transition: transform 0.3s; }
.faq-item.active .faq-toggle { transform: rotate(180deg); }

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 0;
  font-size: 0.95rem;
}
.faq-item.active .faq-answer { max-height: 300px; margin-top: 1rem; }

/* ===== CONTACT ===== */
.contact-wrapper { padding: 60px 0; }
.contact-form {
  background: linear-gradient(135deg, rgba(56,189,248,0.1), rgba(255,0,110,0.05));
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  color: var(--primary);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(2,13,26,0.6);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Exo 2', sans-serif;
  transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(56,189,248,0.2);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(56,189,248,0.4);
}

/* ===== FOOTER ===== */
footer, .site-footer {
  padding: 4rem 0;
  border-top: 1px solid rgba(56,189,248,0.1);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
}

.footer-logo-svg { height: 30px; width: auto; }

.footer-logo-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Rajdhani', sans-serif;
}

.footer-divider {
  width: 1px;
  height: 20px;
  background: rgba(56,189,248,0.3);
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--primary); }

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
  border-radius: 2px;
}

/* ===== BLOG POSTS ===== */
.post-item {
  background: rgba(26,26,46,0.6);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}
.post-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}
.post-item h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.post-item h2 a { color: var(--text-primary); }
.post-item h2 a:hover { color: var(--primary); }
.post-meta { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }

/* ===== WP ADMIN BAR ===== */
body.admin-bar header,
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar header,
  body.admin-bar .site-header { top: 46px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  nav, .site-nav { display: none; }
  nav.active, .site-nav.active {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    flex-direction: column;
    background: rgba(2,13,26,0.98);
    backdrop-filter: blur(20px);
    padding: 6rem 2rem 2rem;
    z-index: 999;
  }
  nav.active ul, .site-nav.active ul {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-buttons, .intixia-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  .page-header { padding: 120px 0 40px; }
  .page-header h1 { font-size: 1.8rem; }
  .plan-card.featured { transform: none; }
  .plan-card.featured:hover { transform: translateY(-8px); }
  .pricing-grid, .faq-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .intixia-card { padding: 2rem; }
  .contact-form { padding: 2rem; }
}
