/* =========================================================
   Estilos para páginas internas
   ========================================================= */

/* Hero de páginas internas */
.page-hero {
  min-height: 45vh;
  background-image: url('../images/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 9, 22, 0.85) 0%, rgba(2, 9, 22, 0.65) 60%, rgba(19, 74, 176, 0.45) 100%);
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--pcm-white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Hero de rastreo con carousel */
.hero-rastreo {
  min-height: 85vh;
  position: relative;
  overflow: hidden;
  background-color: var(--pcm-dark);
}

.hero-rastreo .carousel,
.hero-rastreo .carousel-inner,
.hero-rastreo .carousel-item {
  height: 100%;
}

.carousel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: zoomSlow 8s ease-in-out infinite alternate;
}

@keyframes zoomSlow {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-rastreo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 9, 22, 0.88) 0%, rgba(2, 9, 22, 0.65) 50%, rgba(19, 74, 176, 0.35) 100%);
  z-index: 1;
}

.hero-rastreo .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.4);
  border: 0;
  transition: background-color var(--transition-fast);
}

.hero-rastreo .carousel-indicators button.active {
  background-color: var(--pcm-white);
}

.hero-rastreo .container {
  z-index: 2;
}

/* Tarjeta de servicio */
.service-card {
  height: 100%;
  background-color: var(--pcm-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pcm-blue) 0%, var(--pcm-blue-light) 100%);
  color: var(--pcm-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  color: var(--pcm-black);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--pcm-gray);
  margin-bottom: 1rem;
}

.service-card .features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.service-card .features-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--pcm-gray);
}

.service-card .features-list li::before {
  content: '\f00c';
  font-family: 'FontAwesome';
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--pcm-blue);
  font-size: 0.875rem;
}

/* =========================================================
   Página de Contacto
   ========================================================= */

.contact-form .form-control {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form .form-control:focus {
  border-color: var(--pcm-blue);
  box-shadow: 0 0 0 0.2rem rgba(19, 74, 176, 0.15);
}

.contact-form .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--pcm-black);
}

.contact-info {
  background-color: var(--pcm-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-list {
  margin: 0;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pcm-blue) 0%, var(--pcm-blue-light) 100%);
  color: var(--pcm-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 1rem;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* =========================================================
   Página de Rastreo
   ========================================================= */

.product-card {
  background-color: var(--pcm-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  height: 100%;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background-color: var(--pcm-gray-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow: hidden;
}

.product-image img {
  max-height: 100%;
  width: auto;
  transition: transform var(--transition-base);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-card h3 {
  color: var(--pcm-black);
  margin-bottom: 0.75rem;
}

.product-card p {
  color: var(--pcm-gray);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.industry-card {
  background-color: var(--pcm-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.industry-card:hover,
.industry-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.industry-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.industry-card:hover .industry-image {
  transform: scale(1.05);
}

.platform-feature {
  padding: 1.5rem 1rem;
}

.platform-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.platform-icon img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
}

/* =========================================================
   Página de Ayuda
   ========================================================= */

.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  background-color: var(--pcm-white);
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--pcm-black);
  background-color: var(--pcm-white);
  padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(19, 74, 176, 0.04);
  color: var(--pcm-blue-dark);
  box-shadow: none;
}

.accordion-button:focus {
  border-color: rgba(19, 74, 176, 0.25);
  box-shadow: 0 0 0 0.2rem rgba(19, 74, 176, 0.1);
}

.accordion-body {
  padding: 1.25rem;
  color: var(--pcm-gray);
}

.accordion-body p {
  margin-bottom: 0;
}

.support-card {
  background-color: var(--pcm-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  height: 100%;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.support-card:hover,
.support-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.support-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pcm-blue) 0%, var(--pcm-blue-light) 100%);
  color: var(--pcm-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.support-form {
  background-color: var(--pcm-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}

.support-form .form-control {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.support-form .form-control:focus {
  border-color: var(--pcm-blue);
  box-shadow: 0 0 0 0.2rem rgba(19, 74, 176, 0.15);
}

.support-form .form-label {
  font-weight: 500;
  color: var(--pcm-black);
}

/* =========================================================
   Página de Privacidad
   ========================================================= */

.legal-content h2 {
  color: var(--pcm-black);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pcm-gray-light);
}

.legal-content p,
.legal-content li {
  color: var(--pcm-gray);
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

/* =========================================================
   Páginas de detalle de servicios
   ========================================================= */

.service-detail {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.service-detail h2 {
  color: var(--pcm-black);
  margin-bottom: 1rem;
}

.service-detail p {
  color: var(--pcm-gray);
  line-height: 1.7;
}

.feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--pcm-gray-light);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.features-list-extended {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list-extended li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--pcm-gray);
}

.features-list-extended li::before {
  content: '\f00c';
  font-family: 'FontAwesome';
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--pcm-blue);
  font-size: 0.9rem;
}

/* Tarjetas de precios */
.pricing-card {
  background-color: var(--pcm-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  height: 100%;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover,
.pricing-card:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border: 2px solid var(--pcm-blue);
  position: relative;
}

.pricing-card .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pcm-blue) 0%, var(--pcm-blue-light) 100%);
  color: var(--pcm-white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 1rem;
  border-radius: 999px;
}

.pricing-card h3 {
  color: var(--pcm-black);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pcm-blue);
  line-height: 1.2;
}

.pricing-card .price small {
  font-size: 1rem;
  color: var(--pcm-gray);
  font-weight: 400;
}

.pricing-card .pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.pricing-card .pricing-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--pcm-gray);
}

.pricing-card .pricing-features li::before {
  content: '\f00c';
  font-family: 'FontAwesome';
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--pcm-blue);
  font-size: 0.875rem;
}

.pricing-card .pricing-footer {
  font-size: 0.875rem;
  color: var(--pcm-gray);
  text-align: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Fondo oscuro semitransparente para captions */
.bg-dark-50 {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem 1.25rem;
}

/* Galería de servicios */
.service-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-gallery .carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Iconos de características */
.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(19, 74, 176, 0.08) 0%, rgba(19, 74, 176, 0.04) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon img {
  max-width: 60%;
  max-height: 60%;
}

/* Responsive */
@media (max-width: 991.98px) {
  .page-hero {
    min-height: 35vh;
    padding: 5rem 0 3rem;
  }

  .hero-rastreo {
    min-height: 70vh;
  }

  .platform-icon {
    width: 72px;
    height: 72px;
  }

  .service-gallery .carousel-item img {
    height: 320px;
  }

  .service-detail {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 767.98px) {
  .page-hero {
    min-height: 30vh;
    text-align: center;
  }

  .page-hero h1 {
    font-size: var(--text-3xl);
  }

  .hero-rastreo {
    min-height: 60vh;
  }

  .hero-rastreo h1 {
    font-size: var(--text-3xl);
  }

  .product-image {
    height: 160px;
  }

  .industry-image {
    min-height: 180px;
  }

  .contact-info,
  .support-form,
  .solution-card,
  .support-card,
  .product-card,
  .pricing-card {
    padding: 1.5rem;
  }

  .service-gallery .carousel-item img {
    height: 260px;
  }

  .pricing-card .price {
    font-size: 2rem;
  }
}
