/* =============================================================
   servicios.css
   Estilos exclusivos de servicios.html
   Cargado DESPUÉS de styles.css — no redefine ninguna clase
   de ese archivo.

   Convención de prefijos para evitar colisiones:
     .srv-*   → todos los componentes exclusivos de esta página
   Las clases .agt-* que ya existen en styles.css se reutilizan
   directamente en el HTML sin redefinirlas aquí.
   ============================================================= */


/* ───────────────────────────────────────────────
   HERO SERVICIOS
   Dos columnas: titular izquierda / datos derecha
─────────────────────────────────────────────── */
.srv-hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
  background: transparent;
}

.srv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("imagenes/noise.png") repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

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

/* Acento vertical verde */
.srv-hero-accent {
  display: block;
  width: 3px;
  height: 2.5rem;
  background: var(--agt-green);
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

.srv-hero h1 {
  font-family: var(--agt-font-display);
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.5px;
  color: var(--agt-blue);
  margin-bottom: 2rem;
}

.srv-hero-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--agt-steel);
  margin-bottom: 2rem;
}

/* Columna derecha: bloque de estadísticas */
.srv-data-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-left: 3rem;
  border-left: 1px solid rgba(14, 42, 58, 0.1);
}

@media (max-width: 991px) {
  .srv-data-col {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(14, 42, 58, 0.1);
    padding-top: 2rem;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.srv-stat {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(14, 42, 58, 0.07);
}

.srv-stat:last-child { border-bottom: none; }

@media (max-width: 991px) {
  .srv-stat {
    flex: 1 1 50%;
    padding: 1rem 1.5rem 1rem 0;
    border-bottom: none;
    border-right: 1px solid rgba(14, 42, 58, 0.07);
  }
  .srv-stat:nth-child(even) {
    border-right: none;
    padding-right: 0;
    padding-left: 1.5rem;
  }
}

.srv-stat-value {
  font-family: var(--agt-font-display);
  font-size: 2.2rem;
  color: var(--agt-blue);
  line-height: 1;
  letter-spacing: -0.5px;
  margin-bottom: 0.35rem;
}

.srv-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--agt-steel);
}

.srv-stat-source {
  font-size: 0.72rem;
  color: rgba(109, 122, 134, 0.55);
  margin-top: 0.3rem;
  letter-spacing: 0.3px;
}

/* Cursor parpadeante durante la animación del contador */
.srv-counter.counting::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.75em;
  background: var(--agt-green);
  margin-left: 3px;
  vertical-align: middle;
  animation: srv-blink 0.6s step-end infinite;
}

@keyframes srv-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}


/* ───────────────────────────────────────────────
   BREADCRUMB
─────────────────────────────────────────────── */
.srv-breadcrumb {
  font-size: 0.82rem;
  color: var(--agt-steel);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.srv-breadcrumb a {
  color: var(--agt-steel);
  text-decoration: none;
  transition: color 0.2s ease;
}

.srv-breadcrumb a:hover { color: var(--agt-blue); }


/* ───────────────────────────────────────────────
   ETIQUETA DE SECCIÓN
─────────────────────────────────────────────── */
.srv-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--agt-steel);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.srv-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(14, 42, 58, 0.08);
}

/* Variante sobre fondo oscuro */
.srv-section-label--dark {
  color: rgba(246, 244, 239, 0.35);
}

.srv-section-label--dark::after {
  background: rgba(246, 244, 239, 0.08);
}


/* ───────────────────────────────────────────────
   MARCO OPERATIVO
   Única sección con fondo oscuro (--agt-blue)
─────────────────────────────────────────────── */
.srv-marco {
  background: var(--agt-blue);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.srv-marco::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--agt-green);
}

.srv-marco-title-area { padding: 4rem 0 3rem; }

.srv-marco-h2 {
  font-family: var(--agt-font-display);
  color: var(--agt-white);
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: 0.5px;
  margin: 0;
}

