/* ============================================
   FOOTER TIPO CAMPOSOL - ESTILOS COMPLETOS
   ============================================ */

.main-footer {
  background: #ffffff;
  color: #333333;
  padding: 60px 0 0;
  margin-top: 80px;
  position: relative;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Línea verde superior del footer */
.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #a9c353;
  width: 100%;
  z-index: 2;
}

/* Patrón deshabilitado */
.main-footer::after {
  display: none;
}

.footer-container {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* Formas decorativas deshabilitadas */
.footer-decoration-right,
.footer-decoration-left {
  display: none;
}

/* Contenedor de hojas decorativas del footer */
.footer-leaves {
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

/* Hoja footer 1 - Grande izquierda */
.footer-leaf-1 {
  position: absolute;
  left: 5%;
  top: 30px;
  width: 55px;
  height: 55px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a9c353'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C21,5 14,5.25 9,6.25C4,7.25 2,11.5 2,13.5C2,15.5 3.75,17.25 3.75,17.25C7,8 17,8 17,8Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.08;
  transform: rotate(-15deg);
}

/* Hojas ocultas */
.footer-leaf-2,
.footer-leaf-3,
.footer-leaf-4,
.footer-leaf-5,
.footer-leaf-6,
.footer-leaf-8 {
  display: none;
}

/* Hoja footer 7 - Grande derecha */
.footer-leaf-7 {
  position: absolute;
  right: 5%;
  top: 50px;
  width: 50px;
  height: 50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a9c353'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C21,5 14,5.25 9,6.25C4,7.25 2,11.5 2,13.5C2,15.5 3.75,17.25 3.75,17.25C7,8 17,8 17,8Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.07;
  transform: rotate(40deg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 40% 20% 20% 20%;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  align-items: start;
}

/* COLUMNAS DEL FOOTER */
.footer-col {
  display: flex;
  flex-direction: column;
}

/* Logo y Descripción */
.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 78px;
  width: auto;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin: 0;
}

/* Títulos de Columnas */
.footer-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

/* Enlaces de Navegación */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #666666;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #3c6980;
  padding-left: 5px;
}

/* Información de Contacto */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #666666;
}

.footer-contact svg {
  flex-shrink: 0;
  opacity: 0.9;
  color: #3c6980;
}

.footer-contact span {
  line-height: 1.5;
}

/* Redes Sociales */
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #333333;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-link:hover {
  background: #3c6980;
  color: #ffffff;
  transform: translateY(-2px);
}

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

/* Franja Inferior con Copyright */
.footer-bottom {
  padding: 25px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-copyright {
  font-size: 13px;
  color: #666666;
  margin: 0;
  letter-spacing: 0.3px;
}

.footer-admin-link {
  padding: 8px 16px;
  background: #f5f5f5;
  color: #666666;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.footer-admin-link:hover {
  background: #3c6980;
  color: #ffffff;
  border-color: #3c6980;
}

/* Créditos de diseño */
.footer-credits {
  font-size: 12px;
  color: #888888;
  margin: 8px 0 0 0;
}

.footer-credits a {
  color: #3c6980;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-credits a:hover {
  color: #a9c353;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .footer-container {
    padding: 0 30px;
  }

  .footer-grid {
    grid-template-columns: 35% 21% 21% 23%;
    gap: 25px;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 25px;
  }
  
  /* Primera columna ocupa toda la fila en tablet */
  .footer-col:first-child {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
  }

  .footer-description {
    font-size: 13px;
    max-width: 600px;
    margin: 0 auto;
  }

  .footer-social {
    justify-content: center;
    margin-top: 15px;
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px 20px;
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  .main-footer {
    padding: 35px 0 0;
    margin-top: 50px;
  }

  .footer-container {
    padding: 0 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 30px;
  }
  
  .footer-col {
    text-align: left;
  }

  .footer-col:first-child {
    grid-column: auto;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .footer-logo {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
  }

  .footer-logo img {
    height: 65px;
  }

  .footer-description {
    font-size: 14px;
    max-width: 100%;
    text-align: left;
    line-height: 1.7;
  }

  .footer-title {
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .footer-links li {
    margin-bottom: 4px;
  }

  .footer-links a {
    font-size: 14px;
    padding: 4px 0;
    display: inline-block;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact li {
    justify-content: flex-start;
    margin-bottom: 12px;
    font-size: 14px;
  }

  .footer-social {
    justify-content: flex-start;
    margin-top: 15px;
  }

  .footer-bottom {
    padding: 20px 0;
  }

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

  .footer-copyright {
    font-size: 12px;
    line-height: 1.5;
  }

  .footer-admin-link {
    font-size: 11px;
    padding: 8px 16px;
  }

  /* Ocultar decoraciones en móvil */
  .main-footer::after,
  .footer-decoration-right,
  .footer-decoration-left,
  .footer-leaves {
    display: none;
  }
}

/* Móvil */
@media (max-width: 576px) {
  .main-footer {
    padding: 30px 0 0;
    margin-top: 40px;
  }

  .footer-container {
    padding: 0 20px;
  }

  .footer-grid {
    gap: 25px;
    padding-bottom: 25px;
  }

  .footer-col {
    text-align: left;
  }

  .footer-col:first-child {
    padding-bottom: 20px;
  }

  .footer-logo {
    justify-content: flex-start;
  }

  .footer-logo img {
    height: 55px;
  }

  .footer-description {
    font-size: 13px;
    text-align: left;
  }

  .footer-title {
    font-size: 15px;
    margin-bottom: 12px;
    text-align: left;
  }

  .footer-links {
    gap: 0;
    justify-content: flex-start;
    flex-direction: column;
  }

  .footer-links li {
    margin-bottom: 3px;
  }

  .footer-links a {
    font-size: 13px;
    padding: 3px 0;
  }

  .footer-contact {
    align-items: flex-start;
  }

  .footer-contact li {
    font-size: 13px;
    margin-bottom: 10px;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
    text-align: left;
  }

  .footer-contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }

  .footer-bottom {
    padding: 15px 0;
  }

  .footer-bottom-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-admin-link {
    font-size: 10px;
    padding: 6px 12px;
    order: 1;
  }

  .footer-copyright {
    font-size: 11px;
    text-align: center;
    order: 2;
  }

  .footer-credits {
    font-size: 10px;
    order: 3;
  }
}

/* Móvil pequeño */
@media (max-width: 400px) {
  .footer-logo img {
    height: 50px;
  }

  .footer-description {
    font-size: 12px;
    text-align: left;
  }

  .footer-title {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-links a {
    font-size: 12px;
  }

  .footer-contact {
    align-items: flex-start;
  }

  .footer-contact li {
    font-size: 12px;
    text-align: left;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

