/* Extracted inline styles from index.php */

/* Mobile optimizations - Efecto glass en #home solo para móvil */
@media (max-width: 768px) {
  #home {
    position: relative;
    padding-top: 100px !important;
    padding-bottom: 60px !important;
    min-height: 85vh !important;
  }
  
  #home .container {
    position: relative;
    z-index: 2;
  }
  
  #home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border-radius: 0;
    z-index: 1;
  }
  
  /* Ocultar card de servicios en móvil para más aire */
  #home .card {
    display: none !important;
  }
  
  /* Centrar contenido en móvil */
  #home .col-lg-6 {
    text-align: center;
  }
  
  /* Optimizar título - Más pequeño y con mejor espaciado */
  #home h1 {
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7);
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
  }
  
  /* Reducir descripción y agregar espacio */
  #home .lead {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 2rem !important;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Botones más compactos y centrados */
  #home .mt-4 {
    margin-top: 2rem !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
  }
  
  #home .btn-lg {
    font-size: 0.95rem !important;
    padding: 0.7rem 1.8rem !important;
    width: 100%;
    max-width: 280px;
  }
  
  #home .btn.ms-2 {
    margin-left: 0 !important;
  }
}

/* Optimización de Cards de Servicios en Móvil */
@media (max-width: 768px) {
  /* Cards de servicios - Layout vertical con ícono arriba */
  #planes .card .card-body.row {
    flex-direction: column !important;
    text-align: center;
  }
  
  #planes .card .card-body .col-4,
  #planes .card .card-body .col-8 {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Ícono centrado arriba */
  #planes .card .card-body figure {
    margin: 0 auto 1rem;
    max-width: 100px;
  }
  
  #planes .card .card-body figure img {
    width: 80px !important;
    height: auto;
  }
  
  /* Título más pequeño */
  #planes .card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  
  /* Descripción más compacta */
  #planes .card .small {
    font-size: 0.82rem !important;
    line-height: 1.4;
    margin-bottom: 0.8rem;
  }
  
  /* Precio destacado */
  #planes .card .h4 {
    font-size: 1.3rem !important;
    margin: 0.5rem 0;
    font-weight: 700;
  }
  
  /* Espaciado de cards */
  #planes .col-md-4 {
    margin-bottom: 1.2rem;
  }
  
  #planes .card {
    padding: 1rem !important;
  }
}

/* Carousel control sizes */
.carousel-control-prev, .carousel-control-next {
  width: 40px;
}

/* Portfolio items */
#portafolio .portfolio-item {
  width: 100%;
  padding-top: 75%; /* proporción cuadrada */
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#portafolio .portfolio-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}
.modal-content img {
  width: 100%;
  height: auto;
}

/* Clientes / logos */
/* --- ESTILOS GENERALES Y DESKTOP --- */
#clientes picture .logo {
  width: 132px;
  object-fit: contain;
  max-width: 200px;
  filter: grayscale(1);
  opacity: 0.6;
  transition: all 1s ease-in-out;
}

#clientes picture {
  height: 220px;
  width: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #fdfdfd88;
  box-sizing: border-box; 
}

#clientes picture:hover .logo,
#clientes picture .logo.active-color {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
}

/* --- ESTILOS MÓVIL (Pantallas menores a 992px) --- */
@media (max-width: 991px) {
  #clientsCarousel .d-flex {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    justify-content: flex-start !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
  }

  #clientes picture {
    flex: 0 0 auto;
    width: 49vw;      /* Ocupa el 70% del ancho del móvil */
    height: 200px;    /* altura mayor para logos grandes */
    margin-right: 5px;/* espacio entre tarjetas */
    border-right: 1px solid #eee;
    scroll-snap-align: center;
  }

  #clientes picture .logo {
    filter: grayscale(0);
    opacity: 1;
  }
}
