/* ===============================
   CASA GREEN FOOTER PRO
=============================== */

.cg-footer-wrapper {
     background: var(--color-primary) !important;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

/* CONTENEDOR */
.cg-footer {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 30px;
}

/* LOGO */
.footer-logo img {
    width: 160px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 14px;
    color: #d1d5db;
}

/* REDES */
.footer-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social-icons a {
    width: 40px;
    height: 40px;
    background: #014d26;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
}

.footer-social-icons a:hover {
    background: #facc15 !important;
    color: #003d1b !important;
    transform: scale(1.1);
}

/* SECCIONES */
.footer-section h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-section a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.footer-section a:hover {
    color: #facc15 !important;
    padding-left: 5px;
}

/* CONTACTO */
.contact-title {
    font-weight: bold;
    color: #fff;
}

.contact-link {
    display: block;
    color: #d1d5db;
    font-size: 14px;
    margin-bottom: 5px;
    text-decoration: none;
}

.contact-link:hover {
    color: #facc15 !important;
}

.contact-link i {
    margin-right: 6px;
}

/* SEPARADOR */
.footer-separator {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 20px;
}

.footer-separator a {
    color: #d1d5db;
    text-decoration: none;
}

.footer-separator a:hover {
    color: #facc15;
}

/* FINAL */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 15px;
    font-size: 13px;
    color: #9ca3af;
}

.footer-bottom a {
    color: #d1d5db;
}

.footer-bottom a:hover {
    color: #facc15;
}
.direccion-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.direccion-link:hover {
    color: #facc15;
}
/* ===============================
   TABLET
=============================== */
@media (max-width: 992px) {
    .cg-footer {
        grid-template-columns: 1fr 1fr;
    }

    .footer-logo {
        grid-column: span 2;
        text-align: center;
    }

    .footer-social-icons {
        justify-content: center;
    }
}

/* ===============================
   MÓVIL FOOTER PRO (LIMPIO)
=============================== */
@media(max-width:768px){

  /* 🔥 layout en una sola columna */
  .cg-footer{
    display: flex;
    flex-direction: column;
    gap: 0 !important;
  }

  /* 🔥 bloques */
  .footer-logo,
  .footer-section{
    width: 100%;
    margin: 0 !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* 🔥 quitar espacio extra entre secciones */
  .footer-section + .footer-section{
    margin-top: 0 !important;
  }

  /* 🔥 título */
  .footer-section h4{
    margin: 0 !important;
    padding: 8px 0;
    cursor: pointer;
    position: relative;
  }

  /* 🔥 icono acordeón */
  .footer-section.acordeon h4::after{
    content: "+";
    position: absolute;
    right: 0;
    font-size: 16px;
  }

  .footer-section.acordeon h4::after{
    font-size: 24px;
    font-weight: bold;
    right: 5px;
    transition: transform .2s ease;
  }

  /* efecto al abrir */
  .footer-section.acordeon.active h4::after{
    transform: rotate(180deg);
  }

}

  /* 🔥 contenido acordeón */
  .acordeon .contenido{
    display: none;
    margin-top: 5px;
  }

  .acordeon.active .contenido{
    display: block;
  }

  /* 🔥 bloques internos */
  .contact-block{
    margin-bottom: 8px;
  }

  /* 🔥 enlaces compactos */
  .footer-section a{
    display: block;
    padding: 4px 0;
  }

  /* 🔥 logo más compacto */
  .footer-logo{
    margin-bottom: 5px !important;
  }

}
@media(max-width:768px){

  .footer-separator{
    border: none !important;
    margin-top: -20px;
    padding-top: 5px;
  }

}
/* ================= DESKTOP ================= */
.footer-section .contenido{
    display: block;
}

/* ================= MOBILE ================= */
@media(max-width:768px){

    .footer-section .contenido{
        display: none;
    }

    .footer-section.active .contenido{
        display: block;
    }

    .footer-section h4{
        cursor: pointer;
        position: relative;
    }

    .footer-section h4::after{
        content: "+";
        position: absolute;
        right: 0;
    }

    .footer-section.active h4::after{
        content: "-";
    }

}