Files
Website-Nov26/referencia/collina-footer/footer.css
T
Fernando Davila OyarzabalandClaude Opus 5.5 3042561115 feat(inicio): sesión 2, logo, hero con video, industrias y pie nuevo
- Cabecera: logotipo en SVG (src/assets/logo.svg) y favicon nuevo; barra de
  vidrio con subrayado que se dibuja de izquierda a derecha y separadores "/".
- Hero: video de fondo optimizado (MP4 + WebM, póster webp de escritorio y
  móvil), velo para contraste AA, botón de pausa discreto, título "Collina
  Systems", altura 94svh y botón "Contacto" de vidrio blanco.
- Banda marino "Construimos los sistemas con los que opera tu negocio." con
  enlace a /firma en celeste.
- Sección de tarjetas por industria (fondo papel) en lugar de las cifras y el
  bloque de proyectos: fotos con <Picture> (avif/webp, 400/800/1200), alt y
  recorte en src/content/inicio/industrias.yaml publicados como
  /css/industrias.css (CSP sin estilos en línea); panel blanco al señalar con
  cursor, enlaces con subrayado animado. Enlaces a fichas por slug.
- Nueva ficha "Cobranza al día" con diagrama; lo no documentado queda en TODO.
- Eliminados Stat, la colección cifras y sus datos; verificar-metricas solo
  revisa fichas.
- Pie nuevo portado de referencia/collina-footer: eslogan rotativo, correo,
  sedes con reloj por zona horaria, redes y copyright; estilos bajo .footer,
  colores como tokens, alineado a la retícula del sitio y eslogan mayor en
  teléfono. Sin la línea legal ni los enlaces del pie anterior.
- CI movido a .gitea/workflows (Gitea Actions).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 21:10:59 -06:00

298 lines
9.3 KiB
CSS

