/*
Theme Name: BulltechSupport
Template: twentytwentyfive
Description: Tema hijo de Twenty Twenty-Five para la landing de BulltechSupport. Colores y tipografía en theme.json; aquí solo ajustes que theme.json no permite.
Version: 3.1.0
Requires at least: 6.7
Requires PHP: 7.4
Author: BulltechSupport
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bulltechsupport
*/

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Las secciones con ancla no quedan ocultas bajo la cabecera fija. */
[id] { scroll-margin-top: 96px; }

/* Cabecera fija. */
header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
.bt-cabecera { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }

/* Menú: subrayado naranja al pasar el mouse. */
.bt-cabecera .wp-block-navigation-item__content {
	text-decoration: none;
	background-image: linear-gradient(var(--wp--preset--color--accent-1), var(--wp--preset--color--accent-1));
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	padding-bottom: 2px;
	transition: background-size 0.2s ease, color 0.2s ease;
}
.bt-cabecera .wp-block-navigation-item__content:hover,
.bt-cabecera .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--accent-1);
	background-size: 100% 2px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; }

/* Sin espacios entre secciones ni antes del pie. */
.wp-site-blocks > footer.wp-block-template-part { margin-block-start: 0; }
.wp-block-post-content.bt-landing > * { margin-block-start: 0; }

/* Foco visible. */
:where(a, button, summary, .wp-element-button, input, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-1);
	outline-offset: 3px;
}

/* Botón contorno. */
.is-style-outline > .wp-element-button {
	border: 2px solid currentColor;
}
.is-style-outline > .wp-element-button:hover {
	background: rgba(255, 117, 31, 0.12);
	color: var(--wp--preset--color--accent-1);
	border-color: var(--wp--preset--color--accent-1);
}

/* Sección principal. */
.bt-hero { position: relative; overflow: hidden; }
.bt-hero::before {
	content: "";
	position: absolute;
	inset: auto auto -40% -20%;
	width: 60%;
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(255, 117, 31, 0.12), transparent 65%);
	pointer-events: none;
}
.bt-hero > * { position: relative; }
.bt-etiqueta {
	display: inline-block;
	border: 1px solid var(--wp--preset--color--accent-1);
	border-radius: 999px;
	padding: 0.3rem 0.9rem !important;
}
.bt-hero .wp-block-shortcode,
.bt-hero .bt-ilus-col > p { margin: 0; }

/* Tarjetas: bordes redondeados, línea superior degradada y movimiento suave. */
.bt-tarjetas > .wp-block-column {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 55%);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.bt-tarjetas > .wp-block-column::after {
	content: "";
	position: absolute;
	top: 0;
	left: 18px;
	right: 18px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: linear-gradient(90deg, rgba(255, 117, 31, 0), var(--wp--preset--color--accent-1) 30%, var(--wp--preset--color--accent-1) 70%, rgba(255, 117, 31, 0));
	opacity: 0.85;
	transition: opacity 0.35s ease, left 0.35s ease, right 0.35s ease;
}
.bt-tarjetas > .wp-block-column:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 117, 31, 0.35);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 117, 31, 0.12);
}
.bt-tarjetas > .wp-block-column:hover::after { opacity: 1; left: 0; right: 0; }
.bt-icono::before { transition: background-color 0.35s ease; }
.bt-tarjetas > .wp-block-column:hover.bt-icono::before { background-color: rgba(255, 117, 31, 0.2); }
@media (prefers-reduced-motion: reduce) {
	.bt-tarjetas > .wp-block-column,
	.bt-tarjetas > .wp-block-column::after { transition: none; }
	.bt-tarjetas > .wp-block-column:hover { transform: none; }
}

/* Preguntas frecuentes. */
.bt-faq .wp-block-details {
	border-bottom: 1px solid #22385A;
	padding-block: 1.1rem;
}
.bt-faq .wp-block-details summary {
	font-weight: 600;
	cursor: pointer;
	font-size: 1.1rem;
	color: var(--wp--preset--color--blanco);
}
.bt-faq .wp-block-details summary::marker { color: var(--wp--preset--color--accent-1); }
.bt-faq .wp-block-details[open] summary { margin-bottom: 0.5rem; }

/* Número de cada paso. */
.bt-numero {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	line-height: 1;
	padding: 0 !important;
}

/* Celulares. */
@media (max-width: 599px) {
	.bt-ocultar-movil { display: none !important; }
	header.wp-block-template-part .wp-block-site-logo img { width: 150px; height: auto; }
}

