/* ==========================================================
   INFRASTRUCTURE
   Página de confianza técnica de menta
   ========================================================== */


/* ==========================================================
   HERO
   Reutiliza la base visual de .hero
   ========================================================== */

.infra-hero .container {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

.infra-hero__content {
  max-width: 980px;
}

.infra-hero h1 {
  margin: 0 0 1.5rem;
}

.infra-hero .subtitle {
  max-width: 860px;

  margin-bottom: 1.5rem;

  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}


/* ==========================================================
   AVISO DE MODALIDADES DE DESPLIEGUE
   ========================================================== */

.infra-notice {
  max-width: 920px;

  margin-top: 2rem;
  padding: 1.1rem 1.25rem;

  border-left: 3px solid var(--menta-accent);

  background: var(--menta-accent-soft);

  line-height: 1.6;
}

.infra-notice strong {
  color: var(--primary-color);
}


/* ==========================================================
   NAVEGACIÓN INTERNA
   ========================================================== */

.infra-overview {
  padding: 2rem 0;

  border-bottom: 1px solid var(--section-divider-color);

  background: var(--surface-color);
}

.infra-overview__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.infra-overview__nav a {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 3.5rem;
  padding: 0.8rem 1rem;

  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;

  background: var(--surface-color);
  color: var(--primary-color);

  font-size: 0.95rem;
  font-weight: 650;
  text-align: center;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.infra-overview__nav a:hover,
.infra-overview__nav a:focus-visible {
  transform: translateY(-2px);

  border-color: var(--menta-accent);
  background: var(--menta-accent-soft);
  color: var(--primary-color);

  outline: none;
}


/* ==========================================================
   SECCIONES
   ========================================================== */

.infra-section {
  padding: clamp(4rem, 7vw, 6rem) 0;

  background: var(--surface-color);
}

.infra-section--alt {
  background: var(--soft-color);
}

.infra-section .section-header {
  margin-bottom: 2.75rem;
}


/* ==========================================================
   GRID DE CAPACIDADES
   ========================================================== */

.infra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}


/* ==========================================================
   TARJETAS
   ========================================================== */

.infra-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;

  min-width: 0;
  padding: clamp(1.4rem, 2.5vw, 2rem);

  border: 1px solid var(--border-subtle);
  border-radius: 1rem;

  background: var(--surface-color);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.infra-card:hover {
  transform: translateY(-3px);

  border-color: var(--menta-accent-soft);

  box-shadow:
    0 16px 36px var(--menta-accent-soft),
    0 6px 16px var(--border-subtle);
}


/* ==========================================================
   ICONOS
   Reutiliza .icon y .icon--lg de base.css
   ========================================================== */

.infra-card > .icon,
.infra-card > .icon--lg {
  margin-top: 0.1rem;
}

.infra-card > div {
  min-width: 0;
}

.infra-card h3 {
  margin: 0 0 0.55rem;

  color: var(--text-color);

  font-size: 1.08rem;
  line-height: 1.3;
}

.infra-card p {
  margin: 0;

  color: var(--text-color);

  font-size: 0.95rem;
  line-height: 1.6;

  opacity: 0.84;
}


/* ==========================================================
   LOGOS DE HERRAMIENTAS
   Beszel, Uptime Kuma, MySpeed, ntfy...
   ========================================================== */

.infra-card img.icon--logo {
  width: 64px;
  height: 48px;

  object-fit: contain;
}


/* ==========================================================
   CIERRE
   ========================================================== */

.infra-closing {
  padding: clamp(4rem, 8vw, 6.5rem) 0;

  border-top: 1px solid var(--section-divider-color);

  background: var(--surface-color);
}

.infra-closing__content {
  max-width: 780px;
}

.infra-closing__content h2 {
  margin-bottom: 1.25rem;
}

.infra-closing__content > p:not(.kicker) {
  max-width: 680px;

  margin: 0 0 1.75rem;

  font-size: 1.05rem;
  line-height: 1.7;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

  .infra-overview__nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .infra-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 640px) {

  .infra-hero .container {
    padding-top: 2.75rem;
    padding-bottom: 3rem;
  }

  .infra-overview__nav {
    grid-template-columns: 1fr;
  }

  .infra-card {
    grid-template-columns: 1fr;

    gap: 1rem;
  }

  .infra-card > .icon,
  .infra-card > .icon--lg {
    margin: 0;
  }


}


/* ==================
// monitorización
====================== */


.infra-section--focus {
  background: var(--primary-color);
  color: var(--surface-color);
}

.infra-section--focus .kicker {
  color: var(--active-color);
}

.infra-focus {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.infra-focus__intro h2 {
  max-width: 12ch;

  color: inherit;

  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.infra-focus__intro > p {
  max-width: 540px;

  line-height: 1.7;
  opacity: .82;
}

.infra-tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.infra-tool {
  padding: 1.5rem;

  border: 1px solid rgba(255,255,255,.14);
  border-radius: 1rem;

  background: rgba(255,255,255,.07);
}

.infra-tool strong,
.infra-tool span {
  display: block;
}

.infra-tool strong {
  margin-top: .8rem;
  margin-bottom: .25rem;

  font-size: 1.05rem;
}

.infra-tool span {
  line-height: 1.5;
  opacity: .75;
}



/* ==========================
   HERO
   ========================== */

.infra-hero__visual{
    display:flex;
    align-items:center;
    justify-content:center;
}

.infra-hero__visual img{
    display:block;

    width:100%;
    max-width:460px;
    height:auto;

    box-shadow:none;
}

/* Tablet */

@media (max-width:980px){

    .infra-hero__visual{
        margin-top:2rem;
    }

    .infra-hero__visual img{
        max-width:360px;
    }
}

/* Móvil */

@media (max-width:600px){

    .infra-hero__visual img{
        max-width:280px;
        width:75%;
    }
}
/* ===================
// COPIAS DE SEGURIDAD. 
======================== */
.infra-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.infra-split__intro h2 {
  max-width: 13ch;

  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
}

.infra-split__intro > p:not(.kicker) {
  max-width: 540px;

  line-height: 1.7;
}

.infra-compact-list {
  display: grid;
}

.infra-compact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;

  padding: 1.4rem 0;

  border-bottom: 1px solid var(--section-divider-color);
}

.infra-compact-item:first-child {
  border-top: 1px solid var(--section-divider-color);
}

.infra-compact-item h3 {
  margin-bottom: .35rem;
}

.infra-compact-item p {
  margin: 0;
  line-height: 1.55;
  opacity: .8;
}


/* =======================
// ACTUALIZACIONES
========================== */

.infra-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.infra-process__step {
  position: relative;

  padding: 1.5rem 2rem;

  border-top: 1px solid var(--section-divider-color);
}

.infra-process__step:not(:last-child) {
  border-right: 1px solid var(--section-divider-color);
}

.infra-process__step > span {
  display: grid;
  width: 2rem;
  height: 2rem;

  place-items: center;

  margin-bottom: 1.25rem;

  border-radius: 50%;

  background: var(--menta-accent-soft);
  color: var(--menta-accent);

  font-weight: 800;
}

.infra-process__step h3 {
  margin-bottom: .5rem;
}

.infra-process__step p {
  margin: 0;

  line-height: 1.55;
  opacity: .78;
}


/* ====================
// PRIVACIDAD
======================= */
.infra-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 3rem;
}

.infra-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;

  padding: 1.4rem 0;

  border-top: 1px solid var(--section-divider-color);
}

.infra-check > span {
  display: grid;

  width: 2rem;
  height: 2rem;

  place-items: center;

  border-radius: 50%;

  background: var(--menta-accent-soft);
  color: var(--menta-accent);

  font-weight: 800;
}

.infra-check strong {
  display: block;

  margin-bottom: .25rem;
}

.infra-check p {
  margin: 0;

  line-height: 1.55;
  opacity: .78;
}






@media (max-width: 900px) {
  .infra-split,
  .infra-focus {
    grid-template-columns: 1fr;
  }

  .infra-process {
    grid-template-columns: repeat(2, 1fr);
  }

  .infra-checks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .infra-tools,
  .infra-process {
    grid-template-columns: 1fr;
  }

  .infra-process__step {
    border-right: 0;
    border-bottom: 1px solid var(--section-divider-color);
  }
}

