/**
Theme Name: Veta Ingeniería
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: veta-ingenieria
Template: astra
*/

.detGrafico, .site-primary-footer-wrap {
  background-image: url('https://vetaingenieria.com/nueva/wp-content/uploads/2025/07/ingenieria-en-madera-1.svg') !important;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%; /* ancho automático, alto al 100% */
  height: 100%;
}

.detGraficoBlanco {
	background: 
    url('https://vetaingenieria.com/nueva/wp-content/uploads/2025/07/Diseno-y-modelado-BIM-madera.svg') no-repeat right center / auto 100%,
    linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)) !important;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%; /* ancho automático, alto al 100% */
  height: 100%;
}

.detGraficoBlancoServicios {
	background: 
    url('https://vetaingenieria.com/nueva/wp-content/uploads/2025/07/modelado-BIM-madera.svg') no-repeat right center / auto 100%,
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)) !important;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%; /* ancho automático, alto al 100% */
  height: 100%;
}

.detGraficoBlancoProyectos{
	background: 
    url('https://vetaingenieria.com/nueva/wp-content/uploads/2025/07/proyectos.svg') no-repeat right center / auto 100%,
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)) !important;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%; /* ancho automático, alto al 100% */
  height: 100%;
}

.detGraficoBlancoContacto {
	background: 
    url('https://vetaingenieria.com/nueva/wp-content/uploads/2025/07/veta-ingenieria-contacto.svg') no-repeat left center / auto 100%,
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)) !important;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 100%; /* ancho automático, alto al 100% */
  height: 100%;
}


.vc_btn3-style-custom {font-weight:400; font-size:14px; background-image:none !important}
.vc_btn3-style-custom:hover, .vc_btn3.vc_btn3-style-custom:hover { background-color:#000 !important}

.grosor400 { font-weight:400 !important;}


/* Base grid y efectos (tus reglas, con un par de mejoras) */
.grid-entradas-home {
  display: grid;
  /* Por defecto, auto-fit para que fluya y se adapte */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
}

.item-entrada {
  position: relative;
  aspect-ratio: 9/7;                 /* Más alto en desktop */
  background-size: cover;
  background-position: center;
  background-color: #222;            /* Fallback si no hay imagen */
  text-decoration: none;
  overflow: hidden;
  color: white;
}

.item-entrada::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.3);
  z-index: 1;
  transition: background-color 0.3s ease;
}

.item-entrada:hover::before { background-color: rgba(0,0,0,0); }

.item-entrada .overlay {
  position: relative;
  z-index: 2;
  padding: 1em;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.item-entrada:hover .overlay { transform: scale(1.02); text-decoration: none; }

.item-entrada h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
}

a.item-entrada { text-decoration: none !important; }

.item-entrada .btn-mas {
  align-self: flex-end;
  font-size: 2em;
  font-weight: 300;
  text-decoration: none;
  background: rgb(102, 69, 36);
  width: 40px;
  height: 40px;
  border-radius: 0;
  text-align: center;
  line-height: 40px;
  color: #fff;
}

/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .item-entrada:hover .overlay { transform: none; }
  .item-entrada::before { transition: none; }
}

/* ====== Desktop forzado por columnas (opcional) ======
   Si pasas [entradas_home columns="3"], esto fija 3 columnas solo en >=1024px.
   En tablet/móvil mandan los breakpoints de abajo. */
@media (min-width: 1024px) {
  .grid-entradas-home.cols-2 { grid-template-columns: repeat(2, minmax(300px, 1fr)); }
  .grid-entradas-home.cols-3 { grid-template-columns: repeat(3, minmax(300px, 1fr)); }
  .grid-entradas-home.cols-4 { grid-template-columns: repeat(4, minmax(280px, 1fr)); }
  .grid-entradas-home.cols-5 { grid-template-columns: repeat(5, minmax(240px, 1fr)); }
}

/* ====== Tablet ====== */
@media (max-width: 1023.98px) {
  .grid-entradas-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-entrada { aspect-ratio: 4/3; }
  .item-entrada h3 { font-size: 24px; }
  .item-entrada .overlay { padding: 0.9em; }
  .item-entrada .btn-mas { width: 36px; height: 36px; line-height: 36px; font-size: 1.6em; }
	
	.vc_row.imgFndDcha, .vc_row.imgTopDcha, .vc_row.imgTopIzq, .vc_row.imgFndIzq { background-image:none !important }
	.supMenos100 { margin-top:-150px;}
	.espaciosLaterales { margin-left:0% !important; margin-right:0% !important;}
}

/* ====== Móvil ====== */
@media (max-width: 680px) {
  .grid-entradas-home { grid-template-columns: 1fr; }
  .item-entrada { aspect-ratio: 1 / 1; }
  .item-entrada h3 { font-size: 20px; }
  .item-entrada .overlay { padding: 0.8em; }
  .item-entrada .btn-mas { width: 32px; height: 32px; line-height: 32px; font-size: 1.4em; }
	
	.vc_row.imgFndDcha, .vc_row.imgTopDcha, .vc_row.imgTopIzq, .vc_row.imgFndIzq { background-image:none !important }
	.supMenos100 { margin-top:-150px;}
	.espaciosLaterales { margin-left:0% !important; margin-right:0% !important;}
}

.espaciosLaterales { margin-left:20% !important; margin-right:20% !important;}

.ast-builder-language-switcher a{ color:#fff;}
footer h2 { border-bottom:1px solid #D9D9D9; font-size:20px !important; font-weight:400 !important}
footer .textwidget a:hover { text-decoration:underline;}
.ast-builder-social-element { margin-left:0}

.vc_row.imgFndDcha {
  background-repeat:no-repeat;
  background-position:right bottom !important;
}

.vc_row.imgTopDcha {
  background-repeat:no-repeat;
  background-position:right top !important;
}

.vc_row.imgTopIzq {
  background-repeat:no-repeat;
  background-position:left top !important;
}

.vc_row.imgFndIzq {
  background-repeat:no-repeat;
  background-position:left bottom !important;
}

.post-template-default header h1, .post-template-default header p { text-align:center;}
.post-template-default header p { margin-bottom:30px}
.post-template-default #content, .post-template-default article { background-color:#252525 !important}

.vc_btn3.vc_btn3-size-md { text-decoration:none !important}

.altura550 { height:500px !important}


/* 1) Estilo base de los códigos de idioma */
.ast-builder-language-switcher .ast-builder-language-switcher-menu {
  display: inline-flex;
  align-items: center;
  gap: .75rem;              /* separación ES / EN */
}
.ast-builder-language-switcher-language-code {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 14px;
  opacity: .9;
}

/* 2) Bola del mundo al final del conmutador */
.ast-builder-language-switcher .ast-builder-language-switcher-menu::after{
  content: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
<circle cx='12' cy='12' r='10'/>\
<path d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/>\
</svg>");
  display: inline-block;
  margin-left: .65rem;
  transform: translateY(1px); /* ajuste óptico vertical */
  opacity: .55;
	margin-top:50px
}

/* 3) En móvil, un pelín de espacio extra */
.ast-mobile-popup-drawer .ast-builder-language-switcher .ast-builder-language-switcher-menu {
  gap: .6rem;
}
