@import url('https://fonts.googleapis.com/css2?family=Funnel+Sans:wght@600&display=swap');

:root {
    --primario: #F4F4F4;
    --secondary: #3ec2d2;
    --terciary: #fd6500;

    --accent: #0080dd;
    --dark-accent: #002f61;

    --white: #f4f4f4;
    --black: #002f61;
    --purple: #3ec2d2;
    --gray: #F4F4F4;

    --bg-opacity: 1;
    --text-opacity: 1;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    --bs-font-sans-serif: 'Funnel Sans', sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    font-family: 'Funnel Sans', sans-serif;
    background-color: var(--primario) !important;
}

a { 
    text-decoration: none !important; 
} 

/* LINKS */
.link-purple{
    color: var(--secondary);
}

.link-purple:hover{
    color: var(--accent);
}

/* CONTAINER */
.container {
    margin: 20px auto !important;
    padding: 20px !important;
    border-radius: 12px !important;
}

/* BACKGROUND */

.bg-delicado {
    background: #D3CCE3;
    background: -webkit-linear-gradient(to right, #E9E4F0, #D3CCE3);
    background: linear-gradient(to right, #E9E4F0, #D3CCE3);
}
.bg-white {
    background-color: var(--primario);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-purple-50 {
    background-color: rgb(229, 238, 253);
}

.bg-purple-100 {
    background-color: var(--secondary);
}

.bg-purple-300 {
    background-color: var(--terciary);
}

/* TEXT */
.text-black {
    color: var(--dark-accent);
}

.text-white {
    color: var(--white) !important;
}

.text-blue {
    color: var(--secondary) !important;
}

.text-purple-300 {
    color: var(--terciary);
}

.text-gradient-purple {
    -webkit-text-fill-color: transparent;
    background: #002f61;
    /* background: linear-gradient(135deg, rgb(71, 90, 195), rgb(139, 85, 208)); */
    background-clip: text;
}

.text-gradient-blue {
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(135deg, rgb(71, 90, 195), #0080dd) !important;
    background-clip: text !important;
}

/* ELEVATION */
.elevation {
    box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.1);
}

.elevation-hover {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.elevation-hover:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* FONT */
.fw-900 {
    font-weight: 900 !important;
}

.fs-h3 {
    font-size: 3.75rem !important;
    font-weight: 300 !important;
    line-height: 1.3;
    margin-bottom: 2rem;
}

/* BTN */
.btn-success {  
  background-color: var(--black) !important;
  border-color: transparent !important;
}

.btn-orange {
  background-color: var(--terciary)!important;
  border-color: transparent !important; 
  border: none; 
  color: #fff !important;
}

.btn-gray {
  background-color: #d4d4d4 !important;
  border-color: transparent !important; 
  border: none; 
  color: #fff !important;
}

.btn-success-outline {
  background-color: var(--primario) !important;
  border-color: var(--black) !important;
}

.btn-success-temp {
    background-color: var(--secondary) !important;
    border-color: transparent !important;
}

/* IMGS */
.img-radius {
    overflow: hidden;
    height: 400px;
    width: 100%;
    border-radius: 1rem !important;
}

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

.w-img {
    width: 50%;
}

/* SOCIAL MEDIA */
.social-container{
    display:grid;
    grid-template-columns: repeat(5, 3.125em);
}
  
.social{
    margin: .125em;
    width: 45px;
    height: 45px;
    font-size: 1.5em;
    color: white;
    border-radius: 15%;
    display: grid;
    place-items:center;
}

.facebook {
    background: var(--accent);
  }

.twitter {
    background: var(--accent);
}

.instagram {
    background: var(--accent);
}

.linkedin {
    background: var(--accent);
}


/* OTHERS */
.full-img {
    width: 100% !important; 
    height: 15rem !important; 
    object-fit:cover !important;
}

.semi-radius {
    border-bottom-right-radius: 75px;
    border-bottom-left-radius: 75px;
}

.semi-radius-top {
    border-top-right-radius: 50px;
    border-top-left-radius: 50px;
}

.separador {
    color: #1D2530;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* SUPERINDICE */
.supidc { 
    vertical-align:super;
} 

/* SUBINDICE */
.subidc { 
    vertical-align:sub;
} 

.objectfit {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

/* Videochat */
#root-videochat {
    width: 80vw;
    height: 80vh;
}

.fs-gap { margin-top: 20px; }

.dropdown-item:active {
    background-color: var(--terciary) !important;
}

/* EFECTS BLUR TEXT */
.blur {
	filter: blur(.1rem);
}

.blur-shadow {
  color: transparent;
  text-shadow: 0 0 .25rem #000;
}

.blur,.blur-shadow {
  cursor: pointer;
}

/* EFECT ANIMATED UNDERLINE */
.hover-underline {
    display: inline-block;
    position: relative;
    color: #0087ca;
    text-decoration: none;
  }

.hover-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    border-radius: 5px;
    height: 0.05em;
    bottom: 0;
    left: 0;
    background: currentcolor;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.hover-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* TOOLTIP */
.tooltip2 {
    position: relative;
    display: inline-block;
}
  
.tooltip2 .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -75px;
    opacity: 0;
    transition: opacity 0.3s;
}
  
.tooltip2 .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}
  
.tooltip2:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* BADGE */
.text-bg-purple {
    color: #F4F4F4 !important;
    background-color: var(--secondary) !important;
}

#opciones {
    border: 1px solid #ccc;
    position: absolute; /* Para posicionarlo debajo del input */
    background-color: #F4F4F4;
    max-height: 150px;
    overflow-y: auto;
    display: none; /* Inicialmente oculto */ 
}

#opciones div {
    padding: 5px;
    cursor: pointer;
}

#opciones div:hover {
    background-color: #f0f0f0;
}

