/* ===============================
   HERO - Estilo Moderno y Dinámico
================================== */
/* Ajustes específicos para pantallas pequeñas */
@media (max-width: 640px) {
  .progress-title {
    font-size: 2rem;
    white-space: normal; /* Permite que el texto se ajuste a varias líneas */
    line-height: 1.2;
  }

  .progress-subtitle {
    font-size: 1rem;
  }
}

/* Contenedor del Hero sin opacidad */
.progress-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
  }
  
  /* Video de fondo completo */
  .progress-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  
  /* Contenedor del texto del Hero */
  .progress-text {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 1rem;
    color: #FFFFFF;
  }
  
  /* Efecto de Máquina de Escribir */
  .progress-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    border-right: 4px solid rgba(255, 255, 255, 0.75);
    animation: typing 4s steps(40) 1s 1 normal both, blink 0.75s step-end infinite;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8), -2px -2px 10px rgba(0, 0, 0, 0.8);
  }
  
  /* Subtítulo Mejorado */
  .progress-subtitle {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 400;
    margin-top: 0.5rem;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
    animation-delay: 4.2s;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8), -2px -2px 10px rgba(0, 0, 0, 0.8);
  }
  
  /* Botón Interactivo */
  .progress-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #F4B400;
    color: #000000;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulse 1.5s infinite;
  }
  
  .progress-btn:hover {
    background-color: #FFD700;
    transform: scale(1.05);
  }
  
  /* Efecto de pulsación */
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
  }
  
  /* Texto destacado con efecto de brillo */
  .highlight-text {
    color: #F4B400;
    font-weight: 700;
    animation: glow 1.5s ease-in-out infinite alternate;
  }
  
  /* Animación de Máquina de Escribir */
  @keyframes typing {
    from { width: 0; }
    to { width: 100%; }
  }
  
  @keyframes blink {
    50% { border-color: transparent; }
  }
  
  /* Efecto de aparición suave para el subtítulo */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Partículas Dinámicas */
  .particles-container {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
  }
  
  .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #F4B400;
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
  }
  
  .particle:nth-child(1) { top: 10%; left: 20%; animation-duration: 6s; }
  .particle:nth-child(2) { top: 30%; left: 70%; animation-duration: 5s; }
  .particle:nth-child(3) { top: 60%; left: 40%; animation-duration: 7s; }
  .particle:nth-child(4) { top: 80%; left: 15%; animation-duration: 4s; }
  .particle:nth-child(5) { top: 45%; left: 80%; animation-duration: 6.5s; }
  
  /* Animación de partículas flotantes */
  @keyframes float {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.7; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
  }

  
  /* ===============================
   Servicios - Solución de Desbordamiento y Animación de Modal
================================== */

/* === Estilos Generales de las Tarjetas (Cards) === */
.service-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  max-width: 360px;
  margin: 0 auto;
}

/* Imágenes de las Tarjetas (centradas y sobresalientes) */
.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transition: transform 0.3s ease;
}

/* Efecto Zoom al pasar el Mouse */
.service-card:hover img {
  transform: scale(1.05);
}

/* Contenido de las Tarjetas */
.service-card .card-content {
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Título de las Tarjetas */
.service-card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #003459;
  margin-bottom: 0.5rem;
}

/* Descripción de las Tarjetas */
.service-card p {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Botón de las Tarjetas (Estilizado Material Tailwind) */
.service-card button {
  display: inline-block;
  padding: 0.75rem 1rem;
  background-color: #003459;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  width: 100%;
}

.service-card button:hover {
  background-color: #F4B400;
  transform: translateY(-3px);
}

/* === Estilos del Modal (Glassmorphism) === */
/* === Estilos del Modal (Glassmorphism) === */
.overlay-glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  display: none; /* Oculto por defecto */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Mostrar el modal cuando está activo */
.overlay-glass.show {
  display: flex;
  opacity: 1;
}

.modal-glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(25px);
  border-radius: 12px;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  text-align: left;
  color: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: scale(0.95);
  opacity: 0;
}

.overlay-glass.show .modal-glass {
  transform: scale(1);
  opacity: 1;
}

/* Botón de Cerrar del Modal */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.close-btn:hover {
  transform: rotate(90deg);
}


/* === Responsividad === */
@media (max-width: 768px) {
  .service-card {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .service-card img {
    height: 180px;
  }

  .modal-glass {
    width: 95%;
    padding: 15px;
  }
}




/* Estilo del Portafolio */
section#portafolio {
  background-color: #F2F4F6;
}

/* Efecto de Zoom en las imágenes */
section#portafolio .shadow-md:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Botones Mejorados */
section#portafolio a {
  transition: background 0.3s ease;
}

section#portafolio a:hover {
  background-color: #FFD700;
}



/* Flecha hacia arriba */

.scroll-to-top {
  display: none;
  position: fixed;
  bottom: 8px;
  right: 8px;
  background-color: #F4B400;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease-in-out, transform 0.3s;
  z-index: 50;
}

.scroll-to-top.show {
  display: flex;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}


/* Flecha de regreso al inicio (Scroll Suave Mejorado) */

  .scroll-to-top {
    display: none;
    position: fixed;
    bottom: 8px;
    right: 8px;
    background-color: #F4B400;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out;
    z-index: 1000; /* Superpuesto por encima de todos */
  }
  .scroll-to-top.show {
    display: flex;
  }

  .whatsapp-bubble {
    position: fixed;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #25D366, #128C7E);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
    cursor: pointer;
    border: 3px solid #fff;
    z-index: 1000; /* Superpuesto por encima de todos */
  }

  .whatsapp-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
  }

  .whatsapp-bubble svg {
    fill: white;
    transition: transform 0.3s;
  }

  .whatsapp-bubble:hover svg {
    transform: scale(1.15);
  }

