.footer {
    background: linear-gradient(135deg, #1e7e4f 0%, #279659 25%, #32a862 50%, #9bd342 100%);
    padding: 3rem 2rem 0;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Efecto de brillo animado */
.footer::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, #279659 0%, #9bd342 100%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* Efecto de luz superior */
.footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(155, 211, 66, 0.15) 40%,
    transparent 100%);
    pointer-events: none;
    opacity: 0.8;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 0 0 rgba(155, 211, 66, 0.3);
}

/*  COLUMNA 1: LOGO Y DIRECCIÓN  */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-logo {
    margin-bottom: 0.3rem;
    position: relative;
}

.footer-logo::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle,
    rgba(155, 211, 66, 0.5) 0%,
    rgba(50, 168, 98, 0.3) 40%,
    transparent 70%);
    filter: blur(25px);
    z-index: -1;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.footer-logo .logo-gris {
    width: 180px;
    height: auto;
    filter:
            drop-shadow(0 0 15px rgba(155, 211, 66, 0.6))
            drop-shadow(0 0 30px rgba(155, 211, 66, 0.4))
            drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3))
            brightness(1.1);
    transition: all 0.4s ease;
}

.footer-logo .logo-gris:hover {
    filter:
            drop-shadow(0 0 30px rgba(255, 255, 255, 1))
            drop-shadow(0 0 50px rgba(155, 211, 66, 0.8))
            drop-shadow(0 0 80px rgba(155, 211, 66, 0.5))
            drop-shadow(0 6px 30px rgba(0, 0, 0, 0.4))
            brightness(3)
            contrast(1.2)
            saturate(0);
    transform: translateY(-5px) scale(1.05);
}

.footer-address {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
    color: #1e7e4f;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.15),
            0 0 30px rgba(155, 211, 66, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    max-width: fit-content;
    margin-top: 0.3rem;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(155, 211, 66, 0.3);
}

.footer-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(155, 211, 66, 0.4),
    transparent);
    transition: left 0.6s;
}

.footer-btn:hover::before {
    left: 100%;
}

.footer-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(155, 211, 66, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.footer-btn:hover::after {
    width: 300px;
    height: 300px;
}

.footer-btn:hover {
    transform: translateY(-5px);
    box-shadow:
            0 12px 35px rgba(0, 0, 0, 0.25),
            0 0 50px rgba(155, 211, 66, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(155, 211, 66, 0.6);
}

.footer-btn-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    display: inline-block;
    filter: drop-shadow(0 0 3px rgba(155, 211, 66, 0.5));
}

.footer-btn:hover .footer-btn-arrow {
    transform: translateX(6px);
}

/*  COLUMNA 2: ACCESO DIRECTO  */
.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow:
            0 2px 10px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(155, 211, 66, 0.4);
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg,
    #ffffff 0%,
    rgba(155, 211, 66, 0.8) 100%);
    border-radius: 3px;
    box-shadow:
            0 2px 10px rgba(155, 211, 66, 0.5),
            0 0 15px rgba(255, 255, 255, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    padding: 0.2rem 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.footer-links li a::before {
    content: "▸";
    opacity: 0;
    transform: translateX(-12px);
    transition: all 0.3s ease;
    color: #9bd342;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(155, 211, 66, 0.8));
}

.footer-links li a:hover {
    color: #fafbfd;
    padding-left: 1.5rem;
    font-weight: 600;
    text-shadow:
            0 2px 8px rgba(0, 0, 0, 0.3),
            0 0 15px rgba(155, 211, 66, 0.6);
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/*  COLUMNA 3: CONTACTO  */
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-info-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(155, 211, 66, 0.15) 100%);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.footer-info-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(155, 211, 66, 0.2),
    transparent);
    transition: left 0.5s;
}

.footer-info-row:hover::before {
    left: 100%;
}

.footer-info-row:hover {
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(155, 211, 66, 0.25) 100%);
    transform: translateY(-5px);
    box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.2),
            0 0 30px rgba(155, 211, 66, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(155, 211, 66, 0.6);
}