.animated-text {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-sm {
    font-size: 12px !important;
}

/* Sección de Evaluación de Riesgo */
.risk-assessment-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Reduce espacio con la siguiente sección */
  }
  
  .risk-box {
    background-color: #F4F4F4;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    /* max-width: 500px; */
    text-align: center;
  }
  
  .risk-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .risk-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
  }
  
  .risk-score {
    font-size: 48px;
    font-weight: bold;
    color: #1a56db;
    margin: 5px 0;
  }
  
  .risk-level {
    font-size: 16px;
    color: #555;
  }
  
  /* Barra de progreso */
  .progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
  }
  
  .progress-fill {
    height: 100%;
    background-color: #1a56db;
    border-radius: 5px;
  }

/* Sección Executive Summary */
.executive-summary {
    text-align: left;
    padding: 40px 20px;
  }
  
  .summary-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  /* Contenedor flexible para las tarjetas */
  .summary-content {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Estilos para cada tarjeta */
  .summary-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
  }
  
  .summary-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  /* Lista dentro de cada tarjeta */
  .summary-list {
    list-style: none;
    padding: 0;
  }
  
  .summary-list li {
    font-size: 16px;
    margin: 8px 0;
    display: flex;
    align-items: center;
  }
  
  /* Iconos */
  .icon {
    font-size: 18px;
    margin-right: 8px;
  }
  
  /* Colores de los iconos */
  .red {
    color: red;
  }
  
  .orange {
    color: orange;
  }
  
  .green {
    color: green;
  }
  
  .blue {
    color: blue;
  }
  
  /* Responsividad */
  @media (max-width: 768px) {
    .summary-content {
      flex-direction: column;
      align-items: center;
    }
  
    .summary-card {
      width: 90%;
    }
  }

  /* Estilos generales */
.container {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
  }
  
  /* Estilos para la Sección de Análisis Detallado */
  .detailed-analysis {
    text-align: left;
  }
  
  /* Navegación de pestañas */
  .analysis-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
  }
  
  .tab {
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
  }
  
  .tab.active {
    color: #1a56db;
    border-bottom: 3px solid #1a56db;
  }
  
  /* Contenedor del contenido */
  .analysis-content {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  /* Estilos para la sección de Factores de Riesgo */
  .risk-factor, .action-plan {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
  }
  
  .risk-factor h3, .action-plan h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  /* Barra de progreso */
  .risk-item {
    margin: 10px 0;
  }
  
  .progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .progress-fill {
    height: 100%;
    border-radius: 4px;
  }
  
  .red {
    background: red;
  }
  
  .orange {
    background: orange;
  }
  
  .green {
    background: green;
  }
  
  /* Lista de plan de acción */
  .action-plan ul {
    list-style: none;
    padding: 0;
  }
  
  .action-plan li {
    font-size: 16px;
    margin: 8px 0;
    display: flex;
    align-items: center;
  }
  
  .icon {
    font-size: 18px;
    margin-right: 8px;
    color: #1a56db;
  }
  
  /* Sección de Control de Salud */
  .health-control {
    background: #1a56db;
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    margin-top: 40px;
  }
  
  .health-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
  }
  
  .btn {
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
  }
  
  .btn.primary {
    background: white;
    color: #1a56db;
  }
  
  .btn.secondary {
    background: #0d3ca0;
    color: white;
  }
  
  /* Responsividad */
  @media (max-width: 768px) {
    .analysis-content {
      flex-direction: column;
      align-items: center;
    }
  
    .risk-factor, .action-plan {
      width: 90%;
    }
  
    .health-buttons {
      flex-direction: column;
    }
  }
  
/* Login con google btn */

.login-with-google-btn {
  transition: background-color .3s, box-shadow .3s;
    
  padding: 12px 16px 12px 42px;
  border: none;
  border-radius: 3px;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);
  
  color: #757575;
  font-size: 1rem;
  font-weight: 500;  
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTcuNiA5LjJsLS4xLTEuOEg5djMuNGg0LjhDMTMuNiAxMiAxMyAxMyAxMiAxMy42djIuMmgzYTguOCA4LjggMCAwIDAgMi42LTYuNnoiIGZpbGw9IiM0Mjg1RjQiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik05IDE4YzIuNCAwIDQuNS0uOCA2LTIuMmwtMy0yLjJhNS40IDUuNCAwIDAgMS04LTIuOUgxVjEzYTkgOSAwIDAgMCA4IDV6IiBmaWxsPSIjMzRBODUzIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNCAxMC43YTUuNCA1LjQgMCAwIDEgMC0zLjRWNUgxYTkgOSAwIDAgMCAwIDhsMy0yLjN6IiBmaWxsPSIjRkJCQzA1IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNOSAzLjZjMS4zIDAgMi41LjQgMy40IDEuM0wxNSAyLjNBOSA5IDAgMCAwIDEgNWwzIDIuNGE1LjQgNS40IDAgMCAxIDUtMy43eiIgZmlsbD0iI0VBNDMzNSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTAgMGgxOHYxOEgweiIvPjwvZz48L3N2Zz4=);
  background-color: white;
  background-repeat: no-repeat;
  background-position: 18px 18px;
  
  &:hover {
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .25);
  }
  
  &:active {
    background-color: #eeeeee;
  }
  
  &:focus {
    outline: none;
    box-shadow: 
      0 -1px 0 rgba(0, 0, 0, .04),
      0 2px 4px rgba(0, 0, 0, .25),
      0 0 0 3px #c8dafc;
  }
  
  &:disabled {
    filter: grayscale(100%);
    background-color: #ebebeb;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);
    cursor: not-allowed;
  }
}