/* Páginas internas (layout "site"): se apoya en home/styles.css para tokens, nav, botones y footer. */

.page-hero {
  position: relative; overflow: hidden; border-radius: 20px; color: var(--white);
  background: radial-gradient(circle at 80% 20%, #2a2a78, transparent 55%), var(--launch-bay);
}
.page-hero .nav { animation: none; }
.page-hero-copy { position: relative; z-index: 1; padding: 150px 0 72px; max-width: 1140px; }
.page-hero h1 { margin-top: 14px; max-width: 820px; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.1; font-weight: 700; }
.page-lead { margin-top: 18px; max-width: 680px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--lead-on-dark); }
.page-back a { color: var(--signal-blue); font-size: 15px; transition: color .2s ease; }
.page-back + .eyebrow { margin-top: 18px; }
.page-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; font-size: 15px; color: var(--signal-blue); }

.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.lang a { padding: 4px 2px; transition: color .2s ease; }
.lang a[aria-current] { color: var(--white); font-weight: 500; }

/* Listado */
.projects-page { padding: 56px 0 90px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-tile { display: flex; flex-direction: column; padding: 16px; }
.project-tile .browser-lined { height: 190px; }
.project-cover {
  height: 190px; display: grid; place-items: center; border-radius: 10px;
  background: radial-gradient(circle at 70% 30%, #2a2a78, transparent 65%), var(--launch-bay);
}
.project-cover span { font-size: 72px; font-weight: 700; line-height: 1; color: var(--signal-orange); }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 18px 6px 4px; }
.project-body .tag { font-size: 14px; color: var(--graphite); }
.project-body h2 { margin-top: 6px; font-size: 24px; line-height: 1.25; }
.project-body h2 a { transition: color .2s ease; }
.project-body > p:not(.tag) { margin-top: 10px; line-height: 1.55; color: var(--graphite); }
.project-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.project-actions .btn-coral svg, .btn-line svg { width: 18px; height: 18px; }
.btn-line {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 6px; font-weight: 500;
  border: 1px solid var(--edge-navy); color: var(--edge-navy); transition: background-color .2s ease, color .2s ease;
}
.no-projects { font-size: 18px; color: var(--graphite); }

/* Me gusta */
.like-button {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9999px;
  border: 1px solid var(--mist-divider); background: var(--white); color: var(--edge-navy); font-weight: 500;
  transition: border-color .2s ease, transform .15s ease;
}
.like-button span[data-project-like-target="heart"] { font-size: 18px; line-height: 1; }
.like-button:active { transform: scale(.95); }
.like-button.liked { border-color: #ff4757; }

/* Detalle: las herramientas traen sus propios estilos; aquí se integran al diseño nuevo */
.project-page { padding: 40px 0 90px; }
.tool-card { padding: clamp(20px, 4vw, 48px); }
.tool-card h3 { font-size: 26px; line-height: 1.3; margin-bottom: 12px; }
.tool-card p { line-height: 1.6; }
.tool-card .form-group label { display: block; margin-bottom: 6px; font-weight: 500; }
.tool-card input:not([type="file"]):not([type="checkbox"]):not([type="radio"]), .tool-card select, .tool-card textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--mist-divider); border-radius: 6px; background: var(--white); color: var(--edge-navy);
}
.tool-card input:focus-visible, .tool-card select:focus-visible, .tool-card textarea:focus-visible { outline: 2px solid var(--signal-orange); outline-offset: 1px; }
.tool-card .button {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 6px; font-weight: 500; cursor: pointer;
  border: 0; color: var(--white); background: linear-gradient(90deg, var(--coral-start), var(--coral-end));
}

@media (hover: hover) {
  .page-back a:hover { color: var(--white); }
  .project-body h2 a:hover { color: var(--ink-orange); }
  .btn-line:hover { background: var(--edge-navy); color: var(--white); }
  .like-button:hover { border-color: var(--edge-navy); }
}
@media (max-width: 1040px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero-copy { padding-top: 130px; }
}
@media (max-width: 720px) {
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .page-hero-copy { padding: 100px 0 44px; }
  .projects-page { padding: 28px 0 56px; }
  .project-page { padding: 20px 0 56px; }
}
