/* ================================================================
   footer.css — ImaginaEn3D Astra Child Theme
   Depende de: base.css (variables CSS globales en style.css)
   ================================================================ */


/* ----------------------------------------------------------------
   BASE DEL FOOTER
   ---------------------------------------------------------------- */
.ie3-footer {
    background-color: var(--color-noche);
    color: var(--color-gris);
    font-family: var(--font-cuerpo);
    font-size: 0.9rem;
    line-height: 1.7;
}


/* ----------------------------------------------------------------
   CUERPO PRINCIPAL — cuadrícula de 4 columnas
   ---------------------------------------------------------------- */
.ie3-footer__body {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ie3-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 64px 24px 48px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px 48px;
    align-items: start;
}


/* ----------------------------------------------------------------
   COLUMNA 1: MARCA
   ---------------------------------------------------------------- */
.ie3-footer__col--brand .ie3-footer__logo {
    display: inline-block;
    margin-bottom: 16px;
    text-decoration: none;
}

/* Cuando hay logo SVG/PNG de WordPress */
.ie3-footer__col--brand .ie3-footer__logo img,
.ie3-footer__col--brand .ie3-footer__logo .custom-logo {
    height: 40px;
    width: auto;
    /* Invertir logo oscuro para que funcione sobre fondo oscuro */
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
}

.ie3-footer__col--brand .ie3-footer__logo:hover img,
.ie3-footer__col--brand .ie3-footer__logo:hover .custom-logo {
    opacity: 0.8;
}

/* Fallback texto si no hay logo */
.ie3-footer__logo-text {
    font-family: var(--font-titulo);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-blanco);
    letter-spacing: -0.02em;
}

.ie3-footer__desc {
    margin: 0 0 24px;
    color: var(--color-gris);
    font-size: 0.875rem;
    max-width: 280px;
}


/* ----------------------------------------------------------------
   REDES SOCIALES
   ---------------------------------------------------------------- */
.ie3-footer__social {
    display: flex;
    gap: 12px;
}

.ie3-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--color-gris);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ie3-footer__social-link:hover {
    background-color: var(--color-electrico);
    color: var(--color-blanco);
    transform: translateY(-2px);
}


/* ----------------------------------------------------------------
   HEADINGS DE COLUMNA
   ---------------------------------------------------------------- */
.ie3-footer__heading {
    font-family: var(--font-cuerpo);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-filamento);
    margin: 0 0 16px;
}

/* Heading secundario dentro de la misma columna */
.ie3-footer__heading--services {
    margin-top: 28px;
}


/* ----------------------------------------------------------------
   LISTAS DE ENLACES
   ---------------------------------------------------------------- */
.ie3-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ie3-footer__links a {
    color: var(--color-gris);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.ie3-footer__links a:hover {
    color: var(--color-blanco);
    padding-left: 4px;
}


/* ----------------------------------------------------------------
   LISTA DE CONTACTO (icono + texto)
   ---------------------------------------------------------------- */
.ie3-footer__contact-list {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ie3-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--color-gris);
}

.ie3-footer__icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-electrico);
}

.ie3-footer__contact-item a {
    color: var(--color-gris);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ie3-footer__contact-item a:hover {
    color: var(--color-blanco);
}


/* ----------------------------------------------------------------
   FRANJA LEGAL INFERIOR
   ---------------------------------------------------------------- */
.ie3-footer__legal {
    background-color: rgba(0, 0, 0, 0.25);
    padding: 16px 0;
}

.ie3-footer__legal-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ie3-footer__copyright {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-gris);
}

.ie3-footer__legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ie3-footer__legal-links a {
    font-size: 0.8rem;
    color: var(--color-gris);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ie3-footer__legal-links a:hover {
    color: var(--color-filamento);
}

.ie3-footer__legal-sep {
    color: rgba(136, 146, 164, 0.4);
    font-size: 0.75rem;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet: 2 columnas */
@media (max-width: 900px) {
    .ie3-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
    }

    .ie3-footer__col--brand {
        grid-column: 1 / -1;    /* Marca ocupa el ancho completo arriba */
    }

    .ie3-footer__desc {
        max-width: 100%;
    }
}

/* Móvil: 1 columna */
@media (max-width: 540px) {
    .ie3-footer__body {
        padding: 48px 0 36px;
    }

    .ie3-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ie3-footer__legal-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}