Rediseño funnel: hero centrado + formulario GDPR en portada

- Título grande centrado + lema en verde lima (misma fuente, menor tamaño)
- 4 botones de navegación debajo del lema
- Formulario principal visible al cargar: email + chips de redes sociales
- Chips API (caoba): envío automático de carta GDPR via /api/erase
- Chips manuales (verde): abren enlace oficial de eliminación
- Resultados en línea con código de referencia por solicitud
- Checklist completo conservado debajo para control manual
- Nueva sección CSS: hero-landing, erase-form-section, net-chip, results

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hacklab 2026-04-07 12:21:14 +02:00
parent 614d5af397
commit 35a2bd8cf8
2 changed files with 479 additions and 100 deletions

View file

@ -31,6 +31,9 @@
--sage: #4a7c59; /* verde salvia */
--sage-lt: #e8f2eb; /* verde salvia muy claro */
--lime: #96c21a; /* verde lima */
--lime-lt: #f4fae0; /* verde lima muy claro */
--shadow-sm: 0 1px 3px rgba(26,23,20,0.08), 0 1px 2px rgba(26,23,20,0.06);
--shadow-md: 0 4px 12px rgba(26,23,20,0.10), 0 2px 4px rgba(26,23,20,0.06);
--shadow-lg: 0 8px 30px rgba(26,23,20,0.12), 0 4px 8px rgba(26,23,20,0.06);
@ -558,6 +561,10 @@ a:hover { color: var(--caoba-mid); text-decoration: underline; }
@media (max-width: 720px) {
.hero-inner { grid-template-columns: 1fr; }
.grid { grid-template-columns: 1fr; }
.main-title { font-size: 2.4rem; }
.main-tagline { font-size: 1rem; }
.email-input { font-size: 1rem; }
.btn--lg { width: 100%; justify-content: center; }
.topbar-inner {
flex-direction: column;
@ -574,6 +581,276 @@ a:hover { color: var(--caoba-mid); text-decoration: underline; }
h1 { font-size: 1.85rem; }
}
/*
HERO LANDING título + lema + nav buttons
*/
.hero-landing {
padding: 3.5rem 0 2.5rem;
background: var(--bg);
text-align: center;
}
.hero-landing-inner {
display: flex;
flex-direction: column;
align-items: center;
gap: 0;
}
.main-title {
font-family: 'Recion', 'Georgia', serif;
font-size: clamp(2.8rem, 7vw, 5rem);
color: var(--text);
letter-spacing: 0.02em;
line-height: 1.1;
margin-bottom: 0.6rem;
}
.main-tagline {
font-family: 'Recion', 'Georgia', serif;
font-size: clamp(1.05rem, 2.5vw, 1.5rem);
color: var(--lime);
letter-spacing: 0.06em;
font-weight: normal;
margin-bottom: 2.2rem;
}
.landing-nav {
display: flex;
justify-content: center;
gap: 0.65rem;
flex-wrap: wrap;
}
.landing-nav-btn {
display: inline-flex;
align-items: center;
padding: 0.6rem 1.2rem;
border-radius: 10px;
font-size: 0.88rem;
font-weight: 600;
letter-spacing: 0.02em;
color: var(--text);
background: var(--surface);
border: 1px solid var(--border);
box-shadow: var(--btn-shadow);
text-decoration: none;
transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
user-select: none;
}
.landing-nav-btn:hover {
background: var(--surface2);
border-color: var(--border-dark);
box-shadow: var(--btn-shadow-hover);
transform: translateY(-2px);
text-decoration: none;
color: var(--text);
}
.landing-nav-btn:active {
box-shadow: var(--btn-shadow-active);
transform: translateY(3px);
}
.landing-nav-btn--highlight {
background: var(--caoba);
color: #fff;
border-color: #5c2d1e;
box-shadow: var(--caoba-shadow);
}
.landing-nav-btn--highlight:hover {
background: var(--caoba-mid);
border-color: #4a2318;
box-shadow: var(--caoba-shadow-hover);
color: #fff;
}
/*
SECCIÓN FORMULARIO email + redes
*/
.erase-form-section {
padding: 3rem 0 4rem;
background: var(--surface2);
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
}
.erase-form-wrap {
max-width: 780px;
margin: 0 auto;
}
.form-header {
text-align: center;
margin-bottom: 1.8rem;
}
.form-header h2 { margin-bottom: 0.4rem; }
.form-header p { color: var(--muted); font-size: 0.95rem; }
.email-row {
display: flex;
justify-content: center;
margin-bottom: 2rem;
}
.email-input {
width: 100%;
max-width: 500px;
padding: 0.9rem 1.2rem;
font-size: 1.05rem;
border: 2px solid var(--border);
border-radius: 12px;
background: var(--surface);
color: var(--text);
outline: none;
box-shadow: var(--shadow-sm);
transition: border-color 150ms ease, box-shadow 150ms ease;
font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.email-input:focus {
border-color: var(--caoba);
box-shadow: 0 0 0 3px rgba(123,63,46,0.12);
}
.email-input::placeholder { color: var(--subtle); }
.networks-label {
font-size: 0.9rem;
font-weight: 700;
color: var(--text);
margin-bottom: 0.9rem;
letter-spacing: 0.02em;
}
.networks-section { margin-bottom: 2rem; }
.networks-sublabel {
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--muted);
margin-bottom: 0.55rem;
margin-top: 1.2rem;
}
.networks-sublabel:first-child { margin-top: 0; }
.networks-sublabel--manual { color: var(--sage); }
.networks-grid {
display: flex;
flex-wrap: wrap;
gap: 0.45rem;
margin-bottom: 0.25rem;
}
/* Chip base */
.net-chip {
padding: 0.42rem 0.9rem;
border-radius: 8px;
font-size: 0.82rem;
font-weight: 600;
letter-spacing: 0.02em;
cursor: pointer;
background: var(--surface);
color: var(--text);
border: 1px solid var(--border);
box-shadow: 0 2px 0 0 var(--border-dark);
transition: all 120ms ease;
user-select: none;
line-height: 1;
}
.net-chip:hover {
border-color: var(--caoba);
color: var(--caoba);
background: var(--caoba-lt);
transform: translateY(-1px);
box-shadow: 0 3px 0 0 var(--border-dark);
}
.net-chip:active { transform: translateY(1px); box-shadow: 0 1px 0 0 var(--border-dark); }
.net-chip.selected {
background: var(--caoba);
color: #fff;
border-color: #5c2d1e;
box-shadow: 0 2px 0 0 #5c2d1e;
}
.net-chip.selected:hover {
background: var(--caoba-mid);
color: #fff;
border-color: #4a2318;
}
/* Chips manuales (verde) */
.net-chip--manual {
background: var(--sage-lt);
color: var(--sage);
border-color: #c0d9c8;
box-shadow: 0 2px 0 0 #c0d9c8;
}
.net-chip--manual:hover {
background: #d6edde;
border-color: var(--sage);
color: var(--sage);
}
.net-chip--manual.selected {
background: var(--sage);
color: #fff;
border-color: #3a6347;
box-shadow: 0 2px 0 0 #3a6347;
}
.net-chip--manual.selected:hover {
background: #3f6e50;
color: #fff;
}
/* Footer del form */
.form-footer-row {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.8rem;
}
.btn--lg {
padding: 0.85rem 2rem;
font-size: 1rem;
}
.form-note {
font-size: 0.77rem;
color: var(--subtle);
text-align: center;
max-width: 48ch;
line-height: 1.55;
}
/* Resultados */
.results-wrap {
margin-top: 1.5rem;
display: flex;
flex-direction: column;
gap: 0.45rem;
}
.result-item {
padding: 0.6rem 0.95rem;
border-radius: 8px;
font-size: 0.84rem;
line-height: 1.4;
}
.result-item code {
font-family: 'Courier New', monospace;
font-size: 0.82em;
background: rgba(0,0,0,0.06);
padding: 0.1em 0.3em;
border-radius: 3px;
}
.result-ok { background: var(--sage-lt); color: var(--sage); border: 1px solid #c0d9c8; }
.result-form,
.result-manual { background: var(--caoba-lt); color: var(--caoba); border: 1px solid #e0c4b8; }
.result-error { background: #fef2f2; color: #c0392b; border: 1px solid #f5c6c6; }
/*
UTILIDADES
*/