/* infhos.es — Asociación de Empresarios INFHOS · hoja de estilos única (sin frameworks) */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-grotesque-opsz.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #191a23;
  --bg-2: #1f2029;
  --bg-3: #262734;
  --foot: #13141b;
  --ink: #f3f2f8;
  --muted: #c4c2d4;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .24);
  --pink: #ff5cad;
  --magenta: #e6007e;
  --magenta-solid: #c8006c;
  --orange: #f39200;
  --yellow: #ffc20e;
  --violet: #6b4cff;
  --cyan: #3fd0ff;
  --grad: linear-gradient(90deg, #e6007e, #f39200 55%, #ffc20e);
  --radius: 14px;
  --wrap: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #fff; }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.08; margin: 0; font-weight: 720; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1rem; }
strong { font-weight: 680; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--yellow); color: #191a23; padding: .6rem 1rem; border-radius: 8px; font-weight: 700; z-index: 10; }
.skip:focus { top: 1rem; }

/* ---------- Cabecera ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand svg { width: 38px; height: 42px; flex: none; }
.brand b { display: block; font-size: 1.32rem; font-weight: 800; letter-spacing: -.01em; line-height: 1; }
.brand small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.25; margin-top: .2rem; }
.nav-main ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-main a { color: var(--ink); text-decoration: none; font-weight: 560; font-size: 1rem; padding: .35rem 0; }
.nav-main a:hover { color: var(--pink); }
.nav-main a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--yellow); }
.nav-main .btn { padding: .65rem 1.15rem; }
.nav-main .btn[aria-current="page"] { box-shadow: none; outline: 2px solid var(--yellow); outline-offset: 2px; }
.menu { display: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .8rem 1.35rem; border-radius: 999px;
  font: inherit; font-weight: 680; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .18s ease, border-color .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--magenta-solid); color: #fff; }
.btn-primary:hover { background: #a3005a; color: #fff; }
.btn-ghost { border-color: var(--line-2); color: #fff; background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ---------- Portada: hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(760px 460px at 82% 18%, rgba(230, 0, 126, .26), transparent 70%),
    radial-gradient(680px 420px at 0% 100%, rgba(107, 76, 255, .24), transparent 70%),
    var(--bg);
}
.trails { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .2) 50%, #000 74%);
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .2) 50%, #000 74%); }
.trails .t { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.55, .08, .2, 1) forwards; }
.trails .t2 { animation-delay: .18s; }
.trails .t3 { animation-delay: .34s; }
.trails .t4 { animation-delay: .9s; animation-duration: 1.6s; }
.trails .glow { filter: blur(7px); opacity: .7; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.display { font-size: clamp(2.6rem, 6.4vw, 5.1rem); line-height: .98; letter-spacing: -.032em; font-weight: 780; max-width: 13ch; margin-bottom: 1.6rem; }
.lead { font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.55; color: var(--muted); max-width: 54ch; }
.hero .lead strong { color: #fff; font-weight: 640; }
.hero-tel { margin: 1.4rem 0 0; color: var(--muted); font-size: 1rem; }
.hero-tel a { color: #fff; font-weight: 680; font-variant-numeric: tabular-nums; }
.seal { width: min(300px, 100%); justify-self: center; opacity: 0; animation: seal-in 1s ease 1.35s forwards; }
@keyframes seal-in { to { opacity: 1; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); max-width: 62ch; }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); margin-bottom: .9rem; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.more { margin-top: 2rem; font-weight: 640; }

.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { max-width: 68ch; }
.prose p, .prose li { color: #e3e1ec; }
.answer { font-size: 1.2rem; line-height: 1.55; color: #fff !important; }

/* Ficha de la entidad */
.panel { position: relative; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.2rem; overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.panel-title { font-weight: 720; font-size: 1.15rem; margin: 0 0 .9rem; }
.kv { display: grid; grid-template-columns: auto 1fr; margin: 0; font-size: .98rem; }
.kv dt, .kv dd { padding: .62rem 0; border-top: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--muted); padding-right: 1.1rem; }
.kv dd { font-weight: 600; overflow-wrap: anywhere; }
.kv a { color: #fff; }
.panel .btn { width: 100%; margin-top: 1.2rem; }
.panel .note { color: var(--muted); font-size: .92rem; margin: .9rem 0 0; }

/* Hosteleros y proveedores */
.sides { display: grid; grid-template-columns: minmax(0, 1fr) 6px minmax(0, 1fr); gap: clamp(1.5rem, 4.5vw, 3.5rem); align-items: stretch; }
.seam { background: linear-gradient(180deg, #e6007e, #f39200 55%, #ffc20e); border-radius: 3px; }
.side h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 1.2rem; max-width: 22ch; }
.check { list-style: none; margin: 0; padding: 0; }
.check li { position: relative; padding: .55rem 0 .55rem 2rem; border-top: 1px solid var(--line); }
.check li:first-child { border-top: 0; }
.check li::before {
  content: ""; position: absolute; left: 0; top: .95rem; width: 1.15rem; height: 1.15rem;
  background: var(--yellow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5l4.6 4.6L19.5 6.7' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%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'%3E%3Cpath d='M4.5 12.5l4.6 4.6L19.5 6.7' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Servicios */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); margin: 0; padding: 0; list-style: none; }
.service { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1.1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.service svg { width: 30px; height: 30px; color: var(--pink); margin-top: .15rem; }
.service h3 { font-size: 1.2rem; margin-bottom: .45rem; letter-spacing: -.01em; }
.service p { margin: 0; color: var(--muted); }

/* Proyectos */
.projects { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.2rem; }
.project { display: flex; flex-direction: column; gap: .55rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); color: inherit; text-decoration: none; transition: border-color .18s ease; }
.project:hover { border-color: var(--line-2); color: inherit; }
.project h3 { font-size: 1.35rem; }
.project p { margin: 0; color: var(--muted); }
.project .domain { color: var(--pink); font-weight: 640; font-size: .98rem; }
.project .go { margin-top: auto; padding-top: .8rem; font-weight: 680; color: #fff; }
.project.feature {
  grid-row: span 2; padding: clamp(1.8rem, 3.5vw, 2.6rem); justify-content: flex-end; min-height: 22rem;
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(230, 0, 126, .38), transparent 70%),
    radial-gradient(420px 300px at 0% 100%, rgba(243, 146, 0, .18), transparent 70%),
    var(--bg-3);
}
.project.feature h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.project.feature p { font-size: 1.1rem; max-width: 40ch; color: #e3e1ec; }
.project .tag { align-self: flex-start; font-size: .85rem; font-weight: 640; color: #191a23; background: var(--yellow); border-radius: 999px; padding: .2rem .7rem; margin-bottom: auto; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.4rem); list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.steps li { counter-increment: paso; border-top: 1px solid var(--line-2); padding-top: 1.1rem; }
.steps li::before {
  content: counter(paso); display: block; font-size: 3.2rem; font-weight: 800; line-height: 1; margin-bottom: .8rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content;
}
.steps h3 { font-size: 1.22rem; margin-bottom: .45rem; }
.steps p { margin: 0; color: var(--muted); }

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 1.15rem 3rem 1.15rem 0; font-weight: 660; font-size: 1.12rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid var(--pink); border-bottom: 2px solid var(--pink); transform: rotate(45deg); transition: transform .2s ease; }
.faq[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:hover { color: var(--pink); }
.faq .a { padding: 0 0 1.3rem; color: var(--muted); max-width: 72ch; }
.faq .a p:last-child { margin: 0; }

/* Banda de contacto */
.cta-band {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background:
    radial-gradient(600px 300px at 90% 50%, rgba(230, 0, 126, .25), transparent 70%),
    radial-gradient(500px 280px at 5% 50%, rgba(107, 76, 255, .2), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-band .inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .6rem; }
.cta-band p { color: var(--muted); margin: 0; }
.cta-band .actions { margin-top: 0; justify-content: flex-end; }

/* ---------- Páginas interiores ---------- */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(2.2rem, 5vw, 3.8rem) 0 clamp(2.2rem, 5vw, 3.4rem);
  background:
    radial-gradient(640px 360px at 92% 0%, rgba(230, 0, 126, .24), transparent 70%),
    radial-gradient(520px 320px at 0% 100%, rgba(107, 76, 255, .2), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); line-height: 1.02; letter-spacing: -.028em; font-weight: 770; max-width: 22ch; margin-bottom: 1.1rem; }
.page-head .lead { margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.4rem; padding: 0; font-size: .92rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: rgba(255, 255, 255, .35); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }

.doc { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(2rem, 6vw, 4.5rem); padding: clamp(2.5rem, 5vw, 3.8rem) 0 clamp(3.5rem, 6vw, 5rem); align-items: start; }
.doc aside { position: sticky; top: 1.5rem; display: grid; gap: 1.2rem; }
.doc .prose h2 { font-size: clamp(1.5rem, 2.7vw, 2rem); margin: 2.8rem 0 1rem; scroll-margin-top: 1.5rem; }
.doc .prose h2:first-child { margin-top: 0; }
.doc .prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose .check { padding-left: 0; }
.prose .steps { margin: 1.2rem 0 1.6rem; padding-left: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .services { grid-template-columns: 1fr; }

.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; min-width: 34rem; }
caption { text-align: left; padding: .9rem 1rem; color: var(--muted); font-size: .92rem; caption-side: bottom; border-top: 1px solid var(--line); }
th, td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--bg-3); font-weight: 680; }
tbody th { font-weight: 640; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.2rem 0 2.2rem; }
.contact-grid a { display: flex; flex-direction: column; gap: .2rem; padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); text-decoration: none; color: #fff; transition: border-color .18s ease; }
.contact-grid a:hover { border-color: var(--pink); }
.contact-grid span { color: var(--muted); font-size: .92rem; }
.contact-grid strong { font-size: 1.12rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.map { margin: 1rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-3); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-facade { height: 100%; display: grid; place-content: center; justify-items: center; gap: .9rem; text-align: center; padding: 1.5rem;
  background: radial-gradient(420px 260px at 50% 40%, rgba(230, 0, 126, .18), transparent 70%), var(--bg-3); }
.map-facade p { color: var(--muted); margin: 0; max-width: 42ch; font-size: .95rem; }

.legal .prose h2 { font-size: 1.4rem; }
.legal .prose p, .legal .prose li { font-size: 1rem; }

/* ---------- Pie ---------- */
.site-foot { background: var(--foot); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4rem) 0 2rem; font-size: .97rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-foot h2 { font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: .8rem; color: #fff; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .45rem; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot address { font-style: normal; color: var(--muted); line-height: 1.7; }
.site-foot address a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); }
.foot-brand { margin-bottom: 1rem; }
.social-icons { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; gap: .5rem; }
.social-icons li { margin: 0; }
.social-icons a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); color: #fff; background: rgba(255, 255, 255, .04); transition: background-color .18s ease, border-color .18s ease; }
.social-icons a:hover { background: var(--magenta-solid); border-color: var(--magenta-solid); text-decoration: none; }
.social-icons svg { width: 19px; height: 19px; }
.foot-bottom { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; color: var(--muted); font-size: .9rem; }
.foot-bottom p { margin: 0; }
.grad-rule { height: 4px; background: var(--grad); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-main { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .55rem 1rem; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 640; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary svg { width: 20px; height: 20px; }
  .menu nav { position: absolute; right: 0; top: calc(100% + .6rem); width: min(19rem, calc(100vw - 2rem)); background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--radius); padding: .6rem; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
  .menu nav a { display: block; padding: .8rem .9rem; color: #fff; text-decoration: none; border-radius: 10px; font-weight: 600; }
  .menu nav a:hover, .menu nav a[aria-current="page"] { background: rgba(255, 255, 255, .07); }
  .menu nav .btn { margin-top: .4rem; width: 100%; display: flex; justify-content: center; }
  .menu nav .btn, .menu nav .btn[aria-current="page"] { background: var(--magenta-solid); outline: 0; }
  .menu nav .btn:hover { background: #a3005a; }
  .hero-grid, .split, .doc { grid-template-columns: 1fr; }
  .seal { width: 136px; justify-self: start; order: -1; }
  .trails { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 22%, rgba(0, 0, 0, .14) 38%); mask-image: linear-gradient(180deg, #000 0%, #000 22%, rgba(0, 0, 0, .14) 38%); }
  .doc aside { position: static; }
  .projects { grid-template-columns: 1fr; }
  .project.feature { grid-row: auto; min-height: 17rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .inner { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .sides { grid-template-columns: 1fr; }
  .seam { height: 6px; }
  .services, .steps, .prose .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .trails .t { stroke-dashoffset: 0; }
  .seal { opacity: 1; }
}
@media print {
  .site-head, .site-foot, .cta-band, .trails, .menu, aside { display: none !important; }
  body { background: #fff; color: #000; }
}
