/* ================= Footer Section ================= */
.footer-section {
    background-color: #1a1a1a; /* Fondo oscuro casi negro */
    color: #ccc; /* Color de texto gris claro */
    padding: 60px 0 20px 0;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    max-width: 200px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #aaa; /* Gris un poco más oscuro para el subtítulo */
}

.footer-links h4,
.footer-contact h4 {
    color: #fff; /* Títulos en blanco */
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

/* Línea decorativa debajo de los títulos */
.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color, #ff7b00); /* Color primario naranja */
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--primary-color, #ff7b00); /* Naranja al pasar el mouse */
    padding-left: 5px; /* Pequeño desplazamiento al pasar el mouse */
}

.footer-contact p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.7;
    display: flex;
    align-items: flex-start; /* Alinear íconos arriba si el texto ocupa varias líneas */
}

.footer-contact p i {
    color: var(--primary-color, #ff7b00); /* Iconos en naranja */
    margin-right: 12px;
    font-size: 1rem;
    width: 20px; /* Ancho fijo para alinear el texto */
    text-align: center;
    margin-top: 4px; /* Ajuste vertical del icono */
}

.footer-social {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #ccc;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #444; /* Borde sutil */
    border-radius: 50%;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    color: #fff; /* Icono blanco al pasar el mouse */
    background-color: var(--primary-color, #ff7b00); /* Fondo naranja */
    border-color: var(--primary-color, #ff7b00); /* Borde naranja */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333; /* Línea divisoria sutil */
    font-size: 0.85rem;
    color: #aaa;
}

/* Responsive adjustments */
.footer-bottom p {
    margin: 0;
    font-size: 0.9em;
}

/* Media Query para ocultar enlaces rápidos en móviles */
@media (max-width: 768px) {
    .footer-links {
        display: none; /* Oculta la sección de enlaces rápidos */
    }

    .footer-container {
        grid-template-columns: 1fr; /* Ajusta las columnas para que ocupen todo el ancho */
        text-align: center; /* Centra el contenido restante */
    }

    .footer-logo,
    .footer-contact {
        margin-bottom: 20px; /* Añade espacio entre las secciones restantes */
        text-align: center; /* Asegura centrado del texto */
    }

    /* Centrar la línea decorativa bajo los títulos en móvil */
    .footer-contact h4::after { /* Aplicamos solo a .footer-contact ya que .footer-links está oculto */
        left: 50%;
        transform: translateX(-50%); /* Centra la línea horizontalmente */
    }

    .footer-logo img {
        margin: 0 auto 10px; /* Centra el logo */
    }

    .footer-contact p {
        justify-content: center; /* Centra los items de contacto si usan flex */
    }

    .footer-social {
        justify-content: center; /* Centra los iconos sociales */
        margin-top: 15px;
    }
}


.footer-logo {
    display: flex; /* Asegura que flex funcione si no lo tenías */
    flex-direction: column; /* Apila logo, p, y stats */
    align-items: flex-start; /* Alinea a la izquierda */
}

/* ================= Stats Section (Footer) ================= */
.stats-section-footer {
    display: flex;
    justify-content: flex-start; /* Alinea items al inicio */
    gap: 25px; /* Espacio entre los items de estadísticas */
    margin-top: 20px; /* Espacio sobre las estadísticas */
    flex-wrap: wrap; /* Permite que bajen si no caben */
}

.stat-item-footer {
    text-align: left; /* Alinea texto a la izquierda */
}

.stat-number-footer {
    font-size: 1.6rem; /* Tamaño del número */
    font-weight: 600;
    color: #fff; /* Color blanco */
    display: inline; /* Para que esté en línea con la unidad si la hubiera */
    margin-right: 4px; /* Pequeño espacio si hay unidad */
}

.stat-unit-footer {
    font-size: 1.1rem; /* Tamaño de la unidad */
    color: #eee; /* Color un poco más tenue */
    display: inline;
}

.stat-label-footer {
    font-size: 0.85rem; /* Tamaño de la etiqueta */
    color: #ccc; /* Color grisáceo */
    margin-top: 2px; /* Pequeño espacio sobre la etiqueta */
    line-height: 1.2;
}

/* Ajustes responsivos si son necesarios */
@media (max-width: 992px) { /* Ajusta breakpoint si footer cambia antes */
    .footer-logo {
        align-items: center; /* Centra todo en pantallas medianas/pequeñas */
        text-align: center;
    }
    .stats-section-footer {
        justify-content: center; /* Centra los items */
        gap: 20px;
    }
    .stat-item-footer {
        text-align: center; /* Centra texto del item */
    }
}

@media (max-width: 480px) {
    .stats-section-footer {
        gap: 15px; /* Menos espacio en móviles */
        justify-content: space-around; /* Distribuye mejor en móviles */
    }
     .stat-number-footer {
        font-size: 1.4rem; 
    }
    .stat-unit-footer {
        font-size: 1rem;
    }
     .stat-label-footer {
        font-size: 0.8rem;
    }
}