footer {
    background: linear-gradient(to right, #1a1d1d, #4FB286); /* Gradiente más suave */
    color: white;
    padding: 2rem 1rem 0.5rem; /* Reducido el padding */
    margin-top: auto;
    position: relative;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
    min-height: 200px; /* Reducida la altura mínima */
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; /* Reducido el gap */
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: #81C784; /* Verde más claro para títulos */
    font-size: 1.2rem; /* Reducido tamaño */
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.3rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px; /* Línea más corta */
    height: 2px;
    background: #A5D6A7;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-section:hover h3::after {
    width: 50px; /* La línea se expande al hover */
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding-left: 0; /* Quitado el padding inicial */
}

.footer-section a::before {
    content: '•';
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #A5D6A7;
    transform: translateX(5px);
}

.footer-section a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-section p {
    line-height: 1.5;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.copyright {
    text-align: center;
    margin-top: 1.5rem; /* Reducido el margen */
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

/* Animación del icono */
@media (min-width: 768px) {
    .footer-section:first-child {
        position: relative;
    }
    
    .footer-section:first-child::after {
        content: '🌱';
        position: absolute;
        top: -15px;
        right: 15px;
        font-size: 1.5rem;
        opacity: 0.8;
        transform: rotate(-15deg);
        transition: all 0.3s ease;
    }

    .footer-section:first-child:hover::after {
        transform: rotate(0deg) scale(1.1);
        opacity: 1;
    }
}