:root {
	--red: #d91f26;
	--red-dark: #b0161c;
	--ink: #1c1f24;
	--ink-2: #4a5059;
	--line: #e6e8eb;
	--bg-alt: #f5f6f8;
	--dark: #16181c;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(20, 22, 28, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--ink);
	line-height: 1.6;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; margin-top: 36px; }
.accent { color: var(--red); }
.muted { color: #b9bec6; }

/* Buttons */
.btn {
	display: inline-block;
	background: var(--red);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	padding: 13px 24px;
	border-radius: 999px;
	border: 2px solid var(--red);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(217, 31, 38, .25); }
.btn--sm { padding: 8px 18px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }

/* Header */
.topbar {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.92);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--red); }
.nav a.btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(217,31,38,.10), transparent 60%),
		linear-gradient(180deg, #fafbfc, #f1f3f6);
	padding: 90px 0 100px;
	position: relative;
	overflow: hidden;
}
.hero::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 220px;
	background: url(../img/fondoheader.jpg) center/cover no-repeat;
	opacity: .35; pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.eyebrow {
	display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase;
	letter-spacing: .12em; color: var(--red); margin-bottom: 14px;
}
.eyebrow--light { color: #ff6b70; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; }
.hero p { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__card {
	background: #fff; border-radius: 20px; box-shadow: var(--shadow);
	padding: 12px 28px; border-top: 4px solid var(--red);
}
.stat { padding: 20px 0; border-bottom: 1px solid var(--line); }
.stat:last-child { border-bottom: 0; }
.stat strong { display: block; font-size: 1.35rem; }
.stat span { color: var(--ink-2); }

/* Sections */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }
.section__head { text-align: center; margin-bottom: 50px; }
.section__head h2, .section--dark h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--products { grid-template-columns: repeat(5, 1fr); gap: 18px; }

/* Service cards */
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-2); margin: 0; }
.card__icon {
	width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
	background: rgba(217,31,38,.09); margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Products */
.product {
	margin: 0; background: #fff; border-radius: var(--radius); padding: 20px 16px 16px;
	text-align: center; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product img { height: 110px; width: 100%; object-fit: contain; margin-bottom: 14px; mix-blend-mode: multiply; }
.product figcaption { font-weight: 600; font-size: .95rem; }

/* About */
.pill-card {
	background: var(--bg-alt); border-radius: var(--radius); padding: 34px; border-left: 4px solid var(--red);
}
.pill-card p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }
.team-title { text-align: center; font-size: 1.6rem; margin: 70px 0 34px; }
.member { text-align: center; }
.member img {
	width: 130px; height: 130px; border-radius: 50%; object-fit: cover; object-position: top;
	margin: 0 auto 16px; border: 4px solid #fff; box-shadow: var(--shadow);
}
.member strong { display: block; font-size: 1.1rem; }
.member span { display: block; color: var(--ink-2); }
.member em { display: block; font-style: normal; color: var(--red); font-weight: 600; font-size: .9rem; margin-top: 4px; }

/* Contact */
.contact { align-items: stretch; gap: 50px; }
.contact a { color: #fff; }
.form { display: grid; gap: 16px; margin-top: 24px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: #d6d9de; }
.form input, .form textarea {
	font: inherit; color: #fff; background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 12px 14px;
	transition: border-color .2s, background .2s;
}
.form input::placeholder, .form textarea::placeholder { color: #8a909a; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,.1); }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.2); }

/* Footer */
.footer { background: #0f1013; color: #9aa0a8; padding: 40px 0; font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.footer__logo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.footer p { margin: 2px 0; }
.footer a { color: #d6d9de; text-decoration: none; }
.footer a:hover { color: #fff; }
.copy { font-size: .85rem; }

/* WhatsApp floating */
.wa-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 60;
	width: 58px; height: 58px; border-radius: 50%; background: #25d366;
	display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
	transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Responsive */
@media (max-width: 980px) {
	.grid--products { grid-template-columns: repeat(3, 1fr); }
	.hero__inner { grid-template-columns: 1fr; gap: 40px; }
	.footer__inner { grid-template-columns: 1fr; text-align: center; }
	.footer__logo { margin: 0 auto; }
}
@media (max-width: 760px) {
	.menu-toggle { display: block; }
	.nav {
		position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
		background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 20px;
		display: none;
	}
	.nav.open { display: flex; }
	.nav a { padding: 12px 0; width: 100%; text-align: center; }
	.nav a.btn { margin-top: 8px; }
	.grid--2, .grid--3 { grid-template-columns: 1fr; }
	.grid--products { grid-template-columns: repeat(2, 1fr); }
	.hero { padding: 60px 0 80px; }
	.section { padding: 64px 0; }
	.brand img { height: 38px; }
}
