/* CTA Block Styles */
.cta-block {
  background: #00A3A4;
  border: 5px solid white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 163, 164, 0.3);
  padding: 3rem 3rem;
  text-align: center;
  margin: 2rem auto;
  max-width: 826px;
  z-index: 2;
}

/* A paragraph, not a heading: it is on every page and belongs to no page's outline. */
.cta-block .cta-block-title {
  color: white;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  opacity: 1;
}

.cta-block p {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.cta-button {
  background: #E78B3D;
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: normal;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background: #D67B2D;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 139, 61, 0.4);
  color: white;
  text-decoration: none;
}

/* Footer Reorganization - 4 Column Layout */
.footer-column {
  width: 100%;
}

.footer-column-empty {
  display: none;
}

@media (min-width: 768px) {
  .footer-column {
    width: 25% !important;
    flex: 0 0 25%;
  }

  .footer-column-empty {
    display: block;
    width: 25% !important;
    flex: 0 0 25%;
  }
}

.footer-logo-left {
  text-align: left;
  display: flex;
  align-items: center;
}

.footer-links-center {
  text-align: left;
}

.footer-empty-column {
  /* Empty column for spacing */
}

.footer-contact-right {
  text-align: left;
}

.footer-contact-info {
  margin-top: 1rem;
}

.footer-bbb-bottom {
  text-align: left;
  margin-top: 1.5rem;
}

/* Responsive Design */

/* Para pantallas ≤ 900px: CTA y Footer al 90% */
@media (max-width: 900px) {
  .cta-block {
    max-width: 90% !important;
    margin: 2rem auto !important;
  }

  .container-max-width {
    max-width: 90% !important;
  }
}

/* Para pantallas de 900px hasta 576px: 3 columnas */
@media (max-width: 900px) and (min-width: 576px) {
  .footer-column {
    width: 100% !important;
    flex: none !important;
  }

  .footer-column-empty {
    display: none !important;
  }

  .footer-logo-left {
    width: 40% !important;
    flex: 0 0 40% !important;
  }

  .footer-links-center {
    width: 30% !important;
    flex: 0 0 30% !important;
  }

  .footer-contact-right {
    width: 30% !important;
    flex: 0 0 30% !important;
  }
}

/* Para pantallas ≤ 575px: 2x2 layout */
@media (max-width: 575px) {

  footer section {
    padding-top: 2rem;
  }

  /* Ocultar columnas originales en mobile */
  .footer-links-center,
  .footer-contact-right {
    display: none !important;
  }

  .footer-column {
    width: 50% !important;
    flex: 0 0 50% !important;
  }

  .footer-column-empty {
    display: block !important;
    width: 50% !important;
    flex: 0 0 50% !important;
  }

  .footer-logo-left svg{
    margin: 0px !important;
  }

  .footer-empty-column {
    text-align: center;
  }

  /* Mostrar versión mobile */
  .footer-mobile-links {
    display: flex !important;
    width: 100% !important;
    margin-top: 30px;
  }

  .footer-mobile-links .footer-mobile-column {
    width: 50% !important;
    flex: 0 0 50% !important;
    text-align: left;
  }

  .footer-mobile-links .footer-mobile-column div{
    width: 70% !important;
    margin: auto;
  }
}

/* Ocultar versión mobile en desktop/tablet */
.footer-mobile-links {
  display: none;
}

/* Para pantallas ≤ 768px: Ajustes generales */
@media (max-width: 768px) {
  .cta-block {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  .cta-block .cta-block-title {
    font-size: 2rem;
  }

  .cta-block p {
    font-size: 1.125rem;
  }
}
