/* --- ESTILOS PÁGINA SERVICIOS --- */

/* === 1. HEADER ESTÁTICO & MENÚ ACTIVO === */
.nexcore-header.static-header {
  position: relative;
  top: 0;
  background-color: #eaf6fb;
  padding: 15px 5%;
}

.text-blue {
  color: var(--color-primary);
}

/* Forzar color del enlace activo en esta página */
.menu-bar a.active-link {
  color: var(--color-primary) !important; /* Naranja */
  position: relative;
}

/* Línea decorativa debajo del enlace activo */
.menu-bar a.active-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

/* === 2. HERO SECTION === */
.services-hero {
  background-color: #eaf6fb;
  padding: 80px 0 60px;
  text-align: center;
}

.services-hero .main-title {
  font-size: 3.5rem;
  color: var(--color-secondary);
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.services-hero .hero-desc {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: #555;
  line-height: 1.5;
}

/* === 3. LISTADO DE SERVICIOS & ANIMACIONES (MODIFICADO) === */
.services-list-section {
  padding: 60px 0;
  background-color: var(--color-white);
  overflow-x: hidden;
}

.services-wrapper {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Tarjeta Base - AHORA ESTÁTICA */
.service-detail-card {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 40px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;

  /* La tarjeta siempre es visible, no se anima */
  opacity: 1;
}

/* --- ANIMACIONES SOLO EN LAS IMÁGENES --- */

/* Configuración base de la imagen (Estado oculto/salida) */
.service-img {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  height: 400px;

  /* Estado inicial: invisible y un poco más pequeña */
  opacity: 0;
  transform: scale(0.8) translateY(30px);

  /* Transición suave tipo "pop" para entrada y salida */
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* ESTADO ACTIVO: Cuando el JS detecta scroll (Imagen visible) */
.service-detail-card.active .service-img {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Hover simple solo para zoom interno de la imagen */
.service-detail-card:hover .service-img img {
  transform: scale(1.05);
}

/* Estilos de contenido - AHORA FIJOS */
.service-detail-card.reverse {
  flex-direction: row-reverse;
}

.service-content {
  flex: 1;
  /* El texto es estático, sin opacidad inicial ni transformaciones */
  opacity: 1;
  transform: none;
}

.icon-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.icon-header i {
  font-size: 2.5rem;
  color: var(--color-primary);
}

.icon-header h2 {
  font-size: 2.2rem;
  color: var(--color-secondary);
  font-weight: 800;
  margin: 0;
}

.service-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.check-list {
  list-style: none;
  margin-bottom: 30px;
}

.check-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #444;
  font-weight: 500;
}

.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--color-primary);
  position: absolute;
  left: 0;
  top: 2px;
}

.btn-solicitar {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 12px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(234, 91, 12, 0.3);
}

.btn-solicitar:hover {
  background-color: var(--color-secondary);
  transform: translateY(-3px);
}

/* === 4. FORMULARIO DE CONTACTO === */
.contact-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.contact-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-secondary);
  font-weight: 800;
  margin-bottom: 50px;
}

.contact-info-bar {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.info-item {
  text-align: center;
}

.icon-circle {
  width: 60px;
  height: 60px;
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: var(--color-secondary);
  font-size: 1.5rem;
  transition: all 0.3s;
}

.info-item:hover .icon-circle {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-5px);
}

.info-item h4 {
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 5px;
}
.info-item p {
  color: #666;
  font-size: 0.95rem;
}

.form-wrapper {
  background-color: var(--color-white);
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

.main-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-full textarea {
  width: 100%;
  padding: 15px 20px;
  background-color: #f4f6f8;
  border: 1px solid transparent;
  border-radius: 15px;
  font-family: var(--font-main);
  font-size: 1rem;
  color: #333;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-full textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(234, 91, 12, 0.1);
}

.form-full textarea {
  resize: vertical;
}

.form-submit {
  margin-top: 30px;
  text-align: center;
}

.btn-submit-form {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 15px 50px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(234, 91, 12, 0.3);
}

.btn-submit-form:hover {
  background-color: var(--color-secondary);
  transform: scale(1.02);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .service-detail-card,
  .service-detail-card.reverse {
    flex-direction: column;
    padding: 30px;
  }

  .service-img {
    width: 100%;
    height: 250px;
    order: -1;
    /* En móvil desactivamos la animación para que no moleste */
    transform: none !important;
    opacity: 1 !important;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-wrapper {
    padding: 30px;
  }
}

/* --- CAJA DEL LOGO --- */
.logo-box {
  background-color: var(--color-white);
  padding: 10px 30px;
  border-radius: 35px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  min-width: 230px;
  transition: transform 0.3s ease;
}

.logo-box:hover {
  transform: translateY(-2px);
}

.logo-img {
  max-height: 120px;
  width: auto;
  display: block;
  border-radius: 15px;
  object-fit: contain;
}
