.footer-main {
  background-color: var(--color-negro);
  color: var(--color-blanco);
  text-align: center;
}

@media (min-width: 768px) { 
  .footer-main {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
}

.footer-main h4 {
  margin-bottom: 2rem;
  color: var(--color-secundario);
  text-transform: uppercase;
}

.grid-footer {
  display: grid;
  gap: 3rem;  
}

@media (min-width: 768px) { 
  .grid-footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
}

@media (min-width: 1024px) { 
  .grid-footer {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.grid-footer > div {
  border-bottom: 1px solid #fbb80063;
  padding-bottom: 2rem;
}

@media (min-width: 768px) { 
  .grid-footer > div {
    border-right: 1px solid #fbb80063;
    border-bottom: 0;
  }

  .grid-footer > div:nth-child(2){
    border-right: none;
  }
}

@media (min-width: 1024px) { 
  .grid-footer > div:nth-child(2){
    border-right: 1px solid #fbb80063;
  }
}

.grid-footer > div:last-child {
  border-bottom: none;
}

@media (min-width: 768px) { 
  .grid-footer > div:last-child {
    border-right: none;
  }
}


.info-empresa {
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) { 
  .info-empresa {
    margin-bottom: 0;
  }
}



.info-empresa img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 3rem 0;
}

@media (min-width: 768px) { 
  .info-empresa img {
    padding: 0 0 1rem 0;
  }
}



.menu-footer .menu-principal li {
  padding-bottom: 1.5rem;
}

.menu-footer .menu-principal li a {
  color: var(--color-blanco);
  display: block;
  transition: .3s ease-in-out;
}

.menu-footer .menu-principal li a:hover {
  color: var(--color-secundario);
}

.menu-footer .menu-principal li.current-menu-item a {
  color: var(--color-secundario);
}

.contactenos-bottom {
  margin-top: 3rem;
}

.footer-main .mapa iframe {
  width: 100%;
  max-width: 250px;
  height: 200px;
}

.footer-main .derechos {
  font-size: 1.4rem;
  padding-top: 1rem;
  margin: 2rem 3rem 0 3rem;
  border-top: 1px dotted var(--color-secundario);
}

.footer-main .derechos span {
  color: var(--color-secundario);
  font-weight: bold;
}

/* Estilos a la pagina de Nuestros Servicios */

.content-servicios .elementor-image-box-img {
  /* border: 8px solid gray; */
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  transition: 1s ease-in-out;
  position: relative;
}

.content-servicios .elementor-image-box-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0); /* sin overlay por defecto */
  transition: background 0.4s ease;
  pointer-events: none; /* evita problemas de clics */
}

.content-servicios:hover .elementor-image-box-img img {
  transform: scale(1.05);

}

.content-servicios:hover .elementor-image-box-img::after {
    background: rgba(0, 0, 0, 0.4); /* overlay negro semi-transparente */
}

.content-servicios .elementor-image-box-wrapper {
  transition: transform 0.35s ease, 
                box-shadow 0.35s ease, 
                background-color 0.35s ease;
}
.content-servicios .elementor-image-box-wrapper:hover {
   transform: translateY(-8px); /* la levanta un poquito */
    background-color: rgba(255, 255, 255, 0.05); /* muy leve brillo */
}


/* Estilos al formulario de contacto */
.formulario_contacto {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0 4rem;
}

.formulario_contacto input[type="text"], 
.formulario_contacto input[type="email"], 
.formulario_contacto input[type="tel"],
.formulario_contacto textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid gray;
  border-radius: 5px;
  transition: .3s ease-in;
}

.formulario_contacto .wpcf7-list-item {
  font-size: 1.6rem;
  color: #333232;
  line-height: 1.2;

}

.formulario_contacto .wpcf7-submit {
  padding: 1rem 8rem;
  color: var(--color-blanco);
  border: none;
  background-color: var(--color-negro);
  border-radius: 5px;
  cursor: pointer;
  margin-top: 2rem;
  transition: .3s ease-in;
}

.formulario_contacto .wpcf7-submit:hover {
  background-color: #ac7f05;
}

.formulario_contacto input[type="text"]:hover, 
.formulario_contacto input[type="email"]:hover, 
.formulario_contacto textarea:hover { 
  border: 1px solid var(--color-negro);
}

.formulario_contacto input[type="text"]:focus,
.formulario_contacto input[type="email"]:focus,
.formulario_contacto textarea:focus {
  background-color: rgb(236, 236, 236);
}

.card-contacto {
  display: flex!important;
  justify-content: center!important;
  align-items: center!important;
}

/*  Estilos a la pagina de Quienes Somos */
/* Estilos a los valores corporativos */
.valores-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    justify-content: center; 
}

.valor-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid #e5e5e5;
}

.valor-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 28px rgba(0, 0, 0, 0.12);
}

.valor-icon {
    font-size: 40px;
    color: var(--color-secundario); /* Azul corporativo, cámbialo si quieres */
    margin-bottom: 15px;
}

.valor-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.valor-text {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

/* Responsivo */
@media (max-width: 1200px) {
    .valores-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .valores-container {
        grid-template-columns: 1fr;
    }
}

/* Estilos a la pagina del Blog */
.no-posts-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

.no-posts-card {
    max-width: 600px;
    text-align: center;
    padding: 40px 30px;
    border: 2px solid #FBBA00;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(251, 186, 0, 0.3);
}

.no-posts-card h1 {
    color: #FBBA00;
    font-size: 4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.no-posts-card p {
    color: var(--color-negro);
    font-size: 2rem;
}

/* GRID general */


.contenido-blog {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 4rem;
}

/* CARD */
.contenido-blog .blog {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}

/* Hover elegante */
.contenido-blog .blog:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.16);
}

