/* footer.css - Estilos mejorados para el footer */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #3ecb85;
  --primary-light: #4fdea0;
  --primary-dark: #28a76d;
  --secondary: #3c7f78;
  --secondary-light: #4a9a92;
  --secondary-dark: #2b6058;
  --accent: #ffc667;
  --accent-light: #ffd485;
  --accent-dark: #fbbd08;
  --light: #f9f9f9;
  --dark: #333333;
  --gray: #777777;
  --gray-light: #e0e0e0;
  --gray-dark: #565656;
}

/* ==== ESTILOS BASE DEL FOOTER ==== */
.footer {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: white;
  font-family: 'Montserrat', sans-serif;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.1;
  z-index: 0;
}

/* ==== CONTENEDOR PRINCIPAL ==== */
.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  position: relative;
  z-index: 1;
}

/* ==== SECCIONES DEL FOOTER ==== */
.footer-section {
  display: flex;
  flex-direction: column;
}

/* ==== LOGO Y DESCRIPCIÓN ==== */
.footer-logo2 {
  width: 130px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.footer-logo2:hover {
  transform: scale(1.05);
}

.logo-svg2 {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
  opacity: 0.9;
  margin-bottom: 25px;
}

/* ==== TÍTULOS DE SECCIÓN ==== */
.footer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* ==== ENLACES ==== */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  position: relative;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  opacity: 0.9;
  display: inline-block;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateX(5px);
  color: var(--accent-light);
}

.footer-links a::before {
  content: '›';
  margin-right: 8px;
  color: var(--primary-light);
  font-weight: bold;
}

/* ==== NEWSLETTER ==== */
.footer-newsletter-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
  max-width: 300px;
}

.footer-form {
  width: 100%;
}

.email-container {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  max-width: 300px;
}

.email-container:focus-within {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.email-container input[type="email"] {
  flex: 1;
  padding: 14px 12px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  background: white;
}

.email-container button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--dark);
  border: none;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
}

.email-container button:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-dark));
}

/* ==== REDES SOCIALES ==== */
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.social-icon i {
  font-size: 15px;
  color: white;
}

/* ==== PARTE INFERIOR ==== */
.footer-bottom {
  text-align: center;
  padding: 25px 20px;
  background: rgba(0, 0, 0, 0.1);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.footer-bottom a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.footer-menu {
  display: none;
}

/* ==== DISEÑO RESPONSIVO ==== */
@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 70px 30px 50px;
  }

  .footer-section {
    align-items: flex-start;
  }

  .footer-menu {
    display: flex;
    margin-top: 20px;
    gap: 15px;
  }

  .footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .footer-menu a:hover {
    color: white;
  }

  .footer-menu a:not(:last-child)::after {
    content: '|';
    margin-left: 15px;
    color: rgba(255, 255, 255, 0.3);
  }
}

@media (min-width: 992px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 30px;
  }
}

/* ==== ANIMACIONES ==== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-section {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

.footer-section:nth-child(1) {
  animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
  animation-delay: 0.3s;
}

.footer-section:nth-child(4) {
  animation-delay: 0.4s;
}
