/* Custom CSS for Firmas Perú */

:root {
  --primary-color: #2563EB;
  --primary-rgb: 37, 99, 235;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f8f9fa;
  --border-color: #e5e7eb;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
  /* Forzar el color para evitar el rojo de Bootstrap */
  outline: none !important;
  box-shadow: none !important;
}

.btn-primary:focus,
.btn-primary.focus {
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.5) !important;
}

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

.btn-outline-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
}

.btn-lg {
  padding: 12px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.98) !important; /* Forzar blanco casi opaco */
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  max-height: 50px;
  width: auto;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>') repeat;
  opacity: 0.1;
  pointer-events: none;
}

.hero-section h1 {
  color: white;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-illustration {
  text-align: center;
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.hero-illustration i {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Stats Section */
.stats-section {
  padding: 60px 0;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 10px;
  font-weight: 500;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.benefit-card,
.pricing-card,
.integration-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.benefit-card:hover,
.pricing-card:hover,
.integration-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
}

/* Benefit Cards */
.benefit-card {
  padding: 40px 30px;
  text-align: center;
  margin-bottom: 30px;
}

.benefit-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: inline-block;
}

.benefit-card h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.benefit-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.pricing-header {
  text-align: center;
  margin-bottom: 60px;
}

.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.pricing-tab {
  padding: 12px 30px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.pricing-tab:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

.pricing-card {
  padding: 40px 30px;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  background: white;
  border: 2px solid transparent;
}

.pricing-card.popular {
  border: 3px solid var(--primary-color);
  transform: scale(1.05);
}

.pricing-card.personalized-plan {
  border: 3px dashed var(--primary-color);
  background-color: var(--primary-light);
  transform: scale(1.05);
}

.pricing-card.personalized-plan:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

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

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li:before {
  content: "✓ ";
  color: var(--primary-color);
  font-weight: 700;
  margin-right: 10px;
}

/* Integration Items */
.integration-item {
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 30px;
}

.integration-item h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.integration-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.integration-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.integration-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
}

.contact-form {
  background: white;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 25px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Footer */
footer {
  background-color: #1a1a1a;
  color: white;
  padding: 60px 0 20px;
}

footer h6 {
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
  font-size: 1rem;
}

footer p {
  color: #bbb;
  font-size: 0.9rem;
  line-height: 1.8;
}

footer a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer .footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  margin-top: 30px;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color); /* Usar el color principal */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 999;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  background-color: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0 40px;
    margin-top: 60px;
  }

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

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

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

  .whatsapp-button {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 24px;
  }

  .contact-form {
    padding: 30px;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .navbar-brand img {
    max-height: 40px;
  }

  .stat-item {
    padding: 20px 10px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .benefit-card,
  .pricing-card,
  .integration-item {
    padding: 30px 20px;
  }

  .pricing-tabs {
    gap: 10px;
  }

  .pricing-tab {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.5rem;
  }

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

  .section-subtitle {
    font-size: 1rem;
  }

  .pricing-price {
    font-size: 2rem;
  }

  .contact-form {
    padding: 20px;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .whatsapp-button {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

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

/* Strikethrough for requirements */
.strikethrough-text {
  text-decoration: line-through;
  color: var(--text-light) !important;
}

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

.benefit-card,
.pricing-card,
.integration-item {
  animation: fadeInUp 0.6s ease-out forwards;
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
.benefit-card:nth-child(6) { animation-delay: 0.6s; }

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.text-muted {
  color: var(--text-light) !important;
}

.bg-light {
  background-color: var(--bg-light) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}
