/* =========================================================
   APACIGUA
   Redes sociales

   Diseño general de redes, canales
   y otros espacios digitales.
   ========================================================= */


/* =========================================================
   PRESENTACIÓN
   ========================================================= */

.redes-presentacion {
    width: 100%;
    max-width: 850px;
    margin: 0 auto 46px;
    text-align: center;
}

.redes-presentacion h1 {
    display: inline-block;
    position: relative;

    margin-bottom: 12px;

    font-size: 36px;
    font-weight: 650;

    color: var(--color-principal);
}

.redes-presentacion h1::after {
    content: "";

    display: block;

    width: 110px;
    height: 5px;

    margin: 12px auto 0;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #1877f2 0%,
            #c13584 24%,
            #ff0000 48%,
            #25d366 72%,
            #69c9d0 100%
        );
}

.redes-presentacion p {
    max-width: 650px;
    margin: 0 auto;

    font-size: 17px;
    line-height: 1.65;

    color: var(--color-texto-suave);
}


/* =========================================================
   SECCIONES
   ========================================================= */

.redes-seccion {
    width: 100%;
    max-width: 1050px;

    margin: 0 auto 50px;
}

.redes-seccion-titulo {
    margin-bottom: 20px;
}

.redes-seccion-titulo h2 {
    margin: 0 0 5px;

    font-size: 24px;
    font-weight: 600;

    color: var(--color-principal);
}

.redes-seccion-titulo p {
    margin: 0;

    font-size: 14px;
    line-height: 1.6;

    color: var(--color-texto-suave);
}


/* =========================================================
   CUADRÍCULA
   ========================================================= */

.redes-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.redes-grid-compacto {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


/* =========================================================
   TARJETAS
   ========================================================= */

.red-social {
    --red-acento: #4f806b;
    --red-fondo: rgba(79, 128, 107, 0.06);

    position: relative;
    overflow: hidden;

    min-height: 220px;

    display: flex;
    flex-direction: column;

    padding: 27px 28px;

    background:
        linear-gradient(
            145deg,
            var(--red-fondo) 0%,
            #ffffff 48%
        );

    border: 1px solid var(--color-borde);
    border-radius: 17px;

    color: var(--color-texto);
    text-decoration: none;

    box-shadow:
        0 5px 18px rgba(30, 50, 40, 0.07);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}


/* BARRA DE COLOR */

.red-social::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: var(--red-acento);
}


/* CÍRCULO DECORATIVO */

.red-social::after {
    content: "";

    position: absolute;

    top: -55px;
    right: -55px;

    width: 125px;
    height: 125px;

    border-radius: 50%;

    background: var(--red-acento);

    opacity: 0.06;

    pointer-events: none;
}

.red-social:hover {
    transform: translateY(-4px);

    border-color: var(--red-acento);

    box-shadow:
        0 11px 28px rgba(30, 50, 40, 0.12);
}


/* =========================================================
   FACEBOOK
   ========================================================= */

/* Las primeras tarjetas pertenecen a Facebook */

.redes-seccion:first-of-type .red-social {
    --red-acento: #1877f2;
    --red-fondo: rgba(24, 119, 242, 0.07);
}


/* GRUPO DE FACEBOOK */

.redes-seccion:first-of-type .red-social-destacada {
    --red-acento: #4267b2;
    --red-fondo: rgba(66, 103, 178, 0.10);
}


/* =========================================================
   OTRAS REDES
   ========================================================= */

/* INSTAGRAM */

.redes-grid-compacto .red-social:nth-child(1) {
    --red-acento: #c13584;
    --red-fondo: rgba(193, 53, 132, 0.08);
}


/* YOUTUBE */

.redes-grid-compacto .red-social:nth-child(2) {
    --red-acento: #ff0000;
    --red-fondo: rgba(255, 0, 0, 0.06);
}


/* TIKTOK */

.redes-grid-compacto .red-social:nth-child(3) {
    --red-acento: #00aeb5;
    --red-fondo: rgba(0, 174, 181, 0.08);
}


/* WHATSAPP */

.redes-grid-compacto .red-social:nth-child(4) {
    --red-acento: #25a85a;
    --red-fondo: rgba(37, 168, 90, 0.08);
}


/* =========================================================
   OTROS ESPACIOS

   Esta es la tercera sección de la página.
   ========================================================= */

/* BLOG */

.redes-seccion:nth-of-type(3) .red-social:nth-child(1) {
    --red-acento: #d58f31;
    --red-fondo: rgba(213, 143, 49, 0.09);
}


/* BITÁCORA 506 */

.redes-seccion:nth-of-type(3) .red-social:nth-child(2) {
    --red-acento: #a96b91;
    --red-fondo: rgba(169, 107, 145, 0.09);
}


/* COACHING */

