/*
Theme Name: Lienzo Digital
Description: Tema a medida para Lienzo Digital – webs creadas con creatividad e inteligencia artificial.
Version: 1.0.0
Author: Lienzo Digital
Text Domain: lienzo-digital
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
	--ink: #1d1a2f;
	--ink-soft: #4b4763;
	--paper: #fffaf3;
	--paper-2: #f6eee2;
	--line: #e8dccb;
	--violet: #6c3ce1;
	--coral: #ff6b4a;
	--sun: #ffb627;
	--teal: #13a89e;
	--radius: 18px;
	--shadow: 0 18px 40px -20px rgba(29, 26, 47, .35);
	--max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--violet); }
h1, h2, h3, h4 {
	font-family: "Fraunces", Georgia, serif;
	line-height: 1.15;
	margin: 0 0 .5em;
	font-weight: 700;
	letter-spacing: -.01em;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 250, 243, .9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.3rem; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--violet); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.header-cta { padding: 10px 18px !important; font-size: .9rem !important; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 14px 26px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
	cursor: pointer;
	font-size: 1rem;
	font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 10px 24px -10px rgba(108, 60, 225, .7); }
.btn-primary:hover { background: #5a2fc6; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
	display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--coral); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 110px 0 120px; }
.hero::before, .hero::after {
	content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1;
}
.hero::before { width: 520px; height: 520px; background: #c9b6ff; top: -160px; right: -120px; }
.hero::after { width: 420px; height: 420px; background: #ffd0b8; bottom: -180px; left: -120px; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); margin-bottom: 22px; }
.hero h1 .stroke {
	background: linear-gradient(100deg, var(--violet), var(--coral) 60%, var(--sun));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 560px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { width: 100%; max-width: 440px; justify-self: center; filter: drop-shadow(0 30px 40px rgba(29,26,47,.18)); }

/* ---------- Services ---------- */
.services { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.icon {
	width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; color: #fff;
}
.icon svg { width: 26px; height: 26px; }
.c-violet { background: var(--violet); } .c-coral { background: var(--coral); }
.c-sun { background: var(--sun); } .c-teal { background: var(--teal); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding-top: 70px; }
.step::before {
	counter-increment: step; content: counter(step);
	position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%;
	display: grid; place-items: center; font-family: "Fraunces", Georgia, serif; font-size: 1.4rem; font-weight: 700;
	background: var(--ink); color: var(--paper);
}
.step:not(:last-child)::after {
	content: ""; position: absolute; top: 26px; left: 64px; right: -14px; height: 2px;
	background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* ---------- Pricing ---------- */
.pricing { background: var(--paper-2); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px;
	display: flex; flex-direction: column; position: relative;
}
.plan.featured { border: 2px solid var(--violet); box-shadow: var(--shadow); transform: translateY(-8px); }
.plan .badge {
	position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
	background: var(--violet); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.5rem; margin-bottom: 6px; }
.price { font-family: "Fraunces", Georgia, serif; font-size: 2.6rem; font-weight: 700; margin: 4px 0 18px; }
.price small { font-family: "Inter", sans-serif; font-size: .9rem; font-weight: 500; color: var(--ink-soft); margin-right: 6px; }
.plan p { color: var(--ink-soft); flex: 1; margin: 0 0 26px; }
.plan .btn { text-align: center; }
.pricing-note { text-align: center; margin: 40px 0 0; color: var(--ink-soft); }
.pricing-note a { font-weight: 600; }

/* ---------- Why ---------- */
.why .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.why .section-head { text-align: left; margin: 0; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; list-style: none; margin: 0; padding: 0; }
.why-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.why-list strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; margin-bottom: 6px; }
.why-list span { color: var(--ink-soft); font-size: .97rem; }
.why-list li:nth-child(1) { border-top: 4px solid var(--violet); }
.why-list li:nth-child(2) { border-top: 4px solid var(--coral); }
.why-list li:nth-child(3) { border-top: 4px solid var(--sun); }
.why-list li:nth-child(4) { border-top: 4px solid var(--teal); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; }
.contact .intro p { color: #cfc9e6; font-size: 1.1rem; }
.contact form {
	background: #fff; color: var(--ink); border-radius: var(--radius); padding: 34px; display: grid; gap: 16px;
	grid-template-columns: 1fr 1fr;
}
.contact .full { grid-column: 1 / -1; }
.contact label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.contact label .opt { font-weight: 400; color: var(--ink-soft); }
.contact input, .contact select, .contact textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
	font: inherit; font-size: 1rem; background: var(--paper); color: var(--ink);
}
.contact input:focus, .contact select:focus, .contact textarea:focus { outline: none; border-color: var(--violet); background: #fff; }
.contact textarea { min-height: 130px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }
.form-notice { padding: 14px 18px; border-radius: 12px; font-weight: 600; margin-bottom: 20px; }
.form-notice.ok { background: #d9f5ef; color: #0b6b63; }
.form-notice.err { background: #ffe1d9; color: #a3321a; }

/* ---------- Footer ---------- */
.site-footer { background: #15122a; color: #b3adcc; padding: 46px 0; font-size: .95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer .brand { color: #fff; font-size: 1.1rem; }
.site-footer p { margin: 6px 0 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 0; padding: 0; }
.legal-links li + li::before { content: "·"; margin-right: 10px; color: #6f6990; }
.legal-links a { color: #d8d3ec; text-decoration: none; }
.legal-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- Generic pages ---------- */
.page-content { padding: 70px 0 90px; }
.page-content .container { max-width: 780px; }
.page-content h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 30px; }
.page-content h2 { font-size: 1.5rem; margin-top: 1.8em; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
	.step::after { display: none; }
	.why .container, .contact .container { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 820px) {
	.nav-toggle { display: block; }
	.main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; padding: 10px 20px 20px; }
	.main-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.header-cta { display: none !important; }
	.hero { padding: 70px 0 80px; }
	.hero .container { grid-template-columns: 1fr; gap: 40px; }
	.hero-art { max-width: 300px; }
	.grid-3 { grid-template-columns: 1fr; }
	.plan.featured { transform: none; }
	section { padding: 72px 0; }
}
@media (max-width: 560px) {
	.grid-4, .steps, .why-list { grid-template-columns: 1fr; }
	.contact form { grid-template-columns: 1fr; padding: 24px; }
	.site-footer .container { flex-direction: column; align-items: flex-start; }
}
