/* =============================================
   TESTIMONIOS Y MEJORAS DE FORMULARIO
   ============================================= */

/* ========== FEATURE LIST CHECKS (Generic) ========== */
.feature-list {
  list-style: none;
  margin-top: 30px;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(42, 165, 160, 0.15);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list .check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list .check svg {
  width: 14px;
  height: 14px;
  color: var(--pink);
}

.feature-list strong {
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}

.feature-list span {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* ========== SECCIÓN TESTIMONIOS (P3) ========== */
.testimonials {
  background: linear-gradient(135deg, rgba(42, 165, 160, 0.05) 0%, rgba(242, 143, 177, 0.05) 100%);
  padding: 100px 0;
}

/* ========== CARRUSEL TESTIMONIOS ========== */
.testimonials-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  gap: 24px;
}

.testimonials-carousel-container {
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  border-radius: 12px;
}

.testimonials-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.testimonial-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(42, 165, 160, 0.08);
  transition: var(--transition);
  border: 1px solid rgba(42, 165, 160, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(42, 165, 160, 0.12);
  transform: translateY(-4px);
}

.testimonial-header {
  margin-bottom: 20px;
}

.testimonial-header .stars {
  display: flex;
  gap: 4px;
}

.testimonial-header .stars svg {
  width: 18px;
  height: 18px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: auto;
  font-style: italic;
  quotes: '"' '"';
}

.testimonial-text::before {
  content: open-quote;
  font-size: 2rem;
  color: var(--teal);
  opacity: 0.2;
  vertical-align: -0.4em;
  margin-right: 4px;
}

.testimonial-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(42, 165, 160, 0.1);
  text-align: center;
}

.testimonial-footer strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}

.testimonial-footer span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ========== BOTONES CARRUSEL ========== */
.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(42, 165, 160, 0.2);
}

.carousel-btn:hover {
  background: var(--teal-dark);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(42, 165, 160, 0.3);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

/* ========== INDICADORES (DOTS) ========== */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(42, 165, 160, 0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: var(--teal);
  transform: scale(1.2);
}

.indicator:hover {
  background: var(--teal);
}

/* ========== MEJORAS FORMULARIO (P1 + P4) ========== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid rgba(42, 165, 160, 0.2);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
  background: white;
  color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 165, 160, 0.1);
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.02);
}

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

.contact-form button {
  padding: 14px 28px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-form button:hover:not(:disabled) {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form button svg {
  width: 18px;
  height: 18px;
}

/* Error y validación */
.field-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =============================================
   MODAL DE SERVICIOS (PLAN HÍBRIDO)
   ============================================= */

.service-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.service-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: sticky;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  color: var(--text);
}

.modal-close svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.modal-body {
  padding: 32px;
  animation: fadeIn 0.4s ease 0.1s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.modal-body h2 {
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 600;
}

.modal-body > p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* Highlights */
.modal-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(42, 165, 160, 0.05) 0%, rgba(242, 143, 177, 0.05) 100%);
  border-radius: 12px;
  border-left: 4px solid var(--teal);
}

.modal-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.modal-highlight span {
  font-size: 1.2rem;
  display: inline-block;
  min-width: 24px;
}

/* Secciones del modal */
.modal-section {
  margin-bottom: 20px;
}

.modal-section h4 {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section h4::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--teal);
  border-radius: 50%;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.modal-list li span {
  color: var(--teal);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-when {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-when div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  padding: 8px;
  border-radius: 6px;
  transition: var(--transition);
}

.modal-when div::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Acciones del modal */
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(42, 165, 160, 0.1);
  flex-wrap: wrap;
}

.modal-actions .btn-primary,
.modal-actions .btn-outline {
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.modal-actions .btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
}

.modal-actions .btn-outline {
  background: white;
  color: var(--teal);
  border-color: var(--teal);
}

.modal-actions .btn-outline:hover {
  background: rgba(42, 165, 160, 0.05);
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

.modal-actions svg {
  width: 16px;
  height: 16px;
}

/* Mejora de las tarjetas de servicio */
.service-card {
  cursor: pointer;
  position: relative;
}

.service-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  padding: 12px;
  background: rgba(42, 165, 160, 0.05);
  border-radius: 8px;
}

.highlight {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-learn-more {
  background: var(--teal);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-block;
  text-decoration: none;
}

.btn-learn-more:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 165, 160, 0.2);
}

/* Responsivo Modal */
@media (max-width: 768px) {
  .modal-content {
    max-height: 85vh;
    border-radius: 12px;
  }

  .modal-body {
    padding: 24px;
  }

  .modal-body h2 {
    font-size: 1.5rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn-primary,
  .modal-actions .btn-outline {
    flex: 1;
  }

  .modal-highlights {
    padding: 16px;
  }
}

.field-error::before {
  content: "⚠️";
}

.field-label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text);
}

.field-label::after {
  content: attr(data-required);
}

/* Notificaciones */
.form-notification {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-notification-success {
  background: #2ecc71;
  color: white;
}

.form-notification-error {
  background: #e74c3c;
  color: white;
}

.form-notification-info {
  background: var(--teal);
  color: white;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .testimonials-carousel-wrapper {
    gap: 16px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .testimonial-card {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .testimonials-carousel-wrapper {
    gap: 12px;
    margin-top: 48px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .testimonials-carousel-wrapper {
    gap: 8px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }

  .testimonial-card {
    padding: 16px;
  }

  .testimonial-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .testimonial-footer strong {
    font-size: 0.9rem;
  }

  .testimonial-footer span {
    font-size: 0.75rem;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  .carousel-indicators {
    gap: 8px;
    margin-top: 16px;
  }

  .contact-form button {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
