/* ==========================================================================
   FOOTER STYLES - CORLAD Pro
   ========================================================================== */

.site-footer {
    background: var(--color-gray-900);
    color: var(--color-gray-300);
    margin-top: auto;
}

/* ==========================================================================
   FOOTER NEWSLETTER BANNER
   ========================================================================== */

.footer-newsletter {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

.footer-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233, 173, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-12);
    position: relative;
    z-index: 1;
}

/* Forzar texto blanco en todas las paginas (gana a la regla global
   h1-h6 y a cualquier hoja cacheada: el bloque siempre va sobre verde). */
.footer-newsletter .newsletter-title {
    color: #ffffff !important;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
    font-weight: var(--weight-bold);
}

.footer-newsletter .newsletter-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: var(--text-base);
}

.newsletter-field {
    display: flex;
    gap: var(--space-2);
    background: var(--color-white);
    padding: var(--space-2);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
}

.newsletter-field input {
    flex: 1;
    padding: var(--space-3) var(--space-5);
    border: none;
    background: transparent;
    font-size: var(--text-base);
    outline: none;
    color: var(--color-gray-800);
    border-radius: var(--radius-full);
}

.newsletter-field .btn {
    border-radius: var(--radius-full);
    padding: var(--space-3) var(--space-6);
}

@media (max-width: 768px) {
    .newsletter-inner { grid-template-columns: 1fr; gap: var(--space-6); text-align: center; }
    .newsletter-field { flex-direction: column; border-radius: var(--radius-lg); }
    .newsletter-field input { text-align: center; padding: var(--space-3); }
    .newsletter-field .btn { border-radius: var(--radius-md); justify-content: center; }
}

/* ==========================================================================
   FOOTER MAIN - 4 COLUMNS
   ========================================================================== */

.footer-main {
    padding: var(--space-20) 0 var(--space-12);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr 1.3fr;
    gap: var(--space-12);
}

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

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-col {
    color: var(--color-gray-400);
}

.footer-title {
    color: var(--color-white);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

/* About Column */
.footer-col-about .footer-logo {
    display: block;
    margin-bottom: var(--space-5);
    max-width: 220px;
}

.footer-col-about .footer-logo img {
    filter: brightness(1.1);
}

.footer-about-text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-gray-400);
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-brand);
}

/* Quick Links Column */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    color: var(--color-gray-400);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-links a i {
    color: var(--color-primary);
    font-size: var(--text-xs);
    transition: transform var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: var(--space-2);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.footer-contact > li > i {
    color: var(--color-primary);
    font-size: var(--text-base);
    margin-top: 4px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.footer-contact div {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.contact-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-gray-500);
    font-weight: var(--weight-semibold);
}

.footer-contact a,
.footer-contact span {
    color: var(--color-gray-300);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: var(--text-sm);
}

.footer-contact a:hover {
    color: var(--color-accent);
}

/* Bank Info Column */
.footer-bank {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.bank-item {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-4);
}

.bank-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-gray-500);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-1);
}

.bank-value {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-accent);
    font-weight: var(--weight-medium);
    word-break: break-all;
}

.bank-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: var(--text-xs);
    color: var(--color-gray-400);
}

.bank-note i {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   FOOTER BOTTOM
   ========================================================================== */

.footer-bottom {
    background: var(--color-black);
    padding: var(--space-5) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.copyright {
    color: var(--color-gray-500);
    font-size: var(--text-xs);
    margin: 0;
}

.copyright strong {
    color: var(--color-gray-300);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom-links a {
    color: var(--color-gray-500);
    font-size: var(--text-xs);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--color-accent);
}

@media (max-width: 640px) {
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fixed);
    text-decoration: none;
    transition: all var(--transition-base);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--color-white);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-gray-900);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--color-gray-900);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: calc(100% + 16px);
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: var(--z-fixed);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-brand);
}

@media (max-width: 640px) {
    .whatsapp-float { width: 52px; height: 52px; bottom: 20px; right: 20px; font-size: var(--text-2xl); }
    .back-to-top { width: 42px; height: 42px; bottom: 20px; left: 20px; }
}

/* Barra CTA inferior movil eliminada por preferencia del cliente.
   El acceso a WhatsApp queda en el boton flotante (.whatsapp-float). */
