 :root {
          --primary: #13322B;
    --primary-light: #13322B;
    --accent: #C9A14A;
    --dark-text: #2c3e50;
    --light-text: #ffffff;
        }

  html,
body{
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.improved-footer{
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 50px 0;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-light) 100%
    );
}

.footer-container{
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    padding: 0 40px;
}

.footer-bottom{
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
 .footer-column {
    flex: 1;
    min-width: 250px;
}

        .footer-title {
         color: var(--light-text);
    font-weight: 400;
    margin-bottom: clamp(0.8rem, 1.5vw, 1rem);
    font-size: clamp(0.8rem, 1.3vw, 1rem);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
   
    width: 100%; 
    display: block; 
        }

      .footer-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 37%;
    transform: translateX(-50%);
    width: min(300px, 90%); 
    height: 2px;
    background:var(--light-text);
    border-radius: 2px;
}

        .footer-column ul {
            list-style: none;
            padding: 0;
            margin: 0;
         
        }

        .footer-column ul li {
            margin-bottom: 0.5rem;
        }

        .footer-column ul li a {
              color: var(--light-text);
            text-decoration: none;
         
            font-size: 0.7rem;

        }

        .footer-column ul li a:hover {
            color: var(--light-text);
        }



        /* Transparencia */
        .transparency-grid {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .transparency-item {
            display: flex;
        }

        .transparency-block {
            display: flex;
            gap: 0.8rem;
            align-items: flex-start;
        }

        .transparency-icon {
            width: 50px;
            height: auto;
            flex-shrink: 0;
            margin-top: 4px;
        }

        .transparency-block ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .transparency-block ul li {
            margin-bottom: 0.3rem;
        }

        .transparency-block ul li a {
            color: var(--light-text);
            text-decoration: none;
            font-size: 0.75rem;
        }

        .transparency-block ul li a:hover {
            color: var(--accent);
        }

     
      


.footer-links i {
    margin-right: 8px; /* separa el icono del texto */
}

/* Colores por red social */
.footer-links a .fa-facebook-f {
  color: #B38E5D;
}

.footer-links a .fa-twitter {
  color: #B38E5D;
}

.footer-links a .fa-instagram {
   color: #B38E5D;
}

.footer-links a .fa-youtube {
    color: #B38E5D;
}


.transparency-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.transparency-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.05); 
    padding: 1rem;
    border-radius: 8px;
    gap: 1rem;
}







.transparency-img {
    width: 80px;  
    height: auto;
    border-radius: 4px;
    flex-shrink: 0;
}
.transparency-list {
    list-style-type: disc; 
    padding-left: 1.2rem;  
    margin: 0;
    color: #f5f5f5;
}

.transparency-list li {
    margin-bottom: 0.5rem;
}
        /* RESPONSIVO */

        
@media (max-width: 1024px) {
    .footer-title::after {
        width: min(280px, 85%);
        text-align: center;
    }
}
@media screen and (max-width: 768px) {
    .footer-column {
        flex: 1 1 100%;
        text-align: center;
    }

   
    .transparency-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .transparency-block {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .transparency-icon {
        margin-top: 0;
    }

    .footer-title {
        font-size: 1rem;
    }
}
@media screen and (min-width: 769px) {
    .footer-column {
        text-align: left;
    }

    .transparency-item {
        text-align: left;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .footer-title::after {
        width: min(200px, 75%); 
    }
}

@media (max-width: 360px) {
    .footer-title::after {
        width: min(180px, 70%); 
    }
}
        @media screen and (max-width: 1024px) {
            .footer-column {
                flex: 1 1 45%;
            }
}

       @media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 20px;
    }

    .footer-column {
        flex: 1 1 100%;
        text-align: center;
    }
}
          
            .transparency-item {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            .transparency-block {
                flex-direction: column;
                gap: 0.5rem;
                align-items: center;
            }
            .transparency-icon {
                margin-top: 0;
            }
            .footer-title {
                font-size: 1rem;
            }
        

        @media screen and (max-width: 480px) {
            .footer-column ul li a {
                font-size: 0.8rem;
            }
            .footer-title {
                font-size: 1rem;
            }
        }
        @media screen and (max-width: 768px) {
    .transparency-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .transparency-img {
        margin-top: 0.5rem;
        width: 100%;
        max-width: 150px;
        align-self: center;
    }
}
/* ===== FOOTER MÓVIL — correcciones ===== */

@media (max-width: 768px) {

    .improved-footer {
        padding: 40px 0 80px; /* ← espacio abajo para chatbot */
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 20px;
    }

    .footer-column {
        flex: 1 1 100%;
        text-align: center;
        min-width: unset;
    }

    /* Línea decorativa centrada correctamente */
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }

    /* Texto de links más grande y legible */
    .footer-column ul li a {
        font-size: 0.85rem;
        line-height: 2;
    }

    /* Transparency cards en móvil */
    .transparency-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .transparency-img {
        width: 80px;
        align-self: center;
    }

    .transparency-list {
        text-align: left;
    }

    /* Footer title más visible */
    .footer-title {
        font-size: 0.9rem;
        margin-top: 1rem;
        padding-bottom: 8px;
    }
}

@media (max-width: 480px) {

    .footer-container {
        padding: 0 16px;
    }

    .footer-title {
        font-size: 0.85rem;
    }

    .footer-column ul li a {
        font-size: 0.8rem;
    }

    /* Espacio extra para que chatbot no tape el footer */
    .improved-footer {
        padding-bottom: 100px;
    }
}