/* =========================================================
   IMASBE · Estilos
   Para cambiar colores, edita solo las variables de :root
   ========================================================= */

@font-face { font-family: 'Inter Tight'; font-weight: 300; font-display: swap; src: url(../fonts/inter-tight-latin-300-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Inter Tight'; font-weight: 400; font-display: swap; src: url(../fonts/inter-tight-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Inter Tight'; font-weight: 500; font-display: swap; src: url(../fonts/inter-tight-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Inter Tight'; font-weight: 600; font-display: swap; src: url(../fonts/inter-tight-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Inter Tight'; font-weight: 700; font-display: swap; src: url(../fonts/inter-tight-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Inter Tight'; font-weight: 300; font-display: swap; src: url(../fonts/inter-tight-cyrillic-300-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Tight'; font-weight: 400; font-display: swap; src: url(../fonts/inter-tight-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Tight'; font-weight: 500; font-display: swap; src: url(../fonts/inter-tight-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Tight'; font-weight: 600; font-display: swap; src: url(../fonts/inter-tight-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Tight'; font-weight: 700; font-display: swap; src: url(../fonts/inter-tight-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --papel: #f4f2ee;       /* fondo general */
  --tono: #e8e5df;        /* fondo de secciones alternas */
  --tinta: #0d0d0d;       /* negro del logo */
  --gris: #66635d;        /* texto secundario */
  --linea: rgba(13, 13, 13, .14);
  --blanco: #ffffff;
  --ancho: 1280px;
  --margen: clamp(16px, 4vw, 48px);
  --fuente: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--fuente); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 104px); }
h2 { font-size: clamp(34px, 4.6vw, 64px); }
h3 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--margen); }
.kicker { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.parrafo-grande { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: #2b2a27; max-width: 40ch; }

/* ---------- Botones ---------- */
.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.boton { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font: 500 15px/1 var(--fuente); text-decoration: none; cursor: pointer; border: 1px solid var(--tinta); transition: background .25s, color .25s, transform .25s; }
.boton::after { content: '→'; transition: transform .25s; }
.boton:hover::after { transform: translateX(4px); }
.boton--negro { background: var(--tinta); color: var(--blanco); }
.boton--negro:hover { background: #2a2a2a; }
.boton--linea { background: transparent; color: var(--tinta); }
.boton--linea:hover { background: var(--tinta); color: var(--blanco); }

/* ---------- Cabecera ---------- */
.cabecera { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.cabecera.con-fondo { background: rgba(244, 242, 238, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--linea); }
.cabecera__fila { display: flex; align-items: center; gap: 32px; height: 76px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.marca__forma { width: 44px; height: 35px; fill: var(--tinta); }
.marca__texto { display: flex; flex-direction: column; line-height: 1.1; font-size: 13px; }
.marca__texto b { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.menu { display: flex; gap: 30px; }
.menu a { text-decoration: none; font-size: 15px; position: relative; padding: 4px 0; }
.menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.menu a:hover::after, .menu a.activo::after { transform: scaleX(1); }
.idiomas { display: flex; gap: 2px; border: 1px solid var(--linea); border-radius: 999px; padding: 3px; }
.idiomas button { border: 0; background: none; padding: 4px; border-radius: 999px; cursor: pointer; display: grid; place-items: center; }
.bandera { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; display: block; box-shadow: 0 0 0 1px rgba(13,13,13,.15); opacity: .55; filter: saturate(.6); transition: opacity .2s, filter .2s, transform .2s; }
.bandera svg { width: 100%; height: 100%; display: block; }
.idiomas button:hover .bandera { opacity: 1; filter: none; transform: scale(1.08); }
.idiomas button[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--tinta); }
.idiomas button[aria-pressed="true"] .bandera { opacity: 1; filter: none; }
.hamburguesa { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.hamburguesa span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--tinta); transition: transform .3s, top .3s; }
.hamburguesa span:first-child { top: 18px; } .hamburguesa span:last-child { top: 25px; }
.menu-abierto .hamburguesa span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-abierto .hamburguesa span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Portada (pantalla completa con fotos) ---------- */
.portada { position: relative; min-height: 100svh; background: var(--tinta); color: var(--blanco); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.portada__fondo { position: absolute; inset: 0; z-index: -3; }
.portada__fondo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.4s ease, transform 7s linear; }
.portada__fondo img.activa { opacity: 1; transform: scale(1); }
.portada__fondo.rafaga img { transition: none; transform: scale(1.04); }
.portada__velo { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,.3) 35%, rgba(13,13,13,.42) 55%, rgba(13,13,13,.88) 100%); }
.portada__forma { position: absolute; z-index: -1; right: -6vw; top: 14vh; width: min(62vw, 900px); height: auto; fill: none; stroke: rgba(255,255,255,.55); stroke-width: .9; vector-effect: non-scaling-stroke; }
.portada__forma use { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: trazo 2.6s 1.2s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.portada__contenido { padding-top: 140px; padding-bottom: 32px; }
.portada .kicker { color: rgba(255,255,255,.75); }
.portada h1 { font-size: clamp(48px, 8.6vw, 148px); max-width: 11ch; margin-bottom: 28px; letter-spacing: -.045em; line-height: .95; }
.portada__intro { font-size: clamp(17px, 1.4vw, 20px); color: rgba(255,255,255,.82); max-width: 48ch; margin-bottom: 36px; }
.portada__pie { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 20px; padding-bottom: 28px; position: relative; font-size: 14px; color: rgba(255,255,255,.75); }
.portada__contador { display: flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; }
.portada__barras { display: flex; gap: 6px; }
.portada__barras i { width: 28px; height: 2px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.portada__barras i.activa::after { content: ''; position: absolute; inset: 0; background: var(--blanco); transform-origin: left; animation: barra var(--dur, 5s) linear forwards; }
@keyframes barra { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.portada__pie::before { content: ''; position: absolute; top: 0; left: var(--margen); right: var(--margen); height: 1px; background: rgba(255,255,255,.2); }

/* Cinta de servicios en movimiento */
.cinta { background: var(--tinta); color: var(--papel); overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.cinta__pista { display: flex; width: max-content; animation: cinta 40s linear infinite; }
.cinta__pista span { font-size: clamp(28px, 4vw, 56px); font-weight: 300; letter-spacing: -.03em; padding: 22px 0; white-space: nowrap; display: flex; align-items: center; }
.cinta__pista span::after { content: ''; width: .42em; height: .37em; margin: 0 .8em; background: currentColor; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); opacity: .5; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* Cabecera encima de la portada oscura */
.sobre-oscuro .cabecera:not(.con-fondo) { color: var(--blanco); }
.sobre-oscuro .cabecera:not(.con-fondo) .marca__forma { fill: var(--blanco); }
.sobre-oscuro .cabecera:not(.con-fondo) .idiomas { border-color: rgba(255,255,255,.3); }
.sobre-oscuro .cabecera:not(.con-fondo) .idiomas button[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--blanco); }
.sobre-oscuro .cabecera:not(.con-fondo) .bandera { box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.sobre-oscuro .cabecera:not(.con-fondo) .hamburguesa span { background: var(--blanco); }
.menu-abierto .cabecera, .menu-abierto .cabecera .marca__forma { color: var(--tinta) !important; fill: var(--tinta) !important; }
.menu-abierto .cabecera .hamburguesa span { background: var(--tinta) !important; }

.boton--blanco { background: var(--blanco); color: var(--tinta); border-color: var(--blanco); }
.boton--blanco:hover { background: var(--papel); }
.boton--linea-blanca { background: transparent; color: var(--blanco); border-color: rgba(255,255,255,.6); }
.boton--linea-blanca:hover { background: var(--blanco); color: var(--tinta); }
.boton--wa::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--icono-wa) center / contain no-repeat; mask: var(--icono-wa) center / contain no-repeat; }
.boton--wa::after { display: none; }
.boton--ancho { margin-top: 28px; }
:root { --icono-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm4.5 12.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2c0 1.3.9 2.5 1 2.7.2.2 1.8 2.8 4.4 3.9 1.6.7 2.3.8 3.1.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.1-1.2l-.6-.3Z'/%3E%3C/svg%3E"); }

/* ---------- Equipo ---------- */
.equipo { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 36px); }
.persona { align-self: start; display: block; border: 0; padding: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.persona__foto { aspect-ratio: 4 / 5; overflow: hidden; background: #d6d2ca; position: relative; }
.persona__foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.05); transition: filter .6s, transform .8s cubic-bezier(.2,.7,.2,1); }
.persona:hover .persona__foto img, .persona:focus-visible .persona__foto img { filter: grayscale(0); transform: scale(1.03); }
.persona__foto::after { content: attr(data-ver); position: absolute; left: 16px; bottom: 16px; background: var(--papel); padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: all .3s; }
.persona:hover .persona__foto::after, .persona:focus-visible .persona__foto::after { opacity: 1; transform: none; }
.persona h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; letter-spacing: -.02em; margin-top: 20px; }
.persona__cargo { color: var(--gris); margin-top: 4px; }
.persona__frase { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--linea); font-size: 15px; color: #3a3935; font-style: italic; }
.perfil__frase { font-size: 20px; font-weight: 300; line-height: 1.4; margin-bottom: 20px; }
.perfil__areas { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--linea); font-size: 14px; color: var(--gris); }
.perfil__linkedin { display: inline-block; margin-top: 16px; font-weight: 500; }
.ficha--perfil .ficha__galeria img { height: 100%; object-fit: cover; object-position: center 20%; }
.ficha--perfil[open] { grid-template-columns: 1fr 1.3fr; }
.ficha__texto > p + p { margin-top: 0; }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(80px, 11vw, 160px) 0; }
.seccion--oscura { background: var(--tinta); color: var(--papel); }
.seccion--oscura .kicker, .seccion--oscura .cabeza-seccion > p { color: #a19d95; }
.seccion--tono { background: var(--tono); }
.rejilla-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.cabeza-seccion { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.cabeza-seccion h2 { max-width: 16ch; }
.cabeza-seccion > p { max-width: 34ch; color: var(--gris); }

.valores { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 0; }
.valores li { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--linea); }
.valores p { color: var(--gris); font-size: 16px; }

/* ---------- Servicios ---------- */
.servicios { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: servicio; border-top: 1px solid rgba(244,242,238,.18); }
.servicios li { counter-increment: servicio; padding: 36px 32px 44px 0; border-bottom: 1px solid rgba(244,242,238,.18); position: relative; }
.servicios li:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid rgba(244,242,238,.18); }
.servicios li::before { content: counter(servicio, decimal-leading-zero); display: block; font-size: 13px; letter-spacing: .1em; color: #a19d95; margin-bottom: 48px; }
.servicios h3 { font-size: 24px; font-weight: 400; margin-bottom: 14px; }
.servicios p { color: #b9b5ad; font-size: 16px; }

/* ---------- Proyectos ---------- */
.filtros { display: flex; gap: 8px; flex-wrap: wrap; }
.filtros button { border: 1px solid var(--linea); background: none; border-radius: 999px; padding: 10px 18px; font: 500 14px/1 var(--fuente); cursor: pointer; color: var(--tinta); transition: all .2s; }
.filtros button:hover { border-color: var(--tinta); }
.filtros button[aria-selected="true"] { background: var(--tinta); color: var(--blanco); border-color: var(--tinta); }
.proyectos { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.proyecto { align-self: start; display: block; grid-column: span 6; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.proyecto:nth-child(4n+1), .proyecto:nth-child(4n+4) { grid-column: span 7; }
.proyecto:nth-child(4n+2), .proyecto:nth-child(4n+3) { grid-column: span 5; }
.proyecto__imagen { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tono); position: relative; }
.proyecto__imagen img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.proyecto:hover img { transform: scale(1.04); }
.proyecto__imagen::after { content: attr(data-ver); position: absolute; right: 16px; bottom: 16px; background: var(--papel); padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: all .3s; }
.proyecto:hover .proyecto__imagen::after, .proyecto:focus-visible .proyecto__imagen::after { opacity: 1; transform: none; }
.proyecto__pie { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; }
.proyecto__pie h3 { font-size: 19px; font-weight: 400; }
.proyecto__pie span { color: var(--gris); font-size: 14px; white-space: nowrap; }
.proyecto.oculto { display: none; }

/* ---------- Ficha (ventana del proyecto) ---------- */
.ficha { width: min(1100px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; background: var(--papel); color: var(--tinta); display: none; grid-template-columns: 1.5fr 1fr; overflow: hidden; }
.ficha[open] { display: grid; }
.ficha::backdrop { background: rgba(13,13,13,.75); backdrop-filter: blur(4px); }
.ficha__galeria { overflow-y: auto; display: grid; gap: 4px; background: var(--tinta); }
.ficha__galeria img { width: 100%; height: auto; }
.ficha__texto { padding: 56px 40px 40px; overflow-y: auto; }
.ficha__texto h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 300; letter-spacing: -.02em; margin-bottom: 28px; }
.ficha__datos { margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--linea); }
.ficha__datos div { padding: 14px 0; border-bottom: 1px solid var(--linea); }
.ficha__datos dt { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--gris); }
.ficha__datos dd { margin: 4px 0 0; }
.ficha__texto > p:last-child { color: #3a3935; }
.ficha__cerrar { position: absolute; top: 14px; right: 14px; z-index: 2; border: 1px solid var(--linea); background: var(--papel); border-radius: 999px; padding: 9px 16px; font: 500 13px/1 var(--fuente); cursor: pointer; }

/* ---------- Sedes ---------- */
.sedes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.sede { background: var(--papel); padding: 36px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 200px; position: relative; overflow: hidden; }
.sede h3 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 300; letter-spacing: -.03em; }
.sede p { color: var(--gris); }
.sede a { margin-top: auto; font-weight: 500; font-size: 15px; text-underline-offset: 4px; }
.sede svg { position: absolute; right: -40px; top: -30px; width: 200px; fill: none; stroke: var(--linea); stroke-width: 1.5; }

/* ---------- Contacto ---------- */
.datos { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--linea); }
.datos li { padding: 16px 0; border-bottom: 1px solid var(--linea); display: flex; justify-content: space-between; gap: 16px; }
.datos span { color: var(--gris); font-size: 14px; }
.datos a { text-decoration: none; font-weight: 500; text-align: right; }
.datos a:hover { text-decoration: underline; text-underline-offset: 4px; }
.formulario { display: grid; gap: 20px; align-content: start; }
.campo-doble { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.campo { display: grid; gap: 8px; }
.campo label { font-size: 13px; font-weight: 500; color: var(--gris); }
.campo input, .campo select, .campo textarea { width: 100%; font: 400 17px/1.4 var(--fuente); color: var(--tinta); background: transparent; border: 0; border-bottom: 1px solid rgba(13,13,13,.3); padding: 10px 0; border-radius: 0; transition: border-color .2s; }
.campo select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230d0d0d'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 24px; }
.campo textarea { resize: vertical; min-height: 120px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-bottom-color: var(--tinta); }
.campo .error, .casilla.error { border-bottom-color: #b3261e; color: #b3261e; }
.trampa { position: absolute; left: -9999px; }
.casilla { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--gris); }
.casilla input { margin-top: 4px; accent-color: var(--tinta); width: 16px; height: 16px; }
.formulario .boton { justify-self: start; }
.formulario .boton[disabled] { opacity: .6; cursor: wait; }
.formulario__aviso { font-size: 15px; min-height: 1.6em; }
.formulario__aviso.ok { color: #1f6f43; } .formulario__aviso.ko { color: #b3261e; }

/* ---------- Pie ---------- */
.pie { background: var(--tinta); color: #a19d95; padding: 64px 0 40px; font-size: 14px; }
.pie__fila { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: end; }
.pie__logo { width: 120px; height: auto; }
.pie a { color: var(--papel); }

/* ---------- WhatsApp ---------- */
.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: var(--tinta); color: var(--blanco); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .25s; }
.whatsapp:hover { transform: scale(1.06); }
.whatsapp svg { width: 26px; height: 26px; }

/* ---------- Animación de entrada ---------- */
.aparece { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.aparece.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .aparece { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1080px) {
  .menu { position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; background: var(--papel); padding: 8px var(--margen) 24px; border-bottom: 1px solid var(--linea); transform: translateY(-120%); transition: transform .35s; z-index: -1; }
  .menu a { font-size: 26px; font-weight: 300; padding: 12px 0; border-bottom: 1px solid var(--linea); }
  .menu a::after { display: none; }
  .menu-abierto .menu { transform: none; }
  .menu-abierto .cabecera { background: var(--papel); }
  .hamburguesa { display: block; }
  .cabecera__fila { gap: 12px; }
  .servicios { grid-template-columns: repeat(2, 1fr); }
  .servicios li, .servicios li:not(:nth-child(3n+1)) { padding: 32px 24px 36px 0; border-left: 0; }
  .servicios li:nth-child(even) { padding-left: 24px; border-left: 1px solid rgba(244,242,238,.18); }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .rejilla-2 { grid-template-columns: 1fr; }
  .portada__forma { width: 120vw; right: -40vw; top: 12vh; }
  .portada__pie p { display: none; }
  .equipo { grid-template-columns: 1fr; max-width: 460px; }
  .ficha--perfil[open] { display: block; }
  .ficha--perfil .ficha__galeria img { height: auto; aspect-ratio: 4/3; }
  .proyecto, .proyecto:nth-child(n) { grid-column: span 12; }
  .ficha[open] { display: block; overflow-y: auto; }
  .ficha__galeria { overflow: visible; }
  .ficha__texto { padding: 32px 24px; }
  .pie__fila { grid-template-columns: 1fr; align-items: start; }
  .valores li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .marca__texto span { display: none; }
  .idiomas button { padding: 3px; }
  .bandera { width: 20px; height: 20px; }
  .servicios { grid-template-columns: 1fr; }
  .servicios li:nth-child(n) { padding: 28px 0 32px; border-left: 0; }
  .servicios li::before { margin-bottom: 20px; }
  .campo-doble { grid-template-columns: 1fr; }
  .formulario .boton { justify-self: stretch; justify-content: center; }
}
