/* Footer Styles */
:root {
    --primary-color: #6b7b6c;
    --secondary-color: #d8cdc0;
    --dark-primary: #556155;
    --light-primary: #8a9a8b;
    --text-color: #333333;
    --background-color: #f8f5f2;
    --white-color: #ffffff;
    --accent-color: #a47453; /* Nuevo color cobre/marrón */

    --transition-slow: 0.5s ease;
    --transition-medium: 0.3s ease;
    --transition-fast: 0.2s ease;
    --font-title: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

/* Footer Info Section */
.footer__info {
    display: flex;
    flex-direction: column;
}

.footer__logo {
    margin-bottom: 20px;
    width: 180px;
}

.footer__tagline {
    font-family: var(--font-title);
    font-size: 18px;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--secondary-color);
}

.footer__contact {
    margin-top: auto;
}

.footer__contact p {
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
}

.footer__contact strong {
    color: var(--secondary-color);
}

/* Footer Services Section */
.footer__heading {
    font-family: var(--font-title);
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer__service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer__service-item h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer__service-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__service-item ul li {
    font-family: var(--font-body);
    font-size: 14px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
    transition: transform var(--transition-fast);
}

.footer__service-item ul li:hover {
    transform: translateX(5px);
}


.footer__service-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Footer Newsletter Section */
.newsletter-form {
    margin-top: 20px;
}

.newsletter-form p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.newsletter-form__input-group {
    display: flex;
    margin-bottom: 20px;
}

.newsletter-form__input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--white-color);
    border-radius: 4px 0 0 4px;
    transition: background-color var(--transition-fast);
}

.newsletter-form__input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form__input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form__submit {
    background-color: var(--secondary-color);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background-color var(--transition-fast);
}

.newsletter-form__submit:hover {
    background-color: #c8bdb0;
}

/* Footer Social Links */
.footer__social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    transform: scale(0);
    border-radius: 50%;
    transition: transform var(--transition-medium);
    z-index: 0;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-fast);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link:hover svg path {
    fill: var(--primary-color);
}

/* Footer Bottom */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    flex-wrap: wrap; /* Permite que se adapte en móviles */
    gap: 15px; /* Espacio entre elementos cuando se envuelven */
}

.footer__bottom-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.footer__copyright {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer__links {
    display: flex;
    gap: 20px;
}

.footer__links a {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--accent-color);
}

.social-link:nth-child(odd)::before {
    background-color: var(--secondary-color);
}

/* Media Queries */
@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer__newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer__newsletter {
        grid-column: auto;
    }
    
    .footer__service-list {
        grid-template-columns: 1fr;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__bottom-right {
        align-items: center;
        width: 100%;
    }
    
    .footer__social {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .footer__links {
        justify-content: center;
    }
}

/* Estilos para el logo en el footer */
.footer-logo-link {
    display: block;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1) sepia(5%) saturate(1000%) hue-rotate(35deg);
}

@media (max-width: 768px) {
    .footer-logo-img {
        max-width: 150px;
    }
}

/* Estilos para botones flotantes de redes sociales */
.floating-social {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

.floating-social__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-social__item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        background-color: var(--secondary-color); /* Cambia al color secundario en hover */

}

.floating-social__item:hover svg path {
    fill: var(--primary-color); /* El ícono cambia al color principal */
}

/* Colores específicos para cada red social */
.floating-social__item--whatsapp {
    background-color: var(--primary-color); /* Verde de la marca */
}

.floating-social__item--instagram {
    background-color: var(--accent-color); /* Color cobre/marrón */
}

.floating-social__item--facebook {
    background-color: var(--dark-primary); /* Verde oscuro de la marca */
}


/* Efecto de entrada */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-social__item {
    animation: floatIn 0.5s ease forwards;
        border: 2px solid var(--secondary-color);

}

.floating-social__item:nth-child(1) {
    animation-delay: 0.1s;
}

.floating-social__item:nth-child(2) {   
    animation-delay: 0.2s;
}

.floating-social__item:nth-child(3) {
    animation-delay: 0.3s;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .floating-social {
        right: 15px;
        bottom: 15px;
    }
    
    .floating-social__item {
        width: 45px;
        height: 45px;
    }
    
    .floating-social__item svg {
        width: 20px;
        height: 20px;
    }
}