body {
    margin: 0;
    height: 200vh; 
    overflow-y: scroll;
  }
  #fondo-imagen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; 
    height: auto;
    object-fit: cover;
    z-index: -1;
  }
.contenedor-adaptable {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    margin-left: 40px; 
    margin-right: 10px; 
    transition: margin 0.3s;
}
.item-adaptable {
    width: 100%;
    margin-bottom: 20px;
    
}
.slick-slide {
    transition: all 1s ease-in-out;
}
.peer:checked + span {
    transform: scale(1.05);
}
header {
    position: sticky;
    top: 0;
    z-index: 30; 
    background-color: white; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative; 
}
.nav-links {
    display: none; 
    position: absolute; 
    top: 100%;
    right: 0;
    background-color: white; 
    z-index: 10; 
    flex-direction: column; 
    width: auto; 
    padding: 0.5rem 1rem; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}
.nav-links.active {
    display: flex;
}
.menu-toggle {
    display: block;
    cursor: pointer;
}
@media (max-width: 768px) {
    .contenedor-adaptable {
      margin-left: 5px; 
      margin-right: 5px; 
    }
    .item-adaptable {
        flex: 1 1 90%; 
      }
  }
@media (min-width: 768px) {
    .nav-links {
        display: flex !important; 
        position: static;
        flex-direction: row; 
        background-color: transparent; 
        width: auto; 
        padding: 0; 
        box-shadow: none; 
    }
    .menu-toggle {
        display: none;
    }   
}
.bg-blue {
    background-color: #00aeff; 
    color: white; 
}
.bg-blue:hover {
    background-color: #00aeff; 
    color: white; 
}
.star {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
}
.bg-blue-acibin-light{
    background-color: #cefaff;
    color: white;
}
.star.selected {
    color: #ffcc00;
}
.peer-checked\:bg-green-light:checked ~ span {
    box-shadow: 6px 6px 0 rgba(103, 102, 102, 0.2) !important;
}
.rounded-semisquare {
    border-radius: 15px; 
}
.main-container {
    width: 90%; 
}
.bg-blue-light-transparent {
    background-color: rgba(173, 216, 230, 0.5); 
    border: 2px solid blue; 
    padding: 20px; 
    border-radius: 10px; 
}
.bg-orange-light-transparent {
    background-color: rgba(255, 209, 122, 0.5); 
    border: 2px solid rgb(255, 145, 0); 
    padding: 20px; 
    border-radius: 10px; 
}
.bg-green-light-transparent {
    background-color: rgba(122, 255, 155, 0.5); 
    border: 2px solid rgb(0, 156, 13); 
    padding: 20px; 
    border-radius: 10px; 
}
.bg-blue-transparent {
    background-color: rgba(36, 186, 255, 0.5); 
    padding: 20px; 
}
.bg-grey-transparent {
    background-color: rgba(206, 206, 206, 0.5); 
    border: 2px solid rgb(131, 131, 131); 
    padding: 20px; 
    border-radius: 10px; 
}
.bg-violet-transparent {
    background-color: rgba(216, 117, 255, 0.5); 
    border: 2px solid rgb(153, 0, 255); 
    padding: 20px; 
    border-radius: 10px; 
}
.mt-4 {
    margin-top: 1rem; 
}
#progress-container {
    margin: 20px 0;
    position: relative;
  }
#progress-bar {
    width: 100%;
    height: 50px;
    background: linear-gradient(
        to right,
        #4CAF50 0%, 
        #4CAF50 12.5%, 
        #FF0000 72.5%, 
        #8B0000 100%  
    );
    border-radius: 5px;
    overflow: visible;
    position: relative;
  }
#progress-fill {
    width: 0;
    height: 90%;
    background-color: #4CAF50; 
    border-radius: 5px;
    opacity: 0.7;
    position: absolute;
    top: 2.5px; 
    left: 0;
    z-index: 1; 
    transition: none !important;
    will-change: width;
}
#progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
/* Estilo base para todos los milestones */
.milestone {
    position: absolute;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 40px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
    font-size: 24px; /* Tamaño unificado */
}

/* Estilo BASE de la línea (común a todos) */
.milestone::before {
    content: '';
    position: absolute;
    width: 2px;
    background: #8f8f8f;
    opacity: 0.5;
}

