/* ==========================================================================
   Way2 Ecommerce — Landings de embudo (Magento / Adobe Commerce / Ecommerce)
   Hoja de estilos propia, sin dependencias del constructor s123/Bootstrap.
   ========================================================================== */

:root {
	--primary: #f7512e;
	--primary-dark: #d63e1d;
	--ink: #14161c;
	--ink-soft: #52565f;
	--bg: #ffffff;
	--bg-soft: #f6f6f8;
	--bg-dark: #14161c;
	--border: #e7e7eb;
	--ok: #1f9d55;
	--warn-bg: #fff4ec;
	--warn-border: #f7c9ab;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(20, 22, 28, 0.08);
	--maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
@media (max-width: 767px) { section { padding: 48px 0; } }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 16px; font-weight: 800; }
h1 { font-size: clamp(30px, 5vw, 40px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 16px; }
.lede { font-size: 19px; color: var(--ink-soft); }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
	color: var(--primary-dark); background: var(--warn-bg); border: 1px solid var(--warn-border);
	padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--ink-soft); }
.text-center { text-align: center; }

/* Botones */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
	padding: 16px 30px; border-radius: 10px; border: 2px solid transparent;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(247,81,46,.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
	backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
.site-header img.logo { height: auto; max-height: 34px; width: auto; max-width: 160px; flex-shrink: 1; }
.header-contact { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; }
.header-contact a { text-decoration: none; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.header-contact a:not(.btn):hover { color: var(--primary); }
.header-contact a.btn:hover { color: #fff; }
.header-contact .btn { padding: 10px 18px; font-size: 14px; white-space: nowrap; }
@media (max-width: 640px) { .site-header img.logo { max-width: 130px; } }
@media (max-width: 900px) { .header-contact .email-item { display: none; } }
@media (max-width: 640px) { .header-contact .phone-item { display: none; } }

/* Hero */
.hero { background: var(--bg-dark); color: #fff; padding: 64px 0 56px; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero .lede { color: #cfd2da; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.trust-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; color: #cfd2da; font-size: 14px; }
.trust-row strong { color: #fff; }
.hero-media { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-media > img { width: 100%; }
.hero-badges { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 18px 20px; border-top: 1px solid var(--border); }
.hero-badges img { height: 38px; width: auto; }
.hero-badges a, .certs-row a { display: inline-flex; text-decoration: none; }

/* Problema / bullets */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .pain-grid { grid-template-columns: 1fr; } }
.pain-item { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); }
.pain-item .ico { font-size: 22px; }
.pain-item h4 { margin: 0 0 6px; }
.pain-item p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Servicios */
.bg-soft { background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.service-card .ico { font-size: 30px; margin-bottom: 12px; }
.service-card h4 { margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* Caso de éxito */
.case-card {
	display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
@media (max-width: 860px) { .case-card { grid-template-columns: 1fr; } }
.case-card + .case-card { margin-top: 24px; }
.case-card-single { grid-template-columns: 1fr; max-width: 760px; margin-left: auto; margin-right: auto; }
.case-tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primary-dark); background: var(--warn-bg); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.case-stats { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.case-stats > div { display: flex; align-items: center; gap: 8px; }
.case-stats div strong { font-size: 17px; line-height: 1; }
.case-stats div span { font-size: 14px; color: var(--ink); font-weight: 600; }
.case-placeholder { border: 1px dashed var(--warn-border); background: var(--warn-bg); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--primary-dark); }
.focus-pill { background: var(--bg-soft); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }

/* Testimonios */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.testi-stars { color: #f5b400; letter-spacing: 2px; margin-bottom: 10px; font-size: 15px; }
.testi-card p.quote { color: var(--ink); font-size: 15px; margin-bottom: 14px; }
.testi-who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.testi-who img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.testi-who strong { display: block; }
.testi-who span { color: var(--ink-soft); font-size: 12.5px; }

/* Certificaciones */
.certs-row { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: center; }
.certs-row img { height: 60px; width: auto; }

/* Proceso */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 20px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.step::before {
	counter-increment: step; content: counter(step);
	position: absolute; top: -14px; left: 20px; width: 34px; height: 34px; border-radius: 50%;
	background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.step h4 { margin: 10px 0 6px; }
.step p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 10px; padding: 4px 20px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--primary); flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 16px; color: var(--ink-soft); margin: 0; }

/* CTA final */
.cta-final { background: var(--bg-dark); color: #fff; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final p { color: #cfd2da; }

/* Formulario */
.form-wrap {
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 36px; max-width: 720px; margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.form-group .hint { display: block; font-size: 12.5px; color: var(--ink-soft); font-weight: 400; margin-top: 4px; }
.form-control {
	width: 100%; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: 9px;
	font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { resize: vertical; min-height: 90px; }
@media (max-width: 620px) {
	.section-head { margin-bottom: 24px; }
	.form-wrap { padding: 20px; }
	.form-row { gap: 12px; margin-bottom: 12px; }
	.form-group { margin-bottom: 12px; }
	.form-group label { margin-bottom: 4px; }
	.form-control { padding: 10px 12px; font-size: 14px; }
	textarea.form-control { min-height: 72px; }
}
.form-status { margin-top: 14px; font-size: 14px; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--primary-dark); }
.privacy-note { font-size: 12px; color: var(--ink-soft); margin-top: 14px; }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 36px 0; font-size: 13.5px; color: var(--ink-soft); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--primary); }

/* Sticky mobile CTA */
.mobile-sticky-cta {
	display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
	background: #fff; border-top: 1px solid var(--border); padding: 10px 14px; box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
@media (max-width: 767px) { .mobile-sticky-cta { display: flex; gap: 8px; padding: 8px 12px; } .mobile-sticky-cta .btn { flex: 1; padding: 10px 8px; font-size: 13px; } body { padding-bottom: 56px; } }

.badge-ok { color: var(--ok); font-weight: 700; }

/* Scroll-driven reveal (progressive enhancement, no JS)
   https://scroll-driven-animations.style/ — no-op on browsers without support,
   and disabled for reduced-motion users. */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.pain-item, .case-card, .testi-card, .step, .faq details {
			animation: reveal-up 1ms linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 75%;
		}
		@keyframes reveal-up {
			from { opacity: 0; translate: 0 42px; }
			to { opacity: 1; translate: 0 0; }
		}

		/* Bloque "Lo que hacemos": efecto más marcado, con escala y ligero giro */
		.service-card {
			animation: reveal-pop 1ms linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 85%;
		}
		.services-grid .service-card:nth-child(even) { animation-name: reveal-pop-alt; }
		@keyframes reveal-pop {
			from { opacity: 0; translate: 0 56px; scale: 0.82; rotate: -2deg; }
			to { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; }
		}
		@keyframes reveal-pop-alt {
			from { opacity: 0; translate: 0 56px; scale: 0.82; rotate: 2deg; }
			to { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; }
		}
	}
}
