@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');


html {
  scroll-behavior: smooth;
}

body{
  font-family: 'Poppins' , sans-serif;
}



*{
  margin:0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #005C98;
  --secondary-color: #e8e8e8;
  --text-dark: #0f172a;
  --text-light: #94a3b8;
  --white: #ffffff;
}

.contenedor{
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: auto;
  padding: 8%;
  
}

.bg_animate {
  width: 100%;
  height: 95vh; /* Or adjust as needed */
  background-image: url("../img/fondos/fondo4.jpg"); /* Make sure the path is correct */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.4);
}

.header_nav {
  width: 100%;
  height: 80px;
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
}


.header_nav h1 {
  color: #005C98;
  font-size: clamp(1.5rem, 1.7vw, 1.8rem);
  padding-left: 8%;
}

.header_nav .contenedor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 30px 0;
}



.header_nav nav {
  display: flex;
  align-items: center;
}

.header_nav nav a {
  color: #005C98;
  text-decoration: none;
  margin-right: clamp(10px, 20px, 30px);
  font-size: clamp(0.8vw, 1vw, 1.2vw);
  position: relative;
  display: inline-block;
}

.header_nav nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #946eda;
  transition: width 0.3s ease;
}

.header_nav nav a:hover::after {
  width: 100%;
}

.menu-icon {
  display: none; /* Hidden by default, shown in mobile styles */
}

.menu {
  display: flex; /* Displayed by default for desktop */
}


@media (max-width: 900px) {
  .header_nav {
    position: relative; /* Adjusted for mobile layout */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .header_nav .contenedor {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header_nav h1 {
    font-size: 3.5vw;
    margin-bottom: 20px;
    margin-left: 20px;
  }

  .header_nav nav {
    /* Mobile menu styling will control nav display */
    display: block; /* Ensure nav takes full width in mobile */
  }


  .menu-icon {
    display: block; /* Show menu icon on mobile */
    font-size: 30px;
    text-shadow: 2px 2px 5px white;
    color: #18181B;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99;
  }

  .menu-icon.active {
    color: red;
  }

  .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 80vw;
    height: 100%;
    background-color: rgba(64, 64, 64, 1);
    display: flex; /* Ensure flexbox for mobile menu */
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  }

  .menu.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 99;
  }


  .header_nav nav a {
    display: block;
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    padding: 10px;
    text-decoration: none;
  }
}

.banner {
  display: flex;
  justify-content: space-between;
  height: 100%;
}

.banner_title h2 {
  color: #fff;
  font-size: clamp(23px, 35px, 40px);
  font-weight: 600;
  margin-top: 250px;
  margin-bottom: 50px;
  text-shadow: 2px 2px 5px black;
}

.banner_title .llamanos {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  display: inline-block;
  background: #1A2849;
  padding: 20px;
  transition: transform 0.3s ease;
}

.llamanos:hover {
  transform: translateY(-5px);
}

.banner_img {
  animation: movimiento 2.5s linear infinite;
}

.banner_img img {
  height: auto;
  width: clamp(20vw, 25vw, 30vw);
  max-height: auto;
  max-width: 35vw;
  min-width: 20vw;
  border-radius: 0px;
  position: absolute;
  top: clamp(250px, 150px, 100px);
  left: 61%;
}

@keyframes movimiento { /* While referenced in CSS, not used in provided HTML */
  /* ... animations ... */
}



/* Propuestas de trabajo */

.contenedo {
  width: 100%;  
  margin: 0;    
  padding: 2rem 0; 
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem; 
  text-align: center;
  background-color: var(--secondary-color);
}

h2.unipersonal, h2.familiar {
  font-size: 2.5rem;
  color: var(--text-dark);
  font-weight: 800;
  grid-column: 1 / -1;
  margin-bottom: 7rem; 
  margin-top: 5rem;
}

.tabla h2::after {
  content: '';
  display: block;
  width: 50%; 
  height: 4px; 
  background-color: var(--white); 
  margin: 0.5rem auto; 
  border-radius: 5px;
}

.tabla {
  position: relative;
  background-image: url("../img/fondos/fondo10.png");
  background-size: cover;
  background-position: center;

  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
  isolation: isolate;
  min-width: 400px; 
  max-width: 400px;
  margin: auto;       
  height: 400px;     
}

.tabla::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: var(--primary-color);
  z-index: -1;
  transition: width 1s ease, height 1s ease, top 1s ease, left 1s ease;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.tabla:hover::before {
  width: 300%;
  height: 300%;
  top: 50%;
  left: 50%;
}

.tabla h2, .tabla h3 {
  color: var(--primary-color);
  transition: color 1.2s ease;
}

.tabla p {
  color: var(--text-dark);
  transition: color 0.8s ease;
}

.tabla:hover h2, .tabla:hover h3, .tabla:hover p {
  color: var(--white);
}

.tabla img {
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
}

.tabla h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem; /* Aumentar el espacio debajo de los títulos */
}

.tabla h3 sup {
  font-size: 1.2rem;
}

.tabla p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .contenedo {
    grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
  }

  h2.unipersonal, h2.familiar {
    font-size: 2rem;
  }

  .tabla {
    max-width: 100%; /* Permite que las cartas ocupen el ancho completo en móviles */
    height: auto;   /* Permite que la altura se ajuste automáticamente en pantallas pequeñas */
  }
}



