/* General */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Cuerpo y tipografía global */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f3f3f3;
  color: #333;
}

/* Barra de información superior */
.container_information {
  width: 100%;
  height: 40px;
  padding: 0 50px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #c0c0c0;
  background-color: #fff;
  position: fixed;
  top: 0;
  z-index: 1002;
}
.container_information .container_redes {
  display: flex;
  align-items: center;
  border-right: 1px solid #c0c0c0;
  padding-right: 10px;
}
.container_redes a,
.container_contact a {
  margin-right: 10px;
  color: #6b6b6b;
  text-decoration: none;
}
.container_contact a .fa-solid {
  margin-right: 5px;
}

/* Header con logo y botón de menú */
header {
  width: 100%;
  height: 70px;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ddd;
  background: #fff;
  position: fixed;
  top: 40px;
  z-index: 1001;
}
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle .fa-solid {
  font-size: 15px;
  color: #b6b6b6;
}
.container_logo img {
  height: 60px;
  margin-left: 20px;
}

/* Sidebar fijo en escritorio */
.sidebar {
  width: 60px;
  background: #333;
  position: fixed;
  top: 110px;
  bottom: 0;
  left: 0;
  overflow: hidden;
  transition: width 0.3s;
  z-index: 1000;
}
.sidebar .menu {
  display: flex;
  flex-direction: column;
  padding-left: 10px;
  opacity: 0;
  transition: opacity 0.3s;
}
.sidebar.open {
  width: 200px;
}
.sidebar.open .menu {
  opacity: 1;
}
.sidebar .menu a {
  color: white;
  text-decoration: none;
  padding: 10px 0;
  display: flex;
  align-items: center;
}
.sidebar .menu a i {
  margin-right: 10px;
}

/* Contenido principal */
.main-content {
  margin-left: 60px;
  margin-top: 110px;
  padding-bottom: 80px;
  transition: margin-left 0.3s;
}
.main-content.shrink {
  margin-left: 200px;
}

/* Sección de inicio con fondo */
.container_start {
  position: relative;
  background-image: url('public/img/galeriabanner.jpg');
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;
}
.container_start::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
.container_start * {
  position: relative;
  z-index: 2;
}
.container_start h1 {
  font-size: 3rem;
  letter-spacing: 2px;
}
.container_start p {
  font-size: 1.5rem;
  opacity: 0.9;
}

/* Sección novedades */
.container_novedades {
  text-align: center;
  margin: 40px 20px;
  padding: 40px 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.container_novedades h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}
.container_novedades p {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Galería de Momentos - Header */
.gallery-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(110, 72, 170, 0.85) 0%, rgba(157, 80, 187, 0.85) 100%),
    color: white;
    margin: 2rem 0;
    border-radius: 8px;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.gallery-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.gallery-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Collage de Fotos Elegante */
.collage-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.photo-item {
    display: flex;
    margin-bottom: 3rem;
    align-items: center;
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 300px;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.photo-left {
    flex-direction: row;
}

.photo-right {
    flex-direction: row-reverse;
}

.photo-img-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-img-container:hover .photo-img {
    transform: scale(1.05);
}

.photo-description {
    flex: 1;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.photo-description h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2585d3;
    position: relative;
    padding-bottom: 0.5rem;
}

.photo-description h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #2585d3;
}

.photo-description p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.photo-description small {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    font-weight: 600;
}

/* Footer completo */
.footer {
    background-color: #222;
    font-size: 14px;
    color: white;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: left;
}

.footer-section {
    max-width: 300px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #2585d3;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section p,
.footer-section ul {
    margin: 5px 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: #2585d3;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 20px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #2585d3;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 10px;
}


/* Modificación para el footer cuando el menú está abierto */
.sidebar.open ~ .footer {
    padding: 20px 20px; /* Reducimos el padding del footer cuando el menú está abierto */
    transition: padding 0.3s ease; /* Transición suave */
}

/* También podemos reducir la altura de la sección de contacto si es necesario */
.sidebar.open ~ .footer .footer-container {
    display: none; /* Opcional: Puedes ocultar parte del contenido si lo deseas */
}

/* Modificaciones para la versión móvil */
@media screen and (max-width: 768px) {
    .main-content {
        margin-left: 0;
        margin-top: 110px;
    }

    .main-content.shrink {
        margin-left: 0;
    }

    .sidebar {
        display: none;  /* Ocultamos el menú lateral por defecto en móviles */
    }

    /* Cuando el sidebar tiene la clase 'open', lo mostramos */
    .sidebar.open {
        display: block;
    }

    .main-content {
        margin-left: 0;
        margin-top: 110px;
    }

    .main-content.shrink {
        margin-left: 0;
    }

    .menu-toggle {
        z-index: 1003;
        display: block; /* Aseguramos que el botón de menú sea visible */
    }

    /* Corrección para evitar desbordamiento */
    .container_start {
        height: 600px;
    }

    .container_start h1 {
        font-size: 2.5rem;
    }

    .container_start p {
        font-size: 1.2rem;
    }
}
/* ==== ADAPTACIÓN DE TARJETAS EN MÓVILES ==== */
@media screen and (max-width: 768px) {
    .photo-item {
        flex-direction: column !important;
        height: auto;
        margin: 1rem 0;
    }

    .photo-img-container,
    .photo-description {
        width: 100%;
    }

    .photo-img-container {
        height: 200px;
    }

    .photo-description {
        padding: 1.5rem;
    }

    .photo-description h3 {
        font-size: 1.3rem;
    }

    .photo-description p {
        font-size: 0.95rem;
    }
}