.footer-info-row br {
    display: none;
}

.footer-icon {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
    filter: drop-shadow(0 2px 8px rgba(155, 211, 66, 0.5));
}

.footer-info-label {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.3rem;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    word-break: break-word;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.footer-link:hover {
    color: #9bd342;
    transform: translateX(5px);
    text-shadow:
            0 2px 8px rgba(0, 0, 0, 0.3),
            0 0 15px rgba(155, 211, 66, 0.6);
}

/* REDES SOCIALES  */
.footer-social {
    display: flex;
    gap: 0.9rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(155, 211, 66, 0.2) 100%);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(155, 211, 66, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.footer-social a:hover::after {
    width: 100px;
    height: 100px;
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-social a i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.footer-social a:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.25),
            0 0 30px rgba(155, 211, 66, 0.4);
    border-color: rgba(155, 211, 66, 0.8);
}

/* Colores específicos al hacer hover */
.footer-social a[aria-label="LinkedIn"]:hover i {
    color: #0077b5;
    filter: drop-shadow(0 0 8px rgba(0, 119, 181, 0.6));
}

.footer-social a[aria-label="Facebook"]:hover i {
    color: #1877f3;
    filter: drop-shadow(0 0 8px rgba(24, 119, 243, 0.6));
}

.footer-social a[aria-label="WhatsApp"]:hover i {
    color: #25d366;
    filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.6));
}

.footer-social a[aria-label="Instagram"]:hover i {
    color: #e1306c;
    filter: drop-shadow(0 0 8px rgba(225, 48, 108, 0.6));
}

.footer-social a[aria-label="Twitter"]:hover i {
    color: #1da1f2;
    filter: drop-shadow(0 0 8px rgba(29, 161, 242, 0.6));
}

/* ===== COPYRIGHT ===== */
.footer-copy {
    text-align: center;
    padding: 1.8rem 0 1.5rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    text-shadow:
            0 2px 8px rgba(0, 0, 0, 0.3),
            0 0 15px rgba(155, 211, 66, 0.2);
    opacity: 0.95;
}

.footer-links a:focus-visible,
.footer-btn:focus-visible,
.footer-social a:focus-visible {
    outline: 3px solid #9bd342;
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(155, 211, 66, 0.6);
}

/* Tablets grandes y desktops pequeños */
@media (max-width: 1200px) {
    .footer {
        padding: 2.5rem 1.5rem 0;
    }

    .footer-container {
        gap: 2.5rem;
    }

    .footer-logo .logo-gris {
        width: 160px;
    }
}