.srv-marco-lead {
  color: rgba(246, 244, 239, 0.6);
  font-size: 0.97rem;
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 480px;
}

.srv-marco-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(246, 244, 239, 0.08);
}

@media (max-width: 767px) {
  .srv-marco-grid { grid-template-columns: 1fr; }
}

.srv-marco-item {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid rgba(246, 244, 239, 0.08);
  border-right: 1px solid rgba(246, 244, 239, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.3s ease;
}

.srv-marco-item:nth-child(even) { border-right: none; }

@media (max-width: 767px) {
  .srv-marco-item { border-right: none; }
}

.srv-marco-item:hover { background: rgba(246, 244, 239, 0.03); }

.srv-marco-num {
  font-family: var(--agt-font-display);
  font-size: 1.8rem;
  color: rgba(27, 107, 92, 0.5);
  line-height: 1;
  min-width: 2.5rem;
}

.srv-marco-text {
  color: rgba(246, 244, 239, 0.85);
  font-size: 0.97rem;
  line-height: 1.5;
  font-weight: 500;
  padding-top: 0.3rem;
}


/* ───────────────────────────────────────────────
   DÓNDE INTERVENIMOS
   Lista editorial con número + desplazamiento
─────────────────────────────────────────────── */
.srv-donde-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(14, 42, 58, 0.07);
  align-items: start;
  transition: padding-left 0.25s ease;
}

.srv-donde-item:first-child { border-top: 1px solid rgba(14, 42, 58, 0.07); }
.srv-donde-item:hover { padding-left: 0.5rem; }

.srv-donde-n {
  font-family: var(--agt-font-display);
  font-size: 1.1rem;
  color: var(--agt-green);
  letter-spacing: 0.5px;
  padding-top: 0.15rem;
}

.srv-donde-txt {
  font-size: 1rem;
  color: var(--agt-graphite);
  line-height: 1.6;
}


/* ───────────────────────────────────────────────
   SERVICIOS PRINCIPALES
   Número grande decorativo + contenido en dos col
─────────────────────────────────────────────── */
.srv-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 2rem 3rem;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(14, 42, 58, 0.07);
  align-items: start;
}

.srv-item:first-child { border-top: 1px solid rgba(14, 42, 58, 0.07); }

@media (max-width: 767px) {
  .srv-item {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.srv-item-num {
  font-family: var(--agt-font-display);
  font-size: 4rem;
  color: rgba(14, 42, 58, 0.07);
  line-height: 1;
  letter-spacing: -1px;
  user-select: none;
  transition: color 0.3s ease;
}

.srv-item:hover .srv-item-num { color: rgba(27, 107, 92, 0.18); }

.srv-item-name {
  font-family: var(--agt-font-display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  color: var(--agt-blue);
  letter-spacing: 0.3px;
  margin-bottom: 0.5rem;
}

.srv-item-desc {
  color: var(--agt-steel);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 580px;
}

.srv-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.srv-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(14, 42, 58, 0.05);
  color: var(--agt-blue);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(14, 42, 58, 0.07);
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.srv-item:hover .srv-tag {
  background: rgba(27, 107, 92, 0.06);
  border-color: rgba(27, 107, 92, 0.15);
  color: var(--agt-green);
}

.srv-item-result {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--agt-graphite);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.srv-item-result::before {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--agt-green);
  flex-shrink: 0;
}


/* ───────────────────────────────────────────────
   ARQUITECTURA DE INTERVENCIÓN
   4 columnas con barra verde superior en hover
─────────────────────────────────────────────── */
.srv-arq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(14, 42, 58, 0.08);
  border-radius: var(--agt-radius-lg);
  overflow: hidden;
}

@media (max-width: 991px) { .srv-arq-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .srv-arq-grid { grid-template-columns: 1fr; } }

.srv-arq-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(14, 42, 58, 0.08);
  background: var(--agt-surface);
  transition: background 0.3s ease;
  position: relative;
}

