/* Estilos para la sección de recuerdos */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f5ff;
    color: #333;
}

/* Estilos para la barra de navegación */
.custom-navbar {
    background: linear-gradient(135deg, #563d7c 0%, #4a235a 100%);
    padding: 12px 0;
    box-shadow: 0 2px 15px rgba(74, 35, 90, 0.3);
}

.custom-navbar .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    position: relative;
}

.custom-navbar .navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D8BFD8;
    transition: width 0.3s ease;
}

.custom-navbar .navbar-brand:hover::after {
    width: 100%;
}

.custom-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 10px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.custom-navbar .navbar-nav .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.custom-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #D8BFD8;
    left: 15px;
    bottom: 5px;
    transition: width 0.3s ease;
}

.custom-navbar .navbar-nav .nav-link:hover::after {
    width: calc(100% - 30px);
}

.custom-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Resto de estilos para las memories */
.memories-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #9370DB;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
}

.memories-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #D8BFD8, #9370DB);
}

.memories-container {
    max-width: 1200px;
    margin: 0 auto;
}

.memory-card {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(147, 112, 219, 0.1);
    transition: all 0.4s ease;
    max-height: 350px;
    position: relative;
}

.memory-card::before,
.memory-card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: #9370DB;
    transition: width 0.6s ease;
    z-index: 2;
}

.memory-card::before {
    top: 0;
    left: 0;
}

.memory-card::after {
    bottom: 0;
    right: 0;
}

.memory-card:hover::before,
.memory-card:hover::after {
    width: 100%;
}

.memory-card .row {
    max-height: 350px;
    align-items: stretch;
}

.memory-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(147, 112, 219, 0.2);
    border: 1px solid rgba(147, 112, 219, 0.2);
}

.memory-image {
    overflow: hidden;
    height: 350px;
    position: relative;
    max-height: 350px;
    text-align: center;
    background-color:  #9470db3b;
}

.memory-image::before,
.memory-image::after {
    content: '';
    position: absolute;
    height: 0;
    width: 3px;
    background: #9370DB;
    transition: height 0.6s ease;
    z-index: 2;
}

.memory-image::before {
    top: 0;
    left: 0;
}

.memory-image::after {
    bottom: 0;
    right: 0;
}

.memory-card:hover .memory-image::before,
.memory-card:hover .memory-image::after {
    height: 100%;
}

.memory-image img {
    width: auto;
    height: 350px;
    object-fit: contain;
    transition: all 1.8s ease;
    object-position: center;
}

.memory-card:hover .memory-image img {
    transform: scale(1.25);
    filter: saturate(1.25);
}

.memory-content {
    padding: 1.5rem;
    position: relative;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 350px;
    overflow: auto;
}

.memory-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #9370DB;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    display: inline-block;
}

.memory-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D8BFD8;
    transition: width 0.4s ease;
}

.memory-card:hover .memory-title {
    color: #8A2BE2;
    transform: translateX(5px);
}

.memory-card:hover .memory-title::after {
    width: 100%;
}

.memory-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
    transition: color 0.3s ease;
    overflow-y: auto;
    max-height: 160px;
}

.memory-card:hover .memory-text {
    color: #6A5ACD;
}

.memory-date {
    font-size: 0.85rem;
    color: #9370DB;
    font-style: italic;
    transition: transform 0.3s ease;
    margin-top: auto;
}

.memory-date::before {
    content: '📆 ';
    margin-right: 5px;
}

.memory-card:hover .memory-date {
    transform: translateX(5px);
}

/* Efecto de animación al cargar la página */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.memory-card {
    animation: fadeInUp 1.8s ease forwards;
    opacity: 0;
}

.memory-card:nth-child(2) {
    animation-delay: 0.2s;
}

.memory-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    .memory-card .row {
        flex-direction: column;
        max-height: none;
    }
    
    .memory-card {
        max-height: none;
    }
    
    .memory-image {
        height: 200px;
        max-height: 200px;
    }
    
    .memory-image img {
        height: 200px;
    }
    
    .memory-content {
        height: auto;
        max-height: none;
    }
    
    .memory-title {
        font-size: 1.4rem;
        margin-top: 0.5rem;
    }
}
