/* =====================================================
   Greenaura — Footer Custom Styles
   ===================================================== */

/* Variables de color del footer */
:root {
    --gn-footer-bg:        #162d14;
    --gn-footer-bg-main:   #0d2210;
    --gn-footer-bg-bottom: #0a1c0d;
    --gn-footer-accent:    #FFA84B;
    --gn-footer-text:      rgba(255,255,255,0.72);
    --gn-footer-title:     #ffffff;
    --gn-footer-border:    rgba(255,255,255,0.10);
}

/* -------------------------------------------------------
   CTA BANNER
   ------------------------------------------------------- */
.gn-footer-cta {
    background: var(--gn-footer-bg);
    padding: 0 0 0;
    position: relative;
}

.gn-footer-cta .container {
    position: relative;
    z-index: 1;
}

.gn-footer-cta__inner {
    display: flex;
    align-items: center;
    gap: 0;
    background: #2a5228;
    border-radius: 14px;
    padding: 0 50px 0 50px;
    overflow: hidden;
    min-height: 160px;
    position: relative;
    top: -50px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.22);
}

/* Decorative circle rings on background */
.gn-footer-cta__inner::before {
    content: '';
    position: absolute;
    right: -90px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 56px solid rgba(255,255,255,0.05);
    pointer-events: none;
    z-index: 0;
}

.gn-footer-cta__inner::after {
    content: '';
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 44px solid rgba(255,255,255,0.04);
    pointer-events: none;
    z-index: 0;
}

/* Imagen del jardinero */
.gn-footer-cta__img {
    flex-shrink: 0;
    width: 230px;
    align-self: stretch;
    position: relative;
    margin-right: 44px;
}

/* Yellow arc accent */
.gn-footer-cta__img::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    width: 130px;
    height: 130px;
    border: 22px solid var(--gn-footer-accent);
    border-radius: 50%;
    z-index: 2;
}

.gn-footer-cta__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: relative;
    z-index: 1;
}

/* Texto */
.gn-footer-cta__text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.gn-footer-cta__text h3 {
    color: #fff;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
}

/* Botón CTA */
.gn-footer-cta__btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.gn-footer-cta__btn a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gn-footer-accent);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s;
}

.gn-footer-cta__btn a:hover {
    background: #e89030;
    transform: translateY(-2px);
    color: #fff !important;
}

.gn-footer-cta__btn svg {
    flex-shrink: 0;
}

/* -------------------------------------------------------
   FOOTER PRINCIPAL
   ------------------------------------------------------- */
.gn-footer-main {
    background: var(--gn-footer-bg-main);
    padding: 40px 0 60px;
}

.gn-footer-cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
}

/* Logo de texto */
.gn-footer-logo--text {
    display: block;
    color: #fff !important;
    text-decoration: none !important;
    margin-bottom: 16px;
}

.gn-footer-logo--text span {
    font-size: 22px;
    font-weight: 700;
    display: block;
    color: #fff;
}

.gn-footer-logo--text small {
    font-size: 13px;
    color: var(--gn-footer-accent);
    display: block;
}

.gn-footer-logo img {
    max-height: 55px;
    width: auto;
    margin-bottom: 18px;
    display: block;
}

/* Descripción */
.gn-footer-desc,
.gn-footer-col p {
    color: var(--gn-footer-text);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 18px;
}

/* Título de cada widget */
.gn-footer-widget-title,
.gn-footer-col .footer-widget-title,
.gn-footer-col h4 {
    color: var(--gn-footer-title) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 18px !important;
    padding-bottom: 12px !important;
    border-bottom: none !important;
    position: relative;
}

/* Línea decorativa dorada bajo el título */
.gn-footer-widget-title::after,
.gn-footer-col .footer-widget-title::after,
.gn-footer-col h4::after {
    content: '';
    display: block;
    width: 38px;
    height: 3px;
    background: var(--gn-footer-accent);
    margin-top: 10px;
}

/* Menú de navegación del footer */
.gn-footer-col ul#footer-nav,
.gn-footer-col .menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.gn-footer-col ul#footer-nav li,
.gn-footer-col .menu li {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.gn-footer-col ul#footer-nav li a,
.gn-footer-col .menu li a {
    color: var(--gn-footer-text) !important;
    font-size: 14px !important;
    padding: 7px 0 !important;
    display: block !important;
    border-bottom: 1px solid var(--gn-footer-border) !important;
    transition: color 0.2s, padding-left 0.2s !important;
    text-decoration: none !important;
}

.gn-footer-col ul#footer-nav li:last-child a,
.gn-footer-col .menu li:last-child a {
    border-bottom: none !important;
}

.gn-footer-col ul#footer-nav li a:hover,
.gn-footer-col .menu li a:hover {
    color: var(--gn-footer-accent) !important;
    padding-left: 6px !important;
}

/* Horarios */
.gn-footer-hours {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.gn-footer-hours li {
    display: flex !important;
    justify-content: space-between !important;
    color: var(--gn-footer-text);
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid var(--gn-footer-border);
}

.gn-footer-hours li:last-child {
    border-bottom: none;
}

.gn-footer-hours li span:first-child {
    color: #fff;
    font-weight: 500;
}

/* Contacto */
.gn-footer-contact {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.gn-footer-contact li {
    color: var(--gn-footer-text);
    font-size: 14px;
    padding: 7px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid var(--gn-footer-border);
}

.gn-footer-contact li:last-child {
    border-bottom: none;
}

.gn-footer-contact li i {
    color: var(--gn-footer-accent);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.gn-footer-contact li a {
    color: var(--gn-footer-text) !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.gn-footer-contact li a:hover {
    color: var(--gn-footer-accent) !important;
}

/* Redes sociales (si se usan en el widget col-1) */
.gn-footer-col .footer-social,
.gn-footer-col .widget_media_image + ul {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding: 0 !important;
    list-style: none !important;
}

.gn-footer-col .footer-social li a,
.gn-footer-col ul.footer_social li a {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: #fff !important;
    font-size: 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.3s !important;
    border: none !important;
    padding: 0 !important;
}

.gn-footer-col .footer-social li a:hover,
.gn-footer-col ul.footer_social li a:hover {
    background: var(--gn-footer-accent);
}

/* -------------------------------------------------------
   COPYRIGHT BAR
   ------------------------------------------------------- */
.gn-footer-bottom {
    background: var(--gn-footer-bg-bottom);
    padding: 18px 0;
    border-top: 1px solid var(--gn-footer-border);
}

.gn-footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.gn-footer-bottom p {
    color: var(--gn-footer-text);
    font-size: 13px;
    margin: 0;
}

.gn-footer-bottom ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.gn-footer-bottom ul li a {
    color: var(--gn-footer-text) !important;
    font-size: 13px;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.gn-footer-bottom ul li a:hover {
    color: var(--gn-footer-accent) !important;
}

/* -------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------- */
@media (max-width: 1024px) {
    .gn-footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .gn-footer-cta__inner {
        padding: 20px 30px;
        gap: 40px;
        margin-bottom: 0;
    }
    .gn-footer-cta__img { display: none; }
    .gn-footer-cta__text h3 { font-size: 24px; }
}

@media (max-width: 640px) {
    .gn-footer-cols {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .gn-footer-cta__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }
    .gn-footer-cta__btn a { width: 100%; justify-content: center; }
    .gn-footer-bottom__inner { flex-direction: column; text-align: center; }
    .gn-footer-bottom ul { justify-content: center; }
}
