/* ================================
   /css/services.css
   ESTILOS UNIFICADOS PARA TODAS LAS PÁGINAS DE SERVICIO
   Uso: <link rel="stylesheet" href="/css/services.css">
   ================================ */

/* ================================
   BASE Y RESET
   ================================ */
.service-page {
  padding: 1.5rem 1rem;
  background-color: #f8fafc;
  min-height: calc(100vh - 300px);
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.6;
  color: #222;
}

@media (min-width: 768px) {
  .service-page {
    padding: 2.5rem 2rem;
  }
}

.service-container {
  max-width: 900px;
  margin: 0 auto;
}

/* ================================
   BREADCRUMB
   ================================ */
.service-breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #64748b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.service-breadcrumb a {
  color: #1E3A8A;
  text-decoration: none;
  transition: color 0.2s;
}

.service-breadcrumb a:hover {
  color: #FF6600;
  text-decoration: underline;
}

.service-breadcrumb span[aria-current="page"] {
  color: #94a3b8;
  font-weight: 500;
}

/* ================================
   TÍTULOS Y DESTACADOS
   ================================ */
.service-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1E3A8A;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .service-title {
    font-size: 2rem;
  }
}

.service-highlight {
  display: block;
  font-size: 1rem;
  color: #FF6600;
  font-weight: 600;
  margin: 0 0 2rem 0;
}

@media (min-width: 768px) {
  .service-highlight {
    font-size: 1.15rem;
  }
}

/* ================================
   TARJETA DE DETALLE DE SERVICIO
   ================================ */
.service-detail-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .service-detail-card {
    padding: 2rem;
  }
}

.service-detail-card h2 {
  font-size: 1.3rem;
  color: #1E3A8A;
  margin: 1.5rem 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
  font-weight: 700;
}

.service-detail-card h2:first-of-type {
  margin-top: 0;
}

.service-detail-card h3 {
  font-size: 1.15rem;
  color: #334155;
  margin: 1.25rem 0 0.5rem 0;
  font-weight: 600;
}

.service-detail-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 1rem 0;
}

.service-detail-card strong {
  color: #1E3A8A;
  font-weight: 600;
}

.service-detail-card em {
  color: #FF6600;
  font-style: normal;
}

.service-detail-card a {
  color: #10B981;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.service-detail-card a:hover {
  color: #059669;
  text-decoration: underline;
}

/* ================================
   LISTAS DE SERVICIOS
   ================================ */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.service-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: #475569;
  line-height: 1.6;
  font-size: 0.95rem;
  border-bottom: 1px dashed #f1f5f9;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10B981;
  font-weight: bold;
  font-size: 1rem;
}

.service-list li strong {
  color: #1E3A8A;
  display: block;
  margin-bottom: 0.25rem;
}

/* ================================
   CARRUSEL DE IMÁGENES (FUNCIONAL)
   ================================ */
.service-carousel {
  position: relative;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: #0f172a;
  min-height: 220px;
}

.carousel-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: none; /* ← CLAVE: Ocultar todas por defecto */
  border-radius: 12px;
}

.carousel-image.active {
  display: block; /* ← Solo mostrar la activa */
}

.carousel-image.error {
  display: block;
  opacity: 0.3;
}

/* Botones del carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1.25rem;
  z-index: 10;
  border-radius: 6px;
  transition: background 0.2s;
}

.carousel-btn.prev { left: 0.75rem; }
.carousel-btn.next { right: 0.75rem; }
.carousel-btn:hover { background: rgba(15, 23, 42, 0.9); }
.carousel-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-indicator.active {
  background: white;
  transform: scale(1.3);
}

/* Placeholder si falla la imagen */
.carousel-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #94a3b8;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
}

/* ================================
   SECCIÓN CTA (LLAMADA A LA ACCIÓN)
   ================================ */
.service-cta {
  background-color: #f8fafc;
  border: 2px solid #FF6600;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2.5rem 0;
  text-align: center;
}

@media (min-width: 768px) {
  .service-cta {
    padding: 2rem;
  }
}

.service-cta h3 {
  font-size: 1.25rem;
  color: #1E3A8A;
  margin: 0 0 0.75rem 0;
  font-weight: 700;
}

.service-cta p {
  font-size: 0.95rem;
  color: #475569;
  margin: 0 0 1.25rem 0;
  line-height: 1.6;
}

.service-cta strong {
  color: #1E3A8A;
}

.service-cta em {
  color: #FF6600;
  font-style: normal;
}

/* Info de contacto en CTA */
.cta-contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cta-tel {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1E3A8A;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #25D366;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.cta-whatsapp:hover {
  background-color: #128C7E;
}

.cta-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #1E3A8A;
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.cta-email:hover {
  background-color: #1e40af;
}

/* ================================
   RESPONSIVE - MÓVIL
   ================================ */
@media (max-width: 640px) {
  .service-page {
    padding: 1.25rem 0.75rem;
  }
  
  .service-title {
    font-size: 1.4rem;
  }
  
  .service-highlight {
    font-size: 0.95rem;
  }
  
  .service-detail-card {
    padding: 1.25rem;
  }
  
  .service-detail-card h2 {
    font-size: 1.15rem;
  }
  
  .service-detail-card h3 {
    font-size: 1.05rem;
  }
  
  .service-list li {
    font-size: 0.9rem;
    padding-left: 1.25rem;
  }
  
  .service-list li strong {
    font-size: 0.95rem;
  }
  
  .carousel-image {
    height: 200px;
  }
  
  .carousel-btn {
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
  }
  
  .service-cta {
    padding: 1.25rem;
  }
  
  .service-cta h3 {
    font-size: 1.1rem;
  }
  
  .cta-tel {
    font-size: 1.1rem;
  }
  
  .cta-whatsapp,
  .cta-email {
    width: 100%;
    justify-content: center;
  }
}

/* ================================
   MODO OSCURO
   ================================ */
@media (prefers-color-scheme: dark) {
  .service-page {
    background-color: #1e293b;
    color: #e2e8f0;
  }
  
  .service-detail-card {
    background-color: #1e293b;
    border-color: #334155;
  }
  
  .service-detail-card h2 {
    color: #93c5fd;
    border-bottom-color: #334155;
  }
  
  .service-detail-card h3 {
    color: #cbd5e1;
  }
  
  .service-detail-card p,
  .service-list li {
    color: #cbd5e1;
  }
  
  .service-detail-card strong {
    color: #93c5fd;
  }
  
  .service-detail-card em {
    color: #f97316;
  }
  
  .service-cta {
    background-color: #1e293b;
    border-color: #f97316;
  }
  
  .service-cta h3 {
    color: #93c5fd;
  }
  
  .service-cta p {
    color: #cbd5e1;
  }
  
  .cta-tel {
    color: #93c5fd;
  }
  
  .service-breadcrumb {
    color: #94a3b8;
  }
  
  .service-breadcrumb a {
    color: #93c5fd;
  }
}

/* ================================
   ACCESIBILIDAD
   ================================ */

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .carousel-btn,
  .cta-whatsapp,
  .cta-email,
  .service-detail-card a,
  .service-breadcrumb a {
    transition: none !important;
  }
}

/* Alto contraste */
@media (prefers-contrast: high) {
  .service-detail-card,
  .service-cta {
    border-width: 2px;
  }
  
  .service-list li {
    border-bottom-width: 2px;
  }
}