/* ========================================
   SERVICIOS GRID - DISEÑO MODERNO
   Speck Developers - Paleta Azul y Blanco
   ======================================== */

/* Contenedor Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 25px 0;
}

/* Tarjeta de Servicio */
.service-card {
  background: #ffffff;
  border: 2px solid #1E5F8C;
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Efecto Hover en Tarjeta */
.service-card:hover {
  background: linear-gradient(135deg, #1E5F8C 0%, #2B7BA9 100%);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(30, 95, 140, 0.3);
  border-color: #1E5F8C;
}

/* Cambio de color del título al hacer hover */
.service-card:hover h4 {
  color: #ffffff;
}

/* Cambio de color del icono al hacer hover */
.service-card:hover .service-icon {
  background: #ffffff;
  color: #1E5F8C;
}

.service-card:hover .service-icon i {
  color: #1E5F8C;
}

/* Contenedor del Icono */
.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1E5F8C 0%, #2B7BA9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  transition: all 0.3s ease;
}

/* Icono (Bootstrap Icons) */
.service-icon i {
  font-size: 28px;
  color: #ffffff;
  transition: all 0.3s ease;
}

/* Título del Servicio */
.service-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1E5F8C;
  margin: 0;
  transition: all 0.3s ease;
  line-height: 1.4;
}

/* ========================================
   CORRECCIÓN DE TÍTULO Y TIPOGRAFÍA
   ======================================== */

/* Título de la sección - Diseño moderno con gradiente azul */
.section-header h2 {
  background: linear-gradient(135deg, #1E5F8C 0%, #2B7BA9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 36px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Poppins', 'Segoe UI', 'Arial', sans-serif;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

/* Línea decorativa debajo del título */
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #1E5F8C 0%, #2B7BA9 100%);
  border-radius: 2px;
}

/* Centrar el título */
.section-header {
  text-align: center;
}

/* Subtítulo/descripción de la sección */
.section-header p {
  color: #333333;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  font-family: 'Poppins', 'Segoe UI', 'Arial', sans-serif;
  margin-bottom: 0;
}

/* Texto del contenido principal */
.content p {
  color: #555555;
  font-size: 16px;
  line-height: 1.8;
  font-family: 'Poppins', 'Segoe UI', 'Arial', sans-serif;
  font-weight: 400;
  margin-bottom: 20px;
}

/* ========================================
   CARRUSEL 3D - WEBSITES SLIDER
   ======================================== */

/* Contenedor principal del slider */
.websites-slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Browser Mockup */
.browser-mockup {
  background: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* Browser Header */
.browser-header {
  background: #e0e0e0;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.browser-dots span:nth-child(1) {
  background: #ff5f56;
}

.browser-dots span:nth-child(2) {
  background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
  background: #27c93f;
}

.browser-url {
  flex: 1;
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}

.browser-url i {
  color: #4caf50;
  font-size: 12px;
}

.url-text {
  color: #333;
  font-weight: 500;
}

/* Contenedor 3D del carrusel */
.websites-container-3d {
  position: relative;
  width: 100%;
  height: 450px;
  perspective: 1200px;
  overflow: hidden;
  background: #fff;
}

.carousel-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Slides individuales - AHORA CON IMÁGENES REALES */
.website-slide-3d {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  opacity: 0;
  transform: rotateY(90deg) translateZ(300px);
  cursor: pointer;
}

/* Slide activo */
.website-slide-3d.active {
  opacity: 1;
  transform: rotateY(0deg) translateZ(0px);
  z-index: 10;
}

/* Slide anterior/siguiente */
.website-slide-3d.prev {
  opacity: 0;
  transform: rotateY(-90deg) translateZ(300px);
}

/* Contenedor de imagen real - SIN EFECTOS HOVER */
.website-slide-3d img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;
  background: #ffffff;
  transition: none;
  transform: none;
}

/* Eliminar cualquier efecto hover */
.website-slide-3d:hover,
.website-slide-3d.active:hover,
.website-slide-3d:hover img,
.website-slide-3d.active:hover img {
  transform: none;
  transition: none;
}

/* Indicadores del slider */
.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s;
}

