/* Estilos para el footer tipo e-commerce */
html, body {
    height: 100%;
    margin: 0;
}

body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sticky footer: let main take remaining space */
body > main{
    flex: 1 0 auto;
}

/* Ensure footer doesn't shrink */
.footer-ecommerce{
    flex-shrink: 0;
}
.footer-ecommerce {
    background: #232f3e;
    color: #fff;
    padding: 24px 0 16px 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    position: static; /* aparece solo al final del contenido */
    margin-top: auto;
}
.footer-ecommerce .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 16px; /* respiro lateral mínimo */
}
.footer-ecommerce .footer-section {
    flex: 1 1 220px;
    margin: 10px 20px;
}
.footer-ecommerce .footer-section--map {
    flex: 0 0 260px;
    margin: 10px 0 10px 20px;
}
.footer-ecommerce .footer-section--map .footer-map-wrap {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.04);
}
.footer-ecommerce .footer-section--map iframe {
    width: 100%;
    height: 120px;
    border: 0;
    display: block;
}
.footer-ecommerce h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffd700;
}
.footer-ecommerce ul {
    list-style: none;
    padding: 0;
}
.footer-ecommerce ul li {
    margin-bottom: 10px;
}
.footer-ecommerce ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-ecommerce ul li a:hover {
    color: #ffd700;
}
.footer-ecommerce .footer-bottom {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: #bbb;
}

/* Estilo específico para el enlace TECNOJAR: rojo y sin subrayado */
.footer-ecommerce .footer-bottom a.footer-tecnojar {
    color: #e53935; /* rojo vivo */
    text-decoration: none;
    font-weight: 600;
}
.footer-ecommerce .footer-bottom a.footer-tecnojar:hover,
.footer-ecommerce .footer-bottom a.footer-tecnojar:focus {
    color: #b71c1c;
    text-decoration: none;
}

/* Footer en flujo normal: no requiere padding adicional en body */

@media (max-width: 768px) {
    .footer-ecommerce {
        padding: 18px 0 14px 0;
    }

    .footer-ecommerce .footer-container {
        flex-direction: column;
        padding: 0 14px;
    }

    .footer-ecommerce .footer-section {
        flex: 1 1 auto;
        margin: 10px 0;
    }

    .footer-ecommerce h4 {
        margin-bottom: 10px;
        text-align: center;
    }

    .footer-ecommerce ul li {
        margin-bottom: 8px;
        text-align: center;
    }

    .footer-ecommerce ul li a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 10px;
    }

    .footer-ecommerce .footer-bottom {
        margin-top: 12px;
        padding: 0 12px;
    }

    /* En móvil: mostrar solo Síguenos y Legal */
    .footer-ecommerce .footer-section--about,
    .footer-ecommerce .footer-section--support{
        display: none;
    }
    /* Ocultar mapa en pantallas pequeñas */
    .footer-ecommerce .footer-section--map { display: none; }
}

@media (max-width: 420px) {
    .footer-ecommerce h4 {
        font-size: 16px;
    }
}