.redes-seccion:nth-of-type(3) .red-social:nth-child(3) {
    --red-acento: #5498a4;
    --red-fondo: rgba(84, 152, 164, 0.09);
}


/* =========================================================
   ETIQUETA DE PLATAFORMA
   ========================================================= */

.red-social-plataforma {
    align-self: flex-start;

    margin-bottom: 15px;
    padding: 5px 10px;

    background: var(--red-fondo);
    color: var(--red-acento);

    border: 1px solid var(--red-acento);
    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================================
   NOMBRE
   ========================================================= */

.red-social h3 {
    margin: 0 0 5px;

    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;

    color: var(--color-principal);
}


/* =========================================================
   SUBTÍTULO
   ========================================================= */

.red-social-subtitulo {
    margin-bottom: 14px;

    font-size: 14px;
    font-weight: 600;

    color: var(--red-acento);
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.red-social p {
    margin: 0 0 20px;

    font-size: 14px;
    line-height: 1.65;

    color: var(--color-texto);
}


/* =========================================================
   ACCESO
   ========================================================= */

.red-social-ir {
    margin-top: auto;
    padding-top: 15px;

    border-top:
        1px solid rgba(41, 72, 58, 0.09);

    font-size: 13px;
    font-weight: 700;

    color: var(--red-acento);
}


/* =========================================================
   OTRAS REDES - TARJETAS MÁS COMPACTAS
   ========================================================= */

.redes-grid-compacto .red-social {
    min-height: 175px;

    padding: 25px 22px;
}

.redes-grid-compacto .red-social h3 {
    font-size: 18px;
}


/* =========================================================
   CONTACTO
   ========================================================= */

.redes-contacto {
    position: relative;
    overflow: hidden;

    width: 100%;
    max-width: 1050px;

    margin: 10px auto 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;

    padding: 31px 34px;

    background:
        linear-gradient(
            135deg,
            rgba(37, 168, 90, 0.09),
            #ffffff 55%
        );

    border: 1px solid rgba(37, 168, 90, 0.22);
    border-radius: 17px;

    box-shadow:
        0 5px 18px rgba(30, 50, 40, 0.07);
}

.redes-contacto::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: #25a85a;
}

.redes-contacto h2 {
    margin: 0 0 6px;

    font-size: 23px;
    font-weight: 600;

    color: var(--color-principal);
}

.redes-contacto p {
    margin: 0;

    font-size: 14px;
    line-height: 1.6;

    color: var(--color-texto-suave);
}


/* =========================================================
   BOTÓN WHATSAPP
   ========================================================= */

.redes-contacto-boton {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 12px 25px;

    background: #25a85a;
    color: #ffffff;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    box-shadow:
        0 4px 12px rgba(37, 168, 90, 0.20);

    transition:
        background-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.redes-contacto-boton:hover {
    background: #208e4d;

    transform: translateY(-2px);

    box-shadow:
        0 7px 17px rgba(37, 168, 90, 0.25);
}


/* =========================================================
   REGRESAR
   ========================================================= */

.redes-regresar {
    margin-top: 35px;

    text-align: center;
}

.redes-regresar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 10px 22px;

    background: #ffffff;
    color: var(--color-principal);

    border:
        1px solid var(--color-principal);

    border-radius: 24px;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.redes-regresar a:hover {
    background: var(--color-principal);
    color: #ffffff;

    transform: translateY(-1px);
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

.red-social:focus-visible,
.redes-contacto-boton:focus-visible,
.redes-regresar a:focus-visible {
    outline:
        3px solid rgba(41, 72, 58, 0.25);

    outline-offset: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .redes-grid-compacto {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 650px) {

    .redes-presentacion {
        margin-bottom: 34px;
    }

    .redes-presentacion h1 {
        font-size: 29px;
    }

    .redes-presentacion p {
        font-size: 15px;
    }


    /* SECCIONES */

    .redes-seccion {
        margin-bottom: 39px;
    }

    .redes-seccion-titulo h2 {
        font-size: 22px;
    }


    /* GRID */

    .redes-grid,
    .redes-grid-compacto {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    /* TARJETAS */

    .red-social,
    .redes-grid-compacto .red-social {
        min-height: 0;

        padding: 25px 21px;
    }

    .red-social h3,
    .redes-grid-compacto .red-social h3 {
        font-size: 20px;
    }


    /* CONTACTO */

    .redes-contacto {
        flex-direction: column;
        align-items: stretch;

        gap: 22px;

        padding: 27px 22px;
    }

    .redes-contacto-boton {
        width: 100%;
    }

}


/* =========================================================
   TELÉFONOS PEQUEÑOS
   ========================================================= */

@media (max-width: 420px) {

    .red-social,
    .redes-grid-compacto .red-social {
        padding: 22px 18px;
    }

    .redes-contacto {
        padding: 24px 18px;
    }

}