/* ==========================================================================
   1. Global Styles & Variables
   ========================================================================== */
:root {
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --secondary-color: #28a745;
  --secondary-dark: #218838;
  --contact-bg: #2b6cb0;
  --contact-button: #3182ce;
  --modal-blue: #1da1f2; /* Nuevo color para el modal */
  --text-color: #333;
  --light-text-color: #fff;
  --subtle-text-color: #888; /* Nuevo color para texto secundario */
  --background-color: #f4f7f6;
  --card-background: #fff;
  --footer-background: #343a40;
  --border-color: #cbd5e0;
  --input-border-color: #ddd; /* Nuevo color para bordes de input */
  --shadow-color: rgba(0, 0, 0, 0.1);
  --font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}
/* ... (Estilos globales sin cambios) ... */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}
body.modal-open {
  overflow: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   2. Header & Navigation (sin cambios)
   ========================================================================== */
.header {
  background-color: var(--card-background);
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: var(--primary-color);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.login-btn {
  padding: 0.6rem 1.2rem;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
.login-btn:hover {
  background-color: var(--primary-dark);
}
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
}
.hamburger-menu span {
  width: 2rem;
  height: 0.25rem;
  background: var(--text-color);
  border-radius: 10px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ... (Secciones 3, 4, 5, 6 sin cambios significativos) ... */
.hero {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--light-text-color);
  text-align: center;
  padding: 100px 20px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.cta-button {
  padding: 1rem 2.5rem;
  background-color: var(--secondary-color);
  color: var(--light-text-color);
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.cta-button:hover {
  background-color: var(--secondary-dark);
}
.content-section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.content-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}
.content-section > p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}
.pricing-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}
.pricing-card {
  background-color: var(--card-background);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 280px;
  max-width: 340px;
  min-height: 610px;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  border-color: #bfdbfe;
}
.pricing-card h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin: 0;
  min-height: 2rem;
  text-align: center;
}
.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0 1.5rem;
  min-height: 3rem;
  text-align: center;
}
.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}
.features-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 1.1rem 1rem;
  flex-grow: 1;
  background: #f8fafc;
  border: 1px solid #e8eef5;
  border-radius: 10px;
}
.features-list li {
  margin: 0;
  padding: 0.48rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.35;
}
.features-list .fa-check {
  color: var(--secondary-color);
  margin-top: 0.18rem;
  flex: 0 0 auto;
}
.trial-text {
  text-align: center;
  flex-grow: 1;
  margin: 0 0 1.75rem;
  padding: 2rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e8eef5;
  border-radius: 10px;
  line-height: 1.55;
}
.buy-btn {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  color: var(--light-text-color);
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
  margin-top: auto;
}
.buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}
.buy-btn.open-modal-btn {
  background-color: var(--primary-color);
}
.buy-btn.open-modal-btn:hover {
  background-color: var(--primary-dark);
}
.buy-btn.trial-btn {
  background-color: var(--secondary-color);
}
.buy-btn.trial-btn:hover {
  background-color: var(--secondary-dark);
}
.pricing-card.popular {
  border: 2px solid var(--primary-color);
  box-shadow: 0 12px 30px rgba(0, 123, 255, 0.16);
  padding-top: 3.3rem;
}
.pricing-card.popular:hover {
  border-color: var(--primary-dark);
  box-shadow: 0 16px 34px rgba(0, 123, 255, 0.22);
}
.badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 0.55rem 1.6rem;
  border-radius: 0 0 14px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
