/* Estilos generales */
body {
    font-family: "Montserrat", sans-serif;
    background-color: white;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Secciones y artículos */
section {
    padding: .3rem .5rem;
    background-color: var(--button-color);
    margin: 1rem auto;
    width: 90%;
    max-width: 1000px;
    border-radius: 33px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.btn-ver-valores{
    margin-top: 20px;
    display: block;
    width: 100%;
    text-align: center;
}
article {
    margin: 1rem 0;
    padding: 1.5rem;
    background-color: white;
    border-radius: 33px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
}

h1, h2, h3, h4 {
    color: var(--button-color);
}

h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    margin: 1rem 0;
}

h3 {
    font-size: 1.2rem;
    color: var(--button-color);
    margin-top: 1rem;
}

h4 {
    font-size: 1rem;
    color: var(--text-color);
}

p {
    line-height: 1.6;
    margin: 0.5rem 0;
}

/* Listas de recomendaciones */
ul {
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
    list-style-type: disc;
}

ul li {
    margin: 0.5rem 0;
}

/* Aside para información importante */
aside {
    padding: 1rem;
    background-color: rgba(41, 156, 41, 0.1);
    border-left: 4px solid rgb(15, 176, 15);
    border-radius: 15px;
    margin: 1rem 0;
    color: var(--text-color);
}

aside ul {
    list-style-type: square;
    margin: 0.5rem 0 0 1.5rem;
}

aside ul li {
    margin: 0.3rem 0;
    color: var(--text-color);
}

/* Estilos de alerta para secciones críticas */
.alerta {
    background-color: rgba(255, 102, 102, 0.1);
    border-left: 5px solid #ff6666;
    padding: 1rem;
    border-radius: 15px;
    margin: 1rem 0;
    color: var(--text-color);
}

/* Enfocar títulos importantes */
strong {
    color: var(--text-color);
    font-weight: 700;
}

/* Diseño responsive */
@media (max-width: 768px) {
    /* Ajuste de la estructura principal en pantallas pequeñas */
    section {
        padding: 1rem;
        width: 90%;
        margin: 1rem auto;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1rem;
    }

    /* Cambia el .content-wrapper a una columna */
    .content-wrapper {
        display: flex;
        flex-direction: column; /* Coloca los elementos en columna */        
        width: 100%; /* Asegura que ocupe el 100% */
        margin: 0;
        width: 100%;
    }

    /* Asegura que .text-content y .card ocupen el 100% */
    .text-content, .card {
        width: 100% !important; /* Fuerza el 100% de ancho */
        margin: 0; /* Remueve márgenes */
    }

    .card {
        background-color: white;
        border: 1px solid #ddd;
        border-radius: 15px;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .emergency-contact h2 {
        font-size: 1rem;
    }
}

/* Estilos de emergencia */
.emergency-contact {
    background-color: rgba(255, 102, 102, 0.3);
    border-radius: 33px;
    padding: 1.5rem;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    margin-bottom: 2rem;
}

.emergency-contact h2 {
    color: var(--text-color);
}

.emergency-contact h2 i {
    color: red;
    margin: 0 8px;
    vertical-align: middle;
}

/* Estilo para la clase .interes */
.interes {
    background-color: var(--background-color-secondary) !important;
    border-radius: 33px;
    padding: 1rem 1.5rem !important;
    color: var(--text-color);
}

.interes a {
    color: var(--button-color);
}

.interes h2 {
    color: var(--text-color);
}

.interes p {
    color: var(--text-color);
}

/* Ajustes para el layout en pantalla ancha */
.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.text-content {
    width: 65%;
    text-align: justify;
}

.card {
    width: 30%;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos para la tarjeta de gases */
.gases {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gas-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 33px;
    padding: 20px;
    margin: 10px;
    width: calc(33.333% - 40px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos de puntos de colores */
.levels div {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.level {
    font-weight: bold;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 33px;
    margin-right: 8px;
}

.green { background-color: green; }
.yellow { background-color: yellow; }
.red { background-color: red; }
