/* ========================================
   FOOTER.CSS
   ======================================== */
footer {
    background: rgb(48, 48, 48);
    padding: 60px 0 20px 0;
    color: #ccc;
    font-size: 14px;
}
.contenedor-footer {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 40px;
    border-bottom: 1px solid #444;
}
.footer-logo {
    width: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.newsletter-integrated h4 {
    color: #fffac2;
    margin-bottom: 5px;
    font-size: 16px;
}
.newsletter-integrated p {
    font-size: 13px;
    margin-bottom: 15px;
    color: #aaa;
}
.footer-form .input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
    border-radius: 50px;
    padding: 5px;
}
.footer-form input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 15px;
    flex: 1;
    outline: none;
    font-size: 13px;
}
.footer-form button {
    background: #5e1c26;
    color: #fffac2;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.2s,
        background 0.2s;
}
.footer-form button:hover {
    background: #fffac2;
    color: #5e1c26;
    transform: scale(1.1);
}
.footer-socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.mini-social {
    color: #fffac2;
    width: 30px;
    height: 30px;
    border: 1px solid #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.mini-social:hover {
    background: #5e1c26;
    border-color: #5e1c26;
    transform: translateY(-3px);
}
.mini-social svg {
    width: 16px;
    height: 16px;
}
.footer-col h3 {
    color: #fffac2;
    font-size: 18px;
    margin-bottom: 20px;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition:
        color 0.2s,
        padding-left 0.2s;
    display: block;
}
.footer-links a:hover {
    color: #fffac2;
    padding-left: 5px;
}
.contact-icons-grid {
    display: flex;
    gap: 20px;
}
.c-icon {
    width: 45px;
    height: 45px;
    background: rgba(94, 28, 38, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fffac2;
    transition: all 0.3s;
}
.c-icon svg {
    width: 24px;
    height: 24px;
}
.c-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fffac2;
    color: #5e1c26;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 12px;
    width: max-content;
    max-width: 200px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 10;
}
/* --- AGREGAR ESTO PARA QUE LOS TOOLTIPS FUNCIONEN --- */
.c-icon-box {
    position: relative; /* ¡CLAVE! Hace que el tooltip flote sobre ESTE elemento */
    cursor: pointer; /* Opcional: cambia el cursor para indicar ayuda */
}

/* El resto de tus estilos de tooltip (.c-tooltip, etc.) déjalos igual */
.c-icon-box:hover .c-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #666;
    font-size: 12px;
}
@media (max-width: 800px) {
    .contenedor-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo,
    .footer-form .input-wrapper {
        margin: 0 auto;
    }
    .footer-socials,
    .contact-icons-grid {
        justify-content: center;
    }
}
@media (max-width: 800px) {
    .contenedor-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* --- CORRECCIÓN DE ESPACIADO DEL LOGO --- */
    .footer-logo {
        margin: 0 auto 30px auto; /* 30px de espacio abajo para separar del form */
    }

    .footer-form .input-wrapper {
        margin: 0 auto;
    }

    .footer-socials,
    .contact-icons-grid {
        justify-content: center;
    }

    /* Opcional: Darle aire a los iconos de contacto en móvil también */
    .contact-icons-grid {
        margin-bottom: 20px;
    }
}
