/* Footer Component Styles */

.footer {
    background-color: #183049;
    color: #fff;
    padding: 3.5rem 0 1.75rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #92d348 0%, #4aa921 100%);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(0, 1.85fr);
    gap: 3.5rem;
    align-items: start;
    padding-bottom: 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo-link:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.footer-description {
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Sansation', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    max-width: 340px;
}

.footer-tagline {
    color: #92d348;
    font-family: 'Sansation', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    font-style: italic;
    letter-spacing: 0.01em;
}

.footer-contact-meta {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 340px;
}

.footer-address {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Sansation', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-address svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #92d348;
}

.footer-address:hover {
    color: #92d348;
}

.footer-company-ids {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-id-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Sansation', sans-serif;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.footer-nav-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding-top: 0.35rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-column-title {
    color: #92d348 !important;
    font-family: 'Sansation', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin: 0 0 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    text-align: left !important;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(146, 211, 72, 0.35);
}

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

.footer-column-list a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-family: 'Sansation', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.footer-column-list a:hover {
    color: #92d348;
    transform: translateX(3px);
}

.footer-linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: fit-content;
    min-width: 148px;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #92d348 0%, #4aa921 100%);
    color: #fff !important;
    font-family: 'Sansation', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(74, 169, 33, 0.25);
}

.footer-linkedin-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-linkedin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 169, 33, 0.35);
    color: #fff !important;
}

.footer-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(146, 211, 72, 0.35), rgba(255, 255, 255, 0.12), rgba(146, 211, 72, 0.2));
    margin-bottom: 1.25rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.25rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Sansation', sans-serif;
    font-size: 13px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Sansation', sans-serif;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
    color: #92d348;
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.28);
    font-size: 12px;
}

/* Legacy footer markup (portfolio pages) */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 25px;
    margin-bottom: 15px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    max-width: 320px;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-columns {
    display: flex;
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .footer-columns {
        display: flex;
        flex-direction: row;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
        max-width: 100%;
        text-align: center;
    }

    .footer-brand-text {
        align-items: center;
    }
}

@media (max-width: 1024px) {
    .footer-columns {
        gap: 30px;
    }
}

@media (min-width: 1200px) {
    .footer-columns {
        gap: 50px;
    }
}

.footer-logo img {
    height: 60px;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4aa921, #92d348);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 10%;
    left: 10%;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 30%;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    bottom: 15%;
    right: 15%;
}

.logo-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: #4aa921;
    transform: translateY(-3px);
}

.social-link:hover img {
    filter: brightness(0) saturate(100%) invert(20%) sepia(15%) saturate(2000%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.social-link-text {
    color: #fff !important;
    text-decoration: none;
    font-family: 'Sansation', sans-serif;
    font-size: 14px;
    transition: color 0.3s ease;
}

.social-link-text:hover {
    color: #4aa921 !important;
}

.social-links {
    display: flex;
    gap: 15px;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    text-decoration: none;
}

.Btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition-duration: 0.3s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
    background-color: #00d757;
    animation: pulse 2s infinite;
}

.sign {
    width: 100%;
    transition-duration: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign svg {
    width: 25px;
}

.sign svg path {
    fill: white;
}

.text {
    position: absolute;
    right: 0%;
    width: 0%;
    opacity: 0;
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    transition-duration: 0.3s;
}

.Btn:hover {
    width: 180px;
    border-radius: 40px;
    transition-duration: 0.3s;
    animation: none;
}

.Btn:hover .sign {
    width: 30%;
    transition-duration: 0.3s;
    padding-left: 10px;
}

.Btn:hover .text {
    opacity: 1;
    width: 70%;
    transition-duration: 0.3s;
    padding-right: 10px;
}

.Btn:active {
    transform: translate(2px, 2px);
}

@keyframes pulse {
    0% {
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
    }
    50% {
        box-shadow: 2px 2px 20px rgba(128, 128, 128, 0.4);
    }
    100% {
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-nav-group {
        gap: 1.75rem;
    }
}

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

    .footer-container {
        padding: 0 1.25rem;
    }

    .footer-grid {
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-description,
    .footer-contact-meta {
        max-width: 100%;
    }

    .footer-contact-meta {
        align-items: center;
    }

    .footer-address {
        justify-content: center;
        text-align: left;
    }

    .footer-company-ids {
        justify-content: center;
    }

    .footer-nav-group {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-column {
        align-items: center;
        text-align: center;
    }

    .footer-column-title {
        text-align: center !important;
        width: 100%;
        max-width: 220px;
    }

    .footer-column-list {
        align-items: center;
    }

    .footer-column-list a:hover {
        transform: none;
    }

    .footer-linkedin-btn {
        width: 100%;
        max-width: 220px;
    }

    .footer-logo-img {
        height: 54px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    .footer-container {
        padding: 0 2.5rem;
    }

    .footer-nav-group {
        gap: 2.5rem;
        padding-left: 1rem;
    }

    .footer-column-list a {
        font-size: 15px;
    }
}

/* Mobile 390×844: tipografía footer 18px
   (excepto Privacy / cookies del bottom, después del copyright) */
@media (max-width: 390px) {
    .footer-description,
    .footer-tagline,
    .footer-address,
    .footer-id-badge,
    .footer-column-title,
    .footer-column-list a,
    .footer-linkedin-btn,
    .copyright,
    .copyright span {
        font-size: 18px !important;
        line-height: 1.5 !important;
    }

    /* Únicos que no cambian: Privacy y cookies debajo del copyright */
    .footer-bottom-links a,
    .footer-bottom-links span {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
}
