﻿/* --- [RESPONSIVE PATCH OLA 1 – FOOTER LOGO & SOCIAL CENTER] ---
   Contexto: Hardening mobile, centrar logo y redes sociales en footer.
   - .footer-logo: margin auto, display block
   - .social-links: justify-content center
   - No destructivo, solo override contextual
   - Documentado para trazabilidad
   ---------------------------------------------- */
@media (max-width: 600px) {
  .footer-logo {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    float: none !important;
  }
  .social-links {
    justify-content: center !important;
  }
}
/* --- [RESPONSIVE PATCH OLA 1 – FOOTER PADDING & CENTRADO] ---
   Contexto: Hardening mobile, reintroducir aire lateral y centrado visual en footer full-bleed.
   - padding-left/right en .footer-grid y .footer-col
   - text-align: center en .footer-col
   - No destructivo, solo override contextual
   - Documentado para trazabilidad
   ---------------------------------------------- */
@media (max-width: 600px) {
  .footer-grid {
    padding-left: clamp(12px, 4vw, 24px) !important;
    padding-right: clamp(12px, 4vw, 24px) !important;
  }
  .footer-col {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
/* --- [RESPONSIVE PATCH OLA 1 – FOOTER FULL WIDTH] ---
   Contexto: Hardening mobile, forzar footer a ocupar 100vw real en móviles.
   - Override a .container dentro de footer: width/max-width 100vw, padding/margin 0, centrado
   - .footer-grid y .footer-col: width 100vw, padding/margin 0
   - No destructivo, solo override contextual
   - Documentado para trazabilidad
   ---------------------------------------------- */
@media (max-width: 600px) {
  footer .container {
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
  }
  .footer-grid,
  .footer-col {
    width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
}
/* --- [RESPONSIVE PATCH OLA 1 – FOOTER WRAP] ---
   Contexto: Hardening mobile, evitar desbordes y scroll lateral en footer.
   - min-width: 0 en .footer-grid, .footer-wrap, .footer-content
   - overflow-wrap y word-break en textos largos
   - Ajuste de padding/margin mobile
   - No destructivo, solo override contextual
   - Documentado para trazabilidad
   ---------------------------------------------- */
@media (max-width: 600px) {
  .footer-grid,
  .footer-wrap,
  .footer-content {
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .footer-content,
  .footer-grid {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .footer-content {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: 0;
    margin-right: 0;
  }
}
/* --- RESPONSIVE HARDENING OLA 1: GRIDS BASE (360-412px) --- */
@media (max-width: 480px) {
  .hero-grid,
  .service-grid,
  .plans-grid,
  .footer-grid,
  .split-grid {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
  }
}
/* --- FIN OLA 1 GRIDS BASE --- */
/* ============================================
  3. FOOTER
============================================ */

.site-footer {
  padding:20px 0 24px;
  border-top:1px solid var(--line)
}

footer {
  display: block;
  unicode-bidi: isolate;
}

.footer-grid {
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:24px
}

.footer-col {
  padding:20px
}

.footer-logo {
  height: auto;
  width: 246px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(31, 182, 201, 0.15));
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--white-soft);
  margin: 0;
}

.footer-description {
  font-size: var(--text-sm);
  color: var(--gray-neutral);
  line-height: 1.6;
  margin: 0;
  max-width: 360px;
}

.footer-col h3 {
  margin:0 0 12px;
  font-size:1rem
}

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

.footer-col li {
  margin-bottom:10px
}

.footer-brand p, .footer-col a {
    color: var(--gray);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  margin-top: 10px;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  color: var(--gray-neutral);
  font-size: var(--text-sm);
}

.footer-legal a {
  color: var(--gray-neutral);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
  font-size: .9rem;
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-nav a,
.footer-contact a {
  color: var(--gray-neutral);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-out);
  display: inline-block;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(31, 182, 201, 0.08);
  border: 1px solid rgba(31, 182, 201, 0.2);
  border-radius: 50%;
  color: var(--turquoise-main);
  transition: all var(--duration-normal) var(--ease-out);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-col a:hover {
  color:var(--white)
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--turquoise-main);
}

.social-links a:hover {
  background: rgba(31, 182, 201, 0.15);
  border-color: var(--turquoise-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 182, 201, 0.25);
}

.footer-legal a:hover {
  color: var(--turquoise-main);
}

.footer-icon {
  width: 18px;
  height: 18px;
  color: var(--turquoise-main);
  flex-shrink: 0;
  flex-shrink: 0;
  vertical-align: middle;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4),
              0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5),
              0 12px 40px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
  color: white;
  width: 32px;
  height: 32px;
}

.whatsapp-float:active {
  transform: scale(1.05);
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

}

@media (max-width: 640px) {
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 8px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ============================================
   FOOTER COMPACTO (p├íginas de servicio)
   ============================================ */
.footer-compact .footer-compact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.footer-compact-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-compact-brand .footer-logo {
  height: 80px;
  width: auto;
  max-width: 235px;
  object-fit: contain;
}

.footer-compact-brand .footer-tagline {
  margin: 0;
  color: var(--gray-neutral);
  font-size: var(--text-sm);
}

.footer-compact-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-compact-nav a {
  color: var(--gray-neutral);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.2s ease;
}

.footer-compact-nav a:hover {
  color: var(--turquoise-main);
}

.footer-compact-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Reglas de botones consolidadas en home.css */