/* =========================================================
   SERVICIOS.CSS - SISTEMAS DE NICARAGUA
   ========================================================= */

/* =========================================
   01. FONDO GLOBAL Y TÍTULOS
   ========================================= */
   body {
    background:
      linear-gradient(rgba(241, 245, 249, 0.70), rgba(241, 245, 249, 0.70)),
      url('../img/fondos/ejemplo.jpeg') no-repeat center center fixed !important;
    background-size: cover !important;
    color: var(--text);
    min-height: 100vh;
  }
  
  .section .h1 {
    color: var(--navy) !important; 
    text-shadow: none !important; 
  }
  
  .section .p {
    color: #475569 !important; 
    font-weight: 500;
  }
  
  .section .kicker {
    color: var(--accent) !important; 
    text-shadow: none !important;
  }
  
  /* =========================================
     02. LISTA DE SERVICIOS
     ========================================= */
  .services-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    counter-reset: servicio-counter;
  }
  
  .service-row {
    display: flex;
    align-items: center;
    position: relative;
  }
  
  .service-row:nth-child(even) {
    flex-direction: row-reverse;
  }
  
  /* =========================================
     03. IMAGEN DEL SERVICIO (FULL BLEED)
     ========================================= */
  .service-img-box {
    width: 55%;
    height: 320px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 1;
  }
  
  .service-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
  }
  
  .service-row:hover .service-img-box img {
    transform: scale(1.05);
  }
  
  /* =========================================
     04. TARJETA DE TEXTO TRASLAPADA
     ========================================= */
  .service-text-card {
    width: 50%;
    background: white;
    padding: 40px;
    border-radius: 8px;
    color: var(--text);
    z-index: 2;
    margin-left: -8%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    position: relative;
  }
  
  .service-row:nth-child(even) .service-text-card {
    margin-left: 0;
    margin-right: -8%;
  }
  
  .service-text-card::before {
    counter-increment: servicio-counter;
    content: "0" counter(servicio-counter);
    position: absolute;
    top: -30px;
    right: 20px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(11, 37, 69, 0.20);
    z-index: 0;
    font-family: sans-serif;
    line-height: 1;
  }
  
  .service-row:nth-child(even) .service-text-card::before {
    right: auto;
    left: 20px;
  }
  
  .service-text-card h3 {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    color: var(--navy);
    text-transform: uppercase;
    font-weight: 800;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 5px;
  }
  
  .service-text-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 25px;
  }
  
  /* =========================================
     05. BOTONES
     ========================================= */
  .btn-tech {
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
    padding: 10px 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
  }
  
  .btn-tech:hover {
    background: var(--navy);
    color: white;
  }
  
  /* =========================================
     06. RESPONSIVE
     ========================================= */
  @media (max-width: 900px) {
    .services-list {
      gap: 60px;
      margin-top: 30px;
    }
  
    .service-row,
    .service-row:nth-child(even) {
      flex-direction: column;
    }
  
    .service-img-box {
      width: 100%;
      height: 250px;
    }
  
    .service-text-card {
      width: 95%;
      margin: -40px auto 0 !important;
      text-align: left;
    }
  }