/* ===== VARIABLES Y RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0066FF;
  --secondary: #8B5CF6;
  --accent: #00E5FF;
  --bg-light: #F8F9FA;
  --text-dark: #1F2937;
  --text-gray: #6B7280;
  --border: #E5E7EB;
  --white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

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

/* ===== HEADER Y NAVEGACIÓN ===== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

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

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

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #F8F9FA 0%, #E0E7FF 100%);
  padding: 6rem 2rem;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

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

/* ===== CONTAINER Y SECCIONES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ===== CARACTERÍSTICAS ===== */
.features {
  background: var(--white);
}

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

.feature-card {
  padding: 2rem;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
  border-color: var(--primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ===== CASOS DE USO ===== */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.use-case-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.use-case-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.use-case-stat {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 1rem 0;
}

/* ===== PRICING ===== */
.pricing-section {
  background: var(--bg-light);
}

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

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
}

.price-period {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.features-list {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
}

.features-list li {
  padding: 0.75rem 0;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border);
}

.features-list li:before {
  content: "✓ ";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.pricing-card .btn-primary {
  width: 100%;
  margin-top: 1rem;
}

/* ===== STACK TECNOLÓGICO ===== */
.tech-section {
  background: var(--white);
}

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

.tech-card {
  background: linear-gradient(135deg, #F0F4FF 0%, #F5EBFF 100%);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.tech-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.tech-list {
  list-style: none;
  color: var(--text-gray);
  font-size: 0.95rem;
}

.tech-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.tech-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== TESTIMONIOS ===== */
.testimonials-section {
  background: var(--bg-light);
}

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

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-dark);
}

.testimonial-role {
  color: var(--primary);
  font-size: 0.9rem;
}

.metrics {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.metric {
  background: var(--bg-light);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* ===== RECURSOS ===== */
.resources-section {
  background: var(--white);
}

.resources-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

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

.resource-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.resource-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.resource-card h3 {
  margin: 1rem 0;
  color: var(--text-dark);
}

.resource-meta {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* ===== FORMULARIO DE CONTACTO ===== */
.contact-section {
  background: var(--bg-light);
}

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

.contact-intro {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-gray);
}

form {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

label .required {
  color: var(--primary);
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-submit {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
}

.form-submit:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: translateY(-2px);
}

.contact-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-info h3 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

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

.info-block h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.info-block p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
footer {
  background: #1F2937;
  color: #D1D5DB;
  padding: 3rem 2rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9CA3AF;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
}

.social-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary);
}

/* ===== PÁGINA 404 ===== */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.page-404-content {
  max-width: 600px;
}

.error-number {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.page-404 h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.page-404 p {
  color: var(--text-gray);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-dark);
  color: var(--white);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  z-index: 999;
  border-top: 1px solid var(--border);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-text {
  flex: 1;
  font-size: 0.95rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--primary);
  color: var(--white);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 80px;
  right: 2rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 350px;
  max-height: 500px;
  display: none;
  flex-direction: column;
  z-index: 900;
}

.chat-widget.open {
  display: flex;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 1rem;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  background: var(--bg-light);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.chat-input-area {
  border-top: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
}

.chat-input-area input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.chat-input-area button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.chat-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 102, 255, 0.4);
  transition: all 0.3s;
  z-index: 901;
}

.chat-toggle:hover {
  transform: scale(1.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem;
  }

  .nav-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 3rem 1rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
  }

  section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-buttons {
    width: 100%;
    flex-wrap: wrap;
  }

  .chat-widget {
    width: 300px;
    bottom: 70px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }

  .nav-menu {
    display: none;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .feature-card,
  .pricing-card,
  .testimonial-card {
    padding: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .chat-widget {
    width: calc(100vw - 2rem);
    right: 1rem;
  }
}
