/* @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;800&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700;1,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gochi+Hand&display=swap');

/*Fonts*/
/* #### Generated By: http://www.cufonfonts.com #### */
@font-face {
  font-family: 'Gilroy-Bold';
  font-style: normal;
  font-weight: normal;
  src: local('Gilroy-Bold'), url('https://cajarural.ruralvia.com/sites/default/files/campanas/fonts/rga/gilroy-bold.woff') format('woff');
}

@font-face {
  font-family: 'Gilroy-Heavy';
  font-style: normal;
  font-weight: normal;
  src: local('Gilroy-Heavy'), url('https://cajarural.ruralvia.com/sites/default/files/campanas/fonts/rga/gilroy-heavy.woff') format('woff');
}

@font-face {
  font-family: 'Gilroy-Light';
  font-style: normal;
  font-weight: normal;
  src: local('Gilroy-Light'), url('https://cajarural.ruralvia.com/sites/default/files/campanas/fonts/rga/gilroy-light.woff') format('woff');
}

@font-face {
  font-family: 'Gilroy-Medium';
  font-style: normal;
  font-weight: normal;
  src: local('Gilroy-Medium'), url('https://cajarural.ruralvia.com/sites/default/files/campanas/fonts/rga/gilroy-medium.woff') format('woff');
}

@font-face {
  font-family: 'Gilroy-Regular';
  font-style: normal;
  font-weight: normal;
  src: local('Gilroy-Regular'), url('https://cajarural.ruralvia.com/sites/default/files/campanas/fonts/rga/gilroy-regular.woff') format('woff');
}
 
/*colores*/
.verde,
a {
    color: #4c5552;
}

.verdeclaro {
    color: #00AB82;
}

.verdetexto {
    color: #004837;
}

.verdeoscuro {
    color: #004937;
}

h5.verdeoscuro {
    font-size: 31px !important;
    color: #004937 !important;
}

.bg-verde {
    background-color: #004937;
}

.bg-verde-oscuro {
    background-color: #017A5E;
}

.bg-verde-vivo {
    background-color: #00AB81;
}

.bg-amarillo {
    background-color: #FFCB00;
}

.bg-verde-claro {
    background-color: #00ab822b;
}

.bg-verde-oscuro p {
    font-size: 1.3rem;
}

.bg-verde-oscuro p {
    font-size: 1.3rem;
}

.bg-verde-aqua {
    background-color: #CCEEE6;
}

.bg-gris {
    background-color: #DDDCDC;
}

/*genral*/
html,
body {
    height: 100%;
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    color: #3D3D3C;
}

a,
a:hover {
    text-decoration: none;
}

/*
a:hover{
	background-color: #007956;
	color: #FFCD00!important;
}
*/

p {
    color: #231F20;
}

.rounded {
    border-radius: 1rem !important;
}



.navbar-dark .navbar-nav .nav-link {
    color: #fff;
}


/****************************************************************/
/*			                 Seccion 0							*/
/****************************************************************/
/* LANDING 29/08/2022 */
.img-hero {
    margin-top: -22%;
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 992px) {

    .img-hero {
        margin-top: 0vh;
    }

}

/* New class for the green highlight text */
.text-green-highlight {
    color: #00AB81;
    /* This is the green color from your original PDF */
}

.seccion-0 .rounded {
    border-radius: 0 0 1rem 1rem !important;
}

.riesgosContainer {
    padding-top: 20px;
    z-index: 3;
}

.riesgos p {
    font-size: 0.6em !important;
    line-height: 1.3em !important;
}

.anclas {
    width: 36px;
}

.enlace-rga {
    color: black !important;
}

.nivelriesgo {
    display: block;
    margin-top: 80px;
}

.alertas-liquidez p {
    font-size: 0.6em !important;
    line-height: 1.3em !important;
}

.borde {
    border-radius: 5px;
    width: fit-content;
    padding: 0px 25px;
    background-color: #f3ca14;
}

.borde h2 {
    color: #004633;
    /* font-family: 'Gilroy-Heavy'; */
}

.tituloBorde {
    color: #004937 !important;
    font-size: 3.2em !important;
    font-family: 'Gilroy-Heavy' !important;
    line-height: 1em !important;
}

.tituloBorde2 {
    color: #41b28a !important;
    font-family: 'Gilroy-Heavy' !important;
    font-size: 2rem !important;
}

.tituloBorde3 {
    color: #004937 !important;
    font-size: 5.2em !important;
    font-family: 'Gilroy-Heavy' !important;
    line-height: 1em !important;
}

