/* Estilos específicos para la página de servicios */
.hero-services {
  background: linear-gradient(rgba(7, 66, 71, 0.85), rgba(29, 67, 138, 0.85)), url("../images/Seguridad_4.jpg");
  background-size: cover;
  background-position: center;
  padding: 8rem 2rem 6rem;
  text-align: center;
  color: white;
  margin-bottom: 3rem;
  position: relative;
}

.hero-services h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-services p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  line-height: 1.6;
}

.service-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.category-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: linear-gradient(135deg, #074247 0%, #0a5c64 100%);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #00bfb2, #1d438a);
}

.service-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
  position: relative;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00bfb2, #1d438a);
  z-index: -1;
  opacity: 0.6;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
  text-align: center;
}

.service-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #00bfb2, #1d438a);
}

.service-content {
  padding: 0 2rem 2rem;
  flex-grow: 1;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.service-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  text-align: justify;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #00bfb2;
  font-weight: bold;
}

.service-footer {
  padding: 1rem 2rem 2rem;
  text-align: center;
}

.service-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9em;
  font-weight: bold;
}

.service-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: white !important;
}

.cta-section {
  background: linear-gradient(135deg, #074247 0%, #1d438a 100%);
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 5rem;
  border-radius: 15px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-section p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 0.8rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta-btn.primary {
  background: white;
  color: #074247;
}

.cta-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}
.delay-5 {
  animation-delay: 0.5s;
}
.delay-6 {
  animation-delay: 0.6s;
}

/* Estilos para modales de formularios */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  background: linear-gradient(135deg, #074247 0%, #0a5c64 100%);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  position: relative;
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.4s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: white;
}

.modal-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  margin: 0;
  color: white;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.form-submit {
  background: linear-gradient(90deg, #00bfb2, #1d438a);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 100%;
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-message {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 8px;
  text-align: center;
}

.form-message.success {
  background: rgba(0, 191, 178, 0.2);
  color: #00bfb2;
}

.form-message.error {
  background: rgba(255, 0, 0, 0.2);
  color: #ff6b6b;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-services h1 {
    font-size: 2.2rem;
  }
  .hero-services p {
    font-size: 1rem;
  }
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    padding: 0 1rem;
  }
  .cta-section h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-services {
    padding: 6rem 1rem 4rem;
  }
  .hero-services h1 {
    font-size: 1.8rem;
  }
  .service-categories {
    flex-direction: column;
    align-items: center;
  }
  .category-btn {
    width: 80%;
  }
}

/* Wrapper adjustments for services page */
#wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  padding-top: 80px;
}

/* Modificación para el hero con imagen de fondo */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 66, 71, 0.85), rgba(29, 67, 138, 0.85));
  z-index: -1;
}

/* Ajustes para el formulario de cotización */
#modal-cotizacion .modal-header h3 {
  content: "Solicitar solución personalizada";
}

.form-submit {
  content: "Solicitar solución";
}
