/* ══════════════════════════════════════════════════════════════════════
   GC PUERTAS — AJUSTES RESPONSIVE (25/oct/2026)
   Se carga en todas las páginas desde header.php.
   Puntos de corte:  celular < 768 px · tablet 768–991 px · escritorio ≥ 992 px
   (los mismos del tema y de Bootstrap).
   ── AJUSTA AQUÍ ── tamaños y espacios de cada sección.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Generales: nada más ancho que la pantalla ─────────────────────── */
.btContent img, .bt_bb_wrapper img, footer img { max-width: 100%; height: auto; }
.btContent iframe, .btContent video { max-width: 100%; }
.header .headline { overflow-wrap: break-word; }
/* Títulos de contenido nunca justificados (en Certificaciones dejaban huecos grandes entre palabras) */
.btContent :not(.dash) > h3, .btContent :not(.dash) > h4 { text-align: left; }

/* 4 puertas del inicio: todas las fotos ocupan el ancho completo de su tarjeta
   (antes las de 300 px de origen quedaban más chicas que las demás) */
ul.products.columns-4 li.product .bpgPhoto,
ul.products.columns-4 li.product .boldPhotoBox,
ul.products.columns-4 li.product .bpbItem,
ul.products.columns-4 li.product .btImage { display: block; width: 100% !important; }
ul.products.columns-4 li.product .btImage img { width: 100% !important; max-width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: contain; }

/* Etiquetas "Contacto directo" del pie: el tema las dejaba en 9 px */
footer .widget_tag_cloud .tagcloud a.tag-cloud-link { font-size: 12.5px !important; line-height: 1.4; }

/* Teléfono visible en el encabezado del celular (en escritorio va en la fila del logo) */
.gc-tel-movil { display: none; }

