/* ============================================
   CALIXPRESS - Responsive (Móviles y Tablets)
   ============================================ */

@media (max-width: 768px) {
  .logo {
    width: 210px;
    height: 110px;
  }

  .logo img {
    height: 150px;
  }
  h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .btn-header {
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Carrusel horizontal limitado a la sección de confianza (trust-grid)
     para móviles: permite swipe y mantiene la sección de servicios como grid */
  .trust-grid {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    width: 100%;
  }

  .trust-grid::-webkit-scrollbar {
    height: 8px;
  }

  .trust-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
  }

  .trust-card {
    flex: 0 0 88%;
    scroll-snap-align: center;
    min-width: 240px;
    margin: 0;
  }

  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }

  .floating-actions {
    bottom: 15px;
    right: 15px;
  }

  .floating-btn {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }

  .theme-toggle {
    top: 10px;
    right: 10px;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .step-label {
    font-size: 0.65rem;
  }

  .testimonial-image {
    width: 160px;
    height: 160px;
  }

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

  .service-card h2 {
    font-size: 1.2rem;
  }

  .font-small {
    font-size: 0.85rem;
  }
}

@media (min-width: 560px) and (max-width: 768px) {
  .trust-card {
    flex: 0 0 48%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .btn-header {
    width: 100%;
    max-width: 320px;
    padding: 0.8rem 1.4rem;
    font-size: 0.9rem;
  }

  .logo {
    width: 190px;
    height: 100px;
    font-size: 2.5rem;
  }

  .logo img {
    height: 135px;
  }

  header {
    padding: 1.5rem 0.5rem;
  }

  .container {
    padding: 0.75rem;
  }

  .stat-card {
    padding: 1.5rem 1rem;
  }

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

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

  .stat-label {
    font-size: 0.85rem;
  }

  .service-card {
    padding: 1.5rem;
    min-height: 300px;
    background-position: center center;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  .service-card h2 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .features-list li {
    font-size: 0.85rem;
    padding: 0.35rem 0;
  }

  .btn-select {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  .modal-content {
    padding: 1rem;
    margin: 0.5rem;
    border-radius: 15px;
  }

  .modal-header {
    margin-bottom: 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }

  .progress-steps {
    margin-bottom: 1.5rem;
  }

  .step-circle {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }

  .step-label {
    font-size: 0.6rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group select {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .btn-nav {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .whatsapp-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  .theme-toggle {
    top: 8px;
    right: 8px;
    padding: 0.35rem;
  }

  .theme-icon {
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
  }

  .testimonials-section {
    padding: 1.5rem 0.75rem;
    margin: 2rem 0;
  }

  .testimonial-card {
    padding: 1rem;
  }

  .testimonial-image {
    width: 140px;
    height: 140px;
  }

  /* En móviles, hacer overlay más uniforme para que las imágenes no queden como una hilera
     y asegurar que la imagen cubra todo el contenedor correctamente */
  .service-card::after {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.86) 0%,
      rgba(15, 23, 42, 0.72) 30%,
      rgba(15, 23, 42, 0.6) 100%
    );
  }

  .testimonial-stars {
    font-size: 1.2rem;
  }

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

  .testimonial-author {
    font-size: 1rem;
  }

  .testimonial-role {
    font-size: 0.8rem;
  }

  .carousel-dots {
    margin-top: 1.5rem;
    gap: 0.4rem;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .dot.active {
    width: 25px;
  }

  footer {
    padding: 1.5rem 1rem;
    margin-top: 2rem;
  }

  footer p {
    font-size: 0.85rem;
    margin: 0.35rem 0;
  }

  footer a {
    font-size: 0.85rem;
  }
}