.srv-arq-item:last-child { border-right: none; }

@media (max-width: 991px) {
  .srv-arq-item:nth-child(2) { border-right: none; }
  .srv-arq-item:nth-child(1),
  .srv-arq-item:nth-child(2) { border-bottom: 1px solid rgba(14, 42, 58, 0.08); }
}

@media (max-width: 575px) {
  .srv-arq-item { border-right: none; border-bottom: 1px solid rgba(14, 42, 58, 0.08); }
  .srv-arq-item:last-child { border-bottom: none; }
}

.srv-arq-item:hover { background: rgba(14, 42, 58, 0.02); }

.srv-arq-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--agt-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.srv-arq-item:hover::before { transform: scaleX(1); }

.srv-arq-level {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--agt-steel);
  margin-bottom: 1.25rem;
}

.srv-arq-title {
  font-family: var(--agt-font-display);
  font-size: 1.1rem;
  color: var(--agt-blue);
  margin-bottom: 0.75rem;
  letter-spacing: 0.3px;
}

.srv-arq-desc {
  font-size: 0.9rem;
  color: var(--agt-steel);
  line-height: 1.6;
}

.srv-arq-note {
  margin-top: 2rem;
  padding: 1.25rem 1.75rem;
  border-left: 3px solid var(--agt-green);
  background: rgba(27, 107, 92, 0.04);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: var(--agt-graphite);
  line-height: 1.6;
}


/* ───────────────────────────────────────────────
   MÓDULOS ESPECIALIZADOS
   Tabla editorial limpia
─────────────────────────────────────────────── */
.srv-mod-table {
  width: 100%;
  border-collapse: collapse;
}

.srv-mod-table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--agt-steel);
  padding: 0 1.5rem 1rem;
  border-bottom: 2px solid var(--agt-blue);
  text-align: left;
}

.srv-mod-table thead th:first-child { padding-left: 0; }

.srv-mod-table tbody tr {
  border-bottom: 1px solid rgba(14, 42, 58, 0.07);
  transition: background 0.2s ease;
}

.srv-mod-table tbody tr:hover { background: rgba(14, 42, 58, 0.02); }
.srv-mod-table tbody tr:last-child { border-bottom: none; }

.srv-mod-table td {
  padding: 1.5rem;
  vertical-align: top;
  font-size: 0.95rem;
  color: var(--agt-graphite);
  line-height: 1.6;
}

.srv-mod-table td:first-child {
  padding-left: 0;
  font-weight: 700;
  color: var(--agt-blue);
  white-space: nowrap;
  min-width: 220px;
}

@media (max-width: 767px) {
  .srv-mod-table thead { display: none; }
  .srv-mod-table tbody tr { display: block; padding: 1.5rem 0; }
  .srv-mod-table td { display: block; padding: 0.25rem 0; }
  .srv-mod-table td:first-child { font-size: 1rem; margin-bottom: 0.5rem; }
}


/* ───────────────────────────────────────────────
   ENTREGABLES
   Lista tipográfica en dos columnas
─────────────────────────────────────────────── */
.srv-entregable-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 767px) {
  .srv-entregable-list { grid-template-columns: 1fr; }
}

.srv-entregable-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1.25rem 0;
  border-bottom: 1px solid rgba(14, 42, 58, 0.07);
  font-size: 0.97rem;
  color: var(--agt-graphite);
  line-height: 1.5;
}

.srv-entregable-list li:nth-child(odd) {
  padding-right: 2.5rem;
  border-right: 1px solid rgba(14, 42, 58, 0.07);
}

.srv-entregable-list li:nth-last-child(-n+2) { border-bottom: none; }

@media (max-width: 767px) {
  .srv-entregable-list li:nth-child(odd) { padding-right: 0; border-right: none; }
  .srv-entregable-list li:last-child { border-bottom: none; }
  .srv-entregable-list li:nth-last-child(2) { border-bottom: 1px solid rgba(14, 42, 58, 0.07); }
}

