/* ========================================
   FOOTER ATV - Estilos limpios y optimizados
   ======================================== */

.footer-atv {
    width: 100%;
    margin: 0;
    padding: 3rem 0 1.5rem;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    color: #0A0505;
    border-top: 3px solid #486D4B;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    clear: both;
}

.footer-atv * {
    box-sizing: border-box;
}

.footer-atv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-atv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Branding (logo + texto) */
.footer-atv-brand {
    align-items: flex-start;
}

.footer-atv-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-atv-logo {
    width: 90px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.footer-atv-brand-text {
    font-weight: 700;
    font-size: 1rem;
    color: #0A0505;
}

.footer-atv-intro-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #4b5563;
    margin-top: 0.35rem;
    padding: 0.1rem 0;
    border-left: 3px solid #486D4B;
    padding-left: 0.75rem;
}

/* Tablet: 2 columnas, Desktop: 4 columnas */
@media (min-width: 600px) {
    .footer-atv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .footer-atv-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .footer-atv {
        padding: 2rem 0 1.25rem;
    }
    .footer-atv-container {
        padding: 0 1.25rem;
    }
}

/* Sección individual */
.footer-atv-section {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    width: 100%;
}

.footer-atv-section p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #0A0505;
    margin: 0;
}

/* Títulos de sección - completamente aislados */
.footer-atv-title {
    font-size: 1rem;
    font-weight: 700;
    color: #486D4B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem 0;
    padding: 0 0 0.5rem 0;
    border-bottom: 2px solid #EAB05F;
    line-height: 1.2;
}

.footer-atv-title span {
    display: inline-block;
}

/* Iconos SVG - aislados y consistentes */
.footer-atv-icon {
    width: 20px;
    height: 20px;
    color: #486D4B;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.footer-atv-link-icon {
    width: 16px;
    height: 16px;
    color: #486D4B;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    transition: color 0.2s ease;
}

.footer-atv-wa-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Enlaces */
.footer-atv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-atv-list li {
    font-size: 0.875rem;
}

.footer-atv-list a {
    color: #0A0505;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.footer-atv-list a:hover {
    color: #AA535E;
    transform: translateX(4px);
}

.footer-atv-list a:hover .footer-atv-link-icon {
    color: #AA535E;
}

/* Badges - estilos aislados */
.footer-atv-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    margin-left: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1.2;
    vertical-align: middle;
}

.footer-atv-badge-red {
    background: #fef2f2;
    color: #AA535E;
    border: 1px solid #AA535E;
}

.footer-atv-badge-green {
    background: #f0fdf4;
    color: #486D4B;
    border: 1px solid #486D4B;
}

.footer-atv-badge-indigo {
    background: #eef2ff;
    color: #6366f1;
    border: 1px solid #6366f1;
}

/* Formulario WhatsApp - completamente aislado */
.footer-atv-whatsapp-label {
    font-size: 0.875rem;
    margin: 0 0 0.625rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0A0505;
    font-weight: 500;
    line-height: 1.4;
}

.footer-atv-whatsapp-label svg {
    flex-shrink: 0;
}

.footer-atv-form {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    width: 100%;
    align-items: stretch;
}

/* Input - totalmente aislado */
.footer-atv-input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid #797C72;
    border-radius: 6px;
    color: #0A0505;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.5;
    outline: none;
    width: 100%;
    min-width: 0;
}

.footer-atv-input::placeholder {
    color: #797C72;
    opacity: 1;
}

.footer-atv-input:focus {
    outline: none;
    border-color: #486D4B;
    box-shadow: 0 0 0 3px rgba(72, 109, 75, 0.1);
}

/* Botón - totalmente aislado */
.footer-atv-btn {
    background: linear-gradient(135deg, #486D4B 0%, #3a5a3d 100%) !important;
    padding: 0.625rem 0.875rem;
    border: none !important;
    border-radius: 6px;
    color: white !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(72, 109, 75, 0.2);
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
    flex-shrink: 0;
}

.footer-atv-btn:hover {
    background: linear-gradient(135deg, #3a5a3d 0%, #2d4730 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(72, 109, 75, 0.3);
}

.footer-atv-btn:active {
    transform: translateY(0);
}

.footer-atv-btn:focus {
    outline: 2px solid #486D4B;
    outline-offset: 2px;
}

.footer-atv-btn svg {
    flex-shrink: 0;
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* Redes sociales - totalmente aisladas */
.footer-atv-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.footer-atv-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: white;
    border: 1.5px solid #797C72;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.footer-atv-social a:hover {
    border-color: #486D4B;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(72, 109, 75, 0.15);
}

.footer-atv-social a:focus {
    outline: 2px solid #486D4B;
    outline-offset: 2px;
}

.footer-atv-social svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Footer bottom - totalmente aislado */
.footer-atv-bottom {
    margin: 2.5rem 0 0 0;
    padding: 1.25rem 0 0 0;
    border-top: 1px solid #d1d5db;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.75rem;
    color: #797C72;
    align-items: center;
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .footer-atv-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.footer-atv-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-atv-bottom-links {
        justify-content: flex-start;
    }
}

.footer-atv-bottom-links li {
    margin: 0;
    padding: 0;
}

.footer-atv-bottom-links a {
    color: #0A0505;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-atv-bottom-links a:hover {
    color: #AA535E;
}

.footer-atv-bottom-links a:focus {
    outline: 2px solid #486D4B;
    outline-offset: 2px;
}

.footer-atv-copyright {
    color: #797C72;
    margin: 0;
    line-height: 1.4;
}

.footer-atv-copyright a {
    color: #AA535E;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-atv-copyright a:hover {
    color: #486D4B;
}

.footer-atv-copyright a:focus {
    outline: 2px solid #486D4B;
    outline-offset: 2px;
}

/* Animaciones suaves */
@media (prefers-reduced-motion: no-preference) {
    .footer-atv-list a,
    .footer-atv-social a,
    .footer-atv-btn {
        transition-property: all;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 200ms;
    }
}

/* Iconos del footer inferior */
.footer-atv-bottom-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #486D4B;
}

