@font-face {
  font-family: "Miniro";
  src: url("../assets/fonts/Miniro-Regular-es.ttf?v=2") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --maxw: 1298px;
  --gutter: clamp(25px, 7.3vw, 109px);
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  --blue: #2d58a4;
  --blue-dark: var(--blue);
  --orange: #e95419;
  --orange-light: #d36f33;
  --cream: #f5f4f0;
  --lime: #cdd849;
  --ink: var(--blue);
  --muted: var(--blue);
  --radius: 24px;
  --display: "Miniro", "Poppins", system-ui, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: .01em; }
h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3 { font-size: 1.5rem; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 56ch; }
.accent { color: inherit; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; background: var(--orange); color: var(--cream); font-weight: 700; border: 2px solid var(--orange); cursor: pointer; font: inherit; font-weight: 700; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); background: var(--orange-light); border-color: var(--orange-light); }
.btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.btn-outline:hover { background: #fff; color: var(--blue); border-color: var(--cream); }
.btn-lime { background: var(--lime); color: var(--blue-dark); border-color: var(--lime); }
.btn-lime:hover { background: #fff; border-color: var(--cream); }
.btn::after { content: ""; width: 1.35em; height: 1.35em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h17M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h17M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.btn:hover::after { transform: translateX(4px); }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-sm::after, form .btn::after { content: none; }

/* Logo y botón de menú (sin barra de cabecera) */
.brand { --h: 187px; --gap: calc(clamp(10px, 1.6vw, 24px) + 5px); position: absolute; top: calc(var(--gap) - var(--h) * 71 / 368); left: var(--gap); z-index: 40; }
.brand-logo { margin-left: calc(var(--h) * -79 / 368); display: block; height: var(--h); width: calc(var(--h) * 1080 / 368); background: var(--orange); -webkit-mask: url(../assets/logo/logo-horizontal.svg) center / contain no-repeat; mask: url(../assets/logo/logo-horizontal.svg) center / contain no-repeat; }
.menu-btn { position: fixed; top: calc(clamp(10px, 1.6vw, 24px) + 6px); right: calc(clamp(10px, 1.6vw, 24px) + 1px); z-index: 70; font: inherit; font-weight: 800; font-size: 1.76rem; letter-spacing: .02em; padding: 22px 35px; border: 0; border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; background: var(--orange); color: var(--cream); cursor: pointer; box-shadow: 0 0 0 4px rgba(245, 244, 240, .9), 0 8px 20px rgba(0, 0, 0, .18); transition: background .25s, color .25s, transform .25s, border-radius .4s; }
.menu-btn:hover, .menu-btn:focus-visible { background: var(--lime); color: var(--blue-dark); transform: rotate(-6deg) scale(1.06); border-radius: 44% 56% 48% 52% / 56% 44% 56% 44%; }
/* Collage de proyectos en el hero de Inicio */
.hero:has(.hero-collage) .hero-mark { display: none; }
.hero-collage { position: absolute; z-index: 2; right: var(--edge); top: 50%; transform: translateY(-50%); width: min(41vw, 590px); aspect-ratio: 600 / 440; }
@media (min-width: 961px) {
  .hero:has(.hero-collage) .container > * { max-width: 52%; }
  /* Escritorio: collage grande en media luna «)» (extremos a la izquierda, centro a la derecha); si cruza el texto, pasa por detrás */
  .hero-collage { width: min(52vw, 860px, calc((100svh - 140px) * 600 / 640)); aspect-ratio: 600 / 640; }
  .hero:has(.hero-collage) .container { position: relative; z-index: 3; pointer-events: none; }
  .hero:has(.hero-collage) .container > * { pointer-events: auto; }
  .hero:has(.hero-collage) :is(h1, .lead) { text-shadow: 0 2px 10px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .25); } /* separa el texto del collage que pasa por detrás */
  .hero-collage .hc { width: 62%; } /* el doble de las láminas anteriores (31 %): se enciman para entrar en la pantalla */
  .hero-collage .hc-2 { left: -3%; top: 0; transform: rotate(8deg); z-index: 1; }
  .hero-collage .hc-1 { left: 43%; top: 17%; transform: rotate(3deg); z-index: 2; }
  .hero-collage .hc-3 { left: 38%; right: auto; top: 59%; transform: rotate(-3deg); z-index: 3; }
  .hero-collage .hc-4 { left: -8%; top: auto; bottom: -5%; transform: rotate(-8deg); z-index: 4; }
  .hero-collage .hc:hover { transform: rotate(0deg) scale(1.06); z-index: 5; }
}
.hc { position: absolute; display: block; border: 4px solid var(--cream); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); transition: transform .3s, z-index 0s; animation: hc-float 7s ease-in-out infinite; }
.hc img { display: block; width: 100%; height: auto; }
.hc:hover { transform: rotate(0deg) scale(1.06); z-index: 5; }
.hc-1 { left: 0; top: 30%; width: 36%; transform: rotate(-5deg); }
.hc-2 { left: 32%; top: 0; width: 36%; transform: rotate(3deg); animation-delay: -2s; z-index: 1; }
.hc-3 { right: 0; top: 31%; width: 36%; transform: rotate(-3deg); animation-delay: -4s; }
.hc-4 { left: 32%; bottom: 0; width: 36%; transform: rotate(4deg); animation-delay: -1s; z-index: 1; }
@keyframes hc-float { 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .hc { animation: none; } }
@media (max-width: 960px) {
  /* El collage entra en el flujo y queda centrado (margin auto) entre el header y el texto, sea cual sea el alto de la pantalla */
  .hero-collage { position: relative; right: auto; top: auto; transform: none; width: 84vw; margin: auto 8vw; flex: none; }
  .hero:has(.hero-collage) { justify-content: flex-start; padding-top: 192px; padding-bottom: 56px; } /* bajo el logo grande (187 px) */
  .hero:has(.hero-collage) .container { margin-top: 24px; }
}
@media (max-width: 760px) { .hero:has(.hero-collage) { padding-top: 104px; } } /* bajo el logo móvil (84 px) */
@media (max-width: 760px) {
  .hc { border-width: 3px; border-radius: 14px; }
}

/* Menú desplegable */
.menu { position: fixed; top: 109px; right: calc(clamp(10px, 1.6vw, 24px) + 1px); z-index: 69; width: min(340px, calc(100% - 20px)); background: var(--cream); color: var(--ink); border-radius: 22px; padding: 14px 24px 18px; box-shadow: 0 0 0 3px var(--blue-dark), 0 18px 40px rgba(22, 33, 58, .35); display: flex; flex-direction: column; transform-origin: top right; animation: menu-in .22s ease-out; }
.menu[hidden] { display: none; }
.menu a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 2px solid var(--blue); font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-dark); }
.menu a:last-child { border-bottom: 0; }
.menu a::after { content: ""; flex: none; width: 1.7rem; height: 1.7rem; background: var(--orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18L18 6M8 6h10v10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18L18 6M8 6h10v10'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--orange); }
.menu a:hover::after { transform: translate(3px, -3px); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .menu { animation: none; } }

/* Secciones */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-blue { background: var(--blue); color: var(--cream); }
.section-blue .eyebrow { color: var(--lime); }
.section-lime { background: var(--lime); color: var(--blue-dark); }
.section-head { margin-bottom: 48px; }
.section-head p { margin-top: 22px; max-width: 60ch; }

/* Hero */
.hero { background: var(--blue); color: var(--cream); position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(280px, 32vw, 460px) 0 clamp(40px, 5vw, 70px); }
.hero .eyebrow { color: var(--lime); }
.hero h1 { max-width: none; font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.hero h1 em { font-style: normal; color: inherit; }
.hero .lead { max-width: none; font-size: clamp(1.3rem, 2.8vw, 2.1rem); line-height: 1.3; margin: 18px 0 0; color: var(--cream); }
.hero .lead + .hero-actions { margin-top: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.section-tall { padding: clamp(72px, 8vw, 120px) 0; }
.section-tall .split { grid-template-columns: 1fr 1.1fr; }
.section-tall h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.section-tall .lead { font-size: clamp(1.2rem, 2.1vw, 1.7rem); line-height: 1.35; max-width: none; }
.section-tall .photo { aspect-ratio: 3 / 2; }
.section-tall .photo img { height: 100%; object-position: 12% center; }
.hero-mark { --w: min(36.8vw, 414px); position: absolute; right: calc(var(--edge) - var(--w) * .04); top: 26%; width: var(--w); transform: translateY(-50%); opacity: .12; pointer-events: none; filter: brightness(0) invert(1); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }


/* Layout de dos columnas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(22, 33, 58, .18); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.stack > * + * { margin-top: 20px; }

/* Tarjetas de servicios */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
a.card { display: block; }
.card { background: #fff; border-radius: var(--radius); padding: 32px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(22, 33, 58, .12); }
.card .card-icon { display: block; width: 52px; height: 52px; border-radius: 16px; background: var(--cream) center / 28px no-repeat; } /* mismo icono que en Servicios (reglas data-icon de abajo) */
.card h3 { margin: 12px 0 10px; color: var(--blue); }
.card p { color: var(--muted); }
.card-blue { background: var(--blue); color: var(--cream); }
.card-blue h3 { color: var(--lime); }
.card-blue p, .card-blue li { color: var(--cream); }
/* Servicios en Inicio: franja de categorías que se desliza sola (solo nombres; el detalle vive en Servicios). Pausa al pasar el mouse o enfocar; con reduced-motion queda estática y envuelve. Sin JS. */
.svc-section { overflow-x: clip; }
.svc-marquee { width: 100vw; margin: 40px 0 0 calc(50% - 50vw); overflow: hidden; display: grid; gap: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.svc-track { display: flex; width: max-content; animation: svc-scroll 41s linear infinite; }
.svc-track-rev { animation-duration: 47s; animation-direction: reverse; } /* segunda fila: otro orden, sentido contrario */
.svc-group { display: flex; gap: 16px; padding-right: 16px; }
.svc-marquee:is(:hover, :focus-within) .svc-track { animation-play-state: paused; }
@keyframes svc-scroll { to { transform: translateX(-50%); } }
.svc-pill { display: flex; align-items: center; gap: 14px; flex: none; padding: 12px 28px 12px 12px; border-radius: 999px; background: var(--cream); color: var(--blue); transition: background-color .3s, color .3s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.svc-pill .card-icon { display: block; width: 52px; height: 52px; border-radius: 50%; background: #fff center / 28px no-repeat; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.svc-pill h3 { margin: 0; color: inherit; font-size: clamp(1.2rem, 2.2vw, 1.6rem); white-space: nowrap; }
/* hover solo con ratón: en pantallas táctiles :hover se queda pegado tras el toque y la píldora seguía naranja al volver de Servicios */
.svc-pill:is(:focus-visible, :active) { background: var(--orange); color: var(--cream); transform: translateY(-6px); }
.svc-pill:is(:focus-visible, :active) .card-icon { transform: rotate(-12deg) scale(1.1); }
@media (hover: hover) {
  .svc-pill:hover { background: var(--orange); color: var(--cream); transform: translateY(-6px); }
  .svc-pill:hover .card-icon { transform: rotate(-12deg) scale(1.1); }
}
.svc-pill:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .svc-marquee { width: auto; margin-left: 0; -webkit-mask-image: none; mask-image: none; }
  .svc-track { animation: none; width: auto; }
  .svc-group { flex-wrap: wrap; }
  .svc-group[aria-hidden="true"], .svc-track-rev { display: none; }
  .svc-pill, .svc-pill .card-icon { transition: none; }
  .svc-pill:is(:hover, :focus-visible, :active), .svc-pill:is(:hover, :focus-visible, :active) .card-icon { transform: none; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: .82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1.5px solid currentColor; }

/* Servicios detallados */
.service-list { display: grid; gap: 14px; }
.service-block { background: #fff; border-radius: var(--radius); border: 2px solid #cdd6ea; box-shadow: 0 1px 2px rgba(45, 88, 164, .08), 0 8px 16px -12px rgba(45, 88, 164, .3); transition: border-color .2s, box-shadow .2s; } /* chip propio sobre el crema; borde sólido (no translúcido) para que se vea también en pantallas de poco contraste */
.service-block[open] { border-color: var(--blue); }
.service-block summary { list-style: none; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); min-height: 72px; padding: 14px clamp(18px, 3vw, 32px); cursor: pointer; border-radius: var(--radius); }
.service-block summary::-webkit-details-marker { display: none; }
.service-block summary::before { content: ""; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--cream) center / 28px no-repeat; }
.service-block[data-icon="paquetes"] summary::before, .card[data-icon="paquetes"] .card-icon, .svc-pill[data-icon="paquetes"] .card-icon { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23e95419'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d=%22M11%2021.73a2%202%200%200%200%202%200l7-4A2%202%200%200%200%2021%2016V8a2%202%200%200%200-1-1.73l-7-4a2%202%200%200%200-2%200l-7%204A2%202%200%200%200%203%208v8a2%202%200%200%200%201%201.73z%22/%3E%3Cpath%20d=%22M12%2022V12%22/%3E%3Cpath%20d=%22M3.3%207%2012%2012l8.7-5%22/%3E%3C/svg%3E"); }
.service-block[data-icon="audiovisual"] summary::before, .card[data-icon="audiovisual"] .card-icon, .svc-pill[data-icon="audiovisual"] .card-icon { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23e95419'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%2210%22/%3E%3Cpath%20d=%22M10%208l6%204-6%204z%22/%3E%3C/svg%3E"); }
.service-block[data-icon="diseno"] summary::before, .card[data-icon="diseno"] .card-icon, .svc-pill[data-icon="diseno"] .card-icon { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23e95419'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d=%22m12%2019%207-7%203%203-7%207-3-3z%22/%3E%3Cpath%20d=%22m18%2013-1.5-7.5L2%202l3.5%2014.5L13%2018l5-5z%22/%3E%3Cpath%20d=%22m2%202%207.6%207.6%22/%3E%3Ccircle%20cx=%2211%22%20cy=%2211%22%20r=%222%22/%3E%3C/svg%3E"); }
.service-block[data-icon="identidad"] summary::before, .card[data-icon="identidad"] .card-icon, .svc-pill[data-icon="identidad"] .card-icon { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23e95419'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d=%22M9.9%2015.5A2%202%200%200%200%208.5%2014.1l-6.1-1.6a.5.5%200%200%201%200-1L8.5%209.9A2%202%200%200%200%209.9%208.5l1.6-6.1a.5.5%200%200%201%201%200l1.6%206.1a2%202%200%200%200%201.4%201.4l6.1%201.6a.5.5%200%200%201%200%201l-6.1%201.6a2%202%200%200%200-1.4%201.4l-1.6%206.1a.5.5%200%200%201-1%200z%22/%3E%3C/svg%3E"); }
.service-block[data-icon="web"] summary::before, .card[data-icon="web"] .card-icon, .svc-pill[data-icon="web"] .card-icon { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23e95419'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x=%223%22%20y=%224%22%20width=%2218%22%20height=%2216%22%20rx=%222%22/%3E%3Cpath%20d=%22M3%209h18%22/%3E%3Cpath%20d=%22M7%206.5h.01%22/%3E%3C/svg%3E"); }
.service-block[data-icon="personalizado"] summary::before, .card[data-icon="personalizado"] .card-icon, .svc-pill[data-icon="personalizado"] .card-icon { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23e95419'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d=%22M4%2021v-7M4%2010V3M12%2021v-9M12%208V3M20%2021v-5M20%2012V3M1%2014h6M9%208h6M17%2016h6%22/%3E%3C/svg%3E"); }
/* TAMAÑO APROBADO por el cliente: no cambiar sin pedido explícito (ver .claude/rules/tamanos-aprobados.md) */
.service-block summary h2 { flex: 1; margin: 0; font-size: clamp(1.4rem, 2.8vw, 2rem); }
.service-block summary::after { content: ""; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f4f0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 22px no-repeat; transition: transform .25s, background-color .2s; }
.service-block[open] summary::after { transform: rotate(180deg); background-color: var(--orange); }
.service-block summary:active::after { transform: scale(.92); }
.service-block[open] summary:active::after { transform: rotate(180deg) scale(.92); }
@media (hover: hover) { .service-block:not([open]):hover { border-color: var(--orange); box-shadow: 0 10px 26px rgba(45, 88, 164, .14); } .service-block summary:hover::after { background-color: var(--orange); } }
.service-block summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.service-block .service-body { padding: 8px clamp(18px, 3vw, 32px) clamp(24px, 3vw, 36px); border-top: 2px solid var(--cream); margin: 0 clamp(18px, 3vw, 32px); padding-left: 0; padding-right: 0; padding-top: 24px; }
.service-block .pack { background: var(--cream); }
.service-body { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 32px); }
/* Al desplegar: el contenido baja y aparece (se anima cada pieza y no .service-body, para no mover la cotización que se posiciona dentro de él) */
.service-block.anim .service-body :is(.note, .lead) { animation: body-in .4s cubic-bezier(.22, 1, .36, 1) backwards; }
.service-block.anim .service-body .grid { animation: body-in .5s cubic-bezier(.22, 1, .36, 1) .08s backwards; }
@keyframes body-in { from { opacity: 0; transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .service-block, .service-block summary::after { transition: none; } .service-block.anim .service-body :is(.note, .lead, .grid) { animation: none; } }
.service-block h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--blue); }
.service-block .tag { color: var(--orange); font-weight: 700; letter-spacing: .12em; font-size: .78rem; text-transform: uppercase; display: block; margin-bottom: 10px; }
.ticks { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ticks li { padding: 10px 12px 10px 34px; position: relative; margin: 0; background: #fff; border-radius: 14px; }
.ticks li::before { content: "✺"; position: absolute; left: 12px; top: 10px; color: var(--orange); }
.pack { background: #fff; border-radius: var(--radius); padding: 28px; }
.pack h3 { color: var(--blue); margin-bottom: 6px; }
.pack .goal { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.pack small { display: block; margin-top: 14px; color: var(--muted); }
.note { font-size: .92rem; color: var(--muted); margin-top: 20px; }

/* Portafolio */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter { font: inherit; font-weight: 600; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--blue); background: transparent; color: var(--blue); cursor: pointer; transition: .2s; }
.filter:hover { background: rgba(45, 88, 164, .1); }
.filter[aria-pressed="true"] { background: var(--blue); color: var(--cream); }
.work-grid { columns: 2; column-gap: 22px; }
.work { display: block; break-inside: avoid; margin-bottom: 22px; border-radius: var(--radius); overflow: hidden; background: var(--blue); color: var(--cream); position: relative; }
.work img { width: 100%; transition: transform .6s; }
.work:hover img { transform: scale(1.04); }
.work-info { position: relative; background: var(--blue); padding: 20px 24px 24px; } /* encima de la imagen: al hacer zoom en hover (scale) las imágenes altas ya no tapan el padding del título */
.work-info .cat { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--lime); color: var(--blue-dark); padding: 5px 12px; border-radius: 999px; }
.work-info h3 { margin: 12px 0 6px; font-size: 1.4rem; }
.work-info p { color: var(--cream); font-size: .95rem; }
.work[hidden] { display: none; }
/* Tarjetas de video: portada vertical recortada a 4/5 y botón de play */
.work[data-video] img { aspect-ratio: 4 / 5; object-fit: cover; }
.work[data-video]::after { content: ""; position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f5f4f0'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% center / 20px no-repeat; pointer-events: none; }
.work-grid.masonry { columns: auto; display: flex; gap: 22px; align-items: flex-start; }
.masonry-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.masonry .work { margin: 0; }
/* Portafolio en Inicio: vista previa compacta (4 láminas en fila); título sobre la imagen, categoría y detalle al pasar el mouse. El resto vive en portafolio.html. */
.work-preview { columns: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work-preview .work { margin: 0; aspect-ratio: 4 / 5; }
.work-preview .work img { height: 100%; object-fit: cover; object-position: top center; }
.work-preview .work-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 18px; background: linear-gradient(to top, rgba(45, 88, 164, .96) 15%, rgba(45, 88, 164, 0)); }
.work-preview .work-info h3 { margin: 0; font-size: 1.15rem; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.work-preview .work-info :is(.cat, p) { display: none; }
.work-preview .work:is(:hover, :focus-visible) h3 { transform: translateY(-2px); }
/* Recortes a medida para que se vea el título de la lámina */
.work-preview .work[href$="=conecta-orientacion-vocacional"] img { object-position: left top; }
.work-preview .work[href$="=kuveros"] { background: linear-gradient(#2c2c2c 75%, #767676 75%); }
.work-preview .work[href$="=kuveros"] img { position: absolute; top: 0; bottom: 0; left: -30%; width: 160%; max-width: none; height: auto; margin: auto 0; }
.work-preview .work[href$="=congreso-empresarial"] img { object-position: left center; }
.work-preview .work[href$="=luis-laredo"] { background: #858890; }
.work-preview .work[href$="=luis-laredo"] img { position: absolute; top: 0; bottom: 0; left: -52%; width: 380%; max-width: none; height: auto; margin: auto 0; }
.work-preview .work:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (max-width: 860px) { .work-preview { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .work-preview .work img, .work-preview .work-info h3 { transition: none; } .work-preview .work:hover img { transform: none; } }

/* Proyecto */

/* Equipo */
.person { text-align: center; }
.avatar { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--blue); color: var(--lime); font-family: var(--display); font-size: 3rem; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
/* Contacto: los datos (WhatsApp, correo, ubicación, redes) ya viven en el footer; aquí el título y el formulario ocupan todo el ancho */
.contact-intro { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 320px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--blue); color: var(--cream); }
.contact-intro h2 { position: relative; font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.05; max-width: 12ch; }
.contact-mark { position: absolute; top: -8%; right: -10%; width: min(72%, 380px); opacity: .12; filter: brightness(0) invert(1); pointer-events: none; }
form.contact { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr auto; }
form.contact label:nth-of-type(4) { grid-template-rows: auto 1fr; }
form.contact textarea { height: 100%; min-height: 150px; resize: vertical; }
form.contact .form-status:empty { display: none; }
form.contact > :is(label:nth-of-type(3), label:nth-of-type(4), .btn, .form-status) { grid-column: 1 / -1; }
form.contact .btn { justify-self: start; }
@media (max-width: 620px) { form.contact { grid-template-columns: 1fr; } .contact-intro { min-height: 220px; } }
.info-list { display: grid; gap: 18px; margin: 28px 0; }
.info-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--orange); }
.info-list dd { font-size: 1.1rem; }
.info-list a:hover { text-decoration: underline; }
form.contact { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
form.contact label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
form.contact input, form.contact textarea { font: inherit; padding: 14px 16px; border: 2px solid #d9dbe3; border-radius: 14px; background: var(--cream); }
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
form.contact .invalid { border-color: var(--orange); }
.form-status { min-height: 1.4em; font-size: .95rem; font-weight: 500; }
.form-status.ok { color: var(--blue); }
.form-status.err { color: var(--orange); }
.map { margin-top: 40px; border-radius: var(--radius); overflow: hidden; }

/* Footer */
.site-footer { background: var(--blue-dark); color: var(--cream); padding: 64px 0 28px; }
.site-footer .container { text-align: center; }
.footer-logo { height: 84px; width: auto; filter: brightness(0) invert(1); margin: 0 auto 16px; }
.footer-tag { font-family: var(--display); font-size: 1.4rem; color: var(--lime); }
.footer-contact { margin-top: 28px; display: grid; gap: 4px; font-size: 1.05rem; }
.site-footer h4 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--lime); margin-bottom: 12px; }
.site-footer li { margin: 6px 0; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--lime); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(245, 244, 240, .2); font-size: .88rem; color: var(--cream); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; text-align: left; }

/* WhatsApp flotante */

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .service-body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .work-grid { columns: 1; }
  .hero-mark { opacity: .08; }
  .brand { --h: 84px; }
  .menu-btn { padding: 17px 26px; font-size: 1.6rem; }
  .menu { top: 93px; }
}


/* Cotizar en cada servicio */
.service-cta { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--blue); }
.service-body > .service-cta { justify-content: flex-end; }
.service-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.service-top .note { flex: 1 1 340px; margin-top: 0; }
.service-top .service-cta { flex: none; margin-left: auto; }
/* Escritorio: la cotización sube a la fila del título, junto al botón de abrir/cerrar (vive en el cuerpo, así que colapsada no se ve) */
@media (min-width: 961px) {
  .service-block { position: relative; }
  .service-block .service-cta { position: absolute; top: 20px; margin: 0; right: calc(clamp(18px, 3vw, 32px) + 44px + clamp(14px, 2.4vw, 28px)); }
  .service-block[open] summary h2 { padding-right: 270px; }
  .service-top .note { flex-basis: 100%; }
}
.cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--cream); transition: transform .2s, background-color .2s; }
.cta-icon svg { width: 20px; height: 20px; }
.cta-wa { background: var(--orange); }
.cta-mail { background: var(--blue); }
@media (hover: hover) { .cta-icon:hover { transform: translateY(-2px); background: var(--orange-light); } }
.cta-icon:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
/* Entrada al desplegar la categoría: el texto se desliza y los iconos «brotan» girando con rebote, uno tras otro, y sueltan un pulso */
.cta-wa { --ring: rgba(233, 84, 25, .45); }
.cta-mail { --ring: rgba(45, 88, 164, .45); }
.service-block.anim .service-cta > span { animation: cta-text-in .45s cubic-bezier(.22, 1, .36, 1) .05s backwards; }
.service-block.anim .cta-icon { animation: cta-pop .6s cubic-bezier(.34, 1.56, .64, 1) .15s backwards, cta-ring .7s ease-out .55s; }
.service-block.anim .cta-mail { animation-delay: .27s, .67s; }
.service-block.anim .cta-icon svg { animation: cta-glyph .5s cubic-bezier(.34, 1.56, .64, 1) .3s backwards; }
.service-block.anim .cta-mail svg { animation-delay: .42s; }
@keyframes cta-text-in { from { opacity: 0; transform: translateX(16px); } }
@keyframes cta-pop { from { opacity: 0; transform: scale(0) rotate(-140deg); } }
@keyframes cta-glyph { from { opacity: 0; transform: scale(.4) rotate(25deg); } }
@keyframes cta-ring { from { box-shadow: 0 0 0 0 var(--ring); } to { box-shadow: 0 0 0 12px transparent; } }
@media (prefers-reduced-motion: reduce) { .cta-icon { transition: none; } .service-block.anim .service-cta > span, .service-block.anim .cta-icon, .service-block.anim .cta-icon svg { animation: none; } }

/* Preguntas frecuentes */
.faq { max-width: 820px; }
.faq details { background: #fff; border-radius: 18px; margin-bottom: 12px; padding: 0 26px; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 700; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.8rem; color: var(--orange); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* Aviso de servicio en contacto */
form.contact .btn svg { width: 22px; height: 22px; flex: none; }

/* Marca de agua del pie */
.site-footer { position: relative; overflow: hidden; }
.site-footer .container { position: relative; z-index: 1; }
.footer-mark { position: absolute; right: -4%; bottom: -30%; width: min(42vw, 420px); opacity: .07; filter: brightness(0) invert(1); pointer-events: none; }

/* Espacio superior: el logo y el botón de menú flotan sobre el contenido */
main > :first-child { padding-top: clamp(110px, 14vw, 170px); }

/* Equipo (Nosotros) */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.member h3 { margin: 22px 0 14px; color: var(--blue); font-size: clamp(1.5rem, 2.4vw, 2rem); }
.member-role { font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: 10px; }
.member-photo { width: 78%; aspect-ratio: 4 / 5; border-radius: 46% 54% 50% 50% / 38% 40% 60% 62%; display: grid; place-items: end center; overflow: hidden; }
.member-photo svg { width: 70%; fill: var(--cream); }
.mp-orange { background: var(--orange); }
.mp-blue { background: var(--blue); }
.mp-lime { background: var(--lime); }
.mp-lime svg { fill: var(--blue); }
.member:nth-child(2) .member-photo { border-radius: 54% 46% 40% 60% / 50% 36% 64% 50%; }
.member:nth-child(3) .member-photo { border-radius: 50% 50% 44% 56% / 42% 56% 44% 58%; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
/* Mismo lenguaje que «Pide tu cotización»: texto + icono circular */
.member-more { margin-top: 16px; display: inline-flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; }
.member-more::after { content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f4f0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat; transition: transform .2s, background-color .2s; }
@media (hover: hover) { .member-more:hover { color: var(--orange); } .member-more:hover::after { background-color: var(--orange); transform: translateX(4px); } }
.member-more:focus-visible::after { background-color: var(--orange); }

/* Bio completa (modal) */
.bio-modal { width: min(640px, calc(100% - 32px)); max-height: 85vh; margin: auto; padding: 0; border: 0; border-radius: 22px; background: var(--cream); color: var(--ink); box-shadow: 0 0 0 3px var(--blue), 0 18px 40px rgba(22, 33, 58, .35); overflow: hidden; }
/* El scroll va dentro, con barra fina en la paleta, para no romper las esquinas redondeadas */
.bio-body { max-height: 85vh; overflow-y: auto; padding: clamp(28px, 4vw, 44px); padding-right: clamp(22px, 3.4vw, 38px); scrollbar-width: thin; scrollbar-color: var(--blue) transparent; scrollbar-gutter: stable; }
.bio-body::-webkit-scrollbar { width: 8px; }
.bio-body::-webkit-scrollbar-track { background: transparent; margin: 22px 0; }
.bio-body::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 999px; }
.bio-body::-webkit-scrollbar-thumb:hover { background: var(--orange); }
/* Modal de proyecto: imagen o video, servicios y «Cotiza» */
.project-modal { width: min(1240px, calc(100% - 24px)); max-height: 94vh; }
.project-modal:not(.is-wide) { width: min(calc(84vh * var(--r) + 460px), 1240px, calc(100% - 24px)); } /* vertical o cuadrada: el modal se ajusta a la imagen para no dejar un panel vacío */
.project-modal .bio-body { max-height: 94vh; padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 16px 28px; align-items: start; }
.project-modal .bio-close { position: absolute; top: 14px; right: 14px; float: none; margin: 0; z-index: 2; }
.project-title { grid-area: title; margin: 0; padding-right: 56px; font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.project-media { grid-area: media; min-width: 0; }
.project-info { grid-area: info; }
.project-info h3 { margin: 0 0 10px; font-size: 1.3rem; }
.project-cta { grid-area: cta; justify-self: start; align-self: end; margin: 0; }
.project-media img, .project-media video { display: block; width: 100%; height: auto; border-radius: 14px; }
.project-media video { background: #000; }
/* Vertical o cuadrada: imagen a la izquierda (tan alta como permite la ventana) y datos a la derecha */
.project-modal:not(.is-wide) .bio-body { grid-template-columns: min(calc(84vh * var(--r)), 62%) 1fr; grid-template-rows: auto auto 1fr; grid-template-areas: "media title" "media info" "media cta"; }
.project-modal:not(.is-wide) .project-media { grid-row: 1 / -1; }
.project-modal:not(.is-wide) .project-cta { align-self: end; }
.project-modal:not(.is-wide) .project-info { margin-top: 14px; }
/* Apaisada: imagen a todo el ancho; servicios y botón en una sola fila debajo */
.project-modal.is-wide .bio-body { grid-template-columns: 1fr auto; grid-template-areas: "title title" "media media" "info cta"; align-items: center; }
.project-modal.is-wide .project-media img { max-height: 72vh; object-fit: contain; }
.project-modal.is-wide .project-info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.project-modal.is-wide .project-info h3 { margin: 0; }
.project-modal.is-wide .ticks { display: flex; flex-wrap: wrap; gap: 8px; }
.project-modal.is-wide .ticks li { padding: 8px 16px 8px 34px; }
.project-modal.is-wide .project-cta { align-self: center; }
/* Ampliar: la imagen a su tamaño real para leer el texto que trae; se desplaza dentro del modal */
.project-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; }
.project-zoom:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.project-zoom svg { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--blue); color: var(--cream); box-shadow: 0 4px 12px rgba(22, 33, 58, .3); transition: background-color .2s; }
.project-zoom:hover svg { background: var(--orange); }
.project-modal.zoomed .bio-body { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "media"; }
.project-modal.zoomed :is(.project-title, .project-info, .project-cta) { display: none; }
.project-modal.zoomed .project-media { overflow: auto; max-height: calc(94vh - 60px); scrollbar-width: thin; scrollbar-color: var(--blue) transparent; }
.project-modal.zoomed .project-zoom { width: max-content; max-width: none; cursor: zoom-out; }
.project-modal.zoomed .project-media img { width: auto; max-width: none; max-height: none; }
.project-modal.zoomed .project-zoom svg { display: none; }
@media (max-width: 760px) {
  .project-modal .bio-body, .project-modal.is-wide .bio-body { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "title" "media" "info" "cta"; }
  .project-modal:not(.is-wide) .project-media { grid-row: auto; }
  .project-media video { max-height: 70vh; width: auto; max-width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .project-zoom svg { transition: none; } }
.bio-modal::backdrop { background: rgba(45, 88, 164, .55); }
.bio-modal[open] { animation: menu-in .22s ease-out; }
.bio-modal h3 { color: var(--blue); font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 48px 10px 0; }
.bio-modal p + p { margin-top: 14px; }
.bio-close { position: sticky; top: 0; float: right; margin: -8px -8px 0 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue); color: var(--cream); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color .2s; }
.bio-close:hover { background: var(--orange); }
@media (prefers-reduced-motion: reduce) { .bio-modal[open] { animation: none; } .member-more::after { transition: none; } }

/* Nosotros: encabezado compacto y equipo a la vista */
.hero.hero-short { min-height: 0; justify-content: flex-start; padding: clamp(176px, 13vw, 190px) 0 clamp(28px, 3vw, 40px); }
.hero-short h1 { font-family: var(--body); font-weight: 500; letter-spacing: -.01em; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.3; max-width: 44ch; }
.hero-short h1 { min-height: 3lh; display: flex; align-items: center; } /* azul compacto y parejo: reserva 3 líneas de h1 y centra el texto (con 4 líneas el bloque crece lo justo) sin tocar el tamaño aprobado */
.hero-wide h1 { max-width: 62ch; } /* Contacto, a pedido del usuario: el título se extiende más a la derecha (las demás páginas conservan 44ch) */
.hero-short .lead { font-size: clamp(1.1rem, 2vw, 1.5rem); }
.hero-short .hero-mark { --w: min(26vw, 300px); top: 50%; }
.section-team { padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(48px, 6vw, 80px); }
@media (max-width: 760px) { .hero.hero-short { padding-top: 140px; } }

/* Footer en columnas */
.site-footer { padding: 44px 0 20px; }
.site-footer .container { text-align: left; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.footer-brand { text-align: left; }
.footer-logo { height: 101px; margin: 0 0 10px -13px; }
.footer-tag { font-size: 1.15rem; }
.footer-col h4 { margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin: 8px 0; overflow-wrap: anywhere; }
.footer-social a, .footer-col .with-icon { display: inline-flex; align-items: center; gap: 12px; }
.footer-social svg, .footer-col .with-icon svg { width: 26px; height: 26px; flex: none; }
.footer-bottom { margin-top: 32px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-mark { width: min(26vw, 280px); right: 2%; bottom: -40%; opacity: .05; }

.footer-logo { --h: 84px; display: block; height: var(--h); width: calc(var(--h) * 1080 / 368); margin: calc(var(--h) * -71 / 368 + 8px) 0 6px calc(var(--h) * -79 / 368); filter: none; background: var(--cream); -webkit-mask: url(../assets/logo/logo-horizontal.svg) center / contain no-repeat; mask: url(../assets/logo/logo-horizontal.svg) center / contain no-repeat; }

/* Títulos de sección de Inicio: mismo estilo que «Conoce quién está detrás de las ideas.» */
.section-head h2, .section-lime h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.section-head p, .section-lime .lead { font-size: clamp(1.2rem, 2.1vw, 1.7rem); line-height: 1.35; max-width: none; }

/* Frase corta bajo el título de sección («No creemos en fórmulas.»): mismo peso y tamaño en todo el sitio */
.kicker, .section-head p.kicker { font-size: clamp(1.2rem, 2.1vw, 1.7rem); line-height: 1.35; font-weight: 700; max-width: none; }

/* Servicios: los paquetes empiezan cerca del encabezado azul */
.section-flush { padding-top: clamp(20px, 3vw, 40px); }
/* Inicio: las secciones del medio (Nosotros, Servicios, Portafolio) con menos aire arriba y abajo, a pedido del usuario */
.section.section-compact { padding: clamp(40px, 6vw, 72px) 0; }


/* Logo: tamaño de siempre; en pantallas anchas se queda fijo y, al salir del bloque azul de arriba, gira a vertical y se pega al borde izquierdo. Clic = subir al tope (layout.js) */
@media (min-width: 1560px) {
  .brand { position: fixed; }
  .brand-logo { transform-origin: 0 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
  .brand-side.brand-end .brand-logo { transition-duration: 1.1s; transition-timing-function: cubic-bezier(.45, .05, .25, 1); } /* sólo el desplazamiento al centro de la ventana es más lento */
  .brand-side .brand-logo { transform: translate(calc(var(--h) * 8 / 368), calc(var(--h) * 1072 / 368)) rotate(-90deg); }
  .brand-side.brand-end .brand-logo { transform: translate(calc(var(--h) * 8 / 368), calc(50vh + var(--h) * 540 / 368 - var(--gap) + var(--h) * 71 / 368)) rotate(-90deg); }
}
@media (prefers-reduced-motion: reduce) { .brand-logo { transition: none; } }

/* Pista de scroll al pie del hero de Inicio: botón naranja (como los demás) con flecha crema, que sube y baja y emite un aro que se expande; clic = baja a la siguiente sección */
.scroll-hint { position: absolute; z-index: 4; left: var(--edge); bottom: 24px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--cream); box-shadow: 0 0 0 3px rgba(245, 244, 240, .9), 0 8px 18px rgba(0, 0, 0, .2); animation: hint-bob 2s ease-in-out infinite; transition: background .25s, color .25s; }
.scroll-hint::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(245, 244, 240, .7); animation: hint-ring 2s ease-out infinite; pointer-events: none; }
.scroll-hint svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.scroll-hint:hover, .scroll-hint:focus-visible { background: var(--lime); color: var(--blue-dark); }
@keyframes hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes hint-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint, .scroll-hint::before { animation: none; } .scroll-hint::before { display: none; } }

/* Servicios en pantallas muy angostas (≤420 px): el icono, la flecha y el título de cada categoría se compactan para que ninguna palabra larga («personalizados») ensanche la página */
@media (max-width: 420px) {
  .service-block summary { gap: 10px; padding: 12px 14px; }
  .service-block summary::before { width: 40px; height: 40px; background-size: 22px; }
  .service-block summary::after { width: 36px; height: 36px; }
  .service-block summary h2 { min-width: 0; font-size: clamp(1.05rem, 5.3vw, 1.4rem); overflow-wrap: anywhere; hyphens: auto; }
}

/* Ventanas bajas (laptop con barras, móvil horizontal): el logo se reduce para no tapar el hero */
@media (min-width: 761px) and (max-height: 560px) { .brand { --h: 118px; } }

/* Móviles muy angostos (≤360 px): logo y botón de menú más chicos para que no se pisen */
@media (max-width: 360px) { .brand { --h: 66px; } .menu-btn { padding: 12px 18px; font-size: 1.25rem; } }

/* Móvil (Inicio de v1): collage más grande, botón del hero sobre la flecha, «Conoce quién está…» en una columna y servicios visibles de una vez */
@media (max-width: 760px) {
  /* el collage ocupa el alto que sobra y se sale un poco por los lados y bajo el logo/menú para que las piezas se vean grandes; en cualquier móvil se ve todo el hero, con el botón y la flecha */
  .hero-collage { flex: 1 1 27svh; min-height: 27svh; width: 102vw; max-width: none; aspect-ratio: auto; align-self: center; margin: -6px 0 42px; z-index: 1; }
  .hero-collage .hc { width: min(52%, 27svh); } /* en pantallas bajas las piezas bajan de tamaño para no pisar el título */
  .hero-collage .hc-4 { bottom: 17%; } /* la pieza de abajo queda dentro del collage y no pisa el título */
  .hero:has(.hero-collage) { padding-top: 80px; padding-bottom: 100px; } /* el botón queda por encima de la flecha de scroll (56 px + 24 px) */
  .hero:has(.hero-collage) .container { margin-top: 6px; }
  /* textos que se ajustan al ancho y al alto de cada móvil (con vw y svh), para que el botón y la flecha siempre entren */
  .hero:has(.hero-collage) h1 { font-size: clamp(1.7rem, min(9vw, 4.8svh), 2.6rem); line-height: 1.02; }
  .hero:has(.hero-collage) .lead { font-size: clamp(.92rem, min(4.3vw, 2.3svh), 1.2rem); line-height: 1.32; margin-top: min(14px, 1.6svh); }
  .hero:has(.hero-collage) .lead + .hero-actions { margin-top: min(26px, 3svh); }
  .hero:has(.hero-collage) .hero-actions .btn { padding-block: 14px; }
  .section-tall .split { grid-template-columns: 1fr; gap: 28px; }
  .section-tall h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .section-tall .photo { aspect-ratio: 16 / 10; order: -1; }
  .section-tall .photo img { object-position: 30% center; }
  .svc-marquee { width: auto; margin-left: 0; -webkit-mask-image: none; mask-image: none; }
  .svc-track { animation: none; width: auto; }
  .svc-group { flex-wrap: wrap; gap: 10px; padding-right: 0; }
  .svc-group[aria-hidden="true"], .svc-track-rev { display: none; }
  .svc-pill { flex: 0 1 auto; max-width: 100%; padding: 8px 18px 8px 8px; gap: 10px; }
  .svc-pill .card-icon { width: 40px; height: 40px; background-size: 22px; }
  .svc-pill h3 { font-size: 1.05rem; line-height: 1.15; white-space: normal; }
}

/* Servicios: al llegar con #categoría (desde las píldoras de Inicio) la tarjeta queda con un poco de aire arriba */
.service-block { scroll-margin-top: 24px; }

/* Modal de proyecto en móvil: una sola columna (la regla de dos columnas de .is-side/.is-tall tenía más especificidad que la móvil y partía el modal) */
@media (max-width: 760px) {
  .project-modal, .project-modal:not(.is-wide) { width: calc(100% - 12px); max-width: calc(100% - 12px); max-height: 96svh; }
  .project-modal .bio-body, .project-modal:not(.is-wide) .bio-body, .project-modal.is-wide .bio-body { max-height: 96svh; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "title" "media" "info" "cta"; gap: 14px; padding: 16px 12px 18px; }
  .project-modal:not(.is-wide) .project-media, .project-modal.is-wide .project-media { grid-row: auto; }
  .project-modal .project-media img { max-height: 74svh; object-fit: contain; }
  .project-modal .project-title { font-size: 1.5rem; }
  .project-modal .project-info, .project-modal:not(.is-wide) .project-info { margin-top: 0; }
  .project-modal .project-cta, .project-modal:not(.is-wide) .project-cta, .project-modal.is-wide .project-cta { justify-self: stretch; align-self: auto; text-align: center; justify-content: center; }
  .project-modal.is-wide .project-info { display: block; }
  .project-modal.is-wide .ticks { display: grid; }
}