/* Pantallas medianas (hasta 1199 px): botón de menú en vez de enlaces en dos filas. */
@media (min-width: 600px) and (max-width: 1199px) {
	.wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
header.wp-block-template-part .wp-element-button { white-space: nowrap; }

/* Íconos de las tarjetas de servicios: cambia la clase bt-icono-XXX en Avanzado > Clases CSS. */
.bt-icono::before {
	content: "";
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background-color: rgba(255, 117, 31, 0.12);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 26px 26px;
	margin-bottom: 0.25rem;
}
.bt-icono-soporte::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF751F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.3 5.3L3.5 17.5a1.4 1.4 0 0 0 0 2l1 1a1.4 1.4 0 0 0 2 0l5.9-5.9a4 4 0 0 0 5.3-5.3l-2.4 2.4-2.3-.6-.6-2.3z'/%3E%3C/svg%3E"); }
.bt-icono-web::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF751F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4' width='19' height='16' rx='2'/%3E%3Cline x1='2.5' y1='8.5' x2='21.5' y2='8.5'/%3E%3Cpolyline points='9.5 12 7 14.5 9.5 17'/%3E%3Cpolyline points='14.5 12 17 14.5 14.5 17'/%3E%3C/svg%3E"); }
.bt-icono-correo::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF751F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpolyline points='3.5 6 12 13 20.5 6'/%3E%3C/svg%3E"); }
.bt-icono-office::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF751F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3Cpath d='M17 13.5v7M13.5 17h7'/%3E%3C/svg%3E"); }
.bt-icono-servidor::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF751F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='7' rx='1.5'/%3E%3Crect x='3' y='13' width='18' height='7' rx='1.5'/%3E%3Cline x1='7' y1='7.5' x2='7.01' y2='7.5'/%3E%3Cline x1='7' y1='16.5' x2='7.01' y2='16.5'/%3E%3Cline x1='11' y1='7.5' x2='17' y2='7.5'/%3E%3Cline x1='11' y1='16.5' x2='17' y2='16.5'/%3E%3C/svg%3E"); }
.bt-icono-inventario::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF751F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V2.8h6V4'/%3E%3Cpolyline points='8 10 9.5 11.5 12 9'/%3E%3Cline x1='13.5' y1='10.5' x2='16' y2='10.5'/%3E%3Cpolyline points='8 15.5 9.5 17 12 14.5'/%3E%3Cline x1='13.5' y1='16' x2='16' y2='16'/%3E%3C/svg%3E"); }

/* Cinta naranja "Para personas" / "Para empresas" (estilo del flyer). */
.bt-cinta {
	display: block;
	width: fit-content;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base) !important;
	font-style: italic;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 1.15rem;
	padding: 0.55rem 2rem;
	clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
}

/* ===== v3: conversión por WhatsApp ===== */

/* Íconos en botones (chat = WhatsApp, sobre = correo). */
.bt-btn-wsp .wp-block-button__link,
.bt-btn-correo .wp-block-button__link,
.bt-btn-wsp-flotante .wp-block-button__link { display: inline-flex; align-items: center; gap: 0.55rem; }
.bt-btn-wsp .wp-block-button__link::before,
.bt-btn-correo .wp-block-button__link::before,
.bt-btn-wsp-flotante .wp-block-button__link::before {
	content: "";
	width: 1.15em;
	height: 1.15em;
	flex: none;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.3 7.5L3 21l2-5.4A8.4 8.4 0 1 1 21 11.5z'/%3E%3Cpath d='M8.5 9.5c.3 2.6 2.4 4.7 5 5l1.2-1.2 1.8.8-.4 1.6c-3.9.1-7.6-3.6-7.5-7.5l1.6-.4.8 1.8z' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.3 7.5L3 21l2-5.4A8.4 8.4 0 1 1 21 11.5z'/%3E%3Cpath d='M8.5 9.5c.3 2.6 2.4 4.7 5 5l1.2-1.2 1.8.8-.4 1.6c-3.9.1-7.6-3.6-7.5-7.5l1.6-.4.8 1.8z' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bt-btn-correo .wp-block-button__link::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpolyline points='3.5 6 12 13 20.5 6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpolyline points='3.5 6 12 13 20.5 6'/%3E%3C/svg%3E");
}

