
/* Colores */
:root {
    --background-color: #ffffff;
    --font-color: #616161;
    --default-color: #2F2828;
    --second-color: #E7A80F;
    --heading-color: #232020;
    --footer-color: #3E3D3D;
    --white-color: #ffffff;
    --gray-color: #808080;
    --black-color: #000000;
    --link-color: #E7A80F;
    --link-hover-color: #F0D276;
    --light: #E8F5E9;
}


/* Fuentes */
:root {
    --primary-font: "Montserrat", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --heading-font: "Manrope", sans-serif;
}

/* Menú */
:root {
    --nav-normal: #4E4747;
    --nav-hover: #A1A762;
}

/* Scroll */
:root {
  scroll-behavior: smooth;
}



body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--primary-font);
    height: 100%;
	margin: 0;
	padding: 0;
}

html {
    height: 100%;
	margin: 0;
	padding: 0;
}

form {
    height: 100%;
	margin: 0;
	padding: 0;
}

.wrapper {
  display: flex;
  height: 100%;
  flex-direction: column;
  -ms-flex-direction: column;
  background: var(--background-color);
}

header{
	width:100%;
}

main {
  flex: 1;
  background:#ffffff;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.btn-warning {
    color: var(--second-color);
    background-color: #ffc107;
    border-color: #ffc107;
}


/*********************************FOOTER*************************************/
footer {
    width: 100%;
}

.custom-footer {
    padding: 2rem 0 4rem 0;
    background-color: var(--footer-color);
    border-top: .05rem solid #e5e5e5;
    position: relative;
    bottom: 0;
    width: 100%;
}

    .custom-footer p {
        font-size: 0.9rem;
        color: var(--white-color);
    }

    .custom-footer a {
        font-size: 0.9rem;
    }

    .custom-footer h6 {
        color: var(--white-color);
        font-family: var(--heading-font);
        font-size: 1rem;
        font-weight: 500;
    }

    .custom-footer .contacts {
        background: rgba(255, 255, 255, 0.05);
        padding: 37px;
        border-bottom: 2px solid #F0D276;
        min-height: 300px;
        margin-bottom: 1rem;
    }

        .custom-footer .contacts h6 {
            color: var(--white-color);
            font-size: 1rem;
        }

        .custom-footer .contacts p {
            color: var(--white-color);
            font-size: 0.8rem;
            margin-bottom: 0.2rem;
        }

    .custom-footer .container {
        width: 100%;
        max-width: 1400px;
    }

/*********************************END-FOOTER*************************************/





a {
    color: var(--link-color);
    text-decoration: none;
    transition: 0.3s;
}

    a:hover {
        color: var(--link-hover-color);
        text-decoration: none;
    }

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}


.clearfix:after {
    content: "";
    display: block;
    clear: both;
}

.titulo h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.2;
    color: color-mix(in srgb, #2F2828 90%, #3E3D3D 15%);
    transition: .5s;
}

.riovi img {
    width: 200px;
    height: auto;
}

.logo img {
	width: 180px;
    height: auto;
}

@media (max-width: 768px) {
    .logo img {
        width: 150px;
        height: auto;
    }

    .riovi img {
        width: 160px;
        height: auto;
    }

    .titulo h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .logo img {
        width: 120px;
        height: auto;
    }

    .riovi img {
        width: 130px;
        height: auto;
    }

    .titulo h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 425px) {
    .logo img {
        width: 90px;
        height: auto;
    }

    .riovi img {
        width: 100px;
        height: auto;
    }
}




@keyframes slideInFromLeft {
    0% {
       /* transform: translateX(-100%);*/
        opacity: 0;
       
    }

    100% {
        /*transform: translateX(0);*/
        opacity: 0.9;
    }
}
/*.image-primera {
    animation-duration: 3s;
    animation-name: slideInFromLeft;
}*/

.fondo-imagen2 {
    background: rgba(248,238,153,0.5);
    background-size: cover;
    background-position: center center;
    z-index: 1000;
    padding-bottom: 6rem;
    padding-top: 6rem;
    margin-bottom: 0.5rem;
    transition: .5s;
}

.rounded-border {
    border-radius: 8px !important;
    border: 1px solid #EDDD5E;
    width: 100%;
    height: auto;
    padding: 2rem;
    text-align: center;
}



/******************** Foto header ********************/
.fondo-header {
    background: linear-gradient(rgba(248, 238, 153, 0.7), rgba(248, 238, 153, 0.7)), url(../../images/home/ovejas.jpg) center center no-repeat;
    background-size: cover;
}

    .fondo-header h1 {
        font-size: 2.6rem;
        font-weight: 400;
        line-height: 1.2;
        color: var(--white-color);
        transition: .5s; 
        text-shadow: 1px 2px 3px #808080;
    }

        @media (max-width: 576px) {
            .fondo-header h1 {
                font-size: 1.5rem;
            }
        }


/******************** Servicios y Parte pública ********************/
.public-title h1 {
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.4;
    color: color-mix(in srgb, #E7A80F 90%, #ffffff 15%);
    margin-bottom: 2rem;
}

@media (max-width: 576px) {
    .public-title h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
}

.public-item {
    position: relative;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    border-radius: 10px !important;
    border: none !important;
}

    .public-item h4 {
        color: color-mix(in srgb, #808080 90%, #ffffff 15%);
    }

    .public-item .card-header {
        padding: 0.75rem 1.25rem;
        background-color: #ffffff;
        border: none !important;
        border-bottom:1px solid #e5e5e5;
    }

        .public-item .card-header:first-child {
            border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);
        }

    .public-item .card-footer {
        padding: 0.75rem 1.25rem;
        background-color: #ffffff;
        border: none !important;
    }

        .public-item .card-footer:last-child {
            border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);
        }

        .public-item .about {
            min-height: 0 !important;
        }

@media (max-width: 760px) {
    .public-item .card-body {
        min-height: auto;
    }
}


.public-item .btn {
    background: var(--link-color);
    color: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .25);
}

    .public-item .btn:hover {
        color: #ffffff;
        background: var(--link-hover-color);
    }

.display-riovi {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: color-mix(in srgb, #616161 90%, #ffffff 15%);
}




.public-item .public-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
    z-index: -1;
}

.public-item .public-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    border-radius: 10px;
}

.public-item .public-img::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .5);
    border-radius: 10px;
    z-index: 1;
}

.public-item .public-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s ease-out;
    z-index: 2;
}

.public-item:hover .public-img::after {
    width: 0;
    left: auto;
    right: 0;
}









