:root {
  --color-primario: #E67E22;
  --color-primario-oscuro: #C34121;
  --color-secundario: #2C3E50;
  --color-secundario-oscuro: #1E2A36;
  --color-fondo: #F5F0E6;
  --color-texto: #2C3E50;
  --color-texto-secundario: #7F8C8D;
  --color-blanco: #FFFFFF;
  --color-borde: #D5DBDB;
  --color-fondo-hero: rgba(44, 62, 80, 0.85);
  --sombra: 0 5px 20px rgba(195, 65, 33, 0.12);
  --sombra-hover: 0 8px 25px rgba(195, 65, 33, 0.2);
  --gradiente: linear-gradient(135deg, var(--color-primario), var(--color-primario-oscuro));
  --transicion: all 0.3s ease-in-out;
}

.footer {
  background-color: var(--color-secundario);
  color: var(--color-blanco);
  padding: 3rem 1rem 2rem;
  width: 100%;
}

.footer-container {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo img {
  max-width: 100%;
  height: auto;
  margin: auto;
  transition: transform 0.3s ease;
}

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

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primario);
}

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

.footer-links li,
.footer-contact p,
.footer-contact a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transicion);
}

.footer-links a:hover {
  color: var(--color-primario);
  text-decoration: underline;
}

/* Redes sociales */
.wrapper {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.icon {
  position: relative;
  background: #ffffff;
  color: #333;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}

.name {
  position: absolute;
  top: 0;
  transform: translateY(-1rem);
  background: #fff;
  color: #333;
  font-size: 0.75rem;
  padding: 3px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.icon:hover .name {
  opacity: 1;
  transform: translateY(-1.8rem);
}

.name::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  transform: rotate(45deg);
  bottom: -3px;
  left: 50%;
  translate: -50%;
}

/* Hover colores redes */
.facebook:hover { background-color: #1877f2; color: #fff; }
.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #fff;
}
.x:hover { background-color: #333; color: #fff; }
.whatsapp:hover { background-color: #25d366; color: #fff; }

/* Mapa */
.footer-map iframe {
  width: 100%;
  height: 280px;
  border: none;
  border-radius: 8px;
  box-shadow: var(--sombra);
}

/* Parte inferior */
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: #ccc;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

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

  .wrapper {
    justify-content: center;
  }

  .footer-logo img {
    margin-bottom: 1rem;
  }

  .footer-map iframe {
    height: 200px;
  }
}