/* Líneas CONECTORAS personalizadas por milestone */
.milestone.india::before {
    top: -60px;
    height: 60px;
}
.milestone.hoja::before {
    top: 35px;  /* Altura diferente */
    height: 60px;
    background: #2ecc36;
    width: 4px;
}
.milestone.tierra::before {
    top: -65px;
    height: 65px;
    background: #2da0ff; 
}
.milestone.europe::before {
    top: -85px;
    height: 90px;
    background: #0024c4;
}
.milestone.spain::before {
    top: -60px;
    height: 65px;
    background: #ff1515;
}
.milestone.usa::before {
    top: -65px;
    height: 65px;
    background: #640000; /* Rojo para USA */
}

/* Contenedor del icono */
.milestone-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
    display: inline-block; /* Asegura que recibe transformaciones */
}

/* Posicionamiento manual para todos los tipos */
.milestone.india {
    bottom: -45px !important;
}
.milestone.hoja {
    bottom: 55px !important;
}
.milestone.tierra {
    bottom: -45px !important;
}
.milestone.europe {
    bottom: -70px !important;
}
.milestone.spain {
    bottom: -40px !important;
}
.milestone.usa {
    bottom: -45px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.milestone::after {
    content: attr(data-value);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.milestone:hover::after {
    opacity: 1;
}
.user-milestone {
    position: absolute;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    bottom: 75px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}
.user-milestone::before {
    content: '';
    position: absolute;
    bottom: -25px;
    width: 2px;
    height: 20px;
    background: #666;
    opacity: 0.8;
}
.user-name {
    font-size: 16px;
    font-weight: bold;
    color: #00028b;
    padding: 4px 4px;
    white-space: nowrap;
    text-shadow: none;
}
.user-value {
    font-size: 18px;
    font-weight: bold;
    color: #33ee22;
    padding: 4px 4px;
    white-space: nowrap;
    text-shadow: none;
}
.custom-shape {
    border-radius: 10px;
}
.slick-slide {
    transition: transform 0.3s ease;
}
.active-step {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .slick-list {
        padding: 0 10px !important;
    }
    .nav-button {
        width: 48%;
        justify-content: center;
    }
}
.submit-container {
    position: sticky;
    bottom: 20px;
    z-index: 10;
}
@media (max-width: 768px) {
    .submit-container {
        bottom: 10px;
    }
    .submit-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}
.shake-animation {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}
.submit-container {
    display: none;
    position: sticky;
    bottom: 20px;
    z-index: 100;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}
.submit-container.visible {
    display: flex !important;
}
.disabled-tab {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    background-color: #cccccc !important;
}
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #cccccc !important;
    border-color: #999999 !important;
}
.submit-button:disabled:hover {
    transform: none;
    box-shadow: none;
}
.imagen-mini {
    width: 60px; 
    height: auto; 
}
.imagen-pequena {
    width: 100px; 
    height: auto; 
}
.imagen-mediana {
    width: 200px;
    height: auto;
}
@media screen and (max-width: 767px) {
    .imagen-mediana {
        width: 100px;
        height: auto;
    }
}
.imagen-medianagrande {
    width: 300px;
    height: auto;
}
.titulo-derecha {
    margin-left: 50px; 
}
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}
.table-container {
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto; 
}
.responsive-table {
    width: 100%; 
    border-collapse: collapse;
}
.responsive-table th,
.responsive-table td {
    padding: 8px;
    text-align: center; 
    border: 1px solid #ccc;
    white-space: nowrap; 
}
.responsive-table th {
    background-color: #3bff55;
    font-weight: bold;
}
.responsive-table th:nth-child(2) {
    white-space: normal;
    line-height: 1.2; 
}
.responsive-table td:nth-child(3),
.responsive-table th:nth-child(3) {
    font-size: 0.9rem;
}
.responsive-table tbody {
    background-color: #e5ffdf;
}
@media screen and (max-width: 767px) {
    .responsive-table thead {
        display: table-header-group;
    }
    .responsive-table tr {
        display: table-row;
        margin-bottom: 0;
        border: none;
    }
    .responsive-table td {
        display: table-cell;
        text-align: center;
        position: static;
        padding-left: 8px;
    }
    .responsive-table td::before {
        content: none;
    }
    .responsive-table td:last-child {
        border-bottom: 1px solid #ccc;
    }
    .responsive-table th,
    .responsive-table td {
        padding: 6px; 
        font-size: 0.85rem; 
    }
    .responsive-table th:nth-child(2) {
        font-size: 0.9rem; 
    }
    .responsive-table td:nth-child(3),
    .responsive-table th:nth-child(3) {
        font-size: 0.8rem;
    }
}
@media (max-width: 768px) {
    .chart-wrapper {
        height: 300px !important; /* Reduce la altura */
        margin: 0.5rem auto !important; /* Reduce márgenes */
    }
    
    .chart-container {
        min-height: 350px !important; /* Reduce altura mínima */
        margin: 0.5rem !important; /* Reduce márgenes */
    }
    
    #result-chart {
        padding: 5px 0 !important;
    }
    
}
#result-chart {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
}
.chart-container {
    min-height: 700px;
    width: 90%;
    height: auto;
    margin: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.chart-wrapper {
    width: 90%;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto;
}

.chart-legend {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    margin-top: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.legend-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background-color: #f8fafc;
}
.legend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.legend-alimentacion { background-color: #ceffdd; }
.legend-alimentacion:hover { background-color: #a4ffc4; }
.legend-alimentacion .color-indicator { background-color: #22c55e; }
.legend-movilidad { background-color: #c9e1ff; }
.legend-movilidad:hover { background-color: #9dc7fd; }
.legend-movilidad .color-indicator { background-color: #3b82f6; }
.legend-electrodomesticos { background-color: #fef9c3; }
.legend-electrodomesticos:hover { background-color: #fef08a; }
.legend-electrodomesticos .color-indicator { background-color: #eab308; }
.legend-bienes { background-color:    #d5ccff; }
.legend-bienes:hover { background-color: #bbabff; }
.legend-bienes .color-indicator { background-color: #8b5cf6; }
.legend-vivienda { background-color: #ffceb7; }
.legend-vivienda:hover { background-color: #fecaca; }
.legend-vivienda .color-indicator { background-color: #e9967d; }
.color-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    flex-shrink: 0;
}
.chart-description {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.chart-description svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}
@keyframes chart-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes chart-entrance {
    0% { 
        opacity: 0;
        transform: scale(0.9);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}
.chart-pulse {
    animation: chart-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.chart-entrance {
    animation: chart-entrance 0.6s ease-out;
}
.chartist-tooltip {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    position: relative;
    z-index: 100;
}
.ct-legend li {
    display: inline-block;
    margin: 0 15px;
    position: relative;
    padding-left: 20px;
}
.ct-legend li:before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 4px;
}
.ct-chart {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}
.alimentacion:before { background-color: #4CAF50; }
.movilidad:before { background-color: #2196F3; }
.electro:before { background-color: #FFC107; }
.bienes:before { background-color: #9C27B0; }
.vivienda:before { background-color: #F44336; }
.btn-sabiasque {
    background-color: #4CAF50 !important;
    border-color: #388E3C !important;
    transition: all 0.3s ease !important;
}
.btn-sabiasque.active {
    background-color: #FFC107 !important;
    border-color: #FFA000 !important;
}
.btn-sabiasque:hover {
    filter: brightness(110%);
}
@media (max-width: 767px) {
    .mobile-star-margin {
      padding-left: 1rem; 
      padding-right: 1rem; 
    }

    #rating.mobile-star-margin {
      
      --min-width: calc(5 * (4rem + 1rem) + 2 * 1rem); 


      @container (max-width: var(--min-width)) {
        .star {
          font-size: 4.5rem;
        }
      }
    }
  }
  .error-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    max-width: 90%;
    text-align: center;
}

.animate-shake {
    animation: shake 0.5s linear;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}
.option-label {
    user-select: none;
    -webkit-user-select: none;
}

/* Mejora la respuesta táctil */
.option-label span {
    transition: transform 0.1s;
}

.option-label:active span {
    transform: scale(0.98);
}
.ct-label {
    font-size: 14px;
    font-weight: 500;
    fill: #333;
}

/* En móvil */
@media (max-width: 640px) {
    .ct-label {
        font-size: 12px;
    }
}
/* Estilos para botones deshabilitados */
.radio-disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.radio-disabled span {
    background-color: #e5e7eb !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
}
﻿@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 700;
  src: url(s/alegreyasans/v25/5aUu9_-1phKLFgshYDvh6Vwt5eFIqEp2jg.ttf) format('truetype');
}
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 900;
  src: url(s/alegreyasans/v25/5aUu9_-1phKLFgshYDvh6Vwt5dlKqEp2jg.ttf) format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url(s/lato/v24/S6uyw4BMUTPHjx4wWw.ttf) format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: url(s/lato/v24/S6u9w4BMUTPHh6UVSwiPHA.ttf) format('truetype');
}