.indicator.active {
  background: #1E5F8C;
  width: 30px;
  border-radius: 6px;
}

.indicator:hover {
  background: #aaa;
}

/* ========================================
   VISOR MODAL PARA IMÁGENES EN ALTA RESOLUCIÓN
   ======================================== */

.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease-in-out;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content-wrapper {
  position: relative;
  max-width: 70%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.modal-image {
  width: auto;
  height: auto;
  max-width: 70vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  user-select: none;
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: #fff;
  color: #333;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  z-index: 10001;
}

.modal-close:hover {
  background: #1E5F8C;
  color: #fff;
  transform: rotate(90deg);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  z-index: 10001;
}

.modal-nav:hover {
  background: #1E5F8C;
  color: #fff;
  transform: translateY(-50%);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 10001;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .section-header p {
    font-size: 16px;
  }
  
  .websites-container-3d {
    height: 400px;
  }
  
  .modal-content-wrapper {
    max-width: 80%;
  }
  
  .modal-image {
    max-width: 80vw;
    max-height: 75vh;
  }
  
  .modal-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .modal-prev {
    left: 10px;
  }
  
  .modal-next {
    right: 10px;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .service-card {
    padding: 18px 12px;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
  }
  
  .service-icon i {
    font-size: 24px;
  }
  
  .service-card h4 {
    font-size: 15px;
  }
  
  .section-header h2 {
    font-size: 26px;
  }
  
  .section-header p {
    font-size: 15px;
  }
  
  .content p {
    font-size: 15px;
  }
  
  .websites-container-3d {
    height: 350px;
  }
  
  .modal-content-wrapper {
    max-width: 90%;
    max-height: 75%;
  }
  
  .modal-image {
    max-width: 90vw;
    max-height: 70vh;
  }
  
  .modal-close {
    top: -40px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  
  .modal-nav {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .modal-counter {
    font-size: 12px;
    padding: 6px 15px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .services-grid {
    gap: 10px;
  }
  
  .service-card {
    padding: 15px 10px;
  }
  
  .service-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
  }
  
  .service-icon i {
    font-size: 20px;
  }
  
  .service-card h4 {
    font-size: 14px;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
  
  .section-header p {
    font-size: 14px;
  }
  
  .websites-container-3d {
    height: 300px;
  }
  
  .browser-header {
    padding: 8px 10px;
  }
  
  .browser-dots span {
    width: 8px;
    height: 8px;
  }
  
  .browser-url {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
  }
  
  .modal-nav {
    display: none;
  }
  
  .modal-counter {
    bottom: 10px;
  }
}

/* ========================================
   ANIMACIONES AL CARGAR
   ======================================== */

/* Animación más suave al cargar */
.service-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   VARIANTES OPCIONALES
   ======================================== */

/* Si quieres 4 columnas en pantallas muy grandes */
@media (min-width: 1400px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* ========================================
   FIX MODAL MÓVILES - IMAGEN GRANDE Y BOTONES
   ======================================== */

@media (max-width: 480px) {
  /* Imagen MÁS GRANDE en móviles */
  .modal-content-wrapper {
    max-width: 95% !important;
    max-height: 85% !important;
  }
  
  .modal-image {
    max-width: 95vw !important;
    max-height: 80vh !important;
  }
  
  /* MOSTRAR botones de navegación */
  .modal-nav {
    display: flex !important;
    width: 50px;
    height: 50px;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.95);
  }
  
  .modal-prev {
    left: 10px;
  }
  
  .modal-next {
    right: 10px;
  }
  
  /* Botón cerrar visible */
  .modal-close {
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    font-size: 26px;
  }
  
  /* Contador más visible */
  .modal-counter {
    bottom: 15px;
    font-size: 14px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
  }
}

/* ======================================== */