/* Imagen */
.contenido-blog .blog .content-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

/* Zoom suave en hover */
.contenido-blog .blog:hover .content-img img {
  transform: scale(1.06);
}

/* Contenido */
.contenido-blog .blog .contenido {
  padding: 18px 20px 24px;
}

/* Título */
.contenido-blog .blog h3 {
  font-size: 2.4rem;
  margin: 0 0 10px;
  line-height: 1.35;
  color: #0f172a;
  transition: color .25s ease;
}

/* Hover título */
.contenido-blog .blog:hover h3 {
  color: var(--color-secundario); /* turquesa elegante */
}

/* Descripcion del blog */
.descripcion-blog {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  color: #515255;
}

/* Estilos a las categorias del blog */

.contenido-blog .categorias {
  margin-top: 1.5rem;
  border-top: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  color: var(--color-secundario);
  padding-top: 1rem;
}

.contenido-blog .categorias span {
  margin-right: 1rem;
  color: #6b7280;
}

.contenido-blog .categorias .post-categories {
  display: flex;
  gap: 2rem;
}

.contenido-blog .categorias .post-categories a {
  color: var(--color-negro);
  transition: .2s ease-in;
}

.contenido-blog .categorias .post-categories a:hover {
  color: var(--color-secundario);
}

/* Meta info */
.contenido-blog .blog .meta {
  font-size: 1.3rem;
  color: #6b7280;
  margin: 4px 0;
}

.contenido-blog .blog .meta a {
  color: var(--color-secundario);
  text-decoration: none;
}

.contenido-blog .blog .meta a:hover {
  text-decoration: underline;
}

/* Estilos al contenido especifico de un Blog  */


.main-post h1 {
  margin: 3rem 0;
  text-align: center;
  text-transform: uppercase;
}

.main-post .post-img {
  margin: 2rem 0;
  position: relative;
}

.main-post img {
  display: block;
  margin: 0 auto;
}

.main-post .post-descripcion {
  background-color: #fbb902ab;
  color: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(5px);
  padding: 0.5rem 1rem;
}

.main-post .meta {
  font-size: 1.8rem;
  color: #303030;
}

.main-post .meta span {
  color: var(--color-blanco);
  font-weight: 600;
  margin-right: 1rem;
}

.main-post .meta a {
  color: #303030;
}

.main-post .descripcion {
  text-align: justify;
  font-size: 2rem;
  margin: 1rem 0 6rem 0;  
}

/*  Estilos a la pagina de categorias, filtro que se crea de las category del Blog */
.titulo-category {
  text-transform: uppercase;
  margin: 3rem 0;
}

.titulo-category span {
  color: var(--color-secundario);
}

.content-btn {
  text-align: center;
  margin-bottom: 3rem;
}

.btn-category {
  padding: 1rem 3rem;
  border: none;
  background-color: transparent;
  color: var(--color-secundario);
  cursor: pointer;
  transition: .3s ease-in;
  border-radius: 4px;
}

.btn-category:hover {
  background-color: var(--color-secundario);
  color: var(--color-blanco);
}

.descrip-autor {
  width: 70%;
  margin: 0 auto;
}

.autor-blog h3 {
  text-align: center;
  margin: 3rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid gray;
}


/* Estilos al icono fijo de whatsapp en la pantalla */
/* Contenedor general */
.whatsapp-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

/* Caja desplegable */
.whatsapp-box {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 220px;
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: 0.35s ease;
}

.whatsapp-box.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.whatsapp-box .whatsapp-title {
    margin: 0 0 10px 0;
    font-weight: bold;
    font-size: 15px;
    color: #333;
}

.whatsapp-box a {
    display: block;
    text-decoration: none;
    background: #f2f2f2;
    padding: 10px;
    margin-bottom: 7px;
    border-radius: 8px;
    transition: 0.22s;
}

.whatsapp-box a:hover {
    background: #e8e8e8;
}

/* Botón flotante */
.whatsapp-float {
    width: 70px;
    height: 70px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    animation: pulse-main 2s infinite;
    cursor: pointer;
    position: relative;
}

.whatsapp-float img {
    width: 38px;
    height: 38px;
}

/* Badge */
.whatsapp-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: red;
    color: white;
    width: 24px;
    height: 24px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animación pulse principal */
@keyframes pulse-main {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.12);
        box-shadow: 0 0 0 30px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Estilos a la pagina 404 */
.error-404-constructor {
    position: relative;
    min-height: 80vh;
    color: var(--color-negro);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    overflow: hidden;
}

.container-404 {
    max-width: 600px;
    text-align: center;
    z-index: 2;
}

.code-404 {
    font-size: 120px;
    font-weight: 900;
    color: #FBBA00;
    margin: 0;
    line-height: 1;
}

.title-404 {
    font-size: 32px;
    margin-top: 10px;
    font-weight: 700;
}

.text-404 {
    margin: 20px 0 30px;
    font-size: 17px;
    opacity: .8;
}

.btn-404 {
    display: inline-block;
    padding: 12px 25px;
    background: #FBBA00;
    color: #000;
    font-weight: 600;
    border-radius: 4px;
    transition: .3s;
    text-transform: uppercase;
}

.btn-404:hover {
    background: #fff;
    color: #000;
}

/* Elementos decorativos tipo constructora */
.bg-elements .line-1,
.bg-elements .line-2 {
    position: absolute;
    width: 250%;
    height: 4px;
    background: #FBBA00;
    opacity: .15;
    transform: rotate(-20deg);
}

.bg-elements .line-1 {
    top: 20%;
    left: -30%;
}

.bg-elements .line-2 {
    bottom: 20%;
    left: -10%;
    width: 200%;
}



