@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
    
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f9;
    margin: 0;
    padding: 0;
    display: flex;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.sidebar h2 {
    color: #3498db;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: #3498db;
}

.container {
    flex-grow: 1;
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 12px;
}

h1, h2, h3 {
    color: #2c3e50;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

h2 {
    margin-top: 30px;
    font-size: 1.8em;
    border-left: 10px solid #3498db;
    padding-left: 10px;
}

h3 {
    font-size: 1.4em;
    margin-top: 25px;
    border-left: 16px solid #7c7e80;
}

p, ul {
    margin-bottom: 20px;
}

.key-concept {
    background-color: #e8f6fc;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
}

.key-concept h3 {
    margin-top: 0;
    color: #2980b9;
}



.definition {
    font-style: italic;
    color: #34495e;
    border-bottom: 1px dotted #34495e;
}

.interaction {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

svg {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}

p {
    text-align: justify;
    line-height: 1.6;
}


/* Botón estilo app de teléfono */
.boton {
background-color: #5ca1e2; /* Color azul suave */
color: white;
padding: 14px 30px;
font-size: 16px;
border-radius: 20px;
text-align: center;
display: inline-block;
font-weight: bold;
cursor: pointer;
border: none; /* Quitar bordes para un estilo más limpio */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 -2px 6px rgba(255, 255, 255, 0.2); /* Sombras suaves para efecto flotante */
transition: all 0.2s ease;
}

/* Efecto de presionado */
.boton:active {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 4px rgba(255, 255, 255, 0.1);
transform: translateY(2px); /* Pequeña traslación para efecto táctil */
}

/* Efecto de hover */
.boton:hover {
background-color: #4a8fc1; /* Azul un poco más oscuro en hover */
}
/* Contenedor principal centrado */
.image-container {
display: flex;
flex-direction: column;
align-items: center;
max-width: 350px; /* Tamaño fijo para el contenedor */
margin: 20px auto;
font-family: Arial, sans-serif;
}

/* Nota de advertencia */
.important-note {
display: flex;
align-items: center;
justify-content: center;
background-color: #4e4b4b;
color: #4deb25;
padding: 10px;
border-radius: 5px;
font-weight: bold;
font-size: 0.8rem;
width: 100%; /* Para igualar el ancho con la imagen */
box-sizing: border-box;
margin-bottom: 15px;
text-align: center;
}

.important-note i {
margin-right: 8px;
font-size: 0.8rem;
}

/* Enlace de la imagen con efecto hover */
.image-link {
display: block;
width: 100%; /* Ancho igualado al contenedor */
transition: transform 0.3s ease;
}

.image-link:hover {
transform: scale(1.05);
}

/* Imagen con estilo */
.image-thumbnail {
width: 100%; /* Ancho igualado al contenedor */
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Pie de foto estilizado */
.image-caption {
font-size: 0.9rem;
color: rgb(155, 146, 146);
margin-top: 10px;
font-style: italic;
text-align: center;
}
.simulador {
display: flex;
justify-content: center;
align-items: center;
padding: 30px; /* Espacio interno amplio para simular el marco de la tablet */
margin: 20px auto;
border-radius: 30px; /* Bordes redondeados para apariencia de tablet */
background: #e0e5ec;
box-shadow: 10px 10px 20px #b0b3b8, -10px -10px 20px #ffffff;
max-width: 300px;
max-height: 600px;
border: 2px solid #333; /* Borde exterior oscuro */
position: relative;
}

/* Efecto biselado en el marco para simular el borde de una pantalla */
.simulador::before {
content: '';
position: absolute;
top: 10px;
left: 10px;
right: 10px;
bottom: 10px;
border-radius: 20px;
border: 3px solid #c0c4ca; /* Bisel interior */
box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.15);
pointer-events: none;
}

/* Contenedor con efecto de marco tipo iPad */
.imagineus {
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
margin: 20px auto;
border-radius: 30px;
background:black; /* Fondo negro elegante */
max-width: 300px;
max-height: 620px;
position: relative;
box-shadow: 0 10px 20px rgba(126, 123, 123, 0.5), inset 0 -4px 8px rgba(196, 190, 190, 0.1);
overflow: hidden;
}

/* Bisel oscuro interior para un marco de pantalla */
.imagineus::before {
content: '';
position: absolute;
top: 8px;
left: 8px;
right: 8px;
bottom: 8px;
border-radius: 22px;
background: transparent;
box-shadow: inset 0 6px 12px rgba(187, 180, 180, 0.4), inset 0 4px 8px rgba(100, 98, 98, 0.3);
pointer-events: none;
}

/* Contenido dentro del marco */
.imagineus-content {
z-index: 1; /* Asegura que el contenido esté encima del borde biselado */
width: 100%;
height: 100%;
border-radius: 20px;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
background: #222; /* Fondo que asemeja la "pantalla apagada" */
}

/* Imagen o video dentro de la pantalla, ajustado */
.imagineus-content img,
.imagineus-content video {
max-width: 100%;
max-height: 100%;
object-fit: cover;
border-radius: 12px;
}
.columnas_dobles {
display: flex; /* Usar Flexbox para distribuir elementos */
flex-wrap: wrap; /* Permitir que los elementos se envuelvan en varias filas */
gap: 5px; /* Espacio entre las columnas */
}
/* Modal styling */
.modal {
display: none; /* Hidden by default */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
align-items: center;
justify-content: center;
z-index: 1000;
}

.modal-content {
background: white;
padding: 20px;
border-radius: 10px;
max-width: 500px;
text-align: center;
}

.modal-footer {
text-align: center;
margin-top: 10px;
}

.modal-button {
padding: 10px 20px;
background-color: #5ca1e2;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.tooltip {
        position: relative;
        display: inline-block;
        border-bottom: 1px dotted #3498db;
        cursor: help;
    }

    .tooltip .tooltiptext {
        visibility: hidden;
        width: 250px;
        background-color: #34495e;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 10px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -125px;
        opacity: 0;
        transition: opacity 0.3s, transform 0.3s;
        transform: translateY(10px);
        font-size: 0.9em;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    .tooltip:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    .physics-section {
font-family: "Georgia", serif;
background-color: #f9f9f9;
border-left: 4px solid #4a90e2;
padding: 15px 20px;
margin: 20px 0;
border-radius: 5px;
}

.physics-section h4 {
font-size: 1.2em;
color: #333;
margin-bottom: 10px;
}

.physics-section p {
line-height: 1.6;
color: #555;
margin-bottom: 12px;
}

.physics-section .formula {
font-family: "Courier New", monospace;
font-size: 1.1em;
color: #333;
background-color: #eaeff2;
padding: 5px 10px;
display: inline-block;
border-radius: 3px;
margin: 10px 0;
}

.physics-section .explanation {
font-style: italic}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Arial', sans-serif;
}

.section-header {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tooltip {
    position: relative;
    display: inline-block;
    color: #3498db;
    border-bottom: 1px dotted #3498db;
    cursor: help;
}

.tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 5px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.media-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.media-content {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.image-caption {
    padding: 1rem;
    background: #f8f9fa;
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.clinical-note {
    background: #e8f4f8;
    padding: 1rem;
    border-left: 4px solid #3498db;
    margin: 1rem 0;
}

.interactive-element {
    background: #fff8dc;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.interactive-element i {
    font-size: 1.5rem;
    color: #e74c3c;
}