/* =====================================================
   Ingemedia Colombia — Tema principal
   Diseño oscuro moderno, acento magenta de marca
   ===================================================== */
:root {
	--bg: #0b0e1a;
	--bg-alt: #101529;
	--surface: #161c33;
	--surface-2: #1d2442;
	--text: #eef1fb;
	--muted: #9aa3c7;
	--accent: #e8475f;          /* rojo-coral del logo IF */
	--accent-2: #c3317d;        /* magenta histórico de marca */
	--grad: linear-gradient(135deg, var(--accent), var(--accent-2));
	--radius: 16px;
	--shadow: 0 20px 50px rgba(0, 0, 0, .35);
	--font-head: 'Sora', sans-serif;
	--font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16.5px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container.narrow { width: min(760px, 92%); }

.accent {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.eyebrow {
	display: inline-block;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 1rem;
}
.eyebrow-light { color: #ffb3c0; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11, 14, 26, .82);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.custom-logo { width: 52px; height: auto; }
.brand-text { font-family: var(--font-head); font-weight: 800; letter-spacing: .04em; }
.brand-text small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .3em; }

.nav-list { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--text); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-list a:hover { color: var(--accent); }
.nav-cta {
	background: var(--grad); padding: .55rem 1.2rem; border-radius: 999px;
	font-weight: 600 !important;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block; padding: .85rem 1.7rem; border-radius: 999px;
	font-weight: 600; font-size: .98rem; transition: transform .2s, box-shadow .2s, background .2s;
	border: 0; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(232, 71, 95, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(232, 71, 95, .5); color: #fff; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .25); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: clamp(4rem, 9vw, 7.5rem) 0; background:
	radial-gradient(700px 420px at 85% 10%, rgba(195, 49, 125, .22), transparent 65%),
	radial-gradient(600px 400px at 5% 90%, rgba(232, 71, 95, .14), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
.lead { font-size: 1.12rem; color: var(--muted); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0; }
.hero-stats { display: flex; gap: 1.8rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats li { font-size: .86rem; color: var(--muted); border-left: 2px solid var(--accent); padding-left: .8rem; }
.hero-stats strong { color: var(--text); }
.hero-art img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-head p { color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
	background: var(--surface); border: 1px solid rgba(255, 255, 255, .06);
	border-radius: var(--radius); padding: 1.8rem; transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(232, 71, 95, .45); }
.card-featured { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border-color: rgba(232, 71, 95, .35); }
.card-icon { font-size: 1.9rem; margin-bottom: .8rem; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card-link { display: inline-block; margin-top: .9rem; font-weight: 600; font-size: .92rem; }

/* ---------- IF Developers ---------- */
.ifdev { background: var(--bg-alt); }
.ifdev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.ifdev h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.ifdev-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; }
.ifdev-list li {
	display: flex; align-items: center; gap: 1rem;
	padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07);
	font-weight: 600; font-family: var(--font-head);
}
.ifdev-list span { color: var(--accent); font-size: .85rem; }
.ifdev-art img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.work {
	margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .06); transition: transform .25s;
}
.work:hover { transform: translateY(-6px); }
.work img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.work figcaption { padding: 1.1rem 1.3rem; display: flex; flex-direction: column; }
.work figcaption strong { font-family: var(--font-head); }
.work figcaption span { color: var(--muted); font-size: .85rem; }

/* ---------- Asesorías ---------- */
.advisory { background: var(--bg-alt); }
.advisory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.adv-item {
	background: var(--surface); border-left: 3px solid var(--accent-2);
	border-radius: 0 var(--radius) var(--radius) 0; padding: 1.6rem 1.8rem;
}
.adv-item h3 { font-size: 1.1rem; }
.adv-item p { color: var(--muted); font-size: .95rem; margin: 0; }
.adv-item-wide { grid-column: 1 / -1; }
.advisory-cta { text-align: center; margin-top: 2.4rem; }

/* ---------- Contacto ---------- */
.contact { background:
	radial-gradient(600px 380px at 10% 20%, rgba(195, 49, 125, .18), transparent 65%);
}
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-mail { display: inline-block; font-size: 1.15rem; font-weight: 600; margin: .6rem 0 1.4rem; }
.contact-wa { display: block; max-width: 280px; }
.contact-form-wrap {
	background: var(--surface); border: 1px solid rgba(255, 255, 255, .07);
	border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: block; font-size: .88rem; font-weight: 500; color: var(--muted); margin-bottom: 1rem; }
.contact-form input, .contact-form select, .contact-form textarea {
	width: 100%; margin-top: .4rem; padding: .8rem 1rem; border-radius: 10px;
	background: var(--bg); color: var(--text); border: 1px solid rgba(255, 255, 255, .12);
	font-family: var(--font-body); font-size: .95rem;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
	outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 71, 95, .18);
}
.hp-field { position: absolute; left: -9999px; }
.form-msg { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.2rem; font-size: .95rem; }
.form-msg-success { background: rgba(46, 204, 113, .12); border: 1px solid rgba(46, 204, 113, .4); color: #7bedaa; }
.form-msg-error { background: rgba(231, 76, 60, .12); border: 1px solid rgba(231, 76, 60, .4); color: #ff9d92; }
.form-note { text-align: center; color: var(--muted); font-size: .82rem; margin: .8rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #070911; border-top: 1px solid rgba(255, 255, 255, .06); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { margin-bottom: 1rem; border-radius: 50%; }
.footer-col h3, .footer-col h4 { font-size: 1.02rem; margin-bottom: .8rem; }
.footer-col p, .footer-col li { color: var(--muted); font-size: .92rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { color: var(--accent); font-size: .9rem; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .06); margin-top: 2.5rem; padding: 1.2rem 0; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: .82rem; }

/* ---------- Logo del mundo en header ---------- */
.brand-globe { height: 48px; width: 48px; object-fit: contain; margin-left: .5rem; }

/* ---------- Portafolio: carrusel ---------- */
.carousel-head { display: flex; justify-content: flex-end; margin-bottom: -2.6rem; position: relative; z-index: 2; }
.carousel-nav { display: flex; gap: .6rem; }
.car-btn {
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--surface); border: 1px solid rgba(255, 255, 255, .12);
	color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
	transition: border-color .2s, background .2s, transform .2s;
}
.car-btn:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.08); }

.sites-carousel {
	display: flex; gap: 1.2rem;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: .5rem .2rem 1.4rem;
	cursor: grab;
	-webkit-overflow-scrolling: touch;
	-webkit-mask-image: linear-gradient(90deg, #000 94%, transparent);
	mask-image: linear-gradient(90deg, #000 94%, transparent);
	scrollbar-width: thin; scrollbar-color: rgba(232,71,95,.5) transparent;
}
.sites-carousel.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.sites-carousel::-webkit-scrollbar { height: 6px; }
.sites-carousel::-webkit-scrollbar-thumb { background: rgba(232, 71, 95, .45); border-radius: 3px; }
.sites-carousel::-webkit-scrollbar-track { background: rgba(255, 255, 255, .05); border-radius: 3px; }

.site-card {
	flex: 0 0 clamp(230px, 26vw, 300px);
	display: flex; flex-direction: column; background: var(--surface);
	border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--radius);
	overflow: hidden; color: var(--text);
	transition: transform .3s, border-color .3s, box-shadow .3s;
	scroll-snap-align: start;
	opacity: 0; transform: translateY(26px);
	animation: siteIn .6s ease forwards; animation-delay: var(--d, 0ms);
}
@keyframes siteIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-card { opacity: 1; transform: none; animation: none; } }
.site-card:hover {
	transform: translateY(-8px) scale(1.015);
	border-color: rgba(232, 71, 95, .55);
	box-shadow: 0 24px 55px rgba(232, 71, 95, .18);
}
.site-shot { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.site-shot img {
	width: 100%; height: 100%; object-fit: cover; object-position: top;
	transition: transform .5s ease; pointer-events: none;
}
.site-card:hover .site-shot img { transform: scale(1.07); }
.site-info { display: flex; flex-direction: column; gap: .15rem; padding: .95rem 1.2rem 1.1rem; }
.site-badge {
	align-self: flex-start;
	font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	padding: .22rem .7rem; border-radius: 999px; margin-bottom: .5rem;
	background: rgba(195, 49, 125, .16); color: #ff8fb5;
	border: 1px solid rgba(195, 49, 125, .35);
}
.site-info strong { font-family: var(--font-head); font-size: .98rem; }
.site-info em { font-style: normal; color: var(--muted); font-size: .82rem; }
.site-visit {
	margin-top: .5rem; font-size: .84rem; font-weight: 600; color: var(--accent);
	opacity: .85; transition: opacity .2s, letter-spacing .2s;
}
.site-card:hover .site-visit { opacity: 1; letter-spacing: .04em; }

/* ---------- Marcas: marquee animado ---------- */
.brands-block { margin-top: 4.5rem; }
.brands-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.marquee {
	overflow: hidden; padding: 1.2rem 0; position: relative;
	background: var(--bg-alt);
	border-block: 1px solid rgba(255, 255, 255, .07);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 1rem; padding-right: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.brand-chip {
	display: inline-flex; align-items: center; gap: .6rem;
	padding: .65rem 1.15rem; border-radius: 999px;
	background: var(--surface); border: 1px solid rgba(255, 255, 255, .09);
	font-weight: 600; font-size: .92rem; white-space: nowrap;
	transition: border-color .25s, transform .25s;
}
.brand-chip:hover { border-color: var(--accent); transform: translateY(-3px); }
.brand-chip img { border-radius: 8px; }
.brand-chip-logo img {
	height: 18px; width: auto; max-width: 74px; object-fit: contain; border-radius: 0;
	filter: brightness(0) invert(1);  /* logo blanco monocromo para el fondo oscuro */
}
.brands-note { text-align: center; margin-top: 2rem; color: var(--muted); font-size: .95rem; }

/* ---------- Teléfono en contacto ---------- */
.contact-phones { margin: .4rem 0 1.4rem; }
.phone-pill {
	display: inline-block; padding: .5rem 1.1rem; border-radius: 999px;
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
	font-weight: 600; color: var(--text);
}
.phone-pill:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Selector de idioma ---------- */
.header-tools { display: flex; align-items: center; gap: .9rem; }
.lang-switch {
	display: flex; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
	overflow: hidden;
}
.lang-btn {
	background: transparent; border: 0; color: var(--muted);
	font-weight: 700; font-size: .78rem; letter-spacing: .06em;
	padding: .45rem .85rem; cursor: pointer; transition: background .2s, color .2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active {
	background: var(--grad); color: #fff;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
	position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 80;
	width: 58px; height: 58px; border-radius: 50%;
	background: #25d366; color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
	transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Página / blog ---------- */
.page-content { min-height: 50vh; }
.page-title { font-size: 2.2rem; }
.entry-card { background: var(--surface); border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.4rem; }
.entry-meta { color: var(--muted); font-size: .85rem; }
.entry-content img { border-radius: var(--radius); }

/* ---------- Reveal on scroll ---------- */
.card, .work, .adv-item, .ifdev-copy, .hero-copy { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.revealed { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
	.card, .work, .adv-item, .ifdev-copy, .hero-copy { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px) {
	.hero-grid, .ifdev-grid, .contact-grid { grid-template-columns: 1fr; }
	.hero-art { order: -1; max-width: 480px; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.carousel-head { margin-bottom: -2.4rem; }
	.footer-grid { grid-template-columns: 1fr 1fr; }

	/* Menú móvil: barra horizontal deslizable, sin hamburguesa */
	.nav-toggle { display: none; }
	.main-nav {
		position: static; width: 100%; transform: none;
		background: transparent; padding: 0; box-shadow: none;
	}
	.header-inner { flex-wrap: wrap; }
	.header-tools { order: 2; }
	.main-nav { order: 3; }
	.nav-list {
		flex-direction: row; justify-content: flex-start; gap: 1.1rem;
		overflow-x: auto; width: 100%; padding: .4rem 0 .7rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.nav-list::-webkit-scrollbar { display: none; }
	.nav-list a { font-size: .92rem; white-space: nowrap; }
	.nav-cta { padding: .45rem 1rem; }
}

@media (max-width: 640px) {
	.cards, .advisory-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
	.site-card { flex-basis: 78vw; }
	.carousel-head { justify-content: center; margin-bottom: 0; }
	.brand-globe { height: 34px; width: 34px; }
	.adv-item-wide { grid-column: auto; }
	.hero { padding-top: 3rem; }
	.contact-form-wrap { padding: 1.4rem; }
}











