/* =========================================================
   PROFESSIONALWEB · CASO DE ÉXITO JUAN HURTADO
   Estilos exclusivos de /proyectos/juanhurtado/
   No modifica el CSS general de la web.
   ========================================================= */

.pr-page {
  --pr-bg: #0f172a;
  --pr-panel: #162238;
  --pr-panel-soft: #1b2a42;
  --pr-text: #f4f7fb;
  --pr-muted: #aab8ca;
  --pr-blue: #38bdf8;
  --pr-line: rgba(148, 163, 184, .2);
  color: var(--pr-text);
  background: var(--pr-bg);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  overflow: clip;
}

.pr-page *,
.pr-page *::before,
.pr-page *::after {
  box-sizing: border-box;
}

.pr-page a {
  text-decoration: none;
}

.pr-nav {
  width: min(1180px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}

.pr-brand {
  display: inline-flex;
  align-items: center;
}

.pr-brand img {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 58px;
  object-fit: contain;
}

.pr-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.pr-nav-links a {
  color: #dbe7f4;
  font-size: .92rem;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.pr-nav-links a:hover {
  color: var(--pr-blue);
}

.pr-nav-links .pr-nav-cta {
  border: 1px solid rgba(56, 189, 248, .7);
  border-radius: 999px;
  padding: 11px 19px;
  color: var(--pr-blue);
}

.pr-nav-links .pr-nav-cta:hover {
  color: #071321;
  background: var(--pr-blue);
}

.pr-hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 610px;
  margin: 0 auto;
  padding: 72px 0 90px;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 64px;
}

.pr-eyebrow,
.pr-section-label {
  color: var(--pr-blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.5;
}

.pr-hero h1 {
  max-width: 680px;
  margin: 22px 0 22px;
  color: #fff;
  font-size: clamp(2.55rem, 5vw, 4.45rem);
  line-height: 1.07;
  letter-spacing: -.045em;
  font-weight: 700;
}

.pr-lead {
  max-width: 590px;
  margin: 0;
  color: #bdcadd;
  font-size: 1.12rem;
  line-height: 1.8;
}

.pr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.pr-button {
  min-height: 48px;
  padding: 0 21px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: .9rem;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.pr-button:hover {
  transform: translateY(-2px);
}

.pr-button-primary {
  color: #071321;
  background: var(--pr-blue);
  border: 1px solid var(--pr-blue);
}

.pr-button-primary:hover {
  background: #7dd3fc;
  border-color: #7dd3fc;
}

.pr-button-quiet {
  color: #dbe7f4;
  border: 1px solid var(--pr-line);
  background: transparent;
}

.pr-button-quiet:hover {
  border-color: var(--pr-blue);
  color: var(--pr-blue);
}

.pr-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 620px;
  margin-top: 54px;
  padding-top: 23px;
  border-top: 1px solid var(--pr-line);
}

.pr-facts div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pr-facts strong {
  color: #f3f7fc;
  font-size: .83rem;
}

.pr-facts span {
  color: var(--pr-muted);
  font-size: .77rem;
  line-height: 1.5;
}

.pr-hero-visual {
  position: relative;
}

.pr-image-frame {
  position: relative;
  height: 420px;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #1b2a42;
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 28px 80px rgba(0,0,0,.3);
}

.pr-image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(15,23,42,.04), rgba(15,23,42,.3));
}

.pr-image-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

.pr-image-note {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 13px 18px;
  background: #162238;
  border: 1px solid var(--pr-line);
  color: #dce8f5;
  font-size: .78rem;
  letter-spacing: .06em;
}

.pr-section,
.pr-feature-section,
.pr-quote,
.pr-cta {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.pr-intro {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 60px;
  padding-top: 100px;
  padding-bottom: 105px;
  border-top: 1px solid var(--pr-line);
}

.pr-intro-content {
  max-width: 760px;
}

.pr-intro h2,
.pr-feature-heading h2,
.pr-tech h2,
.pr-cta h2 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.pr-intro p,
.pr-tech-content p {
  color: #b9c7d9;
  font-size: 1rem;
  line-height: 1.9;
  margin: 0 0 16px;
}

.pr-feature-section {
  padding: 82px 0 100px;
}

.pr-feature-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.pr-feature-heading .pr-section-label {
  display: block;
  margin-bottom: 18px;
}

.pr-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--pr-line);
  border-left: 1px solid var(--pr-line);
}

.pr-feature {
  min-height: 235px;
  padding: 30px 28px;
  border-right: 1px solid var(--pr-line);
  border-bottom: 1px solid var(--pr-line);
  background: rgba(255,255,255,.015);
}

