/* The first panel pairs the headline with a luminous particle sculpture. */
body .site-header {background:#100d18;border-bottom:1px solid #362942}
body .hero {background:radial-gradient(ellipse at 76% 24%,#26143e 0,transparent 43%),#0d0a12;padding-top:clamp(48px,7vw,116px);padding-bottom:clamp(48px,7vw,112px)}
.hero .hero-glow {display:none}
.hero .hero-grid {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(18px,3vw,56px)}
.hero .hero-copy {position:relative;z-index:2}
.hero .accent {color:#c5a3ff;background:linear-gradient(110deg,#d9bfff,#bd97ff 62%,#dfadff);background-clip:text;-webkit-text-fill-color:transparent}
.hero .swarm-art {display:block;width:100%;aspect-ratio:1.14;pointer-events:none}
.hero-grid>.showcase {grid-column:1/-1;width:100%;max-width:none;margin:clamp(40px,6vw,96px) 0 0;border-top:1px solid #493756;padding-top:30px}
.hero-ideas-mode .hero-grid .showcase .scene-container {height:auto!important}
.hero .idea-stage {grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:clamp(20px,4vw,64px)}
.hero .floating-idea,.hero .idea-slot:nth-child(2) .floating-idea {width:100%;margin:0}
.hero .idea-slot:nth-child(2) {padding-top:0}
.hero .idea-photo {height:clamp(170px,20vw,300px)}
.hero .circuit-track {stroke:#8965b4;opacity:.23}
.hero .circuit-signal {stroke:#c69bff;filter:drop-shadow(0 0 4px #a768ef)}
.hero .circuit-node {fill:#271637;stroke:#b389ef}
.brand img {filter:none}
:focus-visible {outline-color:#b78df5}
@media(max-width:800px){
 .hero .hero-grid {grid-template-columns:1fr}
 .hero .swarm-art {width:min(100%,530px);justify-self:center;aspect-ratio:1.85}
 .hero-grid>.showcase {margin-top:14px}
}
@media(max-width:580px){.hero .idea-stage {grid-template-columns:1fr}.hero .idea-photo {height:180px}}

html.assembling-assistant .fd-chat-launcher { visibility:hidden; pointer-events:none }

html.assembling-assistant:not(.services-entering) #soluciones {visibility:hidden}

/* Concept illustrations for the two real-world applications. */
.concept-cases .case-pair {padding-top:clamp(14px,2vw,26px);align-items:start}
.concept-cases .case-caption h3 {font-size:clamp(21px,2vw,29px);line-height:1.12;margin:0 0 9px;letter-spacing:-.035em;color:#f4edff}
.concept-stage {position:relative;isolation:isolate;aspect-ratio:1.85;overflow:hidden;border-radius:12px;background:radial-gradient(ellipse at 40% 80%,#483062,transparent 65%),#181320;perspective:800px}
.concept-plane,.suggestion-pane {position:absolute;background:linear-gradient(135deg,#312841,#211b30);border:1px solid #79618f;border-radius:10px;box-shadow:3px 7px 0 -2px #3b2d4a,4px 8px 0 -2px #766184,0 22px 28px #100a1990}
.concept-plane {width:66%;height:73%;top:12%;left:17%}
.chat-plane {transform:rotateX(12deg) rotateY(17deg) rotateZ(-8deg)}
.concept-bar {height:17%;display:flex;align-items:center;gap:4px;padding-left:6%;border-bottom:1px solid #79638c55}
.concept-bar i {width:4px;aspect-ratio:1;background:#a58fb8;border-radius:50%}
.chat-thread {height:61%;padding:5% 7% 0;display:flex;flex-direction:column;gap:12%;align-items:flex-start}
.query-bubble,.reply-bubble,.suggestion-pane {display:flex;align-items:center;gap:9%}
.query-bubble {align-self:flex-end;width:49%;height:27%;padding:0 7%;border-radius:9px 9px 2px 9px;background:#a481d3}
.concept-stage b {display:block;border-radius:4px;height:3px;background:#b6a5ca}
.query-bubble b {width:100%;background:#ede1fc}
.reply-bubble {width:77%;height:55%;padding:3% 5%;border-radius:9px 9px 9px 2px;background:#49395d}
.agent-light {flex:none;width:13%;aspect-ratio:1;display:block;background:radial-gradient(circle at 38% 35%,#f3dcff,#bd8ae9 35%,#7450a1 70%);border-radius:50%}
.skeleton {flex:1;display:grid;gap:5px}
.skeleton b:nth-child(2){width:77%}.skeleton b:nth-child(3){width:53%}
.compose-line {position:absolute;bottom:7%;left:7%;width:86%;height:14%;border:1px solid #80699388;border-radius:20px;display:flex;justify-content:space-between;align-items:center;padding:0 4%;color:#d6b6f3}
.compose-line i {height:3px;width:26%;border-radius:3px;background:#796989}
.app-stage {background:radial-gradient(ellipse at 68% 34%,#453056,transparent 68%),#171421}
.app-plane {width:68%;left:10%;height:68%;top:17%;transform:rotateX(13deg) rotateY(-19deg) rotateZ(5deg)}
.app-body {display:flex;height:82%}
.app-rail {width:20%;border-right:1px solid #7e658c60;display:grid;align-content:start;justify-content:center;padding-top:6%;gap:6px}
.app-rail i {width:8px;height:8px;border:1px solid #9b81af;border-radius:2px}
.app-rows {flex:1;display:grid;align-content:space-evenly;padding:4% 8%}
.app-rows b {height:10px;border-left:7px solid #a584c7;border-radius:2px;background:linear-gradient(90deg,transparent 6%,#826f95 6% 65%,transparent 65%) center / 100% 3px no-repeat}
.suggestion-pane {left:44%;top:48%;width:44%;height:25%;padding:0 4%;transform:rotate(-4deg);background:linear-gradient(120deg,#514064,#33273f);border-color:#b18ecb}
.accept-mark {width:9%;height:24%;border:solid #d8b3f9;border-width:0 2px 2px 0;transform:rotate(40deg)}
@media(prefers-reduced-motion:no-preference){
 .reply-bubble .skeleton b {transform-origin:left;animation:concept-reply 6s ease-in-out infinite}
 .reply-bubble .skeleton b:nth-child(2){animation-delay:.18s}.reply-bubble .skeleton b:nth-child(3){animation-delay:.34s}
 .suggestion-pane {animation:concept-suggest 7s ease-in-out infinite}
}
@keyframes concept-reply {0%,10%{transform:scaleX(.16);opacity:.4}32%,88%,100%{transform:scaleX(1);opacity:1}}
@keyframes concept-suggest {0%,100%{transform:translate(0,3px) rotate(-4deg)}44%,68%{transform:translate(2px,-5px) rotate(-3deg);border-color:#d4acec}}

.portrait-filters {position:absolute;pointer-events:none}
.commercial-team .commercial-photo {
  filter:url(#portrait-cutout);border:0;border-radius:0;background:transparent;
  mask-image:radial-gradient(ellipse 57% 78% at 50% 24%,#000 69%,rgba(0,0,0,.85) 79%,transparent 100%);
}


#equipo .profile-focus {font-weight:550;color:#d6cbe4}
#equipo .glint-word {position:relative;display:inline-block}
@media (prefers-reduced-motion:no-preference) and (forced-colors:none) {
  #equipo .profile-focus.is-lit .glint-word {animation:word-illumination 1.15s ease-in-out var(--onset)}
  #equipo .profile-focus.is-lit .glint-word::before,#equipo .profile-focus.is-lit .glint-word::after {
    content:"";position:absolute;pointer-events:none;width:3px;height:3px;
    border-radius:50%;opacity:0;background:#fff4ff;box-shadow:0 0 4px #d6a1ff;
    animation:word-spark .65s ease-in-out var(--onset);
  }
  #equipo .profile-focus.is-lit .glint-word::before {left:var(--spark-x);top:.04em}
  #equipo .profile-focus.is-lit .glint-word::after {right:var(--spark-y);bottom:.03em;width:2px;height:2px;animation-delay:calc(var(--onset) + .28s)}
}
@keyframes word-illumination {
  0%,100% {color:inherit;text-shadow:none}
  45% {color:#fff5ff;text-shadow:0 0 4px #e5c1ff99,0 0 10px #bc77ef85}
}
@keyframes word-spark {0%,100% {opacity:0} 42% {opacity:.9}}
/* Technical team portraits */
#equipo .team-grid {gap:clamp(12px,1.5vw,22px)}
#equipo .person-card {
  padding:clamp(18px,1.9vw,28px);border-radius:16px;border-color:#534263;
  background:radial-gradient(ellipse at 0 0,#35273f 0,transparent 62%),#211c2b;
}
#equipo .team-grid .person-heading {
  display:grid;grid-template-columns:clamp(92px,8.6vw,124px) minmax(0,1fr);
  align-items:center;gap:4px;margin-bottom:18px;
}
#equipo .team-grid .person-photo {
  width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border:0;border-radius:0;background:transparent;
  filter:url(#portrait-cutout);
  mask-image:linear-gradient(to bottom,#000 75%,transparent),linear-gradient(to right,#000 82%,transparent);
  mask-composite:intersect;
}
#equipo .person-identity h3 {font-size:clamp(1.22rem,1.85vw,1.7rem);line-height:1.08;letter-spacing:-.035em;text-wrap:balance}
#equipo .person-card>p {margin:0 0 20px;line-height:1.58}
#equipo .person-specialty {
  list-style:none;display:flex;align-items:center;flex-wrap:wrap;gap:6px;
  margin:auto 0 0;padding:14px 0 0;border-top:1px solid #51405d;
}
#equipo .person-specialty li {
  padding:3px 9px;border:1px solid #574368;border-radius:20px;
  font-size:.74rem;line-height:1.45;color:#d7bde9;background:#302637;
}
@media (min-width:761px) and (max-width:980px){
  #equipo .team-grid .person-heading {grid-template-columns:1fr}
  #equipo .team-grid .person-photo {width:98px}
}

#equipo .team-grid .person-photo[src*="/isaac-"] {
  object-position:55% center;filter:url(#portrait-soft-cutout);
  mask-image:linear-gradient(to bottom,transparent,#000 3%,#000 72%,transparent 99%),
             linear-gradient(to right,transparent,#000 9%,#000 92%,transparent);
  mask-composite:intersect;
}

/* Contacto */
#hablemos .contact-inline-grid {
  display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.15fr);
  align-items:center;gap:0;isolation:isolate;
}
#hablemos .contact-intro {
  position:relative;z-index:1;overflow:hidden;border-radius:20px;
  padding:clamp(26px,3.2vw,54px);color:#fff;
  background:radial-gradient(ellipse at 100% 0%,#633294,transparent 64%),#251831;
  box-shadow:0 16px 40px #31183f24;
}
#hablemos .contact-intro::before {
  content:"";position:absolute;pointer-events:none;right:-95px;top:-115px;width:225px;height:240px;
  border:1px solid #e6cbff30;border-radius:50%;transform:rotate(-38deg);
  box-shadow:0 0 0 13px #ba86dc12,0 0 0 29px #ba86dc0d,0 0 0 49px #ba86dc09;
}
#hablemos .contact-intro .eyebrow,#hablemos .contact-intro .accent-dark {color:#dbb5ff}
#hablemos .contact-intro h2 {color:#fff;font-size:clamp(2rem,3.25vw,3.5rem);line-height:1.05;text-wrap:balance}
#hablemos .contact-intro>p:not(.eyebrow),#hablemos .contact-people p,#hablemos .contact-phone small {color:#e2d6eb}
#hablemos .contact-phone {color:white}
#hablemos .contact-phone>svg {color:#eedfff;background:#ffffff15}
#hablemos .contact-phone:hover strong {color:#e3c3ff}
#hablemos .contact-people {align-items:center;border-color:#ffffff30}
#hablemos .contact-panel {
  margin-left:-22px;padding:clamp(30px,3.8vw,62px);padding-left:clamp(54px,5vw,82px);
  border:1px solid #e4dce8;border-radius:24px;background:white;box-shadow:0 18px 60px #3825430c;
}
#hablemos .contact-panel h3 {font-size:clamp(1.85rem,2.8vw,2.8rem);line-height:1.08;letter-spacing:-.045em;margin-bottom:26px}
#brief-form input,#brief-form textarea {
  background:transparent;color:#281d31;border:0;border-bottom:1px solid #bfb3c8;
  border-radius:0;padding:7px 2px;box-shadow:none;
}
#brief-form textarea {min-height:90px;resize:vertical}
#brief-form :is(input,textarea):focus-visible {outline:2px solid #8649b5;outline-offset:3px;border-radius:3px}
#brief-form .button {display:flex;width:fit-content;max-width:100%;margin-inline:auto;border-radius:50px;background:#592983;color:white;padding-inline:24px}
@media (max-width:780px) {
  #hablemos .contact-inline-grid {grid-template-columns:minmax(0,1fr)}
  #hablemos .contact-intro {border-radius:18px 18px 0 0;box-shadow:none}
  #hablemos .contact-panel {margin:0;padding:26px clamp(20px,5vw,38px);border-radius:0 0 18px 18px}
}