.tituloBorde2 span sup {
    font-size: 1.1rem !important;
    top: -0.5em !important;
}

.seccion-0 h1 {
    color: #ffffff;
    font-size: 3em;
    font-weight: 900;
}

img.quiero {
    width: 25%;
}

/* Medium devices (tablets, 768px to 991.98px) */
@media (max-width: 992px) {
    img.quiero {
        width: 60%;
    }
}

/* Small devices (phones, 0px to 575.98px) */
@media (max-width: 575.98px) {
    .seccion-0 svg {
        max-width: 100%;
    }

    /* .borde {
		padding: 0px 27px;
		margin-top: 5%;
	} */
    /* DRUPAL */
    .borde {
        padding: 0px 27px;
        margin-top: 20% !important;
    }

    .borde h2 {
        font-size: 22px;
    }

    .tituloBorde {
        font-size: 2.7em !important;
    }

    .tituloBorde3 {
        font-size: 3.2em !important;
    }

    /* FIN DRUPAL */

    img.quiero {
        width: 100%;
    }
}

/****************************************************************/
/*			                 Seccion 1							*/
/****************************************************************/
.texto-salud {
    font-size: 21px;
}

span.precio {
    color: #3eab81;
    font-size: 1.7em;
    font-weight: 700;
}

/****************************************************************/
/*			       			 Seccion 2 							*/
/****************************************************************/
.texto-salud-verde {
    font-size: 21px;
    color: #007C5A;
    font-weight: bold;
}

.texto-salud-gris {
    font-size: 18px;
    color: #424241;
    font-weight: bold;
}

.container-verde {
    background-color: #cdeee6;
}

.d-flex.flex-wrap {
    flex-wrap: nowrap !important;
    /* Força que tot estiga en una fila */
    justify-content: center !important;
    gap: 0px;
    /* Espai entre elements */
}

.d-flex.flex-wrap>div.col-4 {
    flex: 0 0 auto;
    /* Que no creixi */
    width: 127px !important;
    /* Amplada reduïda */
    padding-left: 0 !important;
    /* Elimina padding intern de columna */
    padding-right: 0 !important;
    text-align: center;
}

.d-flex.flex-wrap img.img-fluid {
    width: 40% !important;
    /* Mida més petita */
    height: auto;
}

.d-flex.flex-wrap p.verdeoscuro.extrabold {
    font-size: 12px !important;
    /* Text més petit */
    margin-top: 5px !important;
}

/* Medium devices (tablets, 768px to 991.98px) */
@media (max-width: 992px) {
    .d-flex.flex-wrap {
        flex-wrap: wrap !important;
        /* Permet que els elements passin a la següent fila */
        gap: 5px;
        /* Espai entre elements */
    }

    .d-flex.flex-wrap>div.col-4 {
        width: 90px !important;
        /* Redueix l’amplada per tablets */
    }

    .d-flex.flex-wrap img.img-fluid {
        width: 50% !important;
        /* Mida lleugerament més gran per llegibilitat */
    }

    .d-flex.flex-wrap p.verdeoscuro.extrabold {
        font-size: 11px !important;
        /* Text una mica més petit */
    }
}

/* Small devices (phones, 0px to 575.98px) */
@media (max-width: 575.98px) {
    .d-flex.flex-wrap {
        flex-wrap: wrap !important;
        /* Passa a múltiples files */
        gap: 5px;
        /* Espai entre elements */
        justify-content: center !important;
    }

    .d-flex.flex-wrap>div.col-4 {
        width: 137px !important;
        /* Amplada més petita per mòbils */
    }

    .d-flex.flex-wrap img.img-fluid {
        width: 60% !important;
        /* Imatges més visibles en pantalles petites */
    }

    .d-flex.flex-wrap p.verdeoscuro.extrabold {
        font-size: 10px !important;
        /* Text encara més petit */
        margin-top: 3px !important;
    }
}

/****************************************************************/
/* Seccion 3 y 4                          */
/****************************************************************/
.seccion-4 {
    background-color: #ffcb00 !important;
}

.seccion-4 h6 {
    font-size: 1.1em !important;
    color: #004937 !important;
}

.numero {
    font-size: 3em !important;
    font-weight: bold !important;
    line-height: 27px !important;
    color: #007C5A !important;
}

.porcentaje {
    font-size: 2em !important;
    font-weight: bold !important;
    line-height: 27px !important;
    color: #007C5A !important;
}