/* ═══════════════════════════════════════════════════════════════════════
FOOTER · Collina Systems
Las variables --footer-* tienen valores propios; las de fuente heredan
las del sitio (--font-sans, --font-mono) si existen.
═══════════════════════════════════════════════════════════════════════ */
.footer {
/* Escala del eslogan: antes clamp(34px, 9vw, 80px) → ahora ~25 % más chico */
--footer-slogan-size: clamp(30px, 6vw, 60px);
--footer-bg: #0a0908;
--footer-fg: #f0ece5;
--footer-fg-strong: #f5f1e6;
--footer-fg-muted: rgba(240, 236, 229, 0.62);
--footer-line: rgba(240, 236, 229, 0.14);
--footer-font: var(--font-sans, "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif);
--footer-mono: var(--font-mono, "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace);
--footer-fs-subtitle: clamp(20px, 3vw, 26px);
--footer-fs-body: 16px;
--footer-fs-caption: 14px;
--footer-fs-micro: 12px;
position: relative;
isolation: isolate;
overflow: hidden;
background: var(--footer-bg);
color: var(--footer-fg);
font-family: var(--footer-font);
font-variant-numeric: tabular-nums;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
padding: clamp(72px, 10vh, 120px) clamp(16px, 5vw, 80px) clamp(32px, 5vh, 48px);
}
.footer *, .footer *::before, .footer *::after { box-sizing: border-box; }
.footer p, .footer address { margin: 0; font-style: normal; }
/* Brillo cálido y línea superior */
.footer::before {
content: "";
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
background:
radial-gradient(ellipse 80% 60% at 20% 0%, rgba(140, 100, 60, 0.10), transparent 60%),
radial-gradient(ellipse 60% 50% at 100% 100%, rgba(80, 110, 140, 0.08), transparent 60%);
}
.footer::after {
content: "";
position: absolute;
inset: 0 0 auto;
height: 1px;
z-index: 1;
background: linear-gradient(90deg, transparent, rgba(240, 236, 229, 0.22) 50%, transparent);
}
.footer__inner {
position: relative;
z-index: 2;
max-width: 1320px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: clamp(56px, 8vh, 112px);
}
/* ── Fila superior ─────────────────────────────────────────────────── */
.footer__top {
display: grid;
grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
gap: clamp(48px, 6vw, 96px);
align-items: center;
}
.footer__col--left {
display: flex;
flex-direction: column;
gap: clamp(40px, 6vh, 72px);
min-width: 0;
}
.footer__col--right {
display: flex;
flex-direction: column;
gap: clamp(28px, 4vh, 48px);
min-width: 0;
}
/* ── Eslogan ───────────────────────────────────────────────────────── */
.footer__slogan {
display: flex;
flex-direction: column;
gap: clamp(2px, 0.5vh, 8px);
line-height: 0.95;
color: var(--footer-fg-strong);
}
.footer__slogan-line,
.footer__slogan-word {
font-family: var(--footer-font);
font-weight: 700;
font-size: var(--footer-slogan-size);
letter-spacing: -0.03em;
text-transform: uppercase;
}
.footer__slogan-words {
position: relative;
display: block;
height: var(--footer-slogan-size); /* el JS la ajusta al tamaño final */
overflow: hidden;
margin: clamp(2px, 0.4vh, 6px) 0;
}
.footer__slogan-word {
position: absolute;
inset: 0;
display: flex;
align-items: center;
white-space: nowrap;
opacity: 0;
transform: translateY(28%);
transition:
opacity 600ms cubic-bezier(0.6, 0.2, 0.2, 1),
transform 600ms cubic-bezier(0.6, 0.2, 0.2, 1);
}
.footer__slogan-word[data-active="true"] { opacity: 1; transform: none; }
.footer__slogan-word[data-leaving="true"] { opacity: 0; transform: translateY(-28%); }
/* ── Contacto ──────────────────────────────────────────────────────── */
.footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__label {
font-family: var(--footer-mono);
font-size: var(--footer-fs-micro);
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--footer-fg-muted);
}
.footer__contact-link {
font-size: var(--footer-fs-subtitle);
font-weight: 500;
letter-spacing: -0.01em;
color: var(--footer-fg-strong);
align-self: flex-start; /* evita que el enlace se estire a todo el ancho de la columna */
width: max-content;
max-width: 100%;
overflow-wrap: anywhere;
}
/* ── Enlace con subrayado que crece ────────────────────────────────── */
.link-slide {
position: relative;
display: inline-block;
color: inherit;
text-decoration: none;
line-height: 1.15;
}
.link-slide::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: -2px;
height: 1.5px;
background: currentColor;
transform: scaleX(0);
transform-origin: left center;
transition: transform 380ms cubic-bezier(0.65, 0.05, 0.36, 1);
pointer-events: none;
}
.link-slide:hover::after,
.link-slide:focus-visible::after { transform: scaleX(1); }
.footer a:focus-visible {
outline: 2px solid var(--footer-fg-strong);
outline-offset: 4px;
border-radius: 2px;
}
/* ── Sedes ─────────────────────────────────────────────────────────── */
.footer__branch {
display: grid;
grid-template-columns: clamp(52px, 4.5vw, 68px) 1fr;
gap: clamp(16px, 1.8vw, 26px);
align-items: start;
}
.footer__clock {
position: relative;
width: clamp(52px, 4.5vw, 68px);
aspect-ratio: 1;
border-radius: 50%;
border: 1px solid rgba(240, 236, 229, 0.4);
background: rgba(255, 255, 255, 0.02);
}
.footer__clock-hand {
position: absolute;
left: 50%;
top: 50%;
border-radius: 2px;
background: var(--footer-fg);
transform-origin: 50% 100%;
transition: transform 400ms cubic-bezier(0.4, 0.1, 0.2, 1);
}
.footer__clock-hand--hour { width: 2px; height: 28%; margin-left: -1px; margin-top: -28%; }
.footer__clock-hand--minute {
width: 1.5px; height: 38%; margin-left: -0.75px; margin-top: -38%;
background: rgba(240, 236, 229, 0.85);
}
.footer__clock-pin {
position: absolute;
left: 50%;
top: 50%;
width: 4px;
height: 4px;
margin: -2px 0 0 -2px;
border-radius: 50%;
background: var(--footer-fg);
}
.footer__branch-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.footer__branch-country {
display: flex;
align-items: baseline;
gap: 10px;
font-family: var(--footer-mono);
font-size: var(--footer-fs-micro);
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--footer-fg-strong);
}
.footer__branch-address {
font-size: var(--footer-fs-caption);
line-height: 1.5;
color: rgba(240, 236, 229, 0.72);
}
.footer__branch-phone {
margin-top: 4px;
font-size: var(--footer-fs-caption);
color: rgba(240, 236, 229, 0.9);
}
.footer__branch-phone a { color: inherit; text-decoration: none; transition: opacity 160ms ease; }
.footer__branch-phone a:hover { opacity: 0.65; }
/* ── Fila inferior: redes + copyright ──────────────────────────────── */
.footer__bottom {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 24px clamp(24px, 3vw, 48px);
padding-top: clamp(24px, 3vh, 40px);
border-top: 1px solid var(--footer-line);
}
.footer__socials {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-wrap: wrap;
gap: 12px clamp(24px, 4vw, 56px);
}
.footer__socials a {
font-size: var(--footer-fs-body);
font-weight: 500;
color: rgba(240, 236, 229, 0.85);
}
.footer__copyright {
font-family: var(--footer-mono);
font-size: var(--footer-fs-micro);
letter-spacing: 0.12em;
text-transform: uppercase;
color: rgba(240, 236, 229, 0.5);
}
/* ── Utilidad de accesibilidad ─────────────────────────────────────── */
.footer .sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
/* ── Responsivo ────────────────────────────────────────────────────── */
@media (max-width: 880px) {
.footer__top { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 720px) {
.footer__bottom { flex-direction: column; align-items: flex-start; }
}
/* ── Movimiento reducido ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
.footer__slogan-word,
.footer__clock-hand,
.link-slide::after { transition: none; }
.footer__slogan-word { transform: none !important; }
}