#contacto {
  padding: 0;
}
.contact-banner {
  background-color: var(--contact-bg);
  background-image: radial-gradient(
    var(--card-background) 1px,
    transparent 1px
  );
  background-size: 10px 10px;
  background-blend-mode: overlay;
  color: var(--light-text-color);
  text-align: center;
  padding: 4rem 1rem;
}
.contact-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.contact-banner p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}
.phone-number {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 1.5rem 0;
}
.whatsapp-info {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.whatsapp-info i,
.phone-number i {
  margin-right: 0.5rem;
}
.call-button {
  background-color: var(--contact-button);
  color: var(--light-text-color);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.call-button:hover {
  background-color: var(--contact-bg);
}
.call-button i {
  margin-right: 0.5rem;
}
.form-section {
  background-color: #edf2f7;
  padding: 4rem 1rem;
}
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card-background);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
form {
  display: grid;
  gap: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0aec0;
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.checkbox-group input {
  width: auto;
}
.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
}
.recaptcha-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  padding: 10px;
  max-width: 300px;
}
.recaptcha-checkbox {
  display: flex;
  align-items: center;
}
.recaptcha-checkbox input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}
.recaptcha-checkbox label {
  font-size: 14px;
}
.recaptcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.recaptcha-logo img {
  width: 32px;
}
.recaptcha-logo span {
  font-size: 10px;
  color: #555;
}
.form-note {
  font-size: 0.9rem;
  color: #718096;
}
.submit-btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--contact-button);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.submit-btn:hover {
  background-color: var(--contact-bg);
}
.footer {
  background-color: var(--footer-background);
  color: var(--light-text-color);
  text-align: center;
  padding: 20px;
}

/* ==========================================================================
   7. Modal (ESTILOS ACTUALIZADOS PARA AMBOS MODALES)
   ========================================================================== */
.modal {
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background-color: var(--card-background);
  padding: 2rem 2.25rem 2.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  width: 90%;
  max-width: 480px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.modal.active .modal-content {
  transform: scale(1);
}
.close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 25px;
  line-height: 1;
  font-weight: bold;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.close-btn:hover,
.close-btn:focus {
  color: var(--text-color);
}
.modal-logo-text {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.modal-logo-text .logo-mkt {
  background-color: var(--modal-blue);
  color: var(--light-text-color);
  padding: 0.2rem 0.8rem;
  border-radius: 8px;
  margin-left: 0.2rem;
}
.modal-content h2 {
  font-size: 1.55rem;
  color: var(--text-color);
  font-weight: 700;
  margin: 0 0 0.65rem;
}
.modal-subtitle {
  color: var(--subtle-text-color);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: -0.45rem auto 0.8rem;
  max-width: 360px;
}
.modal-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.input-with-icon {
  position: relative;
}
.input-with-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--subtle-text-color);
}
.input-with-icon input {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 2.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.input-with-icon input:hover {
  border-color: #94a3b8;
}
.input-with-icon input:focus {
  border-color: var(--modal-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.16);
  background: #fff;
}
.input-with-icon #toggle-password {
  left: auto;
  right: 15px;
  cursor: pointer;
}
.modal .submit-btn {
  background-color: var(--modal-blue);
  border-radius: 8px;
  min-height: 50px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}
.modal .submit-btn:focus-visible {
  outline: 3px solid rgba(29, 161, 242, 0.28);
  outline-offset: 2px;
}
.modal .submit-btn:hover {
  background-color: #1a91da;
}
.modal-terms,
.modal-login-prompt {
  font-size: 0.85rem;
  color: var(--subtle-text-color);
}
.modal-terms a,
.modal-login-prompt a {
  color: var(--modal-blue);
  text-decoration: none;
}
.modal-terms a:hover,
.modal-login-prompt a:hover {
  text-decoration: underline;
}

/* NUEVOS ESTILOS PARA MODAL LOGIN */
.forgot-password-link {
  display: block;
  text-align: center;
  color: var(--modal-blue);
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}
.forgot-password-link:hover {
  text-decoration: underline;
}
.modal-footer {
  width: 100%;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--input-border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--subtle-text-color);
}
.modal-footer a {
  color: var(--modal-blue);
  text-decoration: none;
}
.modal-footer a:hover {
  text-decoration: underline;
}

