/* Reset y fuentes */
* { box-sizing: border-box; }
body {
    font-family: Arial, sans-serif;
    margin: 0; padding: 0; background-color: #fff;
}

.top-bar { background-color: #e07a5f; height: 30px; }

header { text-align: center; padding: 30px 0; }
header h1 { font-size: 45px; margin: 0; }
.subtitle { font-family: serif; font-style: italic; font-size: 20px; color: #555; }

main { max-width: 900px; margin: 0 auto; padding: 20px; }

.prompt-box {
    background-color: #e07a5f; color: white;
    padding: 20px; border-radius: 12px; margin-bottom: 25px;
}

/* FOLDER LOGIC */
.tabs { display: flex; padding-left: 20px; }

.tab-button {
    background-color: #ccc; border: none;
    padding: 12px 25px; cursor: pointer;
    font-weight: bold; border-radius: 15px 15px 0 0;
    margin-right: 5px; transition: 0.3s;
}

.folder-container {
    border-radius: 0 25px 25px 25px;
    padding: 40px; min-height: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: background-color 0.4s ease;
}

/* Colores Dinámicos */
.basic-active { background-color: #ffeff3 !important; }
.tab-button[data-tab="basic"].active { background-color: #ffeff3; }

.oscilloscope-active { background-color: #def2f7 !important; }
.tab-button[data-tab="oscilloscope"].active { background-color: #def2f7; }

/* Contenidos */
.tab-content { display: none; }
.tab-content.active { display: block; }

.highlight-box {
    padding: 8px 15px; border-radius: 8px;
    font-weight: bold; display: inline-block; margin: 15px 0;
}
.highlight-box.red { background-color: #e07a5f; color: white; }
.highlight-box.pink { background-color: #fce4ec; color: #333; }

/* Galería de Sensores */
.sensors-gallery {
    display: grid; 
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; 
    margin-top: 20px; 
    position: relative;
}

.sensor-card {
    background: white; 
    border: 0px solid #ddd;
    padding: 0px; /* Reducido para que la imagen luzca más */
    text-align: center; 
    cursor: pointer;
    transition: 0.3s; 
    position: relative;
    /* Esto ayuda a que el cuadro sea proporcional */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px; 
}

.sensor-card img { 
    width: 100%;      /* Cambiado de 80% a 100% */
    height: 100%;     /* Para que use todo el alto del cuadro */
    object-fit: contain; /* ¡ESTA ES LA CLAVE! Muestra la imagen entera sin cortes */
    display: block;
}

.sensor-card p { 
    display: none;    /* Oculta el texto para que no estorbe el diseño */
}
/* CINTA CAFÉ */
.cinta-cafe {
    background-color: #bfa071; width: 40px; height: 18px;
    position: absolute; z-index: 10; border-radius: 2px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    display: none; transform: rotate(-5deg);
}

.details-panel {
    margin-top: 30px; background: rgba(255,255,255,0.5);
    padding: 20px; border-radius: 15px;
}

.result-img { width: 100%; border-radius: 10px; border: 4px solid #d81b60; }

.signals-flex { display: flex; gap: 20px; }
.sig-col { flex: 1; }
.divider { border-left: 1px solid #000; }
