@font-face { font-family: 'Rubik'; src: url('fonts/Rubik-Variable.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans'; src: url('fonts/SourceSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Source Sans'; src: url('fonts/SourceSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Source Sans'; src: url('fonts/SourceSans-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root { --rojo: #D71A2D; --rojo-oscuro: #A80F1F; --tinta: #231315; --suave: #fff7f5; --gris: #6f5d60; --max: 1120px; --r: 20px; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--tinta); background: #fff; line-height: 1.5; -webkit-text-size-adjust: 100%; }
h1, h2, h3, .etiqueta, .boton, .barra__marca { font-family: 'Rubik', system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rojo); }
.salto { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--tinta); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.salto:focus { left: 8px; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 5px var(--tinta); }

/* Hero con el fondo animado */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; color: #fff; overflow: hidden; background: linear-gradient(135deg, #a80f1f, #d71a2d 55%, #b9121f); isolation: isolate; }
#fondo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero__velo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(100,5,15,.62) 0%, rgba(100,5,15,.4) 50%, rgba(100,5,15,.08) 100%), linear-gradient(0deg, rgba(100,5,15,.25), rgba(100,5,15,0) 40%); }
.barra { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(18px, 4vw, 40px); }
.barra__marca { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.barra__marca img { border-radius: 50%; }
.hero__texto { margin: auto 0; padding: 24px clamp(18px, 4vw, 40px) 72px; max-width: var(--max); width: 100%; margin-inline: auto; }
.etiqueta { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.16); padding: 6px 14px; border-radius: 99px; margin-bottom: 20px; backdrop-filter: blur(4px); }
h1 { font-size: clamp(2.1rem, 6.2vw, 4.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; max-width: 16ch; text-wrap: balance; text-shadow: 0 2px 24px rgba(90,0,10,.35); }
.hero__sub { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 46ch; margin-top: 20px; text-wrap: pretty; text-shadow: 0 1px 12px rgba(90,0,10,.35); }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 99px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; }
.boton:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60,0,10,.25); }
.boton--claro { background: #fff; color: var(--rojo); }
.boton--borde { border: 2px solid rgba(255,255,255,.85); color: #fff; }
.boton--rojo { background: var(--rojo); color: #fff; }
.boton--chico { min-height: 44px; padding: 0 20px; }

/* Secciones */
.seccion { max-width: var(--max); margin: 0 auto; padding: 72px clamp(18px, 4vw, 40px); }
.seccion h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.seccion__sub { color: var(--gris); max-width: 56ch; margin-top: 12px; font-size: 1.1rem; }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 36px; }
.tarjeta { background: var(--suave); border-radius: var(--r); padding: 20px; }
.tarjeta img { border-radius: 14px; background: #fff; aspect-ratio: 1; object-fit: cover; margin-bottom: 16px; }
.tarjeta h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.tarjeta p { color: #4b3a3d; }

.seccion--rojo { max-width: none; background: var(--rojo); color: #fff; padding-block: 64px; }
.seccion--rojo > * { max-width: var(--max); margin-inline: auto; }
.servicios { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 28px; }
.servicios li { background: rgba(255,255,255,.12); border-radius: var(--r); padding: 22px; }
.servicios b { display: block; font-family: 'Rubik', sans-serif; font-size: 1.2rem; margin-bottom: 4px; }

.nosotros { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.nosotros__texto p { margin-top: 16px; font-size: 1.15rem; max-width: 52ch; text-wrap: pretty; }
.nosotros__pintor { max-height: 420px; width: auto; margin-inline: auto; filter: drop-shadow(0 14px 18px rgba(60,0,10,.2)); }

.contacto { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 32px; }
.contacto__bloque { background: var(--suave); border-radius: var(--r); padding: 24px; }
.contacto h3 { font-family: 'Rubik', sans-serif; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rojo); margin-bottom: 12px; }
.contacto p { margin-bottom: 8px; }
.contacto table { border-collapse: collapse; width: 100%; }
.contacto th { text-align: left; font-weight: 600; padding: 4px 12px 4px 0; }
.contacto td { padding: 4px 0; color: #4b3a3d; }

.pie { background: var(--tinta); color: #e9d9db; text-align: center; padding: 28px 18px; font-size: .95rem; }

@media (max-width: 760px) {
  .nosotros { grid-template-columns: 1fr; }
  .nosotros__pintor { max-height: 320px; order: -1; }
  .seccion { padding-block: 56px; }
  .boton { width: 100%; }
  .boton--chico { width: auto; }
  .hero__acciones { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .boton { transition: none; } }