/* Tablets */
@media (max-width: 968px) {
    .footer {
        padding: 2.5rem 1.5rem 0;
    }

    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1.2rem 0;
    }

    .footer-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "logo logo"
            "links contact"
            "social social";
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .footer-col:nth-child(1) {
        grid-area: logo;
        text-align: center;
        align-items: center;
        gap: 0.8rem;
    }

    .footer-logo .logo-gris {
        width: 130px;
    }

    .footer-address {
        text-align: center;
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .footer-btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer-col:nth-child(2) {
        grid-area: links;
        text-align: left;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .footer-col:nth-child(2) .footer-title {
        font-size: 1rem;
        margin-bottom: 0.6rem;
        padding-bottom: 0.6rem;
        text-align: left;
    }

    .footer-col:nth-child(2) .footer-title::after {
        left: 0;
        transform: none;
        width: 45px;
        height: 3px;
    }

    .footer-links {
        gap: 0.4rem;
        align-items: flex-start;
    }

    .footer-links li a {
        font-size: 0.85rem;
        padding: 0.3rem 0;
        justify-content: flex-start;
    }

    .footer-links li a:hover {
        padding-left: 0;
    }

    .footer-links li a::before {
        display: none;
    }

    .footer-col:nth-child(3) {
        grid-area: contact;
        text-align: left;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .footer-col:nth-child(3) .footer-title {
        font-size: 1rem;
        margin-bottom: 0.6rem;
        padding-bottom: 0.6rem;
        text-align: left;
    }

    .footer-col:nth-child(3) .footer-title::after {
        left: 0;
        transform: none;
        width: 45px;
        height: 3px;
    }

    .footer-info {
        gap: 0.8rem;
        width: 100%;
    }

    .footer-info-row {
        text-align: left;
        align-items: flex-start;
        padding: 0.7rem 0.8rem;
    }

    .footer-icon {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

    .footer-info-label {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .footer-link {
        font-size: 0.9rem;
    }

    .footer-col:nth-child(3) .footer-social {
        grid-area: social;
        justify-content: center;
        gap: 0.8rem;
        margin-top: 0.5rem;
        width: 100%;
    }

    .footer-social a {
        width: 50px;
        height: 50px;
        font-size: 1.15rem;
    }

    .footer-copy {
        font-size: 0.8rem;
        padding: 1.3rem 0.5rem 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.8rem 1rem 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "links"
            "contact"
            "social";
        gap: 1.5rem;
        padding-bottom: 1.3rem;
    }

    .footer-col:nth-child(1),
    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        text-align: center;
        align-items: center;
    }

    .footer-logo .logo-gris {
        width: 110px;
    }

    .footer-address {
        font-size: 0.85rem;
    }

    .footer-btn {
        padding: 0.75rem 1.4rem;
        font-size: 0.85rem;
    }

    .footer-col:nth-child(2) .footer-title,
    .footer-col:nth-child(3) .footer-title {
        text-align: center;
    }

    .footer-col:nth-child(2) .footer-title::after,
    .footer-col:nth-child(3) .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
        padding-bottom: 0.5rem;
    }

    .footer-title::after {
        width: 40px;
        height: 2.5px;
    }

    .footer-links {
        gap: 0.4rem;
        align-items: center;
    }

    .footer-links li a {
        font-size: 0.85rem;
        padding: 0.3rem 0;
        justify-content: center;
    }

    .footer-info {
        gap: 0.8rem;
    }

    .footer-info-row {
        text-align: center;
        align-items: center;
        padding: 0.7rem 0.8rem;
    }

    .footer-icon {
        font-size: 1.1rem;
    }

    .footer-info-label {
        font-size: 0.68rem;
    }

    .footer-link {
        font-size: 0.88rem;
    }

    .footer-social {
        justify-content: center;
        gap: 0.8rem;
    }

    .footer-social a {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .footer-copy {
        font-size: 0.75rem;
        padding: 1.2rem 0.5rem 0.9rem;
    }
}

@media (max-width: 360px) {
    .footer {
        padding: 1.5rem 0.8rem 0;
    }

    .footer-container {
        gap: 1.3rem;
    }

    .footer-logo .logo-gris {
        width: 100px;
    }

    .footer-address {
        font-size: 0.8rem;
    }

    .footer-btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.8rem;
    }

    .footer-title {
        font-size: 0.9rem;
    }

    .footer-links li a {
        font-size: 0.8rem;
    }

    .footer-info-row {
        padding: 0.65rem 0.75rem;
    }

    .footer-icon {
        font-size: 1rem;
    }

    .footer-info-label {
        font-size: 0.65rem;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    .footer-social a {
        width: 46px;
        height: 46px;
        font-size: 1.05rem;
    }

    .footer-copy {
        font-size: 0.72rem;
        padding: 1.1rem 0.5rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .footer-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .footer-social a {
        min-height: 48px;
        min-width: 48px;
    }

    .footer-btn {
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer::before,
    .footer-logo::before,
    .footer-btn,
    .footer-links a,
    .footer-social a,
    .footer-info-row,
    .footer-link,
    .footer-logo .logo-gris {
        transition: none;
        animation: none;
    }

    .footer-btn:hover,
    .footer-social a:hover {
        transform: none;
    }

    .footer-links li a:hover::before {
        transition: none;
    }
}