/*
Theme Name: Ferax Partner Custom
Description: Tema dinámico para el socio estratégico de escalamiento, construido sobre performance alta e IA.
Author: Antigravity
Version: 1.0
*/

:root {
  --primary-color: #052655;    /* Deep Blue */
  --secondary-color: #F7BF1F;  /* Yellow */
  --accent-color: #405FAC;     /* Light Blue */
  --text-light: #F8FAFC;
  --text-dark: #1E293B;
  --bg-dark: #0B1120;
  --bg-light: #F8FAFC;
  --bg-card: rgba(15, 23, 42, 0.6);
  --header-height: 80px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* ==================================
   NAVBAR (STICKY, TOP LAYER)
   ================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(5, 38, 85, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.logo-text {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--secondary-color);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav-btn-yellow {
  background-color: var(--secondary-color);
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  padding: 8px 20px;
  border-radius: 6px;
  transition: background 0.3s !important;
}

.nav-btn-yellow:hover {
  background-color: #E0A800;
  color: var(--primary-color) !important;
}

/* ==================================
   PARALLAX HERO BANNER
   ================================== */
.hero-parallax {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('/images/hero.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(5,38,85,0.7) 0%, rgba(11,17,32,0.9) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 20px;
  max-width: 900px;
  margin-top: var(--header-height);
  color: var(--text-light);
}

.hero-content h3 {
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1rem;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-content h2 {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================================
   SLIDING CONTENT OVER PARALLAX
   ================================== */
.sliding-content {
  position: relative;
  z-index: 10;
  margin-top: 100vh;
  background-color: var(--bg-dark);
  box-shadow: 0 -20px 40px rgba(0,0,0,0.5);
}

/* Base Section Styles */
section {
  padding: 100px 5%;
}

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

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.text-center {
  text-align: center;
}

.p-center {
  margin: 0 auto;
}

.max-w-text {
  max-width: 800px;
  font-size: 1.1rem;
  margin-top: 20px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(64, 95, 172, 0.3);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
}

.card-img-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

/* Nexus IA Banner */
#nexus {
  background: linear-gradient(135deg, #052655 0%, #0a192f 100%);
  color: #fff;
}

.nexus-logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 4rem;
  letter-spacing: -2px;
  margin: 20px 0 30px;
  color: var(--text-light);
  text-shadow: 0 0 30px rgba(64, 95, 172, 0.8);
}

.subtitle {
  color: var(--secondary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Tech Grid */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 50px;
}

.tech-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.tech-item:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* Flex Row / Ventaja */
.flex-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

.flex-row > div {
  flex: 1;
}

.tag {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ventaja-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.check-list {
  list-style: none;
  margin-top: 30px;
}

.check-list li {
  margin-bottom: 15px;
  font-weight: 500;
  font-size: 1.05rem;
}

.web-mockup {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.mockup-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.mockup-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.mockup-header span:nth-child(1) { background: #ff5f56; }
.mockup-header span:nth-child(2) { background: #ffbd2e; }
.mockup-header span:nth-child(3) { background: #27c93f; }

.mockup-body {
  background: #1e293b;
  padding: 30px;
  border-radius: 8px;
  color: #fff;
}

.bar {
  background: rgba(39, 201, 63, 0.2);
  border-left: 4px solid #27c93f;
  margin-bottom: 15px;
  padding: 10px 15px;
  font-family: monospace;
  font-size: 1rem;
}

/* FAQs */
.accordion {
  max-width: 800px;
  margin: 40px auto 0;
}

.accordion-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 10px;
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.accordion-header.active::after {
  content: '-';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content p {
  padding-bottom: 20px;
  color: rgba(255,255,255,0.8);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-align:center;
}

.btn.primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.btn.primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.hero-content .btn.primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #000;
}

.hero-content .btn.primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

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

.btn.secondary:hover {
  background-color: var(--text-light);
  color: var(--text-dark);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn.small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background-color: #03142e;
  padding: 60px 5% 30px;
  color: var(--text-light);
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-links a, .social-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 10px;
}

.footer-links a:hover, .social-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* Cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 20px 5%;
  z-index: 10000;
  border-top: 2px solid var(--accent-color);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(110%);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Chatbot Floating UI */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 15px;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 10px 25px rgba(5, 38, 85, 0.7);
  border: none;
  cursor: pointer;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.floating-cta:hover {
  transform: translateY(-5px);
  background-color: var(--accent-color);
}

.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  z-index: 9998;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s, transform 0.3s;
  border: 1px solid #ccc;
}

.chat-widget.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.chat-header {
  background: var(--primary-color);
  color: white;
  padding: 15px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
}

.chat-body {
  padding: 15px;
  background: #f0f2f5;
  min-height: 200px;
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  padding: 10px 15px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 0.9rem;
}

.msg.bot {
  background: white;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.msg.user {
  background: #E1F5C4; /* whatsapp light green */
  color: #111;
  align-self: flex-end;
  border-bottom-right-radius: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

.chat-opt {
  background: white;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.chat-opt:hover {
  background: var(--accent-color);
  color: white;
}

.chat-footer {
  background: white;
  padding: 15px;
  border-top: 1px solid #ddd;
}

.chat-footer input {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

/* Responsive */
@media (max-width: 900px) {
  .flex-row {
    flex-direction: column;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; 
  }
}

