/* Estilos base */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: antiquewhite;
}

body {
    display: flex;
    flex-direction: column;
    /* position: relative; */
    min-height: 100vh;
    margin: 0;
}

/* Header y Logo */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
}

.logo {
    text-align: center;
    z-index: 2;
}

.circular {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.circular:hover {
    transform: rotate(360deg);
}

/* Navegación vertical */
.nav_container {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: black;
    padding: 20px;
    border-radius: 0 30px 30px 0;
    z-index: 100;
}

.nav_container li {
    list-style: none;
    margin: 15px 0;
}

.nav_container a {
    color: antiquewhite;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    display: block;
    padding: 10px;
}

.nav_container a:hover {
    color: cadetblue;
}

/* Títulos */
.titulos {
    background-color: black;
    text-align: center;
    padding: 20px;
    border-radius: 30px;
    margin: 20px;
}

.lema {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.lema:hover {
    color: cadetblue;
}

/* Historia normal (Index) */
.historia {
    display: block;
    background-color: #252525;
    width: 950px;
    height: 100%;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
    border: 4px solid;
    border-radius: 10px;
    color: beige;
    font-family: cursive;
    max-width: 800px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: justify;
}


/* Restaurar estilos del formulario */
.container {
    display: block;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    margin: 200px;
}
.content{
    flex: 1;
    padding: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-top: 10px;
}

input, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #28a745;
    color: white;
    padding: 10px;
    margin-top: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

#message {
    margin-top: 10px;
    font-weight: bold;
    color: green;
}
.expanded{
    max-height: 1000px;

}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    width: 100%;
    height: 60px;
    padding: 15px 0;
    position: relative;
    bottom: 0;
    border-radius: 20px 20px 0 0;
    margin-top: auto;
}

.footer p {
    margin: 0;
    color: lightgray;
    font-family: cursive;
    font-size: 10px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .circular {
        width: 150px;
        height: 150px;
    }

    .nav_container {
        position: static;
        transform: none;
        border-radius: 30px;
        margin: 10px;
        padding: 10px;
    }

    .nav_container li {
        text-align: center;
    }

    .historia {
        margin: 20px;
        width: auto;
    }

    .container {
        margin: 20px;
        width: auto;
    }

    .titulos {
        margin: 10px;
        padding: 15px;
    }

    .lema {
        font-size: 1.2em;
    }
}
.nosotros-content {
    background: linear-gradient(to bottom, #d2b48c 0%, #e5d3b3 100%);
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    border-radius: 10px;
    color: #463E3F;
    font-family: 'Times New Roman', serif;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    transition: max-height 0.5s ease-in-out;
    max-height: 100px;
    overflow: hidden;
}

.nosotros-content.expanded {
    max-height: 4000px;
    cursor: default;
}

.nosotros-content h2 {
    color: #8B4513;
    margin-top: 20px;
    margin-bottom: 10px;
}

.nosotros-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.nosotros-content ul li {
    margin-bottom: 5px;
    color: #463E3F;
}

.nosotros-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Añadir un indicador visual para el expandible */
.nosotros-content:not(.expanded)::after {
    content: "Click para ver más...";
    display: flex;
    text-align: center;
    color: #8B4513;
    font-style: italic;
    margin-top: 10px;
}
.nosotros-content {
    background: linear-gradient(to bottom, #d2b48c 0%, #e5d3b3 100%);
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    border-radius: 10px;
    color: #463E3F;
    font-family: 'Times New Roman', serif;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    transition: all 0.5s ease;
    cursor: pointer;
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

.nosotros-content.expanded {
    max-height: 2000px; /* Aumentado para asegurar que todo el contenido sea visible */
    cursor: default;
}

/* Indicador visual */
.nosotros-content:not(.expanded)::after {
    content: "Click para ver más...";
    display: block;
    text-align: center;
    color: #8B4513;
    font-style: italic;
    margin-top: 10px;
    font-size: 14px;
}

.nosotros-content.expanded::after {
    content: "▲ Click para ver menos";
}