/* ============================================
   SERVICIOS.CSS - Estilos específicos para servicios.php
   OscaChip Informática
   ============================================ */

/* ============================================
   HERO DE SERVICIOS
   ============================================ */

.services-hero {
  background: linear-gradient(135deg,
      #020617 0%,
      #0B2F36 50%,
      #0F3A42 100%);
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 47, 54, 0.3);
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(94, 234, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.services-hero h1 {
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.services-hero p {
  color: #E5E7EB;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.services-hero .btn {
  position: relative;
  z-index: 1;
}

/* Botones de navegación del hero */
.services-hero .btn-outline-light {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.services-hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #5EEAD4;
  color: #5EEAD4;
  transform: translateY(-2px);
}

/* ============================================
   BLOQUES DE SERVICIOS
   ============================================ */

.service-block {
  background: #FFFFFF;
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Cards de servicio */
.service-block .card {
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #FFFFFF;
}

.service-block .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(45, 212, 191, 0.15);
  border-color: #2DD4BF;
}

.service-block .card-img-top {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-block .card:hover .card-img-top {
  transform: scale(1.05);
}

.service-block .card-body {
  padding: 1.5rem;
}

.service-block .card-title {
  color: #1F2937;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-block .card-text {
  color: #374151;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-block ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.service-block ul li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: #374151;
  line-height: 1.6;
}

.service-block ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2DD4BF;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============================================
   PRECIOS
   ============================================ */

.service-price {
  background: linear-gradient(135deg,
      rgba(45, 212, 191, 0.05) 0%,
      rgba(94, 234, 212, 0.08) 100%);
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.service-price-badge {
  background: linear-gradient(135deg, #2DD4BF, #14B8A6);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.service-price-amount {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0B2F36;
  margin-bottom: 0.5rem;
}

/* Botones en las cards */
.service-block .btn-outline-light {
  background: transparent;
  color: #2DD4BF;
  border: 2px solid #2DD4BF;
  font-weight: 600;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.service-block .btn-outline-light:hover {
  background: #2DD4BF;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
}

/* ============================================
   SECCIÓN PICHY RESPONDE
   ============================================ */

.service-pichy {
  background: linear-gradient(135deg,
      #FFFFFF 0%,
      #F0FDFA 50%,
      #CCFBF1 100%);
  border: 3px solid #2DD4BF;
  border-radius: 1.5rem;
  padding: 2.5rem;
  height: 100%;
  box-shadow:
    0 10px 30px rgba(45, 212, 191, 0.2),
    0 0 0 1px rgba(45, 212, 191, 0.1) inset;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-pichy:hover {
  transform: translateY(-5px);
  box-shadow:
    0 15px 40px rgba(45, 212, 191, 0.3),
    0 0 0 1px rgba(45, 212, 191, 0.2) inset;
  border-color: #14B8A6;
}

/* Decoración de fondo */
.service-pichy::before {
  content: '💡';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 120px;
  opacity: 0.05;
  transform: rotate(-15deg);
  pointer-events: none;
}

.service-pichy::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pichy-header {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(45, 212, 191, 0.2);
}

.pichy-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #2DD4BF;
  box-shadow:
    0 8px 20px rgba(45, 212, 191, 0.4),
    0 0 0 2px #FFFFFF;
  background: #FFFFFF;
  padding: 3px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-pichy:hover .pichy-avatar {
  transform: scale(1.1) rotate(5deg);
  box-shadow:
    0 10px 25px rgba(45, 212, 191, 0.5),
    0 0 0 3px #FFFFFF;
}

.pichy-label {
  font-size: 0.7rem;
  color: #14B8A6;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(45, 212, 191, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 0.5rem;
}

.pichy-label::before {
  content: '🤖';
  font-size: 0.9rem;
}

.service-pichy h3 {
  color: #0B2F36;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0;
}

.service-pichy>p {
  color: #374151;
  line-height: 1.8;
  position: relative;
  z-index: 2;
  font-size: 1rem;
}

.service-pichy>p:first-of-type {
  font-size: 1.05rem;
  color: #1F2937;
  font-weight: 500;
}

.service-pichy ul {
  list-style: none;
  padding-left: 0;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.7);
  padding: 1.25rem;
  border-radius: 0.75rem;
  border-left: 4px solid #2DD4BF;
}

.service-pichy ul li {
  padding: 0.75rem 0;
  padding-left: 2.5rem;
  position: relative;
  color: #374151;
  line-height: 1.7;
  transition: transform 0.2s ease, color 0.2s ease;
}

.service-pichy ul li:hover {
  transform: translateX(0.5rem);
  color: #0B2F36;
}

.service-pichy ul li::before {
  content: '→';
  position: absolute;
  left: 0.5rem;
  color: #2DD4BF;
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.5;
  transition: transform 0.2s ease, color 0.2s ease;
}

.service-pichy ul li:hover::before {
  transform: translateX(0.25rem);
  color: #14B8A6;
}

.service-pichy ul li:not(:last-child) {
  border-bottom: 1px solid rgba(45, 212, 191, 0.15);
}

/* Nota al pie de Pichy */
.pichy-note {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(240, 253, 250, 0.95) 100%);
  border-left: 4px solid #14B8A6;
  border-radius: 0.75rem;
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.1);
}

.pichy-note::before {
  content: '💬';
  position: absolute;
  top: -18px;
  left: 20px;
  font-size: 2rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDFA 100%);
  padding: 0.4rem 0.6rem;
  border-radius: 0.75rem;
  box-shadow:
    0 4px 12px rgba(45, 212, 191, 0.2),
    0 0 0 2px #2DD4BF;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pichy-note p {
  margin: 0;
  padding-left: 0;
  font-style: italic;
  color: #0B2F36;
  font-weight: 500;
  line-height: 1.7;
}

/* ============================================
   SECCIÓN SERVICIO A DOMICILIO
   ============================================ */

.service-delivery-section {
  margin-bottom: 2rem;
}

.service-delivery-inner {
  background: linear-gradient(135deg,
      #0B2F36 0%,
      #0F3A42 100%);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(11, 47, 54, 0.3);
}

.service-delivery-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 50%, rgba(45, 212, 191, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.service-delivery-inner .row {
  position: relative;
  z-index: 1;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.85);
}

.zone-badge {
  background: rgba(94, 234, 212, 0.15);
  color: #5EEAD4;
  border: 1px solid rgba(94, 234, 212, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
}

.service-delivery-zones ul {
  list-style: none;
  padding-left: 0;
}

.service-delivery-zones ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-delivery-zones ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #5EEAD4;
  font-weight: 700;
}

/* Card dentro de service delivery */
.service-delivery-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
}

.service-delivery-card ol {
  color: rgba(255, 255, 255, 0.85);
}

.service-delivery-card ol li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Botón CTA principal */
.btn-cta {
  background: #2DD4BF;
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
  background: #14B8A6;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 212, 191, 0.4);
}

/* ============================================
   ANCLAS DE NAVEGACIÓN
   ============================================ */

/* Offset para anclas (por el header fijo) */
section[id] {
  scroll-margin-top: 100px;
}

/* ============================================
   SECCIÓN OTROS SERVICIOS
   ============================================ */

#servicios-extra {
  background: linear-gradient(135deg,
      #F8FAFC 0%,
      #F0FDFA 50%,
      #E0F2FE 100%);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.1);
}

#servicios-extra::before {
  content: '⚙️';
  position: absolute;
  top: -30px;
  right: -30px;
  font-size: 150px;
  opacity: 0.04;
  transform: rotate(-15deg);
  pointer-events: none;
}

#servicios-extra::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      transparent 0%,
      #2DD4BF 20%,
      #14B8A6 50%,
      #2DD4BF 80%,
      transparent 100%);
}

#servicios-extra>h2 {
  position: relative;
  z-index: 1;
  font-weight: 800;
  color: #0B2F36;
  margin-bottom: 1rem;
  display: inline-block;
  padding-bottom: 0.5rem;
}

#servicios-extra>h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #2DD4BF, #14B8A6);
  border-radius: 2px;
}

