/* ============================================================
   FICHAS DE PROYECTO WEB — complemento liviano de caso-destacado.css
   Solo lo que la ficha tiene distinto (portada corta, navegador,
   "También le hicimos", otros proyectos). Prefijo fx-.
   ============================================================ */

/* Portada ---------------------------------------------------------------- */
.fx-hero {
  position: relative;
  padding: 132px 0 96px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 82% 40%, rgba(var(--c-client), .16), transparent 70%),
    linear-gradient(180deg, #0b0d0f 0%, #0a0a0a 100%);
}
.fx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.fx-hero h1 {
  margin-top: 24px;
  color: #fff;
  font-size: clamp(40px, 4.6vw, 72px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.fx-hero h1 span { display: block; margin-top: .2em; color: rgba(255,255,255,.5); font-size: .58em; line-height: 1.08; letter-spacing: -.035em; }
.fx-hero .cd-lead { max-width: 560px; }
.fx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.fx-actions .btn-wa { margin: 0; }

/* Marco de navegador (mismo lenguaje que la card del hero del home) */
.fx-browser {
  margin: 0;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  overflow: hidden;
  background: #151617;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.85);
}
.fx-browser-bar { display: flex; align-items: center; gap: 7px; padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.fx-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.fx-browser-bar i:nth-child(2) { background: #febc2e; }
.fx-browser-bar i:nth-child(3) { background: #28c840; }
.fx-browser-bar span { margin-left: 14px; color: var(--dim); font-size: 13px; }
.fx-browser .cd-img, .fx-browser .cd-ph { border: 0; border-radius: 0; }
/* Hero: sin zoom (cortaría el logo o el menú de la captura). El navegador entero se eleva y toma el color del cliente */
.fx-browser .cd-img img, .fx-browser .cd-img:hover img { transform: none !important; }
@media (hover: hover) and (min-width: 981px) {
  .fx-browser { transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .4s, box-shadow .5s; }
  .fx-browser:hover { transform: translateY(-6px); border-color: rgba(var(--c-client), .5); box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 24px 70px -30px rgba(var(--c-client), .55); }
}

/* Rótulo sobre la imagen: pastilla oscura translúcida abajo a la izquierda */
.fx-tag { position: absolute; left: 14px; bottom: 14px; z-index: 2; max-width: calc(100% - 28px); padding: 7px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(8,10,10,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: .01em; }
@media (max-width: 600px) { .fx-tag { left: 10px; bottom: 10px; padding: 6px 10px; font-size: 11px; } }

/* Sello «Foto real» (arriba a la derecha) para diferenciar fotos de mockups o IA */
.fx-real { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(8,10,10,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fx-real::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 3px rgba(255,77,77,.22); }

/* Tira de páginas (manual de marca) ------------------------------------ */
.fx-manual { position: relative; overflow: hidden; padding: 46px 0; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(60% 90% at 50% 50%, rgba(var(--c-client), .16), transparent 70%), #0e0f10; }
.fx-manual-track { display: flex; align-items: center; gap: 30px; width: 100%; padding: 0 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fx-manual-track::-webkit-scrollbar { display: none; }
.fx-manual-track img { flex: 0 0 auto; width: auto; height: 340px; border-radius: 4px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.85); scroll-snap-align: center; }
.fx-manual.is-anim .fx-manual-track { width: max-content; overflow: visible; will-change: transform; }
.fx-manual.is-anim { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
@media (max-width: 980px) {
  .fx-manual { padding: 26px 0; }
  .fx-manual-track { gap: 16px; padding: 0 16px; }
  .fx-manual-track img { height: 300px; }
}

/* Placeholders de imagen: proporción por defecto si no se indica */
.fx-ph { min-height: 180px; }

/* Historia y capítulos: sin riel lateral */
.fx-story .cd-story-intro { margin-bottom: 72px; }
.fx-intro { max-width: 640px; margin-top: 18px; }
.fx-ch--text { padding-bottom: 96px; }
.fx-ch--text .cd-ch-head { margin-bottom: 0; }
.fx-also {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 72px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.fx-also::before, .fx-also::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.08); }

/* Dos piezas lado a lado (impresos, vehículo) */
.cd-media--two { grid-template-columns: 1fr 1fr; }

.fx-landing { margin-top: 36px; }
.cd-you .fx-landing { color: #0f1112; border-color: rgba(0,104,94,.45); }
.cd-you .fx-landing:hover { color: #00685E; }
.fx-client-logo { margin: 0; line-height: 0; }
.fx-client-logo img { height: auto; max-width: 100%; }
/* Logo en imagen (sin versión animada): fade al entrar. Solo desktop con movimiento; mobile y "reducir movimiento" lo muestran directo */
.cd-anim .fx-client-logo--fade img { opacity: 0; }
.cd-anim .fx-client-logo--fade.is-in img { opacity: 1; transition: opacity 1.4s ease .1s; }
/* Logo que se dibuja: trazo con el color del cliente */
.fx-logo { min-height: 0; background: radial-gradient(80% 80% at 50% 45%, rgba(var(--c-client), .12), transparent 70%), #0e0f10; }
.fx-logo svg { width: min(86%, 560px); }
.fx-logo .cd-lg-stroke path { stroke: rgb(var(--c-client)); }
.fx-client-name { margin: 0; color: #fff; font-size: clamp(30px, 3vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }

/* Reseña corta: menos aire, la cita no pretende ser protagonista */
.fx-proof--compact { padding: 80px 0; }
.fx-proof--compact .cd-h2 { font-size: clamp(30px, 3.4vw, 46px); }

/* Otros proyectos -------------------------------------------------------- */
.fx-more { padding: 110px 0 120px; border-top: 1px solid rgba(255,255,255,.06); }
.fx-more-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 28px; margin-bottom: 36px; }
.fx-more-h { color: #fff; font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.fx-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
/* Cards: mismo lenguaje que "Proyectos seleccionados" de /diseno-web/ (un solo borde, imagen a sangre) */
.fx-card { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: #191c1c; box-shadow: 0 22px 60px rgba(0,0,0,.24); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.fx-card:hover { transform: translateY(-5px); border-color: rgba(0,202,167,.34); box-shadow: 0 30px 74px rgba(0,0,0,.34); }
.fx-card-img { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #11201e; }
.fx-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,9,9,.02) 42%, rgba(5,9,9,.78)); opacity: .68; transition: opacity .35s ease; }
.fx-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.fx-card:hover .fx-card-img img { transform: scale(1.04); }
.fx-card:hover .fx-card-img::after { opacity: .9; }
.fx-card-go { position: absolute; z-index: 2; right: 16px; bottom: 12px; color: var(--accent); font-size: 18px; font-weight: 800; line-height: 1; opacity: .86; transform: translateY(4px); transition: transform .3s ease, opacity .3s ease; }
.fx-card:hover .fx-card-go { transform: translateY(0); opacity: 1; }
.fx-card-body { padding: 19px 19px 20px; }
.fx-card h3 { margin: 0; color: #fff; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.16; letter-spacing: -.035em; }
/* Card entera clickeable: un solo enlace (en el nombre) estirado */
.fx-card h3 a { color: inherit; }
.fx-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.fx-card p { margin: 6px 0 0; color: rgba(255,255,255,.58); font-size: 12px; }
.fx-card-loc { display: flex; align-items: center; gap: 7px; margin-top: 15px; color: var(--green); font-size: 12px; font-weight: 800; }
.fx-card-loc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,202,167,.10); }
.fx-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; }
.fx-card-tags span { padding: 5px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: rgba(255,255,255,.64); background: rgba(255,255,255,.035); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

/* Tablet / mobile -------------------------------------------------------- */
@media (max-width: 980px) {
  .fx-hero { padding: 112px 0 72px; }
  .fx-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .fx-hero h1 { font-size: clamp(40px, 9vw, 64px); }
  .fx-story .cd-story-intro { margin-bottom: 52px; }
  .fx-also { margin-bottom: 52px; }
  .fx-more { padding: 80px 0 90px; }
  .fx-more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  /* Mockup principal (vertical) más alto: no recortarlo a 16:10 */
  .fx-story .cd-media--split > .cd-img:first-child { aspect-ratio: 8 / 9; }
  .fx-story .cd-media--split > .cd-img:first-child img { object-position: center; }
  /* Logo animado: mismo alto que la imagen de al lado (4:3) */
  .fx-story .cd-media--split > .fx-logo { aspect-ratio: 4 / 3; min-height: 0; grid-row: auto; }
}
/* Tablet: título a la izquierda, primera card a la derecha, las otras dos abajo */
@media (min-width: 601px) and (max-width: 980px) {
  .fx-more .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
  .fx-more-head { flex-direction: column; align-items: flex-start; margin: 0; }
  .fx-more-grid { display: contents; }
}
@media (max-width: 600px) {
  .fx-story .cd-media--row3 { grid-template-columns: 1fr; gap: 14px; }
  .cd-media--two { grid-template-columns: 1fr; }
}

/* Capítulo con imagen al costado (mismo ancho que la columna derecha de un split): todo el texto a la izquierda, imagen a la derecha (media.layout: aside) */
.cd-ch-head--aside { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; row-gap: 20px; margin-bottom: 0; }
.cd-ch-head--aside > .rev:first-child { grid-column: 1; grid-row: 1; align-self: end; }
.cd-ch-head--aside > .cd-ch-side { grid-column: 1; grid-row: 2; align-self: start; max-width: 560px; }
.cd-ch-head--aside > .cd-aside-media { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.cd-aside-media .cd-img { width: 100%; }
@media (max-width: 980px) {
  .cd-ch-head--aside { grid-template-columns: 1fr; }
  .cd-ch-head--aside > .cd-ch-side, .cd-ch-head--aside > .cd-aside-media { grid-column: 1; grid-row: auto; }
  .cd-ch-head--aside > .cd-aside-media { max-width: 520px; margin-top: 12px; }
}
