﻿.footer-mora {
    width: 100%;
    background: #f7f6f2;
    border-top: 3px solid #7d1717;
    border-bottom: 3px solid #7d1717;
    padding: 55px 20px;
    box-sizing: border-box;
}

.footer-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.footer-col {
    min-width: 0;
}

.footer-col h3 {
    margin: 0 0 25px 0;
    color: #7d1717;
    font-size: 16px;
    font-weight: 600;
}

.footer-col p {
    margin: 0 0 20px;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}


/* LOGO */

.footer-logo img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}


/* ENLACES */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
}

.footer-links a:hover {
    color: #7d1717;
}


/* REDES SOCIALES */

.footer-redes {
    display: flex;
    gap: 14px;
    align-items: center;
}

.footer-redes a {
    width: 40px;
    height: 40px;

    border: 1px solid #8b2525;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8b2525;
    text-decoration: none;
    font-size: 20px;

    box-sizing: border-box;
}

.footer-redes a:hover {
    background: #8b2525;
    color: #fff;
}


/* SITIO WEB */

.footer-web {
    color: #555;
    font-weight: 600;
    text-decoration: none;
}

.footer-web:hover {
    color: #7d1717;
}


/* =========================
   TABLET
   ========================= */
   .historia-section {
    width: 100%;
    background: #790d14;
    padding: 45px 6% 60px;
    box-sizing: border-box;
    color: #fff;
}


/* TITULO */

.historia-section h2 {
    margin: 0;
    text-align: center;
    font-size: 36px;
    font-weight: 500;
    font-family: Georgia, serif;
    color: #fff;
}

.linea-titulo {
    width: 40px;
    height: 3px;
    background: #c59a4a;
    margin: 20px auto 40px;
}


/* CONTENIDO PRINCIPAL */

.historia-contenido {
    max-width: 1300px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 46% 54%;
    gap: 50px;

    align-items: center;
}


/* COLUMNA IZQUIERDA */

.historia-texto {
    font-size: 17px;
    line-height: 1.8;
}

.historia-texto p {
    margin: 0 0 20px;
}

.btn-historia {
    display: inline-block;
    margin-top: 25px;

    padding: 16px 28px;

    border: 2px solid #c59a4a;

    color: #d7b46a;
    text-decoration: none;

    font-size: 16px;
    font-weight: bold;

    transition: all .3s ease;
}

.btn-historia:hover {
    background: #c59a4a;
    color: #790d14;
    text-decoration: none;
}


/* COLUMNA DERECHA */

.historia-linea {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
}

.historia-item {
    flex: 1;

    text-align: center;

    min-width: 120px;
}

.historia-item .icono {
    color: #c99d46;
    font-size: 58px;
    margin-bottom: 20px;
}

.historia-item strong {
    display: block;
    color: #d5ad61;
    font-size: 19px;
    margin-bottom: 6px;
}

.historia-item span {
    display: block;

    font-size: 16px;
    line-height: 1.5;

    color: #fff;
}


/* LINEAS VERTICALES */

.separador {
    width: 35px;
    height: 165px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
}

.separador span {
    display: block;

    width: 2px;
    height: 130px;

    background: rgba(255,255,255,.8);

    position: relative;
}

.separador span:before {
    content: "";

    position: absolute;

    top: -10px;
    left: 50%;

    transform: translateX(-50%);

    width: 17px;
    height: 17px;

    background: #fff;

    border-radius: 50%;
}


/* ==========================
   TABLET
   ========================== */
   @media (max-width: 1050px) {

    .historia-contenido {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .historia-texto {
        max-width: 750px;
        margin: 0 auto;
    }

    .historia-linea {
        max-width: 800px;
        margin: 0 auto;
    }

}


@media (max-width: 900px) {

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 45px;
    }

}


/* =========================
   CELULAR
   ========================= */

@media (max-width: 600px) {

    .footer-mora {
        padding: 40px 25px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto;
        width: 160px;
    }

    .footer-redes {
        justify-content: center;
    }
@media (max-width: 700px) {

    .historia-section {
        padding: 35px 25px 45px;
    }

    .historia-section h2 {
        font-size: 27px;
        line-height: 1.25;
    }

    .historia-texto {
        font-size: 15px;
    }

    .btn-historia {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }


    /* línea del tiempo pasa a vertical */

    .historia-linea {
        flex-direction: column;
        gap: 0;
    }

    .historia-item {
        width: 100%;
        padding: 20px 0;
    }

    .historia-item .icono {
        font-size: 50px;
        margin-bottom: 12px;
    }

    .separador {
        width: 100%;
        height: 45px;
    }

    .separador span {
        width: 2px;
        height: 45px;
    }

    .separador span:before {
        width: 12px;
        height: 12px;
        top: -3px;
    }

}