.btn {
  padding: 1.1em 2em;
  background: none;
  border: 1px solid #fff;
  font-size: 15px;
  color: #131313;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  border-radius: 12px;
  background-color: #E3A008;
  font-weight: bolder;
  box-shadow: 0 1px 0 1px #000;
}
 
 .btn:before {
  content: "";
  position: absolute;
  width: 100px;
  height: 120%;
  background-color: #FACA15;
  top: 50%;
  transform: skewX(30deg) translate(-150%, -50%);
  transition: all 0.5s;
}
 
 .btn:hover {
  background-color: #fff;
  color: black;
  box-shadow: 0 2px 0 2px #0d3b66;
}
 
 .btn:hover::before {
  transform: skewX(30deg) translate(150%, -50%);
  transition-delay: 0.1s;
}
 
 .btn:active {
  transform: scale(0.9);
}

    
/* Que ofrecemos */

.main__about {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  text-align: center;
  position: relative;
  height: 650px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main__about:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); 
}

.info-block {
  max-width: 800px;
  transition: transform 0.3s ease;
}

.info-block__textt {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; 
  font-size: 2.8rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.info-block__textt::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 4px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
}

.info-block__text {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: #333; 
  line-height: 1.7;
  margin-top: 15px;
  opacity: 0.9;
}


@media (max-width: 768px) {
  .main__about {
    height: auto; 
    padding: 40px 20px;
  }

  .info-block__textt {
    font-size: 2.2rem;
  }

  .info-block__text {
    font-size: 1rem;
  }
}


/* Footer */

.footer{
  position: relative;
  width: 100%;
  background: var(--primary-color);
  min-height: 100px;
  padding: 20px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.social-icon{
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 10px 5px;
  flex-wrap: wrap;
}

.icon-elem{
  list-style: none;
}

.icon{
  color: white;
  font-size: 32px;
  display: inline-block;
  margin: 0 10px;
  transition: 0.5s;
}

.icon:hover{
  transform: translateY(-10px);
}

.mmenu{
  display: flex;
  justify-content: center;
  position: relative;
  align-items: center;
  margin: 10px 0;
  flex-wrap: wrap;
}

.mmenu-elem{
  list-style: none;
}

.mmenu-icon{
  color: white;
  font-size: 20px;
  display: inline-block;
  text-decoration: none;
  margin: 5px 10px;
  opacity: 0.5;
  transition: 0.3s;
}

.mmenu-icon:hover{
  opacity: 1;
}

.text{
  color: white;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 20px;
}

i {
  font-size: 24px; /* Asegura que los íconos tengan tamaño visible */
  display: inline-block; /* Evita problemas con la visibilidad */
  color: white; /* Asegura que no estén ocultos por el color de fondo */
}



/* Detalle del inicio */

.custom-shape-divider-bottom-1727833950 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-bottom-1727833950 svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 150px;
}

.custom-shape-divider-bottom-1727833950 .shape-fill {
  fill: #FFFFFF;
}

@media (max-width: 767px) {
  .custom-shape-divider-bottom-1727833950 svg {
      width: calc(100% + 1.3px);
      height: 82px;
  }
}





/* Estilo base para el botón de Wompi */



.wompi-button {
  display: inline-block;
  padding: 12px 24px; /* Espaciado interno */
  font-size: 16px; /* Tamaño de la fuente */
  font-weight: 600; /* Grosor de la fuente */
  color: #fff; /* Color del texto */
  background-color: #7B1FA2; /* Color de fondo (morado oscuro) */
  border: none; /* Sin borde */
  border-radius: 8px; /* Bordes redondeados */
  text-align: center; /* Texto centrado */
  text-decoration: none; /* Sin subrayado */
  cursor: pointer; /* Cambiar el cursor al pasar */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Transiciones suaves */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

/* Efecto al pasar el mouse */
.wompi-button:hover {
  background-color: #6A1B9A; /* Morado un poco más oscuro */
  transform: translateY(-2px); /* Efecto de levantar el botón */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada */
}

/* Efecto al hacer clic */
.wompi-button:active {
  background-color: #4A148C; /* Morado más oscuro */
  transform: translateY(0); /* Volver a la posición original */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra original */
}

/* Estilo para el ícono (opcional) */
.wompi-button i {
  margin-right: 8px; /* Espacio entre el ícono y el texto */
}


.whatsapp-button {
  position: fixed; /* Lo fija en la pantalla */
  bottom: 20px !important; /* Distancia desde la parte inferior */
  right: 20px !important; /* Distancia desde la derecha */
  background-color: #25D366; /* Color de fondo de WhatsApp */
  border-radius: 50%; /* Lo hace redondo */
  width: 60px  !important; /* Ancho fijo */
  height: 60px !important; /* Altura fija */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Asegura que esté encima de otros elementos */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Sombra suave */
  transition: transform 0.3s ease; /* Transición suave para el efecto hover */
}

.whatsapp-button:hover {
  transform: scale(1.1); /* Efecto de escala al pasar el mouse */
}

.whatsapp-button .imgw {
  width: 40px; /* Ajusta el tamaño del icono de WhatsApp */
  height: 40px;
}
