/* Reset general */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Encabezado */
header {
    background-color: #b7c9a8;
    color: white;
    padding: 20px 0;
    text-align: center;
}

h1, h2, h3 {
    background-color: #b7c9a8;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffffff;
}

.encabezado-con-imagen {
    background-image: url("../static/img/29-6-2025_123056_hogarmagdala.blogspot.com.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6); /* mejora legibilidad del texto */
}

.text-shadow {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Navegación */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Main */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Secciones */
section {
    margin-bottom: 60px;
    text-align: left;
}

section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    
}

/* Contenido */
.content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.content p {
    font-size: 18px;
    text-align: justify;
    line-height: 1.8;
}

/* Imágenes de sección */
.section-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin: 0 auto;
    display: block;
}

/* Imagen con pie */
.foto-con-pie {
    text-align: center;
    margin-top: 20px;
}

.foto-con-pie img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.foto-con-pie figcaption {
    margin-top: 10px;
    font-style: italic;
    font-size: 16px;
    color: #555;
}

/* Lista de valores */
section#valores ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px 20px;
    padding-left: 0;
    list-style: none;
}

section#valores ul li {
    background-color: #b7c9a8;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #b7c9a8;
    color: white;
}

/* Botones */
.button, button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover, button:hover {
    background-color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 20px 15px;
    }

    .content {
        gap: 20px;
    }

    section#valores ul {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}
/*Modal de inicio de sesion*/

.login-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #444;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.login-button:hover {
  background-color: #222;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 30px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
}

.modal-content input {
  width: 90%;
  padding: 8px;
  margin: 10px 0;
}

.modal-content button {
  padding: 10px 20px;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #222;
}

.mi-header-personalizado {
    background-color: #b7c9a8; /* rojo vino o el que prefieras */
}

.bg-primary {
    background-color: #b7c9a8 !important;
}
