/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-dark: #1e3776;
  --blue-primary: #2847a0;
  --teal: #18b6a6;
  --yellow: #daa23a;
  --orange: #f8a019;
  --gray-light: #f7fafb;
  --gray-text: #6b7280;
  --dark: #1f2937;
}

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

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

/* Header */
.header {
  background: var(--blue-dark);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.back-button:hover {
  opacity: 0.8;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.8;
}

.btn-primary, .btn-green, .btn-outline, .btn-blue, .btn-yellow, .btn-white {
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
  text-align: center;
}

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

.btn-green {
  background: var(--teal);
  color: white;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 0.875rem 1.875rem;
}

.btn-outline:hover {
  background: white;
  color: var(--blue-dark);
}

.btn-blue {
  background: var(--blue-primary);
  color: white;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-yellow {
  background: var(--yellow);
  color: white;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-white {
  background: white;
  color: var(--blue-primary);
  padding: 1rem 2rem;
  font-size: 1rem;
  border: 2px solid white;
}

.btn-primary:hover, .btn-green:hover, .btn-blue:hover, .btn-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Hero Sections */
.hero, .hero-simple {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%);
  padding: 6rem 0;
  color: white;
}

.hero-simple {
  padding: 4rem 0;
  text-align: center;
}

.hero-simple h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-simple p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1, .hero-text .title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-text .subtitle {
  color: var(--teal);
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.badge {
  display: inline-block;
  background: rgba(24, 182, 166, 0.2);
  color: var(--teal);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-text);
  line-height: 1.8;
}

.bg-white {
  background: white;
}

.bg-gray {
  background: var(--gray-light);
}

.bg-blue {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%);
  color: white;
}

.bg-blue .section-header h2,
.bg-blue .section-header p {
  color: white;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
  background: var(--gray-light);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-icon {
  color: var(--blue-primary);
  margin-bottom: 1.5rem;
}

.feature-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.7;
}

/* Benefits Section */
.benefits-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: rgba(24, 182, 166, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.benefit-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.benefit-item p {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.7;
}

.benefits-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Profile Section */
.profile-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.profile-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.profile-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-text);
  margin-bottom: 1.5rem;
}

.profile-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Mission Cards */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.mission-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.mission-icon {
  width: 80px;
  height: 80px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.mission-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.mission-card p {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.7;
}

/* Reasons Section */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

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

.reason-icon {
  margin: 0 auto 1.5rem;
  color: var(--teal);
}

.reason-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.reason-card p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

.form-card {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.form-card p {
  font-size: 0.95rem;
  color: var(--gray-text);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

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

.form-group label .required {
  color: #e53e3e;
}

.form-group small {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
}

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

.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.form-buttons button {
  flex: 1;
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.form-buttons button[type="submit"] {
  background: #6366f1;
  color: white;
  border: none;
}

.form-buttons button[type="submit"]:hover {
  background: #4f46e5;
}

.form-buttons button[type="reset"] {
  background: #e5e7eb;
  color: var(--dark);
  border: none;
}

.form-buttons button[type="reset"]:hover {
  background: #d1d5db;
}

.info-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.info-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--dark);
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.info-icon {
  width: 24px;
  height: 24px;
  color: var(--blue-primary);
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.info-content p,
.info-content a {
  font-size: 0.95rem;
  color: var(--blue-primary);
  text-decoration: none;
  line-height: 1.6;
}

.info-content a:hover {
  text-decoration: underline;
}

.map-container {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-top: 2rem;
}

.map-container h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  border: none;
}

.map-address {
  text-align: center;
  margin-top: 1rem;
  color: var(--gray-text);
  font-size: 0.95rem;
}

/* CTA Cards */
.cta-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.cta-card {
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.cta-card.orange {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: white;
}

.cta-card.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.cta-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-card p {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.7;
}

/* FAQ Section */
.faq-categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.faq-category {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-category-title {
  background: linear-gradient(135deg, var(--blue-primary) 0%, #4f5fd6 100%);
  color: white;
  padding: 1.5rem 2rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.faq-items {
  padding: 1rem;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item:hover {
  background: var(--gray-light);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
}

.faq-arrow {
  transition: transform 0.3s;
  color: var(--blue-primary);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 1rem;
}

.faq-answer p {
  color: var(--gray-text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-cta {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  margin-top: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.faq-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.faq-cta p {
  font-size: 1.1rem;
  color: var(--gray-text);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

/* Resources Section */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.resource-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.resource-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.resource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-content {
  padding: 2rem;
}

.resource-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.resource-content p {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.resource-link {
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.resource-link:hover {
  color: var(--teal);
}

/* Footer */
.footer {
  background: #0f1419;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-column p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-column a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-column a:hover {
  color: white;
}

.footer-column h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

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

.footer-column ul li a {
  text-decoration: none;
  font-size: 0.95rem;
}

.social-link {
  display: inline-block;
  margin-top: 1rem;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: rgba(255,255,255,0.7);
  transition: fill 0.2s;
}

.social-link:hover svg {
  fill: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.footer-bottom a {
  color: var(--teal);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content,
  .benefits-two-col,
  .profile-section,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .feature-grid,
  .reasons-grid,
  .resources-grid,
  .cta-cards {
    grid-template-columns: 1fr;
  }

  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .hero-text h1, .hero-text .title,
  .hero-simple h1 {
    font-size: 2rem;
  }

  .section-header h2,
  .profile-content h2 {
    font-size: 1.75rem;
  }

  .hero, .hero-simple {
    padding: 3rem 0;
  }

  section {
    padding: 3rem 0;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .form-card,
  .info-card,
  .map-container {
    padding: 2rem;
  }
}
/* POPUP CSS APPENDED - KonexIA Exit Intent */
.exit-popup-overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 99999; background: rgba(5,10,20,0.65); backdrop-filter: blur(4px); }
.exit-popup-overlay.active { display:flex; }
.exit-popup { width:92%; max-width:640px; background:var(--card-bg, #ffffff); border-radius:16px; padding:1.75rem; box-shadow:0 20px 60px rgba(11,17,30,0.55); text-align:left; color:var(--text-dark, #001b23); overflow:hidden; }
.exit-popup h2{ font-size:1.6rem; margin-bottom:0.5rem; color:var(--blue-dark,#0b5460); }
.exit-popup p{ color:var(--muted,#5f6b73); line-height:1.6; margin-bottom:1rem; font-size:1rem; }
.exit-variant-tag{ display:inline-block; background: rgba(24,182,166,0.12); color:var(--teal,#18b6a6); padding:6px 10px; border-radius:999px; font-weight:700; margin-bottom:0.75rem; }
.exit-actions{ display:flex; gap:12px; margin-top:12px; align-items:center; justify-content:flex-start; }
.exit-popup .btn-primary.btn-green{ background:var(--teal,#18b6a6); color:#fff; padding:12px 18px; border-radius:10px; font-weight:800; text-decoration:none; }
.exit-popup .btn-outline{ background:transparent; color:var(--text-dark,#001b23); border:2px solid rgba(31,41,55,0.08); padding:10px 14px; border-radius:10px; }
.exit-note{ margin-top:8px; font-size:0.92rem; color:var(--muted,#5f6b73); }
@media (max-width:768px){ .exit-popup{ padding:1rem; max-width:92%; } .exit-popup h2{ font-size:1.2rem; } .exit-actions{ flex-direction:column; } .exit-popup .btn-primary.btn-green{ width:100%; text-align:center; } }