.language-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.language-selector img {
  width: 20px;
}
.language-selector select {
  border: none;
  background: transparent;
  color: var(--subtle-text-color);
  font-size: 0.9rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* ==========================================================================
   8. Responsive Styles
   ========================================================================== */
@media (max-width: 768px) {
  /* ... (estilos responsive sin cambios) ... */
  .nav-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--card-background);
    box-shadow: 0 4px 8px var(--shadow-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  .nav-menu-container.active {
    max-height: 500px;
  }
  .nav-menu {
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
  }
  .nav-item {
    padding: 1rem 2rem;
    text-align: center;
  }
  .login-btn {
    display: none;
  }
  .hamburger-menu {
    display: flex;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-container {
    padding: 2rem 1.5rem;
  }
  .modal-content {
    padding: 2rem 1.5rem;
  }
}

/* Custom Dropdown for Language Selector */
.custom-dropdown-container {
  position: relative;
}

.lang-select-native {
  display: none; /* Hide native select */
}

.custom-dropdown {
  border: 1px solid var(--input-border-color);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  width: 200px;
  margin: 0 auto;
}

.selected-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.selected-option img {
  width: 20px;
}

.selected-option .fa-chevron-down {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.custom-dropdown.open .selected-option .fa-chevron-down {
  transform: rotate(180deg);
}

.custom-dropdown .options {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background-color: var(--card-background);
  border: 1px solid var(--input-border-color);
  border-radius: 4px;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: none;
  z-index: 10;
  width: 200px;
  margin: 0 auto;
  margin-bottom: 5px;
}

.custom-dropdown.open .options {
  display: block;
}

.options li {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.options li:hover {
  background-color: #f0f0f0;
}

.options li.selected {
  background-color: #e0e0e0;
}

.options li img {
  width: 20px;
}

.logo-part-whats {
  color: #000;
}

.logo-part-mkt-bubble {
  display: inline-block;
  background-color: #29abe2;
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  position: relative;
  font-size: 1.4rem;
  line-height: 1;
}

.iti {
  width: 100%;
}

.iti__selected-flag {
  border-radius: 4px 0 0 4px;
}

.iti input[type="tel"] {
  border-radius: 0 4px 4px 0 !important;
}

.iti__country-name {
  display: none;
}

.logo-part-mkt-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: #29abe2;
  border-bottom: 0;
  border-left-width: 4px;
  border-right-width: 4px;
}
/* =========================================
   VALIDACIÓN SEMÁFORO (Email en tiempo real)
   ========================================= */

/* ESTADO: VÁLIDO (VERDE) */
.input-valid,
.input-valid:focus {
  /* <-- El truco está aquí: aplicarlo también al :focus */
  border: 3px solid #28a745 !important;
  background-color: #f0fff4 !important;
  outline: none !important; /* Elimina el borde azul/negro del navegador */
  box-shadow: none !important; /* Elimina sombras grises si las hubiera */
}

/* ESTADO: INVÁLIDO (ROJO) */
.input-invalid,
.input-invalid:focus {
  border: 3px solid #dc3545 !important;
  background-color: #fff5f5 !important;
  outline: none !important; /* Elimina el borde azul/negro del navegador */
  box-shadow: none !important;
}
/* =========================================
   ESTILOS MODAL DE ÉXITO (Replica Exacta)
   ========================================= */
.success-content {
  text-align: center;
  padding: 3rem 2rem !important; /* Espaciado interno amplio */
  max-width: 500px !important; /* Ancho similar a la imagen */
  border-radius: 8px;
}

/* El círculo verde con el check */
.success-icon-circle {
  width: 80px;
  height: 80px;
  border: 3px solid #28a745; /* Borde Verde */
  border-radius: 50%; /* Círculo perfecto */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto; /* Centrado horizontal */
}

.success-icon-circle i {
  color: #28a745; /* Icono Verde */
  font-size: 40px;
}

.success-title {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 10px !important;
  font-weight: 600;
}

.success-message {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 30px !important;
}

/* Botón OK Azul */
.btn-success-custom {
  background-color: #2196f3; /* Azul brillante como la imagen */
  color: white;
  border: none;
  padding: 10px 50px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-success-custom:hover {
  background-color: #1976d2; /* Azul un poco más oscuro al pasar el mouse */
}
/* Estado de carga del botón de contacto */
.submit-btn:disabled {
  background-color: #6c757d !important; /* Gris de espera */
  cursor: not-allowed;
  opacity: 0.8;
  transform: none !important; /* Quita efectos de hover si existen */
}