.pr-feature-number {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--pr-blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.pr-feature h3 {
  margin: 0 0 12px;
  color: #f4f7fb;
  font-size: 1.12rem;
}

.pr-feature p {
  margin: 0;
  color: var(--pr-muted);
  font-size: .91rem;
  line-height: 1.75;
}

.pr-tech {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-top: 90px;
  padding-bottom: 95px;
  border-top: 1px solid var(--pr-line);
}

.pr-tech .pr-section-label {
  display: block;
  margin-bottom: 18px;
}

.pr-tech-content {
  padding-top: 34px;
}

.pr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.pr-tags span {
  padding: 9px 13px;
  border: 1px solid rgba(56,189,248,.35);
  border-radius: 3px;
  color: #bfeaff;
  background: rgba(56,189,248,.07);
  font-size: .78rem;
  letter-spacing: .03em;
}

.pr-quote {
  padding: 65px 8%;
  margin-top: 5px;
  margin-bottom: 100px;
  text-align: center;
  background: linear-gradient(135deg, #17263d, #111d31);
  border: 1px solid var(--pr-line);
  border-radius: 8px;
}

.pr-quote p {
  max-width: 820px;
  margin: 0 auto 22px;
  color: #f4f8fc;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.4;
  letter-spacing: -.02em;
}

.pr-quote span {
  color: var(--pr-blue);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.pr-cta {
  padding: 75px 30px 85px;
  margin-bottom: 80px;
  text-align: center;
  border-top: 1px solid var(--pr-line);
  border-bottom: 1px solid var(--pr-line);
}

.pr-cta .pr-section-label {
  margin-bottom: 20px;
}

.pr-cta h2 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.pr-cta p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--pr-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.pr-cta .pr-hero-actions {
  justify-content: center;
}

.pr-footer {
  padding: 40px 24px 35px;
  text-align: center;
  border-top: 1px solid var(--pr-line);
  background: #0b1220;
}

.pr-footer-brand {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.pr-footer-brand span {
  color: var(--pr-blue);
}

.pr-footer p {
  margin: 10px 0 20px;
  color: var(--pr-muted);
  font-size: .83rem;
}

.pr-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 22px;
}

.pr-footer-links a {
  color: #aebdd0;
  font-size: .78rem;
}

.pr-footer-links a:hover {
  color: var(--pr-blue);
}

.pr-footer small {
  color: #718198;
  font-size: .72rem;
}

/* Ajustes para que la página no herede el encabezado de pantalla completa
   definido en la hoja global. */
body[data-page-home="false"] .pr-page header {
  height: auto;
  min-height: 0;
}

/* Tablet */
@media (max-width: 900px) {
  .pr-hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 55px;
  }

  .pr-hero-copy {
    max-width: 760px;
  }

  .pr-hero-visual {
    width: min(720px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .pr-image-frame,
  .pr-image-frame img {
    height: 380px;
    min-height: 0;
  }

  .pr-intro {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .pr-tech {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .pr-tech-content {
    padding-top: 0;
  }
}

/* Móvil */
@media (max-width: 600px) {
  .pr-nav {
    width: calc(100% - 32px);
    min-height: 75px;
  }

  .pr-brand img {
    max-width: 145px;
    max-height: 48px;
  }

  .pr-nav-links {
    gap: 13px;
  }

  .pr-nav-links a {
    font-size: .78rem;
  }

  .pr-nav-links .pr-nav-cta {
    padding: 9px 13px;
  }

  .pr-hero,
  .pr-section,
  .pr-feature-section,
  .pr-quote,
  .pr-cta {
    width: calc(100% - 32px);
  }

  .pr-hero {
    min-height: 0;
    padding: 52px 0 65px;
    gap: 35px;
  }

  .pr-hero h1 {
    margin-top: 17px;
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .pr-lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .pr-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pr-button {
    width: 100%;
  }

  .pr-facts {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 35px;
  }

  .pr-image-frame,
  .pr-image-frame img {
    height: 270px;
    min-height: 0;
  }

  .pr-hero-visual {
    padding-left: 12px;
  }

  .pr-hero-visual::before {
    right: -7px;
  }

  .pr-image-note {
    font-size: .68rem;
    padding: 10px 12px;
  }

  .pr-intro {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .pr-intro h2,
  .pr-feature-heading h2,
  .pr-tech h2,
  .pr-cta h2 {
    font-size: 2rem;
  }

  .pr-feature-section {
    padding: 60px 0 65px;
  }

  .pr-feature-grid {
    grid-template-columns: 1fr;
  }

  .pr-feature {
    min-height: 0;
    padding: 25px 22px;
  }

  .pr-feature-number {
    margin-bottom: 17px;
  }

  .pr-tech {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .pr-quote {
    padding: 42px 22px;
    margin-bottom: 65px;
  }

  .pr-quote p {
    font-size: 1.45rem;
  }

  .pr-cta {
    padding: 58px 12px 65px;
    margin-bottom: 55px;
  }

  .pr-footer-links {
    gap: 14px;
  }
}

/* Accesibilidad: respeta la preferencia del sistema. */
@media (prefers-reduced-motion: reduce) {
  .pr-page *,
  .pr-page *::before,
  .pr-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Evita que el acceso flotante a preferencias de cookies se solape con ZOE. */
#cookie-preferences-toggle {
  right: 30px !important;
  bottom: 12px !important;
}

@media (max-width: 768px) {
  #cookie-preferences-toggle {
    left: auto !important;
    right: 16px !important;
    bottom: 12px !important;
  }
}

body.zoe-open #cookie-preferences-toggle {
  display: none !important;
}

/* =========================================
   AJUSTES DEFINITIVOS · ROMANDRE
   ========================================= */

/* CABECERA FIJA */
.pr-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: 100px;
    padding: 0 max(24px, calc((100% - 1180px) / 2));
    background: #0f172a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

/* LOGO: MISMO TAMAÑO QUE LA CABECERA DEL RESTO DE LA WEB */
.pr-brand img {
    display: block;
    width: 76px;
    height: 76px;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

/* MARCO DE LA FOTOGRAFÍA */
.pr-image-frame {
    width: 100%;
    height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 58px;
}

/* Mantener toda la captura del proyecto dentro del primer marco */
.pr-image-frame img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    margin: 0;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.pr-hero-visual::before {
    content: none;
}

.pr-image-note {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

/* TABLET */
@media (max-width: 900px) {
    .pr-image-frame {
        height: 320px !important;
    }
}

/* MÓVIL */
@media (max-width: 600px) {
    .pr-brand img {
        width: 76px;
        height: 76px;
    }

    .pr-image-frame {
        height: 240px;
        padding: 12px 12px 52px;
    }

    .pr-image-frame img {
        inset: 12px;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
    }
}