/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra Child Theme
Author: Infinity Builders And Renovations
Author URI: https://infinitybuildersandrenovations.com
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* Add your custom styles below */

/* OLD CSS */
/* === BOTONES PRINCIPALES === */
.button_home {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 190px;
  height: 60px;
  color: #fff;
  background-color: #5bb544;
  font-family: Arial, sans-serif;
  font-size: 18px;
  text-align: center;
  vertical-align: middle;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button_home:hover {
  background-color: #a6ff81;
  color: #fff;
}

/* === EFECTO DE BORDES DINÁMICOS === */
/* Corrijo el selector: debería ser .button_home span (faltaba el punto) */
.button_home span {
  position: absolute;
  background: #fff;
  transition: 0.5s;
}

/* Borde superior */
.button_home span:nth-child(1) {
  width: 100%;
  height: 5px;
  top: 0;
  left: -100%;
}

/* Borde inferior */
.button_home span:nth-child(2) {
  width: 100%;
  height: 5px;
  bottom: 0;
  right: -100%;
}

/* Borde izquierdo */
.button_home span:nth-child(3) {
  width: 5px;
  height: 100%;
  bottom: -100%;
  left: 0;
}

/* Borde derecho */
.button_home span:nth-child(4) {
  width: 5px;
  height: 100%;
  top: -100%;
  right: 0;
}

/* Animaciones hover */
.button_home:hover span:nth-child(1) { left: 0; }
.button_home:hover span:nth-child(2) { right: 0; }
.button_home:hover span:nth-child(3) { bottom: 0; }
.button_home:hover span:nth-child(4) { top: 0; }

/* === CUADROS === */
.square_home {
  font-size: 20px;
  font-family: 'Adam', sans-serif;
  line-height: 1;
  background: rgba(50, 50, 72, 0.7);
  color: #fff;
  padding: 20px 15px;
}

.square_services,
.square_adus {
  font-size: 20px;
  font-family: 'Adam', sans-serif;
  font-weight: bold;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.square_services {
  height: 80px;
  background-color: #323b48;
}

.square_services:hover {
  text-decoration: none;
  color: #fff;
}

.square_adus {
  height: 100px;
  background-color: #5bb544;
}

.square_contact_us {
  font-size: 40px;
  font-family: 'Adam', sans-serif;
  line-height: 1;
  background: rgba(50, 50, 72, 0.8);
  color: #fff;
  padding: 20px 10px;
}

/* === VERSIONES MÓVILES === */
@media (max-width: 800px) {
  .square_home_mobile,
  .square_contact_us_mobile {
    font-family: 'Adam', sans-serif;
    background: rgba(50, 50, 72, 0.8);
    color: #fff;
  }

  .square_contact_us_mobile {
    font-size: 20px;
  }

  .adus_title_text {
    margin-top: 10px;
  }

  .title_mobile {
    font-size: 55px !important;
  }
}

/* === BOTÓN HOME FP === */
.button_home_fp {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 180px;
  color: #fff;
  background-color: #333b48;
  font-family: 'Adam', sans-serif;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  border-radius: 12px;
  margin: -15px 0 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button_home_fp:hover {
  background-color: #3b4657;
}

/* === TEXTO CON LÍNEA === */
.adus_line_text {
  font-family: 'Adam', sans-serif;
  font-size: 33px;
  margin-top: 30px;
  text-align: center;
}

.adus_line_text.linea {
  position: relative;
  z-index: 1;
}

.adus_line_text.linea::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 2px solid #323b48;
  width: 100%;
  z-index: -1;
}

.adus_line_text.linea span {
  background: #fff;
  padding: 0 15px;
}


/* ========== FOOTER ========== */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
}

.footer-left {
  flex: 1 1 100px;
}

.footer-table {
  border-collapse: collapse;
  width: 100%;
}

.footer-table,
.footer-table td,
.footer-table th {
  border: none !important;
}

.footer-table>tbody>tr>td {
  padding: 8px;
  color: #FFF !important;
  text-align: left;
  font-size: 20px;
}

.footer-table a {
  color: #FFF !important;
  text-decoration: none !important;
}


.footer-right {
  flex: 1 1 100px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
  justify-content: end;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
}

.footer-social-icons img {
  width: 40px;
  height: 40px;
}

.footer-logo img {
  max-width: 100%;
  height: auto;
  max-height: 150px;
}

/* Tablets */

@media (max-width: 1482px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    align-items: center;
    text-align: center;
  }

  .footer-right {
    align-items: center;
  }

  .footer-table>tbody>tr>td {
    font-size: 18px;
  }

  .footer-logo img {
    max-height: 100px;
  }
}

/* Mobile */
@media (max-width: 722px) {
  .footer-table>tbody>tr>td {
    font-size: 16px;
  }

  .footer-right{
    flex-direction: column;
  }

  .footer-logo img {
    max-height: 80px;
  }

  .footer-social-icons img {
    width: 24px;
    height: 24px;
  }

  .footer-table tr {
    display: block;
    margin-bottom: 16px;
    /* separa cada bloque */
  }

  .footer-table td {
    display: block;
    width: 100%;
    text-align: center;
    /* o left si prefieres */
    padding: 4px 0;
    word-break: break-word;
  }

  .footer-table td:first-child {
    font-weight: bold;
  }
}


.custom-copyright {
  color: #FFF;
  line-height: 1.5;
  text-align: center;
}

.policy-links {
  font-size: 14pt;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.policy-links a {
  color: #5BB544;
  text-decoration: none;
  font-size: 14pt;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.policy-links a:hover {
  color: #A6FF81;
  opacity: 0.8;
}

.policy-links a:active{
  color: #FFF;
}

.separator {
  color: #FFF;
  margin: 0 8px;
  font-size: 14pt;
}

.copyright-text {
  font-size: 10pt;
  color: #FFF;
  margin-top: 5px;
}

@media screen and (max-width: 600px) {
  .policy-links {
    flex-direction: column;
    gap: 10px;
  }

  .separator {
    display: none;
  }

  .policy-links a {
    font-size: 13pt;
  }

  .copyright-text {
    font-size: 9pt;
  }
}