:root {
    --bs-body-font-family: 'Google Sans Flex', sans-serif;
    --azul-elmet: #052758;
    --color-maind: #0064d5;
    --rojo-elmet: #e4003a;
    --verde-pagox:#216c61;
    --verde-btn:#009d7f;
    --gris-azulado:#4579ad;
    --gris-silver:#acc2d0;
}

body {
    font-family: 'Google Sans Flex', sans-serif;
    margin: 0;
    padding: 0;
}

h1, h2, h3  {
    line-height: 120%;
     font-weight: 200;
}

h4, h5, h6 {
    font-weight: 200;
    line-height: 150%;
}

h1  {
    font-size: clamp(2rem, 7vw, 3.815rem);
}

h2 {
    font-size: 3.05rem;
}

h3 {
    font-size: 2.45rem;
}

h4 {
    font-size: 1.95rem;
}

h5 {
    font-size: 1.56rem;
}

h6 {
    font-size: 1.25rem;
}

p {
    font-size: 1rem;
    font-weight: 200;
    line-height: 170%;
}  


  /* ---------- Encabezado ---------- */

.encabezado {
    width:100%;
    text-align: center;
    background-color: #052758;
    margin: 0;
    padding: 50px 30px;
}   


.encabezado h2 {
    color: var(--gris-silver);
    font-size: clamp(1.56rem, 4vw, 3.05rem);
    font-weight: 200;
    line-height: 120%;
}

  /* ---------- Contenedores ---------- */


  .tecno-edge {
    width: 100%;
    position: relative;
    /* respiro antes del footer (margin y no padding: el conector
       se posiciona en % de la altura del contenedor) */
    margin-bottom: min(6rem, 15vw);
  }

  .titular {
    padding: min(5rem, 20%) min(1.5rem, 10%);
    width: 100%;
    max-width: 900px;
    margin: auto;
    text-align: center;
  }

  .titular h2 {
    font-weight: 200;
    color: var(--azul-elmet);
  }

  .wrap {
    padding: 0 min(1.5rem, 10%);
    width: 100%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    overflow: hidden;
    gap: 20px;

  }

  /* ---------- fondos ---------- */
  .side {
    width: 50%;
    padding: 60px 60px 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
     border-radius: 10px;
  }

  .side.edge {
    padding: 30px;
    background: var(--gris-silver);
    color: var(--azul-elmet);
    z-index: 3;
  }

  .side.maind {
    padding: 30px;
    background: var(--color-maind);
    color: #ffffff;
    z-index: 3;
  }

  .title {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 28px;
  }

  .subtitle {
    font-size: 20px;
    font-weight: 200;
    line-height: 1.5;
    margin-bottom: 30px;
  }

  /* ---------- tarjeta contenedora ---------- */
  .panel {
    border-radius: 14px;
    width: 100%;
    max-width: 380px;
    position: relative;
    flex: 1;
  }

  .panel img{
    max-width: 250px;
    height: auto;
  }

  /* ---------- conector central "alain" ---------- */
  .connector {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
    padding: 40px 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-maind);
  }

  .wire {
    position: absolute;
    top: 60%;
    width: 80px;
    height: 60px;
    transform: translateY(-50%);
    z-index: 5;
    color: #d8e1e8;
  }
  .wire.left  { right: calc(50% + 90px); }
  .wire.right { left: calc(50% + 90px); }
  .wire svg { width: 100%; height: 100%; }

  @media (max-width: 900px) {
    .wrap { flex-direction: column; }
    .side { width: 100%; padding: 50px 30px; }
    .connector { display: flex; }
    .wire { display: none; }

    .connector {
        position: absolute;
        top: 51%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #ffffff;
        border-radius: 999px;
        box-shadow: 0 10px 28px rgba(0,0,0,0.25);
        padding: 20px 40px;
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: 5;
        font-size: 1.2rem;
        font-weight: 400;
        color: var(--color-maind);
    }



  }