/* gonzalodev.es · estilos del portfolio */
  @property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
  @keyframes borde { to { --ang: 360deg; } }
  @keyframes deriva { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(50px, -40px); } }
  @keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(43,214,123,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(43,214,123,0); } }
  :root {
    --fondo: #06100e; --fondo2: #0a1714; --tinta: #0E2A25; --verde: #2BD67B; --menta: #9ff5d2; --espuma: #F0F5F2;
    --texto: #eaf3ef; --suave: rgba(234,243,239,.68); --tenue: rgba(234,243,239,.44); --linea: rgba(234,243,239,.09);
    --ease: cubic-bezier(.22,1,.36,1); --radio: 26px;
    --titulo: "Bricolage Grotesque", Inter, system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  html, body { overflow-x: clip; }
  body { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--fondo); color: var(--texto); line-height: 1.6; -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }
  ::selection { background: var(--verde); color: var(--tinta); }
  .cont { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
  .cont > * { min-width: 0; }
  .etiqueta { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--verde); }

  .luces { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
  .luces span { position: absolute; border-radius: 50%; filter: blur(120px); animation: deriva 22s ease-in-out infinite; }
  .luces span:nth-child(1) { width: 620px; height: 620px; left: -200px; top: -220px; background: rgba(43,214,123,.18); }
  .luces span:nth-child(2) { width: 560px; height: 560px; right: -260px; top: 40%; background: rgba(72,200,255,.09); animation-delay: -8s; }
  .rejilla { position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: linear-gradient(var(--linea) 1px, transparent 1px), linear-gradient(90deg, var(--linea) 1px, transparent 1px);
    background-size: 72px 72px; -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%); opacity: .5; }
  main, nav, footer { position: relative; z-index: 1; }

  /* barra */
  nav { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); transition: background .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
  nav.solida { background: rgba(6,16,14,.8); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--linea); }
  nav .cont { display: flex; align-items: center; gap: 22px; height: 68px; }
  .logo { display: flex; align-items: center; gap: 10px; }
  .logo svg { width: 36px; height: 36px; flex: none; border-radius: 9px; box-shadow: 0 0 0 1px rgba(240,245,242,.14); }
  .logo span { font-family: var(--titulo); font-weight: 800; font-size: 22px; letter-spacing: -.04em; }
  .logo b { color: var(--verde); }
  nav .enlaces { margin-left: auto; display: flex; gap: 26px; font-size: 15px; color: var(--suave); }
  nav .enlaces a:hover { color: var(--texto); }
  .boton { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer;
    transition: transform .3s var(--ease), background .3s, box-shadow .3s; -webkit-tap-highlight-color: transparent; }
  .boton:hover { transform: translateY(-2px); }
  .boton:active { transform: scale(.97); }
  .boton.verde { background: var(--verde); color: var(--tinta); box-shadow: 0 12px 34px -10px rgba(43,214,123,.6); }
  .boton.cristal { background: rgba(234,243,239,.06); border: 1px solid rgba(234,243,239,.16); color: var(--texto); }
  .boton.cristal:hover { background: rgba(234,243,239,.11); }
  .boton.chico { min-height: 40px; padding: 9px 18px; font-size: 14px; }
  .boton .flecha { transition: transform .3s var(--ease); }
  .boton:hover .flecha { transform: translateX(4px); }
  @media (max-width: 760px) { nav .enlaces { display: none; } nav .cont > .boton { margin-left: auto; } }

  /* portada */
  .portada { padding: 80px 0 70px; }
  .portada .cont { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
  .portada h1 { font-family: var(--titulo); font-weight: 800; font-size: clamp(42px, 6.4vw, 82px); line-height: .98; letter-spacing: -.05em; margin: 18px 0 22px; }
  .portada h1 em { font-style: normal; color: var(--verde); }
  .portada p { font-size: 19px; color: var(--suave); max-width: 600px; margin: 0 0 32px; }
  .portada .botones { display: flex; flex-wrap: wrap; gap: 12px; }
  .estado { border-radius: var(--radio); background: linear-gradient(160deg, rgba(14,42,37,.75), rgba(10,23,20,.85)); border: 1px solid var(--linea); padding: 26px; box-shadow: 0 40px 100px -50px rgba(0,0,0,.9); }
  .estado .cab { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--tenue); margin-bottom: 18px; }
  .fila-estado { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; background: rgba(234,243,239,.04); border: 1px solid var(--linea); margin-top: 12px; transition: border-color .3s, background .3s; }
  .fila-estado:hover { border-color: rgba(43,214,123,.4); background: rgba(43,214,123,.06); }
  .fila-estado .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: none; background: rgba(43,214,123,.14); }
  .fila-estado b { display: block; font-size: 16px; }
  .fila-estado small { color: var(--tenue); font-size: 13.5px; }
  .vivo { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--verde); white-space: nowrap; }
  .vivo i { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); animation: pulso 2s infinite; }
  .cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
  .cifras div { padding: 14px; border-radius: 16px; background: rgba(234,243,239,.03); border: 1px solid var(--linea); }
  .cifras b { display: block; font-family: var(--titulo); font-weight: 800; font-size: 24px; letter-spacing: -.03em; }
  .cifras span { font-size: 12.5px; color: var(--tenue); line-height: 1.35; display: block; }

  /* proyectos */
  section { padding: 90px 0; }
  .titulo-sec { max-width: 720px; margin-bottom: 50px; }
  .titulo-sec h2 { font-family: var(--titulo); font-weight: 800; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -.045em; margin: 12px 0 14px; }
  .titulo-sec p { color: var(--suave); font-size: 17px; margin: 0; }
  .caso { display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: center; padding: 56px 0; border-top: 1px solid var(--linea); }
  .caso.inverso { grid-template-columns: auto 1fr; }
  .caso.inverso .medio { order: -1; }
  .caso .num { font-family: var(--mono); font-size: 14px; color: var(--tenue); letter-spacing: .14em; }
  .caso h3 { font-family: var(--titulo); font-weight: 800; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; line-height: 1.05; margin: 10px 0 12px; }
  .caso .lema { font-size: 19px; color: var(--texto); margin: 0 0 14px; }
  .caso .contexto { color: var(--suave); margin: 0 0 26px; font-size: 16px; }
  .lista { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
  .lista li { display: flex; gap: 10px; font-size: 15px; color: var(--suave); }
  .lista li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(43,214,123,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%232BD67B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
  .nota { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: rgba(234,243,239,.035); border: 1px solid var(--linea); color: var(--suave); font-size: 14.5px; margin-bottom: 26px; }
  .nota strong { color: var(--texto); }
  .caso .botones { display: flex; flex-wrap: wrap; gap: 10px; }
  .caso .aviso { margin-top: 12px; font-size: 13.5px; color: var(--tenue); }
  .caso .aviso a { color: var(--menta); border-bottom: 1px dashed rgba(159,245,210,.5); }
  .medio { position: relative; justify-self: center; }
  .marco { position: relative; padding: 2px; border-radius: 36px; background: conic-gradient(from var(--ang), var(--verde), rgba(72,200,255,.7), transparent 40%, var(--menta), var(--verde)); animation: borde 8s linear infinite; box-shadow: 0 50px 120px -50px rgba(43,214,123,.5); }
  .marco video { display: block; width: 300px; max-width: 74vw; aspect-ratio: 9 / 16; height: auto; object-fit: cover; border-radius: 34px; background: #050d0b; cursor: pointer; }
  .marco .sonido { position: absolute; left: 14px; bottom: 14px; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(5,13,11,.62); color: #fff; font: 600 13px Inter, sans-serif; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .medio .pie { margin-top: 14px; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--tenue); }

  /* réplica del panel (mismo aspecto que el panel real) */
  .panel-movil { width: 340px; max-width: 82vw; height: 640px; border-radius: 40px; padding: 10px; background: linear-gradient(160deg,#2a2e33,#0b0c0e 40%,#1d2024); box-shadow: 0 50px 120px -50px rgba(43,214,123,.45), inset 0 0 0 2px rgba(255,255,255,.08); }
  .pm { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: #f0f2f5; color: #111b21; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; display: flex; flex-direction: column; }
  .pm header { background: #075e54; color: #fff; padding: 34px 14px 10px; }
  .pm header .t { display: flex; align-items: center; gap: 8px; }
  .pm header h4 { margin: 0; font-size: 16px; flex: 1; font-weight: 700; }
  .pm header small { font-size: 11px; opacity: .8; }
  .pm .volver { background: none; border: 0; color: #fff; font-size: 20px; padding: 0 4px 0 0; cursor: pointer; }
  .pm .pest { display: flex; gap: 4px; margin-top: 9px; overflow-x: auto; scrollbar-width: none; }
  .pm .pest button { background: rgba(255,255,255,.13); color: #fff; border: 0; border-radius: 14px; padding: 6px 11px; font-size: 12.5px; white-space: nowrap; cursor: pointer; font-family: inherit; }
  .pm .pest button.on { background: #fff; color: #075e54; font-weight: 600; }
  .pm .vista { flex: 1; overflow-y: auto; padding: 8px 9px 16px; scrollbar-width: none; }
  .pm .vista::-webkit-scrollbar, .pm .pest::-webkit-scrollbar { display: none; }
  .pm .tj { background: #fff; border-radius: 11px; padding: 10px 11px; margin-bottom: 7px; box-shadow: 0 1px 1px rgba(0,0,0,.06); animation: entra .4s var(--ease) both; }
  @keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .pm .conv { display: flex; gap: 10px; align-items: center; cursor: pointer; }
  .pm .conv:hover { background: #f7f8f8; }
  .pm .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 11.5px; flex: none; }
  .pm .wa { background: #25d366; } .pm .web { background: #53bdeb; } .pm .tel { background: #8b7bff; }
  .pm .inf { flex: 1; min-width: 0; }
  .pm .arr { display: flex; justify-content: space-between; gap: 6px; font-size: 14px; }
  .pm .arr span { font-size: 11px; color: #667781; white-space: nowrap; }
  .pm .ult { font-size: 12.5px; color: #667781; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
  .pm .chip { font-size: 10.5px; background: #e7f7ee; color: #0a7a43; border-radius: 9px; padding: 1px 7px; margin-left: 5px; font-weight: 500; }
  .pm .dato { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
  .pm .dato span { color: #667781; font-size: 11.5px; white-space: nowrap; }
  .pm .det { font-size: 12.5px; color: #3b4a54; margin-top: 3px; line-height: 1.4; }
  .pm .chat { display: flex; flex-direction: column; gap: 5px; }
  .pm .msg { max-width: 86%; padding: 6px 9px; border-radius: 9px; font-size: 13.5px; line-height: 1.38; box-shadow: 0 1px .5px rgba(0,0,0,.1); animation: entra .35s var(--ease) both; }
  .pm .msg.cli { align-self: flex-end; background: #d9fdd3; }
  .pm .msg.bot { align-self: flex-start; background: #fff; }
  .pm .herr { align-self: flex-start; font-size: 11px; color: #0a7a43; background: #e7f7ee; border-radius: 7px; padding: 2px 8px; animation: entra .35s var(--ease) both; }
  .pm .nota { align-self: center; font-size: 11px; color: #54656f; background: #ffeecd; border-radius: 7px; padding: 3px 9px; text-align: center; }
  .pm [hidden] { display: none !important; }
  .pm .marca-demo { position: absolute; right: 10px; bottom: 10px; font-size: 10px; font-family: var(--mono); letter-spacing: .08em; color: #54656f; background: rgba(255,255,255,.9); border-radius: 6px; padding: 3px 7px; pointer-events: none; }
  .medio .pista { margin-top: 12px; text-align: center; font-size: 13px; color: var(--tenue); }

  /* vídeos */
  .videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .video { display: block; border-radius: 22px; overflow: hidden; background: rgba(234,243,239,.03); border: 1px solid var(--linea); transition: transform .45s var(--ease), border-color .3s; }
  .video:hover { transform: translateY(-6px); border-color: rgba(43,214,123,.4); }
  .video .mini { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
  .video img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .8s var(--ease); }
  .video:hover img { transform: scale(1.05); }
  .video .play { position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding-left: 3px; background: var(--verde); color: var(--tinta); font-size: 17px; }
  .video .info { padding: 16px 18px 18px; }
  .video b { font-family: var(--titulo); font-weight: 700; font-size: 18px; letter-spacing: -.02em; display: block; }
  .video small { color: var(--tenue); }

  /* contacto */
  .contacto-caja { position: relative; overflow: hidden; border-radius: 34px; padding: 64px 40px; text-align: center; background: linear-gradient(150deg, rgba(14,42,37,.95), rgba(8,22,19,.95)); border: 1px solid rgba(43,214,123,.25); }
  .contacto-caja::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 50% 0%, rgba(43,214,123,.22), transparent 55%); }
  .contacto-caja > * { position: relative; }
  .contacto-caja h2 { font-family: var(--titulo); font-weight: 800; font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.045em; line-height: 1.04; margin: 12px 0 14px; }
  .contacto-caja p { color: var(--suave); max-width: 560px; margin: 0 auto 28px; font-size: 17px; }
  .contacto-caja .botones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

  footer { border-top: 1px solid var(--linea); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); color: var(--tenue); font-size: 14px; }
  footer .cont { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; }
  footer nav { all: unset; display: flex; flex-wrap: wrap; gap: 18px; }
  footer a:hover { color: var(--texto); }

  /* aparición */
  .aparece { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  .aparece.visto { opacity: 1; transform: none; }

  @media (max-width: 900px) {
    .portada { padding: 40px 0 50px; }
    .portada .cont { grid-template-columns: 1fr; gap: 40px; }
    .caso, .caso.inverso { grid-template-columns: 1fr; gap: 40px; padding: 46px 0; }
    .caso.inverso .medio { order: 0; }
    .caso .medio { order: -1; }
    .videos { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 600px) {
    section { padding: 64px 0; }
    .lista { grid-template-columns: 1fr; }
    .portada .botones .boton, .caso .botones .boton { flex: 1 1 auto; }
    .videos { grid-template-columns: 1fr; }
    .video .mini { aspect-ratio: 16 / 11; }
    .contacto-caja { padding: 48px 22px; border-radius: 28px; }
    .cifras b { font-size: 20px; }
    .fila-estado { display: grid; grid-template-columns: 50px 1fr; column-gap: 14px; row-gap: 8px; }
    .fila-estado .vivo { grid-column: 2; margin-left: 0; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .aparece { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* páginas legales */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 22px 90px; }
.legal h1 { font-family: var(--titulo); font-weight: 800; font-size: clamp(36px, 5vw, 56px); letter-spacing: -.045em; line-height: 1.04; margin: 14px 0 10px; }
.legal .actualizado { color: var(--tenue); font-size: 14px; margin: 0 0 34px; }
.legal h2 { font-family: var(--titulo); font-weight: 700; font-size: 24px; letter-spacing: -.02em; margin: 38px 0 10px; }
.legal p, .legal li { color: var(--suave); font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--menta); border-bottom: 1px solid rgba(159,245,210,.35); }
.legal strong { color: var(--texto); }
.legal .ficha { border-radius: 20px; border: 1px solid var(--linea); background: rgba(234,243,239,.035); padding: 6px 22px; margin: 16px 0; }
.legal .ficha div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.legal .ficha div:last-child { border-bottom: 0; }
.legal .ficha span { min-width: 190px; color: var(--tenue); font-size: 14.5px; }
.legal .ficha b { color: var(--texto); font-weight: 600; font-size: 15.5px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linea); color: var(--suave); vertical-align: top; }
.legal th { color: var(--texto); font-weight: 600; }
.legal .resumen { border-radius: 20px; border: 1px solid rgba(43,214,123,.3); background: rgba(43,214,123,.07); padding: 18px 22px; margin: 0 0 10px; color: var(--texto); }
.sin-cookies { display: inline-flex; align-items: center; gap: 8px; }
.sin-cookies i { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); }
@media (max-width: 600px) { .legal { padding: 34px 20px 70px; } .legal .ficha span { min-width: 0; width: 100%; } .legal table { font-size: 13.5px; } }

/* sectores */
.sectores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sector { border-radius: 22px; border: 1px solid var(--linea); background: rgba(234,243,239,.035); padding: 22px; transition: border-color .3s, transform .4s var(--ease); }
.sector:hover { border-color: rgba(43,214,123,.4); transform: translateY(-4px); }
.sector .emo { font-size: 30px; }
.sector h3 { font-family: var(--titulo); font-weight: 700; font-size: 20px; letter-spacing: -.02em; margin: 10px 0 6px; }
.sector p { margin: 0; color: var(--suave); font-size: 15px; }
/* preguntas frecuentes (details/summary: sin JS) */
.preguntas { display: grid; gap: 10px; max-width: 860px; }
.pregunta { border-radius: 18px; border: 1px solid var(--linea); background: rgba(234,243,239,.035); padding: 0 22px; }
.pregunta[open] { border-color: rgba(43,214,123,.35); }
.pregunta summary { list-style: none; cursor: pointer; padding: 18px 30px 18px 0; position: relative; font-weight: 600; font-size: 17px; }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--verde); transition: transform .3s var(--ease); }
.pregunta[open] summary::after { transform: rotate(45deg); }
.pregunta p { margin: 0 0 18px; color: var(--suave); font-size: 15.5px; }
@media (max-width: 900px) { .sectores { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sectores { grid-template-columns: 1fr; } }