p.verdeoscuro.mt-3.termometro {
    font-size: 21px !important;
}

img.regalo-label {
    margin-top: -25vh !important;
    width: 90% !important;
}

.text-white {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/*
 * 1. ESTILO BASE (Si body NO tiene la clase 'exit')
 * Se aplica a img.bizum por defecto.
 */
img.bizum {
    min-width: 130% !important;
    z-index: 99 !important;
    position: absolute !important;
    top: -21.35vh !important;
    left: -0.75vw !important;
}

/*
 * 2. ESTILO CONDICIONAL (Si body SÍ tiene la clase 'exit')
 * Sobrescribe los valores anteriores gracias al selector body.exit.
 */
body.exit img.bizum {
    min-width: 0 !important; /* AÑADIDO: Elimina la restricción de min-width */
    width: 126% !important;
    /* Los siguientes se mantienen de la base, pero los incluimos para asegurar 
    la sobrescritura o si son diferentes a la base */
    z-index: 99 !important;
    position: absolute !important;

    top: -21.55vh !important;
    /* Este es el valor que cambia */
    left: 0.1vw !important;
    /* Este es el valor que cambia */
}

.divImportes {
    background: #004633 !important;
    padding: 7px !important;
    padding-top: 20px !important;
    padding-left: 7% !important;
    border-radius: 0px 0px 20px 0px !important;
}

/* Cajita verde con importes y numero de productos */
.importe {
    font-size: 0.7em !important;
}

.productos {
    font-size: 0.7em !important;
}

.precioBizum {
    font-size: 1.5em !important;
}

span.numProductos {
    font-size: 1.5em !important;
}


/* Medium devices (tablets, 768px and up) */
@media (max-width: 992px) {

    img.regalo-label {
        margin-top: -21vh !important;
    }

    img.bizum {
        max-width: 30% !important;
        z-index: 99 !important;
        position: relative !important;
        top: 0 !important;
        left: -6vw !important;
        margin-bottom: 8% !important;
    }

    .divImportes p {
        font-size: 13px !important;
    }

    .divImportes div {
        flex: 1 1 80px !important;
        /* columns més petites */
    }

    .divImportes {
        background: #004633 !important;
        padding: 30px 10px 20px 10px !important;
        border-radius: 20px !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    .numero {
        line-height: 50px !important;
    }

    img.regalo {
        width: 65% !important;
    }

    img.regalo-label {
        margin-top: 2vh !important;
        width: 33% !important;
    }

    img.bizum {
        width: 100% !important;
        z-index: 99 !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin-bottom: 8% !important;
    }

    .divImportes {
        flex-direction: column !important;
        /* cada columna en fila separada */
        padding: 15px 5% !important;
        gap: 8px !important;
        border-radius: 20px !important;
        /* border-radius a tot el contenedor */
    }

    .divImportes div {
        flex: 1 1 auto !important;
    }

    .divImportes p {
        font-size: 18px !important;
        /* text més petit en mòbil */
    }

    /* DRUPAL */
    /* Textos caja verde */
    .views-field-field-texto-introduccion p,
    .views-field-field-texto-desarrollo p {
        font-size: 0.7em !important;
    }

    /* Imagen hombre */
    img.bizum {
        min-width: 117% !important;
        z-index: 99 !important;
        position: relative !important;
        top: 0vh !important;
        left: 0vw !important;
    }

    /* FIN DRUPAL */
}

/****************************************************************/
/*		             Seccion 5 - Condiciones	       			*/
/****************************************************************/
p.condiciones {
    font-size: 0.8em;
}

.condiciones p {
    font-size: 12px;
    color: #646363;
}

.condiciones p a {
    color: #646363 !important;
    word-break: break-word;
}

.condiciones>div {
    background-color: #DDDCDC;
}

.condiciones p span {
    font-size: 1.25em;
    color: #646363;
}

button.btn:hover rect {
    stroke: #00B58C;
    stroke-width: 5;
    stroke-dasharray: 15, 200;
    stroke-dashoffset: 100;
    transition: all 1.35s cubic-bezier(0.50, 1, 0.50, 1);
}


/************************************************/
/*			             TO TOP       			*/
/************************************************/
#toTop {
    padding: 10px 20px 0;
    font-size: 50px;
    line-height: 50px;
    background: #00B58C;
    color: #fff;
    position: fixed;
    bottom: 60px;
    right: 3px;
    cursor: pointer;
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
    display: none;
}

#toTop:hover {
    background: #007956;
    color: #FFCD00;
}