* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url('tu-imagen.jpg') no-repeat center center;
  background-size: cover;
  color: white;
}

/* menu navegacion */

/* Estilos generales */

.navbar {
  background-color: #333;
  color: white;
  padding: 1rem;
  position: relative;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 40px;
}

.hamburger,
.close-menu {
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  display: none;
  z-index: 1001;
}

/* Enlaces del menú */
.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
}

.btn.btn-primary {
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  padding: 0.5rem 1rem;
}

.nav-links a:hover,
.dropdown-content a:hover {
  background-color: #555;
  color: #ffd700; /* dorado para destacar */
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #555;
  top: 100%;
  left: 0;
  flex-direction: column;
  min-width: 150px;
  z-index: 999;
}

.dropdown-content a {
  padding: 0.5rem;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #444;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .nav-links.active {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
  }

  .close-menu {
    display: none;
  }

  .close-menu.active {
    display: block;
  }
}
/* Ocultar hamburguesa y cerrar en pantallas grandes */
@media (min-width: 769px) {
  .hamburger,
  .close-menu {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    position: static;
    max-height: none;
    opacity: 1;
    pointer-events: auto;
  }
}

 
 
.phone {
  font-weight: bold;
  color: #007BFF;
  text-align: center;
}

 
/* cabecera */
/* Estilo general del header */
.header {
  background-image: url('../images/cabecera3.jpg');
  color: white;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
}

/* Contenido de texto */
.text-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffd700;
}

.text-content h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  font-weight: bold;
}

.text-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

 

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 3rem 1rem;
    min-height: auto;
  }

  .text-content h1 {
    font-size: 1.8rem;
  }

  .text-content p {
    font-size: 1rem;
  }
 
}



/* section sobre abg legal */
.section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 60px;
  background-color: white;
}

.text-content {
  flex: 1;
  max-width: 50%;
  padding-right: 40px;
}

.text-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #ece5e5;
}

.text-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #ffffff;
}

.image-content {
  flex: 1;
  max-width: 50%;
}

.image-content img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .section {
    flex-direction: column;
    padding: 30px;
  }

  .text-content,
  .image-content {
    max-width: 100%;
    padding: 0;
  }

  .text-content {
    margin-bottom: 30px;
  }
}

.text-content{
  background-color: #007BFF;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.text-sobreABG {
  flex: 1;
  max-width: 50%;
  max-width: 100%;
}

.text-sobreABG h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #0033cc;
}

.text-sobreABG p {
  font-size: 18px;
  line-height: 1.6;
  color: #555; 
  text-align: justify;
}

/* Nuestras especialidades */

h3 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color:#0033cc;

}

h3 span {
  color: #0033cc;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.column {
  flex: 1;
  min-width: 250px;
  max-width: 23%;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;

}

.icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.column h3 {
  font-size: 20px;
  color: #0033cc;
  margin-bottom: 10px;
}

.column p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .column {
    max-width: 90%;
  }
}

/* preguntas frecuentes */
.faq-section {
  max-width: 900px;
  margin: auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-title {
  font-size: 28px;
  font-weight: bold;
  color: #0033cc;
  margin-bottom: 30px;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
  cursor: pointer;
}

.faq-question {
  font-size: 20px;
  font-weight: bold;
  color: #0056b3;
  margin: 0;
  transition: color 0.3s;
}

.faq-question:hover {
  color: #002b80;
}

.faq-answer {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  margin-top: 10px;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 20px;
  }

  .faq-title {
    font-size: 24px;
  }

  .faq-question {
    font-size: 18px;
  }

  .faq-answer {
    font-size: 15px;
  }
}

/* calculator */
.calculator {
  background: #0a0a0a;
  color: #fff;
  padding: 40px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  margin: 0 100px;
}

h2 {
  color: #00aaff;
  margin-bottom: 30px;
}

#herencias {
  font-size: 48px;
  font-weight: bold;
  color: #00aaff;
  
}

.resumen {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

#testamentos {
  font-size: 48px;
  font-weight: bold;
  color: #00aaff;
}

#impugnacion {
  font-size: 48px;
  font-weight: bold;
  color: #00aaff;
}

#liquidacion {
  font-size: 48px;
  font-weight: bold;
  color: #00aaff;
}
/* 💬 WhatsApp Button */
 .whatsapp-float {
   position: fixed;
   bottom: 20px;
   right: 20px;
   width: 60px;
   height: 60px;
   background-color: #25D366;
   border-radius: 50%;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
   display: flex;
   justify-content: center;
   align-items: center;
   z-index: 999;
   transition: transform 0.3s;
 }

 .whatsapp-float:hover {
   transform: scale(1.1);
 }

 .whatsapp-float img {
   width: 30px;
   height: 30px;
 }

 /* =========================
   HAMBURGUESA
========================= */

.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  z-index:1001;
}

.hamburger span{
  width:28px;
  height:3px;
  background:white;
  border-radius:3px;
  transition:0.3s;
}

/* ANIMACIÓN X */

.hamburger.active span:nth-child(1){
  transform:rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2){
  opacity:0;
}

.hamburger.active span:nth-child(3){
  transform:rotate(-45deg) translate(7px, -6px);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px){

  .hamburger{
    display:flex;
  }

  .nav-links{
    position:absolute;
    top:80px;
    left:0;
    width:100%;
    background:#111;

    flex-direction:column;
    align-items:center;
    gap:25px;

    max-height:0;
    overflow:hidden;

    transition:max-height 0.4s ease;
    z-index:1000;
  }

  .nav-links.active{
    max-height:500px;
    padding:30px 0;
  }

}