/* Mejoras avanzadas de SEO y SEM para Noosferica Cloud */

/* Mejoras para destacar palabras clave */
.keyword-highlight {
  color: var(--primary-color);
  font-weight: 600;
}

.location-highlight {
  color: var(--accent-color);
  font-weight: 600;
}

/* Mejoras para CTAs */
.cta-primary {
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 71, 160, 0.2);
  z-index: 1;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  z-index: -1;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 71, 160, 0.3);
}

.cta-primary:hover::before {
  left: 0;
}

.cta-accent {
  background: var(--gradient-accent);
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 122, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 122, 0, 0);
  }
}

/* Mejoras para secciones de landing */
.landing-section {
  position: relative;
  padding: 5rem 0;
  background-color: white;
}

.landing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/pattern-bg.svg');
  background-size: cover;
  opacity: 0.05;
  z-index: 0;
}

.landing-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.landing-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.landing-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.landing-cta {
  margin-top: 2rem;
}

/* Mejoras para testimonios */
.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '\f10d';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 2rem;
  color: rgba(0, 71, 160, 0.1);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

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

.testimonial-author-info h4 {
  margin-bottom: 0.25rem;
  color: var(--primary-color);
}

.testimonial-author-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Mejoras para FAQ con Schema.org */
.faq-schema {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.faq-schema-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 1.5rem;
}

.faq-schema-header h3 {
  margin: 0;
  color: white;
  font-size: 1.3rem;
}

.faq-schema-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-schema-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-schema-question::after {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  transition: var(--transition);
}

.faq-schema-item.active .faq-schema-question::after {
  transform: rotate(180deg);
}

.faq-schema-answer {
  padding: 0 1.5rem 1.25rem;
  display: none;
}

.faq-schema-item.active .faq-schema-answer {
  display: block;
}

/* Mejoras para breadcrumbs con Schema.org */
.breadcrumbs {
  background-color: var(--light-color);
  padding: 0.75rem 0;
  margin-top: 70px;
}

.breadcrumbs-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}

.breadcrumbs-item:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: #999;
}

.breadcrumbs-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
}

.breadcrumbs-current {
  color: var(--text-color);
  font-size: 0.9rem;
}

/* Mejoras para tarjetas de servicios */
.service-card-enhanced {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card-enhanced:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.service-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.service-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card-enhanced:hover .service-card-image img {
  transform: scale(1.1);
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.service-card-title {
  color: white;
  margin: 0;
  font-size: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.service-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-description {
  margin-bottom: 1.5rem;
}

.service-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.service-card-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-card-features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--success-color);
  position: absolute;
  left: 0;
  top: 2px;
}

.service-card-cta {
  margin-top: auto;
}

/* Mejoras para formularios de conversión */
.conversion-form {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.conversion-form-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.conversion-form-description {
  text-align: center;
  margin-bottom: 2rem;
}

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

.form-control-enhanced {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-secondary);
  transition: var(--transition);
}

.form-control-enhanced:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 71, 160, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-required {
  color: var(--accent-color);
  margin-left: 0.25rem;
}

.form-error {
  color: var(--danger-color);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.form-control-enhanced.is-invalid {
  border-color: var(--danger-color);
}

.form-control-enhanced.is-invalid + .form-error {
  display: block;
}

.form-submit {
  width: 100%;
  padding: 0.75rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background: var(--gradient-accent);
}

.form-privacy {
  font-size: 0.85rem;
  margin-top: 1rem;
  text-align: center;
}

/* Mejoras para secciones de estadísticas */
.stats-enhanced {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 0;
}

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

.stat-item-enhanced {
  text-align: center;
}

.stat-icon-enhanced {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.stat-counter-enhanced {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-accent);
}

.stat-title-enhanced {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Mejoras para secciones de llamada a la acción */
.cta-section {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

.cta-btn {
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

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

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

.cta-btn-secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

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

/* Responsive */
@media (max-width: 768px) {
  .landing-title {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .stat-counter-enhanced {
    font-size: 2.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .landing-title {
    font-size: 1.8rem;
  }
  
  .landing-description {
    font-size: 1rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-description {
    font-size: 1rem;
  }
}
