:root {
    --color-red: #FF514F;
    --color-white: #FFFFFF;
    --color-yellow: #FFDA00;
    --color-blue: #262e64;
    --primary: #FF514F;
    --secondary: #262e64;
    --color-gray:#eaeef1;
    --color-blue2:#5395b2;
    --font-size-xsmall: .50em;
    --font-size-small: .8em;
    --font-size: 1.3em;
    --font-size-large: 1.2em;
    --font-size-xlarge: 1.4em;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400; /* Regular */
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700; /* Bold */
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300; /* Light */
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500; /* Medium */
    font-style: normal;
}

@font-face {
    font-family: 'Rubik';
    src: url('../../fonts/Rubik-Regular.ttf') format('truetype');
    font-weight: 400; /* Regular */
    font-style: normal;
}

@font-face {
    font-family: 'Rubik';
    src: url('../../fonts/Rubik-Bold.ttf') format('truetype');
    font-weight: 700; /* Bold */
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-y: hidden !important; /* Oculta cualquier desplazamiento horizontal */
}

body {
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 16px; /* El valor base */
}
.modal-content{
    overflow:hidden !important;

}

.oculta{
    visibility: hidden !important;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out !important;

}

.mostrar{
    visibility:visible !important;
    opacity: 1;

}

/* .modal-dialog{
width: fit-content !important;
} */

#openModalBtn{
    position: absolute;
    top: 2px;
    right: 20px;
}

.modal-body{
    background-image:url('../../../assets/img/web/case1/Imagen_estadistica.webp')  !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left top;
    height: 600px;
    padding-top: 100px;
    font-size: 1.4rem !important;
    color: var(--color-white) !important;
    align-items: center;
    justify-content: start;  word-wrap: break-word;

    padding-inline: 40px;
    position: relative;
}



::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }
  
  ::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #FFF;
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-blue);
  }

.bg-image{
    /* animation: fadeIn 1s ease-in-out !important; */
    background-position: left top !important;
    height: 100vh !important;
}

figure{
    margin-bottom: 0px !important;
}

figcaption{
    font-style: italic !important;
    color: var(--color-white) !important;
    font-size: var(--font-size-xsmall);
    text-align: end;
}

.image-1{
    background-image: url('../../img/web/background_caso_1.webp') !important;
}

.image-2{
    background-image: url('../../img/web/background_caso_2.webp') !important;
}

.image-3{
    background-image: url('../../img/web/background_caso_3.webp') !important;
}

.image-4{
    background-image: url('../../img/web/background_caso_4.webp') !important;
}

.bg-red{
    background-color: var(--color-red) !important;
}

.bg-yellow{
    background-color: var(--color-yellow) !important;
}

.bg-blue{
    background-color: var(--color-blue) !important;
}

.bg-gray{
    background-color: var(--color-gray) !important;
}

.h-20{
    height: 20% !important;
} 

.h-40{
    height: 40% !important;
} 

.h-60{
    height: 60% !important;
} 

.h-90{
    height: 90% !important;
}

a{
    color: var(--color-white);
    text-decoration: underline;
}

a:hover{
    color: var(--color-yellow);
}

a.cookie-button:hover{
    color: white !important;
}

.text-red{
    color: var(--color-blue) !important;
}

.text-yellow{
    color: var(--color-yellow) !important;
}

.text-blue{
    color: var(--color-blue) !important;
}

button{
    background-color: var(--color-blue);
    color: var(--color-white);
	border: none;
	cursor: pointer;
	outline: inherit;
    width: auto;
    padding: 5px 10px;
    transition: background-color 0.5s ease;
}

button:hover{
    background-color: var(--color-blue) !important;
}

footer p{
    font-weight: 400 !important;
    color: var(--color-white) !important;
    font-size: var(--font-size-xsmall) !important;
}

.img-logo{
    width: clamp(80px, 12vw, 150px) !important; /* El tamaño se ajustará entre 100px y 300px dependiendo del viewport */
    height: auto !important; /* Mantiene la proporción */

}

/* ROTACION DE LA PANTALLA*/

.rotation-alert {
    background: var(--color-blue2);
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 1.4em;
    color: var(--color-white);
    text-align: center;
}

.rotation-alert .rotation-alert-content {
    width: 400px;
    height: 300px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.title-case span{
    font-size: var(--font-size-large) !important;
    padding-inline:30px;
    padding-block:10px;
    display: block;
    width: fit-content;
    margin-left: auto;
    text-transform: uppercase;
    color: var(--color-white);
    background-color: var(--color-red);
}

.title-case + h1{
    font-size: var(--font-size-xlarge) !important;
    margin-bottom: 0px;

}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* PANTALLA EN VERTICAL */
@media only screen and (orientation: portrait) {
    .rotation-alert{
        display: flex !important;
    }
}

/* PANTALLA EN HORIZONTAL */
@media only screen and (orientation: landscape) {
    .rotation-alert{
        display: none !important;
    }
}

/* Modo landscape para móviles */
@media (orientation: landscape) and (max-device-width: 844px) {
    body {
        font-size: 10px;
    }
}

/* Modo landscape para tablets */
@media (orientation: landscape) and (min-device-width: 845px) and (max-device-width: 1024px) {

    body {
        font-size: 14px;
    }
}

/* Modo landscape para laptops/desktops pequeños */
@media (orientation: landscape) and (min-width: 1025px) and (max-width: 1366px) {
    body {
        font-size: 18px;
    }
}

/* Modo landscape para pantallas grandes */
@media (orientation: landscape) and (min-width: 1367px) {
    body {
        font-size: 20px;
    }
}

.container{
    max-width: 1600px;
}

.swal2-icon.swal2-info {
    border-color: var(--color-blue2) !important;
    color: var(--color-blue2) !important;
}

.swal2-container a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.icon-button{
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    font-size: 15px !important;
    height: 30px !important;
        display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-decoration: none !important;
    text-align: center !important;
    padding: 0px !important;
    position: relative !important;
}