/* Botón flotante de WhatsApp: discreto, abajo a la derecha. */
.bt-wsp-flotante {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 90;
	margin: 0 !important;
}
.bt-btn-wsp-flotante .wp-block-button__link {
	background: #25D366;
	color: #05111F;
	font-size: 0.9rem;
	padding: 0.65rem 1.05rem;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
.bt-btn-wsp-flotante .wp-block-button__link:hover,
.bt-btn-wsp-flotante .wp-block-button__link:focus-visible { background: #4BE083; color: #05111F; }
body:has(.wp-block-navigation__responsive-container.is-menu-open) .bt-wsp-flotante { display: none; }
@media (max-width: 781px) {
	/* En celulares, solo el ícono (el texto sigue disponible para lectores de pantalla). */
	.bt-btn-wsp-flotante .wp-block-button__link {
		width: 54px;
		height: 54px;
		padding: 0;
		justify-content: center;
		font-size: 0;
	}
	.bt-btn-wsp-flotante .wp-block-button__link::before { width: 26px; height: 26px; }
	.bt-pie { padding-bottom: 96px !important; }
}

/* Línea de datos bajo los botones de la sección principal. */
.bt-dato-hero { margin-top: 0.9rem !important; }

/* Paneles de servicios. */
.bt-panel {
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 60%);
}
.bt-panel-destacado {
	border-color: rgba(255, 117, 31, 0.55);
	box-shadow: 0 0 0 1px rgba(255, 117, 31, 0.15), 0 18px 40px rgba(0, 0, 0, 0.3);
}
.bt-panel .bt-cinta { font-size: 1rem; margin-top: 0 !important; }
.bt-items, .bt-check { list-style: none; padding-left: 0; margin: 0; }
.bt-items { display: grid; gap: 0.9rem 1.6rem; }
@media (min-width: 1100px) { .bt-items { grid-template-columns: 1fr 1fr; } }
.bt-items li, .bt-check li {
	position: relative;
	padding-left: 1.9rem;
	color: var(--wp--preset--color--accent-4);
	font-size: 0.95rem;
	line-height: 1.55;
}
.bt-check li { margin-bottom: 0.45rem; color: var(--wp--preset--color--texto-suave); }
.bt-items li strong { display: block; color: var(--wp--preset--color--blanco); font-weight: 600; }
.bt-items li::before, .bt-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: rgba(255, 117, 31, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF751F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12.5 10 17 19 7.5'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}
.bt-link-sec { margin-top: 0.75rem !important; }

/* Precios. */
.bt-precio { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.1; margin: 0.2rem 0 !important; }

/* Notas internas del laboratorio (eliminar antes de publicar). */
.bt-nota-lab {
	border: 1px dashed var(--wp--preset--color--accent-1);
	background: rgba(255, 117, 31, 0.08);
	color: #FFB27F;
	border-radius: 8px;
	padding: 0.45rem 0.75rem !important;
	width: fit-content;
	max-width: 100%;
}

/* Celulares: menos espacio vacío para llegar antes al contenido. */
@media (max-width: 781px) {
	.bt-hero { padding-top: var(--wp--preset--spacing--40) !important; padding-bottom: var(--wp--preset--spacing--50) !important; }
	.bt-hero .bt-ilus { max-width: 300px; }
	.bt-panel { padding: 1.4rem !important; }
	.bt-pasos { gap: 1.6rem !important; }
}

/* Ajustes de lectura en paneles y espacio para el botón flotante. */
.bt-panel p { font-size: 1rem; }
.bt-panel .wp-element-button { font-size: 0.95rem; }
.bt-pie { padding-bottom: 88px !important; }

.bt-wsp-flotante { transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s; }
.bt-wsp-flotante.bt-oculto { opacity: 0; transform: translateY(12px); visibility: hidden; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s; }
@media (prefers-reduced-motion: reduce) { .bt-wsp-flotante, .bt-wsp-flotante.bt-oculto { transition: none; } }

/* WhatsApp sin tapar contenido:
   - Celulares: botón de WhatsApp compacto en la cabecera fija.
   - Pantallas anchas (1400 px o más): botón flotante circular en el margen lateral, fuera del contenido.
   - Entre ambos: el botón "WhatsApp" de la cabecera fija queda siempre visible. */
@media (max-width: 599px) {
	.bt-cabecera .bt-ocultar-movil { display: flex !important; }
	.bt-cabecera .bt-btn-wsp .wp-block-button__link {
		width: 44px;
		height: 44px;
		padding: 0 !important;
		justify-content: center;
		gap: 0;
		font-size: 0;
	}
	.bt-cabecera .bt-btn-wsp .wp-block-button__link::before { width: 22px; height: 22px; }
	/* La barra de administración no es fija en celulares: la cabecera se pega al borde superior. */
	header.wp-block-template-part { top: 0; }
}
@media (max-width: 1399px) {
	.bt-wsp-flotante { display: none !important; }
}
.bt-btn-wsp-flotante .wp-block-button__link {
	width: 52px;
	height: 52px;
	padding: 0;
	justify-content: center;
	gap: 0;
	font-size: 0;
}
.bt-btn-wsp-flotante .wp-block-button__link::before { width: 26px; height: 26px; }

/* Fotos de los paneles de servicios (imágenes CC0 de dominio público). */
.bt-panel-img { margin: 0 0 0.25rem !important; }
.bt-panel-img img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	display: block;
}
@media (max-width: 781px) { .bt-panel-img img { aspect-ratio: 16 / 9; } }
