/* =====================================================
   Estilos mejorados para Tecknia - Landing Page
   Utilizando solo librerías existentes
====================================================== */

/* Estilos generales */
.highlight-text {
  color: #1698b0;
  font-weight: 800;
}

.section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem;
}

/* Sección de innovación */
.innovation-section {
  position: relative;
  padding: 6rem 2rem;
}

.feature-enhanced {
  position: relative;
  padding: 2rem;
  border-radius: 10px;
  background: rgba(1, 27, 55, 0.7);
  border: 1px solid rgba(22, 152, 176, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.feature-enhanced:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(22, 152, 176, 0.8);
}

.feature-icon {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: linear-gradient(45deg, #1698b0, #16b098);
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 1rem;
}

.feature-stat {
  margin-top: 1.5rem;
  font-size: 2rem;
  font-weight: 800;
  color: #1698b0;
}

.feature-stat span {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: normal;
}

.innovation-showcase {
  margin-top: 4rem;
  text-align: center;
}

.innovation-showcase h3 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: #1698b0;
}

.showcase-metrics {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.metric {
  padding: 2rem;
  margin: 1rem;
  min-width: 150px;
}

.metric-value {
  font-size: 3rem;
  font-weight: 800;
  color: #1698b0;
  line-height: 1;
}

.metric-label {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Sección de funcionalidades */
.features-section {
  position: relative;
  padding: 6rem 2rem;
  background-color: rgb(1 27 55 / 56%);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  height: auto;
  min-height: 450px;
  perspective: 1000px;
}

.feature-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.feature-card:hover .feature-card-inner {
  transform: rotateY(180deg);
}

.feature-card-front, .feature-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.feature-card-front {
  background: rgba(1, 27, 55, 0.7);
  border: 1px solid rgba(22, 152, 176, 0.3);
}

.feature-card-back {
  background: rgba(22, 152, 176, 0.9);
  color: #fff;
  transform: rotateY(180deg);
  text-align: left;
}

.feature-icon-large {
  width: 80px;
  height: 80px;
  line-height: 80px;
  font-size: 2rem;
  background: linear-gradient(45deg, #1698b0, #16b098);
  color: #fff;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.feature-list {
  text-align: left;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.tech-evolution {
  margin-top: 5rem;
  text-align: center;
}

.tech-evolution h3 {
  margin-bottom: 3rem;
  font-size: 1.8rem;
  color: #1698b0;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #1698b0, transparent);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-date {
  position: absolute;
  width: 60px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: #1698b0;
  color: #fff;
  border-radius: 5px;
  top: 15px;
}

.timeline-item:nth-child(odd) .timeline-date {
  right: -80px;
}

.timeline-item:nth-child(even) .timeline-date {
  left: -80px;
}

.timeline-content {
  padding: 20px;
  background: rgba(1, 27, 55, 0.7);
  border-radius: 10px;
  border: 1px solid rgba(22, 152, 176, 0.3);
}

.timeline-content h4 {
  margin-top: 0;
  color: #1698b0;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #011b37;
  border: 3px solid #1698b0;
  top: 20px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 10px rgba(22, 152, 176, 0.8);
}

.timeline-item:nth-child(odd)::after {
  right: -13px;
}

.timeline-item:nth-child(even)::after {
  left: -13px;
}

/* Sección de casos de éxito */
.success-cases-section {
  padding: 6rem 2rem;
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
}

.testimonial {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  background: rgba(1, 27, 55, 0.7);
  border-radius: 10px;
  padding: 2rem;
  border: 1px solid rgba(22, 152, 176, 0.3);
  transition: all 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(22, 152, 176, 0.8);
}

.testimonial-content {
  position: relative;
  padding-left: 20px;
  margin-bottom: 1.5rem;
}

.testimonial-content::before {
  content: '"';
  font-size: 4rem;
  color: rgba(22, 152, 176, 0.3);
  position: absolute;
  top: -20px;
  left: -10px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-info h4 {
  margin: 0;
  color: #1698b0;
}

.author-info p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.clients-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

.client-logo {
  width: 150px;
  height: 80px;
  background: rgba(1, 27, 55, 0.7);
  border: 1px solid rgba(22, 152, 176, 0.3);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.client-logo:hover {
  border-color: #1698b0;
  color: #fff;
  transform: scale(1.05);
}

/* Sección de contacto */
.contact-section {
  padding: 6rem 2rem;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1200px;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  padding: 2rem;
  background: rgba(1, 27, 55, 0.7);
  border-radius: 10px;
  border: 1px solid rgba(22, 152, 176, 0.3);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: linear-gradient(45deg, #1698b0, #16b098);
  color: #fff;
  border-radius: 50%;
  margin-right: 1rem;
  font-size: 0.8rem;
}

.contact-form-wrapper {
  flex: 2;
  min-width: 280px;
  padding: 2rem;
  background: rgba(1, 27, 55, 0.7);
  border-radius: 10px;
  border: 1px solid rgba(22, 152, 176, 0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row input {
  flex: 1;
  padding: 12px 15px;
  background: rgba(1, 27, 55, 0.5);
  border: 1px solid rgba(22, 152, 176, 0.3);
  border-radius: 5px;
  color: #fff;
  transition: all 0.3s ease;
}

.form-row input:focus {
  outline: none;
  border-color: #1698b0;
}

textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px 15px;
  background: rgba(1, 27, 55, 0.5);
  border: 1px solid rgba(22, 152, 176, 0.3);
  border-radius: 5px;
  color: #fff;
  margin-bottom: 1.5rem;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: #1698b0;
}

/* Footer mejorado */
.enhanced-footer {
  background: rgba(1, 20, 40, 0.9);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.footer-logo-img {
  max-width: 150px;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  min-width: 150px;
  margin-right: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: #1698b0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-column a:hover {
  color: #1698b0;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 1rem auto 0;
  padding-top: 0rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    text-align: left;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
    text-align: left;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline::after {
    left: 40px;
  }
  
  .timeline-item::after {
    left: 27px;
  }
  
  .timeline-item:nth-child(odd)::after {
    right: auto;
    left: 27px;
  }
  
  .timeline-item:nth-child(odd) .timeline-date {
    right: auto;
    left: -80px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .feature-card {
    max-width: 100%;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
  }
}
