/* Reset general */ * { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; } body { font-family: 'Segoe UI', sans-serif; background-color: #f5f5f5; color: #222; display: flex; flex-direction: column; min-height: 100vh; } /* Encabezado */ .header-contenido { display: flex; flex-direction: column; align-items: center; background: linear-gradient(#002b7f); color: white; padding: 1rem; text-align: center; gap: 0.5rem; } .logo { width: 40px; height: auto; } .header-contenido h1 { font-size: 1.3rem; line-height: 1.3; } /* Menú de navegación */ nav { background-color: white; border-top: 4px solid red; border-bottom: 1px solid #ccc; } .nav-bar { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0.5rem 0; gap: 1rem; } .nav-bar li a { text-decoration: none; color: #002b7f; font-weight: bold; display: flex; align-items: center; gap: 0.3rem; padding: 0.4rem 0.8rem; border-radius: 5px; transition: background-color 0.3s; } .nav-bar li a:hover { background-color: #f0f0f0; } /* Contenido principal */ main.contenido { flex: 1; padding: 2rem 1rem; max-width: 1000px; margin: 0 auto; background-color: #ffffff; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.05); } /* Secciones de contenido */ .seccion { margin-bottom: 2rem; } .titulo-rojo { color: #d52b1e; font-size: 1.4rem; margin-bottom: 0.5rem; } .titulo-azul { color: #002b7f; font-size: 1.4rem; margin-bottom: 0.5rem; } .seccion p { text-align: justify; line-height: 1.6; font-size: 1rem; } /* Himno */ .himno { white-space: pre-wrap; background-color: #f9f9f9; border-left: 5px solid #002b7f; padding: 1rem; font-size: 1rem; line-height: 1.5; } /* Pie de página con franja roja */ footer.pie { background-color: #d52b1e; /* Rojo institucional */ color: white; text-align: center; padding: 1rem; font-size: 0.9rem; margin-top: auto; border-top: 4px solid #a60000; /* línea superior más oscura */ } /* BH */ .menu-toggle { display: none; background: none; border: none; font-size: 2rem; color: #002b7f; padding: 0.5rem 1rem; cursor: pointer; } /*MAIN ORDENADO*/ .contenido-principal { max-width: 1200px; margin: auto; padding: 2rem 1rem; display: flex; flex-direction: column; gap: 2rem; } .fila { display: grid; gap: 2rem; } .fila-arriba { grid-template-columns: 2fr 1fr; align-items: stretch; } .fila-galeria { grid-template-columns: 1fr; } .fila-abajo { grid-template-columns: 1fr 1fr; } .tarjeta { background-color: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.05); } .tarjeta h2, .tarjeta h3 { color: #002b7f; margin-bottom: 1rem; text-align: center; } .bienvenida p { text-align: center; font-size: 1rem; } .logo-bienvenida { display: block; margin: 1rem auto 0 auto; width: 90px; height: auto; } iframe { width: 100%; border: 0; border-radius: 10px; } /* Galería de imágenes */ .galeria-contenedor { display: flex; flex-wrap: wrap; justify-content: space-evenly; align-items: center; gap: 1.5rem; padding-top: 0.5rem; } .galeria-contenedor figure { text-align: center; flex: 1 1 30%; max-width: 250px; } .galeria-contenedor img { width: 100%; border-radius: 50% / 30%; object-fit: cover; height: 150px; } .galeria-contenedor figcaption { margin-top: 0.5rem; font-weight: bold; color: #002b7f; } /* Navegación rápida */ .tarjeta ul { list-style: none; padding: 0; } .tarjeta ul li { margin: 0.5rem 0; } .tarjeta ul li a { text-decoration: none; color: #002b7f; font-weight: bold; } .tarjeta ul li a:hover { text-decoration: underline; } /* Responsive */ @media (max-width: 1200px) { .contenido-principal { padding: 1rem; } .fila-arriba { grid-template-columns: 1fr; } .fila-abajo { grid-template-columns: 1fr; } .galeria-contenedor figure { flex: 1 1 45%; } } @media (max-width: 768px) { .galeria-contenedor figure { flex: 1 1 100%; max-width: 90%; } .header-contenido h2 { font-size: 1.1rem; } .nav-bar { flex-direction: column; align-items: center; } .nav-bar li { width: 100%; text-align: center; } .tarjeta { max-width: 100%; margin: 1rem 0; } footer > div { flex-direction: column !important; align-items: center !important; } } .galeria-instalaciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; padding: 2rem; } .tarjeta-img { background-color: white; border-radius: 12px; box-shadow: 0 0 10px rgba(0,0,0,0.08); text-align: center; padding: 1rem; } .tarjeta-img img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; } .tarjeta-img h3 { margin-top: 1rem; font-size: 1.1rem; color: #002b7f; } .galeria-contenedor { padding: 2rem; text-align: center; } .categorias { margin-bottom: 1rem; } .categorias button { background-color: #e6e6e6; border: none; margin: 0 5px; padding: 0.5rem 1rem; font-weight: bold; border-radius: 6px; cursor: pointer; transition: background-color 0.3s; } .categorias button:hover, .categorias button.activa { background-color: #002b7f; color: white; } .carrusel-principal { position: relative; max-width: 90%; margin: auto; overflow: hidden; border-radius: 10px; } .carrusel-imagenes { display: flex; transition: transform 0.5s ease-in-out; width: 100%; } .carrusel-imagenes img { width: 100%; height: 250px; object-fit: cover; border-radius: 12px; flex-shrink: 0; } .btn-prev, .btn-next { position: absolute; top: 50%; transform: translateY(-50%); background-color: #002b7f; color: white; border: none; font-size: 1.5rem; padding: 0.5rem 1rem; cursor: pointer; border-radius: 50%; z-index: 1; } .btn-prev:hover, .btn-next:hover { background-color: #003f9e; } .btn-prev { left: 10px; } .btn-next { right: 10px; } @media (max-width: 768px) { .carrusel-imagenes img { height: 180px; } } .carrusel-principal { position: relative; max-width: 800px; margin: 2rem auto; overflow: hidden; border-radius: 12px; box-shadow: 0 0 15px rgba(0,0,0,0.1); background-color: white; } .carrusel-imagenes { display: flex; transition: transform 0.5s ease-in-out; } .carrusel-imagenes img { width: 100%; height: 300px; object-fit: cover; border-radius: 12px; flex-shrink: 0; } .btn-prev, .btn-next { position: absolute; top: 50%; transform: translateY(-50%); background-color: #002b7f; color: white; border: none; font-size: 2rem; padding: 0.3rem 0.8rem; cursor: pointer; border-radius: 50%; z-index: 2; } .btn-prev:hover, .btn-next:hover { background-color: #0044b6; } .btn-prev { left: 10px; } .btn-next { right: 10px; } .galeria-contenedor { max-width: 1200px; margin: auto; padding: 2rem; text-align: center; } .galeria-contenedor h2 { font-size: 2rem; color: #002b7f; margin-bottom: 0.5rem; } .galeria-contenedor p { font-size: 1.1rem; color: #444; margin-bottom: 2rem; } .categorias { margin-bottom: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; } .btn-categoria { background-color: #e6e6e6; border: none; padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: bold; cursor: pointer; color: #002b7f; transition: background-color 0.3s ease; } .btn-categoria.activa, .btn-categoria:hover { background-color: #002b7f; color: white; } .carrusel-principal { position: relative; display: flex; align-items: center; justify-content: center; gap: 1rem; } .carrusel-imagenes { display: flex; overflow-x: auto; gap: 1rem; scroll-behavior: smooth; padding: 1rem; scroll-snap-type: x mandatory; max-width: 100%; } .carrusel-imagenes img { flex: 0 0 auto; height: 280px; width: 420px; object-fit: cover; border-radius: 12px; scroll-snap-align: center; box-shadow: 0 0 10px rgba(0,0,0,0.1); } .btn-prev, .btn-next { background-color: #002b7f; border: none; color: white; font-size: 1.5rem; padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; transition: background-color 0.3s ease; } .btn-prev:hover, .btn-next:hover { background-color: #0040b0; } /* Responsive */ @media (max-width: 768px) { .carrusel-imagenes img { height: 200px; width: 300px; } }