/* ============================================
   VITALIX FOOTER - MODERN CLEAN VERSION
   Diseño claro y profesional para app médica
   ============================================ */

/* --------------------------------------------
   1. FOOTER PRINCIPAL
-------------------------------------------- */
.vitalix-footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    margin-top: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

/* Efecto de línea superior */
.vitalix-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0891b2, #06b6d4, #22d3ee, #0891b2);
    background-size: 300% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 0%; }
}

/* Patrón de fondo sutil */
.vitalix-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(8, 145, 178, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------
   2. GRID PRINCIPAL
-------------------------------------------- */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Columnas */
.footer-col {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.footer-col:nth-child(1) { animation-delay: 0.1s; }
.footer-col:nth-child(2) { animation-delay: 0.2s; }
.footer-col:nth-child(3) { animation-delay: 0.3s; }
.footer-col:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------
   3. BRAND COLUMN
-------------------------------------------- */
.brand-col {
    padding-right: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.footer-description {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* Redes Sociales */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: white;
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* --------------------------------------------
   4. TÍTULOS Y ENLACES
-------------------------------------------- */
.footer-title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #0891b2, #22d3ee);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #0891b2;
    transform: translateX(5px);
}

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

/* --------------------------------------------
   5. CONTACTO
-------------------------------------------- */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #475569;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-contact li:hover {
    color: #0891b2;
    transform: translateX(4px);
}

.contact-icon {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-contact li:hover .contact-icon {
    background: #dbeafe;
}

.contact-icon svg {
    width: 16px;
    height: 16px;
    stroke: #0891b2;
}

/* --------------------------------------------
   6. NEWSLETTER
-------------------------------------------- */
.footer-newsletter {
    margin: 2rem 0 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.newsletter-text {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.newsletter-icon {
    font-size: 2rem;
}

.newsletter-text h4 {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.newsletter-text p {
    color: #475569;
    font-size: 0.8rem;
}

.newsletter-form {
    flex: 1;
    max-width: 400px;
}

.newsletter-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 0.25rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.newsletter-input-wrapper:hover {
    border-color: #0891b2;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.1);
}

.newsletter-input-wrapper svg {
    margin-left: 1rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.newsletter-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: #0f172a;
    font-size: 0.85rem;
    outline: none;
}

.newsletter-input-wrapper input::placeholder {
    color: #94a3b8;
}

.newsletter-input-wrapper button {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-input-wrapper button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

/* --------------------------------------------
   7. FOOTER BOTTOM
-------------------------------------------- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.5rem;
}

.footer-copyright p {
    color: #64748b;
    font-size: 0.75rem;
}

.footer-version {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

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

.footer-links-bottom a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.footer-links-bottom a:hover {
    color: #0891b2;
}

.footer-links-bottom .separator {
    color: #cbd5e1;
    font-size: 0.7rem;
}

/* --------------------------------------------
   8. RESPONSIVE
-------------------------------------------- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .brand-col {
        grid-column: span 2;
        padding-right: 0;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-text {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 2rem 1.5rem 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .brand-col {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links-bottom {
        justify-content: center;
    }
    
    .newsletter-input-wrapper {
        flex-wrap: wrap;
        background: transparent;
        padding: 0;
        gap: 0.5rem;
    }
    
    .newsletter-input-wrapper svg {
        display: none;
    }
    
    .newsletter-input-wrapper input {
        background: white;
        border-radius: 12px;
        padding: 0.75rem 1rem;
        width: 100%;
        border: 1px solid #e2e8f0;
    }
    
    .newsletter-input-wrapper button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 1.5rem 1rem 1rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-title {
        display: block;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-links-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-links-bottom .separator {
        display: none;
    }
}

/* --------------------------------------------
   9. ANIMACIONES
-------------------------------------------- */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.newsletter-input-wrapper button:active {
    transform: scale(0.98);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}