.srv-entregable-dot {
  width: 6px; height: 6px;
  background: var(--agt-green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.55rem;
}


/* ───────────────────────────────────────────────
   MODELOS DE TRABAJO
   3 columnas — columna central invertida en azul
─────────────────────────────────────────────── */
.srv-modelos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(14, 42, 58, 0.08);
  border-radius: var(--agt-radius-lg);
  overflow: hidden;
}

@media (max-width: 767px) { .srv-modelos-grid { grid-template-columns: 1fr; } }

.srv-modelo-item {
  padding: 3rem 2.5rem;
  border-right: 1px solid rgba(14, 42, 58, 0.08);
  background: var(--agt-surface);
  transition: background 0.3s ease;
}

.srv-modelo-item:last-child { border-right: none; }

.srv-modelo-item:nth-child(2) { background: var(--agt-blue); }

@media (max-width: 767px) {
  .srv-modelo-item { border-right: none; border-bottom: 1px solid rgba(14, 42, 58, 0.08); }
  .srv-modelo-item:last-child { border-bottom: none; }
}

.srv-modelo-item:hover:not(:nth-child(2)) { background: rgba(14, 42, 58, 0.02); }

.srv-modelo-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}

.srv-modelo-item:not(:nth-child(2)) .srv-modelo-label { color: var(--agt-green); }
.srv-modelo-item:nth-child(2)       .srv-modelo-label { color: rgba(27, 107, 92, 0.8); }

.srv-modelo-title {
  font-family: var(--agt-font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
}

.srv-modelo-item:not(:nth-child(2)) .srv-modelo-title { color: var(--agt-blue); }
.srv-modelo-item:nth-child(2)       .srv-modelo-title { color: var(--agt-white); }

.srv-modelo-desc { font-size: 0.95rem; line-height: 1.65; }

.srv-modelo-item:not(:nth-child(2)) .srv-modelo-desc { color: var(--agt-steel); }
.srv-modelo-item:nth-child(2)       .srv-modelo-desc { color: rgba(246, 244, 239, 0.65); }


/* ───────────────────────────────────────────────
   CONDICIONES MÍNIMAS
   Lista con iconos badge verdes
─────────────────────────────────────────────── */
.srv-req-list { list-style: none; padding: 0; margin: 0; }

.srv-req-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(14, 42, 58, 0.07);
  font-size: 0.97rem;
  color: var(--agt-graphite);
  line-height: 1.5;
}

.srv-req-list li:last-child { border-bottom: none; }

.srv-req-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(27, 107, 92, 0.08);
  color: var(--agt-green);
  border-radius: 8px;
  font-size: 1rem;
  flex-shrink: 0;
}


/* ───────────────────────────────────────────────
   FAQ SERVICIOS
   Acordeón con ícono + → × al abrirse
   DISTINTO al flip-card de index.html
─────────────────────────────────────────────── */
.srv-faq-item {
  border-bottom: 1px solid rgba(14, 42, 58, 0.08);
  overflow: hidden;
}

.srv-faq-item:first-child { border-top: 2px solid var(--agt-blue); }

.srv-faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
  transition: padding-left 0.25s ease;
}

.srv-faq-trigger:hover { padding-left: 0.5rem; }

.srv-faq-q {
  font-weight: 700;
  font-size: 1rem;
  color: var(--agt-blue);
  line-height: 1.4;
}

.srv-faq-icon {
  font-size: 1.2rem;
  color: var(--agt-steel);
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.srv-faq-item.open .srv-faq-icon {
  transform: rotate(45deg);
  color: var(--agt-green);
}

.srv-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.srv-faq-item.open .srv-faq-body { max-height: 220px; }

.srv-faq-a {
  padding: 0 0 1.5rem;
  font-size: 0.97rem;
  color: var(--agt-graphite);
  line-height: 1.7;
  max-width: 680px;
}
