/* IG TT5: capa de marca sobre bloques nativos. Sin dependencias de Divi. */

:root {
	--ig-navy: #17398a;
	--ig-ink: #071225;
	--ig-orange: #f5960e;
	--ig-green: #007d2c;
	--ig-muted: #536174;
	--ig-surface: #f6f8fc;
	--ig-line: rgba(23, 57, 138, 0.12);
	--ig-shadow: 0 12px 32px rgba(7, 18, 37, 0.06);
	--ig-wrap: 1180px;
	--ig-accent: var(--ig-navy);
	--ig-accent-mark: var(--ig-navy);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { overflow-x: clip; }
:where(a, button, input, select, textarea, [role="tab"]):focus-visible { outline: 3px solid var(--ig-orange); outline-offset: 2px; }
.ig-main { margin-block-start: 0; }
.ig-main > .wp-block-post-content > * { margin-block-start: 0; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.ig-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Cabecera */
.wp-site-blocks > header { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header { top: 32px; }
.ig-header { background: #fff; border-bottom: 1px solid var(--ig-line); }
.ig-header__row { width: min(var(--ig-wrap), 100%); margin-inline: auto; padding: 8px 24px; }
.ig-header__logo { margin: 0; line-height: 0; }
.ig-nav { font-size: 15px; font-weight: 700; }
.ig-nav .wp-block-navigation__container { gap: 28px; }
.ig-nav .wp-block-navigation-item__content { color: var(--ig-navy); }
.ig-nav .wp-block-navigation-item__content:hover,
.ig-nav .current-menu-item > .wp-block-navigation-item__content,
.ig-nav [aria-current="page"] { color: #046512; }
.ig-nav .wp-block-navigation__responsive-container-open { color: var(--ig-navy); padding: 10px; }
.ig-nav .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--ig-navy) !important; color: #fff !important; padding: 24px; }
.ig-nav .is-menu-open .wp-block-navigation-item__content { color: #fff !important; font-size: 20px; padding-block: 10px; }
.ig-nav .is-menu-open [aria-current="page"] { color: var(--ig-orange) !important; }
.ig-nav .wp-block-navigation__responsive-container-close { color: #fff; padding: 10px; }

/* Pie */
.ig-footer { background: var(--ig-ink); color: #fff; padding: 22px 24px; margin-block-start: 0; }
.ig-footer__row { width: min(var(--ig-wrap), 100%); margin-inline: auto; gap: 20px; }
.ig-footer__nav { font-size: 15px; font-weight: 600; }
.ig-footer__nav .wp-block-navigation__container { gap: 22px; }
.ig-footer__nav .wp-block-navigation-item__content { color: #fff; }
.ig-footer__nav .wp-block-navigation-item__content:hover { color: var(--ig-orange); }
.ig-footer__social .wp-social-link a { color: #fff; }
.ig-footer__social .wp-social-link a:hover { color: var(--ig-orange); }
.ig-footer__credits { width: min(var(--ig-wrap), 100%); margin: 0 auto; color: var(--ig-orange); font-size: 14px; }

/* Secciones */
.ig-section { padding: 72px 24px; margin-block-start: 0; }
.ig-section > * { width: min(var(--ig-wrap), 100%); margin-inline: auto; }
.ig-section--soft { background: var(--ig-surface); }
.ig-kicker { margin: 0 0 12px; color: var(--ig-orange); font-size: 12px; font-weight: 900; letter-spacing: 0.15em; line-height: 1.2; text-transform: uppercase; }
.ig-title { max-width: 760px; margin: 0; font-size: clamp(30px, 4.2vw, 48px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.08; }
.ig-lead { max-width: 680px; margin: 16px 0 0; color: var(--ig-muted); font-size: clamp(17px, 1.5vw, 19px); font-weight: 500; line-height: 1.6; }
.ig-section-head { margin-bottom: 36px; }

/* Botones */
.ig-btn, .is-style-ig-primary .wp-block-button__link, .is-style-ig-secondary .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 26px;
	border: 1px solid transparent; border-radius: 999px; font-size: 16px; font-weight: 800; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.ig-btn--primary, .is-style-ig-primary .wp-block-button__link { background: var(--ig-orange); color: #fff; }
.ig-btn--primary:hover, .is-style-ig-primary .wp-block-button__link:hover { background: var(--ig-green); color: #fff; box-shadow: 0 10px 22px rgba(0, 125, 44, 0.28); }
.is-style-ig-secondary .wp-block-button__link { background: #fff; border-color: rgba(23, 57, 138, 0.22); color: var(--ig-navy); box-shadow: 0 12px 28px rgba(7, 18, 37, 0.08); }
.is-style-ig-secondary .wp-block-button__link:hover { background: var(--ig-orange); color: #fff; }

/* Inicio */
.ig-home-hero {
	padding-block: 48px 64px;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 52%, rgba(242, 247, 255, 0.96) 100%),
		linear-gradient(rgba(23, 57, 138, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(23, 57, 138, 0.045) 1px, transparent 1px);
	background-size: auto, 40px 40px, 40px 40px;
}
.ig-home-hero__row { align-items: center !important; gap: 72px; margin: 0 auto; }
.ig-home-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--ig-navy); font-size: 12px; font-weight: 900; letter-spacing: 0.15em; line-height: 1.2; text-transform: uppercase; }
.ig-home-kicker::before { content: ""; flex: none; width: 36px; height: 2px; border-radius: 999px; background: var(--ig-orange); }
.ig-home-title { max-width: 720px; margin: 0; font-size: clamp(40px, 5.7vw, 74px); font-weight: 600; letter-spacing: -0.055em; line-height: 1.03; }
.ig-home-lead { max-width: 620px; margin: 28px 0 0; color: var(--ig-muted); font-size: clamp(18px, 1.55vw, 21px); font-weight: 500; line-height: 1.65; }
.ig-home-hero .wp-block-buttons { margin-top: 30px; gap: 14px; }
.ig-support { position: relative; overflow: hidden; padding: 38px; border-radius: 28px; background: linear-gradient(145deg, #17398a 0%, #244aa2 100%); color: rgba(255, 255, 255, 0.8); box-shadow: 0 28px 70px rgba(23, 57, 138, 0.14); }
.ig-support::before { content: ""; position: absolute; top: -82px; right: -78px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); pointer-events: none; }
.ig-support > * { position: relative; }
.ig-support__title { margin: 0; color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.08; }
.ig-support__intro { margin: 16px 0 30px; font-size: 15px; line-height: 1.6; }
.ig-support__item { margin: 0; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 14px; line-height: 1.5; }
.ig-support__number { display: block; margin-bottom: 6px; color: var(--ig-orange); font-size: 36px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.ig-support__label { display: block; color: #fff; font-size: 16px; font-weight: 900; line-height: 1.35; }

.ig-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ig-cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ig-card-box { margin: 0; padding: 32px 28px; border: 1px solid var(--ig-line); border-radius: 20px; background: #fff; box-shadow: var(--ig-shadow); }
.ig-cards--four .ig-card-box { padding: 26px 22px; border-radius: 18px; }
.ig-card-box__number { margin: 0 0 14px; color: var(--ig-navy); font-size: 13px; font-weight: 900; letter-spacing: 0.12em; }
.ig-card-box__title { margin: 0 0 10px; font-size: clamp(19px, 2vw, 24px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; }
.ig-cards--four .ig-card-box__title { font-size: clamp(17px, 1.4vw, 19px); }
.ig-card-box__body { margin: 0; color: var(--ig-muted); font-size: 15px; line-height: 1.55; }

.ig-logos { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.wp-block-gallery.ig-logo-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 40px; margin: 0; padding: 0; }
.wp-block-gallery.ig-logo-track.is-animated { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: ig-marquee 45s linear infinite; }
.ig-logos:hover .ig-logo-track.is-animated, .ig-logos:focus-within .ig-logo-track.is-animated { animation-play-state: paused; }
.wp-block-gallery.has-nested-images.ig-logo-track figure.wp-block-image { flex: none; width: auto !important; margin: 0; }
.wp-block-gallery.has-nested-images.ig-logo-track figure.wp-block-image img { display: block; width: auto !important; height: 56px !important; max-width: 170px; object-fit: contain; }
@keyframes ig-marquee { to { transform: translateX(calc(-50% - 20px)); } }

.ig-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 44px 48px; border: 1px solid rgba(23, 57, 138, 0.1); border-radius: 24px; background: linear-gradient(180deg, #fff 0%, #fbfaf8 100%); box-shadow: 0 14px 34px rgba(7, 18, 37, 0.06); }
.ig-cta .ig-title { font-size: clamp(28px, 4vw, 48px); max-width: 680px; }
.ig-cta__copy { min-width: 0; }
.ig-cta > *, .ig-solutions__header > * { margin: 0; }

/* Soluciones */
.ig-solutions { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 28px 32px; align-items: start; width: min(1200px, 100%); margin: 0 auto; padding: 32px 24px 72px; }
.ig-solutions > * { margin: 0; }
.ig-solutions__header { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 44px; align-items: center; padding: 48px 44px 52px; border-radius: 24px; background: var(--ig-surface); }
.ig-solutions__header h1 { max-width: 640px; margin: 0; font-size: clamp(30px, 4.2vw, 48px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.08; }
.ig-solutions__note { max-width: 520px; margin: 14px 0 0; color: #5f6b7a; font-size: 14px; font-weight: 600; }
.ig-solutions__media { margin: 0; padding: 12px; border: 1px solid var(--ig-line); border-radius: 24px; background: #fff; box-shadow: 0 16px 40px rgba(7, 18, 37, 0.08); }
.ig-solutions__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
#ig_solutions_navigation { position: sticky; top: 96px; padding: 14px; border: 1px solid var(--ig-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 26px rgba(7, 18, 37, 0.05); }
.ig-solutions-tabs-row { display: flex; flex-direction: column; gap: 8px; }
.ig-solution-tab { --ig-accent: var(--ig-navy); position: relative; margin: 0; padding: 14px 16px 14px 56px; border: 1px solid transparent; border-left: 3px solid transparent; border-radius: 14px; cursor: pointer; }
.ig-solution-tab::before { content: ""; position: absolute; top: 15px; left: 14px; width: 30px; height: 30px; background: var(--ig-accent); -webkit-mask: var(--ig-icon) center / contain no-repeat; mask: var(--ig-icon) center / contain no-repeat; }
.ig-solution-tab__title { margin: 0; font-size: 15px; font-weight: 900; letter-spacing: -0.015em; line-height: 1.25; }
.ig-solution-tab__text { margin: 3px 0 0; color: var(--ig-muted); font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.ig-solution-tab:hover { background: var(--ig-surface); }
.ig-solution-tab.is-active { background: var(--ig-surface); border-left-color: var(--ig-accent); box-shadow: 0 8px 20px rgba(7, 18, 37, 0.08); }
.ig-solution-tab.is-active .ig-solution-tab__title { color: var(--ig-accent); }
.ig-solution-tab-comunicacion { --ig-accent: #17398a; --ig-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.200.2 2.400.6 3.600.1.300 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.ig-solution-tab-productividad { --ig-accent: #046512; --ig-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.400 10a7 7 0 0 0-13-1.900A5.500 5.500 0 0 0 6.500 19h12.500a4.500 4.500 0 0 0 .4-9z'/%3E%3C/svg%3E"); }
.ig-solution-tab-redes { --ig-accent: #071225; --ig-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.400 9.700 8 11 4.600-1.300 8-6 8-11V5z'/%3E%3C/svg%3E"); }
.ig-solution-tab-presencia-digital { --ig-accent: #f5960e; --ig-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm6.900 6h-3a15 15 0 0 0-1.300-3.600A8 8 0 0 1 18.900 8zM12 4c.800 1.200 1.500 2.500 1.900 4h-3.800c.4-1.500 1.100-2.800 1.900-4zM4.300 14a8 8 0 0 1 0-4h3.400a16 16 0 0 0 0 4zm.8 2h3a15 15 0 0 0 1.300 3.600A8 8 0 0 1 5.100 16zm3-8h-3a8 8 0 0 1 4.300-3.600A15 15 0 0 0 8.100 8zM12 20c-.8-1.200-1.500-2.500-1.900-4h3.800c-.4 1.500-1.100 2.800-1.900 4zm2.300-6H9.700a14 14 0 0 1 0-4h4.600a14 14 0 0 1 0 4zm.3 5.600c.6-1.100 1-2.300 1.300-3.600h3a8 8 0 0 1-4.300 3.600zm1.700-5.600a16 16 0 0 0 0-4h3.400a8 8 0 0 1 0 4z'/%3E%3C/svg%3E"); }
.ig-solutions__panels { min-width: 0; display: grid; gap: 24px; }
.ig-solution-panel { --ig-accent: #17398a; --ig-accent-soft: rgba(23, 57, 138, 0.1); margin: 0; padding: 40px 36px 44px; border: 1px solid var(--ig-line); border-top: 3px solid var(--ig-accent); border-radius: 20px; background: #fff; scroll-margin-top: 96px; }
.ig-solution-panel-productividad { --ig-accent: #046512; --ig-accent-soft: rgba(4, 101, 18, 0.1); }
.ig-solution-panel-redes { --ig-accent: #071225; --ig-accent-soft: rgba(7, 18, 37, 0.1); }
.ig-solution-panel-presencia-digital { --ig-accent: #f5960e; --ig-accent-soft: rgba(245, 150, 14, 0.14); }
.ig-solution-panel__kicker { margin: 0 0 10px; color: var(--ig-accent); font-size: 12px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
.ig-solution-panel h2 { max-width: 820px; margin: 0 0 26px; font-size: clamp(24px, 2.8vw, 34px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; }
.ig-solution-panel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ig-solution-box { margin: 0; padding: 28px 26px; border: 1px solid var(--ig-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(7, 18, 37, 0.05); }
.ig-solution-box--soft { background: var(--ig-surface); }
.ig-solution-box h3 { margin: 0 0 14px; font-size: 18px; font-weight: 900; letter-spacing: -0.01em; }
.ig-solution-box ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.ig-solution-box li { position: relative; padding-left: 18px; color: #33404f; font-size: 15px; font-weight: 500; line-height: 1.45; }
.ig-solution-box li::before { content: ""; position: absolute; top: 0.55em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ig-accent); }
.ig-solution-platforms { margin: 20px 0 0; padding: 22px 26px; border: 1px solid rgba(7, 18, 37, 0.06); border-radius: 16px; background: var(--ig-accent-soft); }
.ig-solution-platforms h3 { margin: 0 0 6px; color: var(--ig-accent); font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.ig-solution-platforms p { margin: 0; color: #33404f; font-size: 15px; font-weight: 600; }
.ig-solutions-cta { grid-column: 1 / -1; margin: 0; text-align: center; }
.ig-solutions-cta .wp-block-buttons { justify-content: center; }
/* Sin JS los cuatro paneles quedan visibles; solo se ocultan cuando el script inicializa. */
body.ig-solutions-ready .ig-solution-panel:not(.is-active) { display: none; }
body.ig-solutions-ready .ig-solution-panel.is-active { animation: ig-fade 220ms ease both; }
@keyframes ig-fade { from { opacity: 0; transform: translateY(6px); } }

/* Nosotros */
.ig-nosotros-hero__row { align-items: center !important; gap: 48px; margin: 0 auto; }
.ig-nosotros-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--ig-navy); font-size: 12px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
.ig-nosotros-kicker::before { content: ""; flex: none; width: 36px; height: 2px; border-radius: 999px; background: var(--ig-orange); }
.ig-nosotros-title { margin: 0 0 20px; font-size: clamp(38px, 5vw, 64px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.ig-nosotros-intro { max-width: 660px; color: var(--ig-muted); font-size: clamp(17px, 1.5vw, 19px); font-weight: 500; }
.ig-nosotros-media img { display: block; width: 100%; height: auto; border: 1px solid var(--ig-line); border-radius: 24px; box-shadow: 0 16px 40px rgba(7, 18, 37, 0.08); }
.ig-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.ig-panel { margin: 0; padding: 34px 32px; border: 1px solid var(--ig-line); border-radius: 20px; background: #fff; box-shadow: var(--ig-shadow); }
.ig-panel h2 { margin: 0 0 12px; color: var(--ig-navy); font-size: clamp(22px, 2.2vw, 28px); font-weight: 900; letter-spacing: -0.02em; }
.ig-panel p { margin: 0; color: var(--ig-muted); font-size: 16px; font-weight: 500; }
.ig-panel--accent { border-top: 3px solid var(--ig-orange); }
.ig-panel--accent h2 { color: var(--ig-ink); font-size: clamp(20px, 2vw, 24px); }
.ig-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--ig-line); border-radius: 24px; background: #fff; box-shadow: 0 16px 40px rgba(7, 18, 37, 0.08); }
.ig-contact__copy, .ig-contact__form { margin: 0; padding: 44px 40px; min-width: 0; }
.ig-contact__copy { background: var(--ig-surface); }
.ig-contact__kicker { margin: 0 0 12px; color: var(--ig-navy); font-size: 12px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
.ig-contact__copy h2 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 38px); font-weight: 900; letter-spacing: -0.03em; }
.ig-contact__copy p:not(.ig-contact__kicker) { color: var(--ig-muted); font-size: 17px; font-weight: 500; }
.ig-contact__copy img { display: block; width: 100%; height: auto; margin-top: 22px; border-radius: 18px; }
/* Redes sociales bajo la imagen de Contacto (SDP #251, P06). */
.ig-contact__social { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.ig-contact__social .wp-social-link { margin: 0; }
.ig-contact__social .wp-block-social-link-anchor { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid rgba(23, 57, 138, 0.16); border-radius: 50%; background: #fff; color: var(--ig-navy); }
.ig-contact__social .wp-block-social-link-anchor:hover { border-color: var(--ig-orange); background: rgba(245, 150, 14, 0.1); color: var(--ig-navy); }
.ig-contact__social .wp-block-social-link-anchor:focus-visible { outline: 3px solid var(--ig-orange); outline-offset: 2px; }
.ig-contact__social .wp-block-social-link-anchor svg { width: 22px; height: 22px; fill: currentColor; }
.ig-form { display: grid; gap: 14px; scroll-margin-top: 110px; }
.ig-form__title { margin: 0; font-size: 22px; font-weight: 900; }
.ig-form__field { display: grid; gap: 6px; margin: 0; }
.ig-form label { color: var(--ig-ink); font-size: 14px; font-weight: 700; }
.ig-form input, .ig-form textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid rgba(23, 57, 138, 0.28); border-radius: 10px; background: #fff; color: var(--ig-ink); font: inherit; font-size: 16px; }
.ig-form [aria-invalid="true"] { border-color: #b3261e; }
.ig-form__error { color: #b3261e; font-size: 13px; font-weight: 600; }
.ig-form__notice { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--ig-surface); color: var(--ig-ink); font-size: 15px; font-weight: 600; }
.ig-form__notice--ok { background: rgba(0, 125, 44, 0.1); color: #00591f; }
.ig-form__notice--error { background: rgba(179, 38, 30, 0.1); color: #8c1d18; }
.ig-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ig-form .ig-btn { justify-self: start; }
.ig-social-title { margin-bottom: 20px; }
.ig-social-title h2 { margin: 0 0 8px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.02em; }
.ig-social-title p { margin: 0; color: var(--ig-muted); font-size: 16px; }
.ig-social .wp-block-buttons { gap: 12px; }
.ig-social .wp-block-button__link { min-height: 44px; padding: 10px 20px; border: 1px solid rgba(23, 57, 138, 0.14); border-radius: 999px; background: #fff; color: var(--ig-navy); font-size: 15px; font-weight: 700; }
.ig-social .wp-block-button__link:hover { background: rgba(23, 57, 138, 0.06); color: var(--ig-navy); }

/* Conectados */
.ig-conectados-head { margin: 0; line-height: 0; }
.ig-conectados-head img { display: block; width: 100%; height: auto; }
.ig-conectados { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; width: min(var(--ig-wrap), 100%); margin: 0 auto; padding: 32px 24px 72px; box-sizing: border-box; }
.ig-archive__title { width: min(var(--ig-wrap), 100%); margin: 32px auto 0; padding-inline: 24px; box-sizing: border-box; font-size: clamp(28px, 3.4vw, 40px); }
.ig-archive .ig-conectados { padding-top: 20px; }
.ig-filter { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid rgba(23, 57, 138, 0.1); border-radius: 13px; background: #fff; box-shadow: 0 2px 10px rgba(23, 57, 138, 0.05); position: sticky; top: 96px; }
.ig-filter__label { color: var(--ig-navy); font-size: 13px; font-weight: 700; }
.ig-filter__select { width: 100%; padding: 9px 10px; border: 1px solid rgba(23, 57, 138, 0.24); border-radius: 8px; background: #fff; color: #1a1a1a; font: inherit; font-size: 15px; }
.ig-filter__apply { justify-self: start; padding: 6px 12px; border: 1px solid rgba(23, 57, 138, 0.24); border-radius: 8px; background: #fff; color: var(--ig-navy); font: inherit; font-size: 13px; cursor: pointer; }
.ig-filter__reset { justify-self: start; color: #1f5f8b; font-size: 13px; font-weight: 600; }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ig-card { margin: 0; min-width: 0; }
.ig-card article { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid rgba(23, 57, 138, 0.08); border-radius: 13px; background: #fff; box-shadow: 0 1px 8px rgba(23, 57, 138, 0.04); }
.ig-card__media { line-height: 0; }
.ig-card__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ig-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 14px 14px; }
.ig-card__category { margin: 0; color: #0a64ad; font-size: 13px; font-weight: 500; line-height: 1.3; }
.ig-card__category a { color: inherit; }
.ig-card__title { margin: 0; color: var(--ig-navy); font-size: clamp(16px, 1.35vw, 18px); font-weight: 500; letter-spacing: normal; line-height: 1.28; }
.ig-card__title a { color: inherit; text-decoration: none; }
.ig-card__title a:hover { color: #046512; text-decoration: underline; }
.ig-card__date { color: #666; font-size: 13px; line-height: 1.35; }
.ig-card__excerpt { flex: 1; margin: 2px 0 6px; color: #333; font-size: 15px; line-height: 1.5; }
.ig-card__more { padding: 6px 12px; border: 1px solid rgba(23, 57, 138, 0.18); border-radius: 10px; color: var(--ig-navy); font-size: 13px; font-weight: 500; line-height: 1.2; text-decoration: none; }
.ig-card__more:hover { background: var(--ig-navy); color: #fff; }
.ig-loadmore-wrap { margin: 24px 0 0; text-align: center; }
.ig-loadmore { display: inline-block; padding: 8px 16px; border: 1px solid rgba(23, 57, 138, 0.2); border-radius: 8px; color: var(--ig-navy); font-size: 14px; font-weight: 500; text-decoration: none; }
.ig-loadmore:hover { background: rgba(23, 57, 138, 0.06); color: #046512; }
.ig-empty { padding: 32px; border: 1px solid var(--ig-line); border-radius: 13px; background: var(--ig-surface); text-align: center; }
.ig-empty p { margin: 0 0 14px; color: var(--ig-muted); }

/* Entrada individual */
.ig-cat-microsoft { --ig-accent: #0f4c81; --ig-accent-mark: #0078d4; }
.ig-cat-ciberseguridad, .ig-cat-fortinet { --ig-accent: #0b1b3a; --ig-accent-mark: #ee3124; }
.ig-cat-presencia-digital, .ig-cat-marketing-digital { --ig-accent: #17398a; --ig-accent-mark: #046512; }
.ig-single { padding: 24px 24px 64px; }
.ig-post-hero { width: min(var(--ig-wrap), 100%); margin: 0 auto 28px; line-height: 0; }
.ig-post-hero__img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; border-radius: 16px; box-shadow: 0 10px 28px rgba(11, 27, 58, 0.1); }
.ig-single__head, .ig-entry, .ig-post-nav { max-width: 820px; margin-inline: auto; }
.ig-single__head .wp-block-post-title { margin: 0 0 14px; color: var(--ig-accent); font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: normal; line-height: 1.14; }
.ig-single__meta { gap: 6px 14px; color: #667085; font-size: 15px; font-weight: 500; }
.ig-single__meta > * { margin: 0; }
.ig-single__meta a { color: inherit; }
.ig-entry { margin-top: 24px; color: #26313f; font-size: 18px; line-height: 1.75; }
.ig-entry > * { margin-block: 0 1.25em; }
.ig-entry h2 { margin: 2rem 0 1rem; color: var(--ig-accent); font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: normal; line-height: 1.2; }
.ig-entry h3 { margin: 1.5rem 0 0.75rem; color: var(--ig-accent); font-size: clamp(20px, 2vw, 26px); font-weight: 600; }
.ig-entry [class*="-2026-benefits"] { margin: 0 0 1.5rem; padding: 22px 24px; border: 1px solid #dce3eb; border-left: 4px solid var(--ig-accent-mark); border-radius: 16px; background: #f6f8fb; list-style: none; }
.ig-entry [class*="-2026-benefits"] li { position: relative; margin: 0 0 12px; padding-left: 18px; font-size: 17px; line-height: 1.55; }
.ig-entry [class*="-2026-benefits"] li:last-child { margin-bottom: 0; }
.ig-entry [class*="-2026-benefits"] li::before { content: ""; position: absolute; top: 0.55em; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--ig-accent-mark); }
.ig-entry .wp-block-embed { margin: 1.75rem 0; }
.ig-entry .wp-block-embed iframe { border: 0; border-radius: 12px; }
.ig-entry .wp-embed-aspect-9-16 .wp-block-embed__wrapper { max-width: min(380px, 100%); margin-inline: auto; }
.ig-entry [class*="-video--vertical"] { padding: 28px 24px; border: 1px solid #dce3eb; border-radius: 16px; background: #f6f8fb; box-shadow: 0 8px 24px rgba(11, 27, 58, 0.06); }
.ig-entry .ig-forti-media-pair { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.ig-entry .ig-forti-media-pair .wp-block-embed { margin: 0; }
.ig-post-cta { max-width: 820px; margin: 40px auto 0; padding: 28px 32px; border: 1px solid #dce3eb; border-radius: 20px; background: #f6f8fb; text-align: center; }
.ig-post-cta__copy h2 { margin: 0 0 10px; color: var(--ig-accent); font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: normal; }
.ig-post-cta__copy p { margin: 0 0 20px; color: #5a6476; font-size: 17px; }
.ig-post-nav { margin-top: 36px; padding-top: 18px; border-top: 1px solid #dce3eb; font-weight: 700; }
.ig-related { width: min(var(--ig-wrap), 100%); margin: 40px auto 0; }
.ig-related h2 { margin: 0 0 20px; color: var(--ig-accent); font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: normal; }
.ig-related ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ig-related__item { margin: 0; min-width: 0; }
.ig-related__item a { display: block; color: var(--ig-navy); font-weight: 600; line-height: 1.3; text-decoration: none; }
.ig-related__item a:hover .ig-related__title { text-decoration: underline; }
.ig-related__item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-bottom: 10px; object-fit: cover; border-radius: 12px; }
.ig-related__item time { display: block; margin-top: 4px; color: #666; font-size: 13px; }

/* Páginas de texto */
.ig-page { padding: 40px 24px 72px; }
.ig-page .wp-block-post-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }

/* Tableta */
@media (max-width: 980px) {
	.ig-section { padding: 56px 22px; }
	.ig-home-hero { padding-block: 32px 56px; }
	.ig-home-hero__row, .ig-nosotros-hero__row { gap: 32px; flex-wrap: wrap !important; }
	.ig-home-hero__row > .wp-block-column, .ig-nosotros-hero__row > .wp-block-column { flex-basis: 100% !important; }
	.ig-cards { gap: 20px; }
	.ig-cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ig-cta { flex-direction: column; align-items: flex-start; padding: 36px 34px; }
	.ig-solutions { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
	.ig-solutions__header { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 36px 30px; }
	.ig-solutions__media { max-width: 520px; }
	#ig_solutions_navigation { position: static; }
	.ig-solutions-tabs-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ig-contact { grid-template-columns: minmax(0, 1fr); }
	.ig-contact__copy, .ig-contact__form { padding: 36px 30px; }
	.ig-conectados { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.ig-filter { position: static; max-width: 340px; }
	.ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Móvil */
@media (max-width: 781px) {
	.ig-cards { grid-template-columns: minmax(0, 1fr); }
	.ig-cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ig-two { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.ig-related ul { grid-template-columns: minmax(0, 1fr); }
	.ig-entry .ig-forti-media-pair { grid-template-columns: minmax(0, 1fr); }
	.admin-bar .wp-site-blocks > header { top: 46px; }
}

@media (max-width: 640px) {
	.ig-section { padding: 44px 18px; }
	.ig-header__row { padding: 6px 16px; }
	.ig-support { padding: 28px 24px; }
	.ig-cards--four { grid-template-columns: minmax(0, 1fr); }
	.ig-cta { padding: 30px 24px; }
	.ig-solutions { padding-inline: 16px; }
	.ig-solutions__header { padding: 28px 20px; }
	.ig-solution-panel { padding: 30px 18px 34px; }
	.ig-solution-panel__grid { grid-template-columns: minmax(0, 1fr); }
	.ig-solution-box { padding: 24px 20px; }
	/* Selector móvil: cerrado muestra la pestaña activa; abierto, las cuatro. */
	.ig-solutions-tabs-row { display: flex; gap: 4px; }
	body.ig-solutions-ready .ig-solutions-tabs-row:not(.is-mobile-open) .ig-solution-tab:not(.is-active) { display: none; }
	body.ig-solutions-ready .ig-solution-tab.is-active::after { content: ""; position: absolute; top: 50%; right: 16px; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--ig-accent); border-bottom: 2px solid var(--ig-accent); transform: rotate(45deg); }
	body.ig-solutions-ready .ig-solutions-tabs-row.is-mobile-open .ig-solution-tab.is-active::after { margin-top: -2px; transform: rotate(-135deg); }
	.ig-contact__copy, .ig-contact__form { padding: 28px 22px; }
	/* Redes de Contacto: se mantienen en una fila, mas compactas en movil. */
	.ig-contact__social { gap: 8px; margin-top: 22px; }
	.ig-contact__social .wp-block-social-link-anchor { width: 42px; height: 42px; }
	.ig-contact__social .wp-block-social-link-anchor svg { width: 20px; height: 20px; }
	.ig-panel { padding: 26px 22px; }
	.ig-conectados { padding-inline: 16px; }
	.ig-filter { max-width: none; }
	.ig-grid { gap: 12px; }
	.ig-card__body { padding: 8px 10px 12px; }
	.ig-card__excerpt { font-size: 14px; }
	.ig-single { padding-inline: 16px; }
	.ig-post-hero__img { max-height: 190px; border-radius: 14px; }
	.ig-entry { font-size: 17px; }
	.ig-entry [class*="-video--vertical"] { padding: 22px 18px; }
	.ig-post-cta { padding: 24px 20px; }
	.ig-social .wp-block-button, .ig-social .wp-block-button__link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ig-logo-track.is-animated, body.ig-solutions-ready .ig-solution-panel.is-active { animation: none; }
}

/* P05 F2 — 1525 / par de medios (horizontal + vertical).
   a) Neutraliza `margin-inline: auto !important` que `is-layout-constrained`
      impone a los hijos y que colapsaba los ítems de grid a 0x0 px.
   b) Aplica el contrato FV02: horizontal visible desde 981 px, vertical hasta
      980 px, nunca ambas a la vez. */
.ig-entry .ig-forti-media-pair > .wp-block-embed { margin-inline: 0 !important; }

@media (min-width: 981px) {
	.ig-entry .ig-forti-media-pair { grid-template-columns: minmax(0, 1fr); }
	.ig-entry .ig-forti-media-pair > .ig-forti-video--vertical { display: none; }
}

@media (max-width: 980px) {
	.ig-entry .ig-forti-media-pair { grid-template-columns: minmax(0, 1fr); }
	.ig-entry .ig-forti-media-pair > .ig-forti-video--horizontal { display: none; }
}