#servicios-extra>p {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  color: #374151;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

/* Badge decorativo */
#servicios-extra>h2::before {
  content: '✨';
  margin-right: 0.5rem;
  font-size: 1.5rem;
  vertical-align: middle;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
  .services-hero {
    padding: 2rem 1.5rem;
    margin-top: 1rem;
  }

  .service-block {
    padding: 1.5rem;
  }

  .service-delivery-inner {
    padding: 2rem 1.5rem;
  }

  .service-block .col-lg-5.order-lg-2 {
    order: 1;
  }

  .service-block .col-lg-6,
  .service-block .col-lg-7 {
    order: 2;
  }
}

@media (max-width: 576px) {
  .services-hero {
    padding: 2rem 1rem;
    border-radius: 1rem;
    margin-top: 0.5rem;
  }

  .services-hero .d-flex {
    flex-direction: column;
  }

  .services-hero .btn-outline-light {
    width: 100%;
  }

  .service-block {
    padding: 1rem;
    border-radius: 1rem;
  }

  .service-pichy {
    margin-top: 1rem;
    padding: 1.5rem;
  }

  .pichy-avatar {
    width: 48px;
    height: 48px;
  }

  .service-delivery-inner {
    padding: 1.5rem 1rem;
    border-radius: 1rem;
  }

  .service-price-amount {
    font-size: 1.25rem;
  }
}
/* ============================================
   SERVICIOS REDESIGN OVERRIDES
   ============================================ */

.services-hero {
  background: linear-gradient(135deg, #071B22 0%, #0E2A32 55%, #123A3E 100%);
  box-shadow: 0 18px 40px rgba(7, 27, 34, 0.35);
}

.services-hero .btn-outline-light:hover {
  border-color: #84F5D6;
  color: #84F5D6;
}

.service-block .card:hover {
  box-shadow: 0 16px 32px rgba(12, 127, 116, 0.16);
  border-color: var(--osc-accent);
}

.service-pichy {
  border-color: rgba(16, 182, 166, 0.4);
  background: linear-gradient(135deg, #FFFFFF 0%, #F4FCFA 50%, #D6FBF0 100%);
}

.service-delivery-inner {
  background: linear-gradient(135deg, #071B22 0%, #0E2A32 100%);
}

.btn-cta {
  background: var(--osc-accent);
}

.btn-cta:hover {
  background: var(--osc-accent-dark);
}