/* ══════════════════════ TABLET Y CELULAR (< 992 px) ══════════════════ */
@media (max-width: 991px) {
	.gc-tel-movil {
		display: flex; align-items: center; gap: 6px;
		position: absolute; right: 14px; top: 50%; transform: translateY(-50%); z-index: 20;
		color: #fff !important; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px;
		text-decoration: none; background: rgba(255,255,255,.12); padding: 7px 12px; border-radius: 20px; white-space: nowrap;
	}
	.gc-tel-movil svg { width: 16px; height: 16px; fill: #fff; flex: 0 0 auto; }
	.mainHeader .btLogoArea { position: relative; }

	/* 4 puertas del inicio: 2 por renglón */
	ul.products.columns-4 { display: flex; flex-wrap: wrap; margin: 0 -8px; }
	body .woocommerce ul.products.columns-4 > li.product { width: 50% !important; flex: 0 0 50% !important; max-width: 50% !important; float: none !important; margin: 0 0 22px !important; padding: 0 8px !important; clear: none !important; }
	body .woocommerce ul.products.columns-4 > li.product .btSuperTitle { font-size: 11.5px; line-height: 1.3; }

	/* Menos espacio vertical entre secciones */
	.boldSection.topSpaced     { padding-top: 50px !important; }
	.boldSection.bottomSpaced  { padding-bottom: 50px !important; }
	.boldSection.topSemiSpaced { padding-top: 32px !important; }
	.boldSection.bottomSemiSpaced { padding-bottom: 32px !important; }
	.gc-clientes, .gc-testimonios { padding-top: 26px !important; padding-bottom: 18px !important; }

	/* Títulos dentro del contenido (no los del tema, que van dentro de .dash) */
	.btContent :not(.dash) > h3 { font-size: 26px !important; line-height: 1.25 !important; }
	.btContent :not(.dash) > h4 { font-size: 21px !important; line-height: 1.3 !important; }
}

/* ══════════════════════════ CELULAR (< 768 px) ═══════════════════════ */
@media (max-width: 767px) {
	.gc-tel-movil { font-size: 13px; padding: 6px 10px; right: 10px; }
	/* logo más compacto para que quepa el teléfono a la derecha */
	.mainHeader .btLogoArea .logo img.btMainLogo { height: 38px !important; width: auto !important; max-width: 150px; }

	/* Carrusel: el título va DEBAJO del banner, para no tapar la imagen */
	#carousel-example-generic .item .header-text { position: static !important; transform: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
	#carousel-example-generic .item .header-text .col-md-11 { width: 100%; padding: 12px 16px 14px; background: #002e5b; text-align: left !important; float: none; }
	#carousel-example-generic .item .header-text .btSeparator { display: none; }
	#carousel-example-generic .item .header-text header.header { margin: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; }
	#carousel-example-generic .item .header-text h1 { margin: 0 !important; }
	#carousel-example-generic .item .header-text .headline { font-size: 20px !important; line-height: 1.25 !important; color: #fff !important; }
	#carousel-example-generic .item .header-text .dash .headline:after,
	#carousel-example-generic .item .header-text .dash .headline:before { display: none !important; }
	#carousel-example-generic .item .header-text .btSubTitle { font-size: 13.5px !important; line-height: 1.4; color: #dfe6ee !important; margin-top: 4px; }
	#carousel-example-generic .item .header-text .rowItemContent { display: flex !important; flex-direction: column; align-items: flex-start; }
	#carousel-example-generic .item .header-text .btBtn { float: none !important; margin-top: 10px; display: inline-flex; order: 3; }
	#carousel-example-generic .carousel-indicators { display: none; }   /* en celular se usan las flechas */
	#carousel-example-generic .gc-flecha { height: auto; top: 0; bottom: auto; aspect-ratio: 1198 / 466; width: 36px; }

	.btContent :not(.dash) > h3 { font-size: 21px !important; }
	.btContent :not(.dash) > h4 { font-size: 17.5px !important; }
	.btContent .dash h3 .headline, .btContent .dash h4 .headline { font-size: 21px !important; }

	/* Frase de "ventaja competitiva" */
	#bt_section5e7da18bb38f9 h2 .headline { font-size: 19px !important; line-height: 1.4 !important; }

	/* Texto justificado → alineado a la izquierda (evita huecos grandes entre palabras) */
	[style*="justify"], .btSubTitle, .btContent p, .btContent li, .btContent :not(.dash) > h3, .btSidebar p, .btSidebar li { text-align: left !important; }

	/* Textos y botones con un mínimo legible */
	.btBtn .btnInnerText { font-size: 12.5px !important; }
	.gc-copy { font-size: 12.5px !important; }
	body { -webkit-text-size-adjust: 100%; }

	/* Tablas de especificaciones: se deslizan de lado si no caben */
	.btContent table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

	/* Formulario de cotización (ventana emergente) */
	#myModal .modal-dialog { margin: 10px; }
	#myModal input[type=submit] { width: 100% !important; padding: 12px !important; }
	#myModal .customfield { font-size: 16px; } /* 16 px evita que el iPhone haga zoom al escribir */

	/* Franja de garantía */
	.gc-garantia { font-size: 1em; padding: 14px 12px; }

	/* Logos de clientes un poco más chicos */
	.gc-clientes .gc-logos { gap: 18px 22px; }
	.gc-clientes .gc-logos img { max-height: 46px; max-width: 120px; }

	/* Servicios y testimonios a una columna */
	.gc-serv { max-width: 100% !important; }
	.gc-caso .gc-fotos img { height: auto !important; width: 100% !important; max-width: 100% !important; }
}

/* Celulares muy angostos (< 380 px): puertas a una columna */
@media (max-width: 359px) {
	body .woocommerce ul.products.columns-4 > li.product { width: 100% !important; flex-basis: 100% !important; max-width: 100% !important; }
	.gc-tel-movil .gc-tel-num { display: none; }  /* en pantallas muy angostas, solo el ícono */
}
