/* 
   =================================================
   REFRESH PREMIUM & INMERSIVO - CASA GARCÍA
   =================================================
*/

:root {
  --pr-black: #050505; /* Negro profundo */
  --pr-card-bg: #111111; /* Gris súper oscuro para bento */
  --pr-card-border: rgba(255, 255, 255, 0.05);
  --pr-white: #ffffff;
  --pr-muted: #888888;
  --pr-accent: #2CB1BC; /* El cyan de Casa García */
  --pr-accent-gradient: linear-gradient(135deg, #2CB1BC 0%, #177B84 100%);
  --pr-hero-glow: radial-gradient(circle at 50% 0%, rgba(44, 177, 188, 0.15) 0%, rgba(5, 5, 5, 0) 70%);
}

body {
  background-color: var(--pr-black);
  color: var(--pr-white);
  font-family: 'Satoshi', sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

.pr-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .pr-container {
    padding: 0 24px;
  }
}

/* ── NAV PILL (Estilo Cápsula) ── */
.pr-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  max-width: 1200px;
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--pr-card-border);
  border-radius: 100px;
  padding: 12px 24px 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}
.pr-nav-logo img {
  height: 100%;
  max-height: 48px;
  object-fit: contain;
}
.pr-nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pr-nav-links a {
  color: var(--pr-white);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s;
}
.pr-nav-links a:hover {
  color: var(--pr-accent);
}

/* ── BOTONES PREMIUM ── */
.pr-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 100px; /* Pill shape */
  padding: 16px 36px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.pr-btn-primary {
  background: var(--pr-white);
  color: var(--pr-black);
}
.pr-btn-primary:hover {
  background: #e0e0e0;
  transform: scale(1.02);
}
.pr-btn-nav {
  background: var(--pr-white);
  color: var(--pr-black);
  padding: 12px 24px;
  font-size: 13px;
}

/* ── TYPOGRAPHY MONUMENTAL ── */
.pr-h1 {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(60px, 9vw, 120px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 24px 0;
}
.pr-h1 span {
  display: block;
  background: var(--pr-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pr-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--pr-muted);
  margin-bottom: 24px;
  display: block;
}
.pr-p-large {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  color: var(--pr-muted);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ── 1. HERO INMERSIVO ── */
.pr-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  overflow: hidden;
}

/* Ajuste para laptops o pantallas con poca altura vertical */
@media (max-height: 850px) {
  .pr-hero {
    padding-top: 120px;
  }
}

@media (max-height: 700px) {
  .pr-hero {
    padding-top: 140px;
  }
}

/* Fondo inmersivo con una imagen suave y fade a negro */
.pr-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/HEro%20WEB-100.jpg');
  background-size: cover;
  background-position: center 20%;
  filter: brightness(0.6) grayscale(20%);
  z-index: -2;
}

/* El degradado de abajo hacia arriba para fundir con el fondo negro */
.pr-hero-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5,5,5,0) 0%, rgba(5,5,5,0.4) 50%, var(--pr-black) 100%);
  z-index: -1;
}

.pr-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

/* ── 2. BENTO CARDS (SERVICIOS) ── */
.pr-section {
  padding: 120px 0;
}
.pr-section-header {
  margin-bottom: 64px;
  max-width: 700px;
}
.pr-h2 {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 24px 0;
}

.pr-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.pr-card {
  background: var(--pr-card-bg);
  border: 1px solid var(--pr-card-border);
  border-radius: 32px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.pr-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.pr-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  transition: opacity 0.4s ease;
  filter: grayscale(100%);
}
.pr-card:hover .pr-card-img {
  opacity: 0.3;
}

.pr-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pr-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  color: var(--pr-white);
}

.pr-card-title {
  font-family: 'Satoshi', sans-serif;
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 16px 0;
}
.pr-card-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--pr-muted);
  margin: 0;
}

/* Configuraciones de grid Bento */
.pr-col-12 { grid-column: span 12; }
.pr-col-8 { grid-column: span 8; }
.pr-col-6 { grid-column: span 6; }
.pr-col-4 { grid-column: span 4; }

@media (max-width: 992px) {
  .pr-col-8, .pr-col-6, .pr-col-4 {
    grid-column: span 12;
  }
}

/* ── 3. CASOS DESTACADOS ── */
.pr-showcase {
  background: var(--pr-card-bg);
  border-radius: 40px;
  padding: 80px;
  display: flex;
  align-items: center;
  gap: 80px;
  border: 1px solid var(--pr-card-border);
}
.pr-showcase-text {
  flex: 1;
}
.pr-showcase-visual {
  flex: 1.2;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.pr-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 992px) {
  .pr-showcase {
    flex-direction: column;
    padding: 40px;
    gap: 40px;
  }
}

/* ── 4. METODOLOGÍA C3 ── */
.pr-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pr-feature-block {
  padding-top: 32px;
  border-top: 1px solid var(--pr-card-border);
}
.pr-feature-num {
  font-family: 'Satoshi', sans-serif;
  font-size: 20px;
  color: var(--pr-accent);
  margin-bottom: 16px;
  font-weight: 500;
}
.pr-feature-title {
  font-family: 'Satoshi', sans-serif;
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 16px 0;
}
.pr-feature-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--pr-muted);
}
@media (max-width: 992px) {
  .pr-features {
    grid-template-columns: 1fr;
  }
}

/* ── PREMIUM FOOTER OVERRIDES ── */
footer {
  background-color: var(--pr-black) !important;
  border-top: 1px solid var(--pr-card-border) !important;
  padding: 80px 0 40px !important;
  color: var(--pr-muted) !important;
}

.footer-cols-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 64px;
}
@media (max-width: 992px) {
  .footer-cols-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .footer-cols-container { grid-template-columns: 1fr; }
}

.footer-col-title {
  font-family: 'Satoshi', sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--pr-white) !important;
  margin-bottom: 24px !important;
}

.footer-col-list li a, .footer-podcast-link {
  font-family: 'Poppins', sans-serif !important;
  color: var(--pr-muted) !important;
  text-decoration: none !important;
  transition: color 0.3s !important;
}

.footer-col-list li a:hover, .footer-podcast-link:hover {
  color: var(--pr-white) !important;
}

.footer-bottom {
  border-top: 1px solid var(--pr-card-border) !important;
  padding-top: 32px !important;
  display: flex;
  justify-content: space-between;
  font-family: 'Poppins', sans-serif;
  font-size: 13px !important;
  color: var(--pr-muted) !important;
}
@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ── CORRECCIÓN ANCLAS DEL NAV PARA SUBPÁGINAS ── */
.pr-nav-links a[href*="#"] {
  /* No cambiar, pero asegurarse que apunten al index si estamos fuera de él */
}

/* 
   =================================================
   GLOBAL OVERRIDES PARA PÁGINAS INTERNAS
   Forza el modo oscuro premium en todo el sitio
   =================================================
*/

/* 1. TIPOGRAFÍA GLOBAL */
h1:not([class^="pr-"]), 
h2:not([class^="pr-"]), 
h3:not([class^="pr-"]), 
h4:not([class^="pr-"]), 
h5:not([class^="pr-"]), 
h6:not([class^="pr-"]) {
  font-family: 'Satoshi', sans-serif !important;
  color: var(--pr-white) !important;
  letter-spacing: -0.02em !important;
}

/* Evitamos sobreescribir colores de botones o nav */
p:not([class^="pr-"]):not(.btn-cta):not(.btn):not(.btn-secondary):not(.btn-primary), 
li:not([class^="pr-"]):not(.pr-nav-links li),
.page-content p, .article-content p, .pq-bullet span {
  font-family: 'Poppins', sans-serif !important;
  color: var(--pr-muted) !important;
  line-height: 1.6 !important;
}

/* 2. FONDOS DE CONTENEDORES Y SECCIONES ANTIGUAS */
.page, .page-header, .page-content, .internal-hero, .about-grid, .article-body, .cta-s, .blog-grid, .servicios-list, .portfolio-grid {
  background-color: var(--pr-black) !important;
  background: var(--pr-black) !important;
  color: var(--pr-white) !important;
  border: none !important;
}

/* Eliminar bordes o sombras brutalistas en los contenedores antiguos */
.container, .container-narrow, .wrapper, .paraquien-split {
  background: transparent !important;
}

/* 3. BOTONES ANTIGUOS AL ESTILO CÁPSULA (PILL) */
.btn, .btn-primary, .btn-secondary, .btn-cta, .btn-outline {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  border-radius: 100px !important; /* Píldora */
  padding: 16px 36px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  border: none !important;
  background: var(--pr-white) !important;
  color: var(--pr-black) !important;
}

.btn-secondary, .btn-outline {
  background: rgba(255,255,255,0.1) !important;
  color: var(--pr-white) !important;
}
.btn-secondary:hover, .btn-outline:hover {
  background: rgba(255,255,255,0.2) !important;
}

.btn:hover, .btn-primary:hover, .btn-cta:hover {
  background: #e0e0e0 !important;
  transform: scale(1.02) !important;
}

/* 4. TARJETAS Y CAJAS ANTIGUAS AL ESTILO BENTO */
.card, .servicio-card, .portfolio-card, .blog-card, .pq-item, .manifesto-item {
  background: var(--pr-card-bg) !important;
  border: 1px solid var(--pr-card-border) !important;
  border-radius: 32px !important;
  box-shadow: none !important;
  transition: transform 0.4s ease, border-color 0.4s ease !important;
}
.card:hover, .servicio-card:hover, .portfolio-card:hover, .blog-card:hover {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Títulos y textos dentro de las tarjetas antiguas */
.card h3, .servicio-card h3, .portfolio-card h3, .blog-card h3, .pq-item h3 {
  color: var(--pr-white) !important;
}
.card p, .servicio-card p, .portfolio-card p, .blog-card p {
  color: var(--pr-muted) !important;
}

/* Ajustes de color para elementos destacados de marca */
.highlight, .highlight-link, .internal-hero-eyebrow, .kicker, .tag {
  color: var(--pr-accent) !important;
}

/* Eliminar fondos amarillos u otros colores en tags */
.tag, .category-tag {
  background: rgba(44, 177, 188, 0.1) !important;
  border: 1px solid rgba(44, 177, 188, 0.3) !important;
  color: var(--pr-accent) !important;
  border-radius: 100px !important;
}

/* ── CURSOR FIX ── */
body, html {
  cursor: auto !important;
}
a, button, .pr-btn {
  cursor: pointer !important;
}
#cur, #cur-r {
  display: none !important;
}

/* ── DISABLE REVEAL ANIMATIONS (AI-LIKE APPEAR) ── */
.rev, .rev.d1, .rev.d2, .rev.d3, .fadeUp, .fadeInDown {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* ── EXACT PR-CARD FIDELITY FOR OLD CARDS ── */
.card, .servicio-card, .portfolio-card, .blog-card, .pq-item, .manifesto-item {
  padding: 40px !important;
  border-radius: 24px !important; /* Mismo radius que pr-card */
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.servicio-card:hover, .portfolio-card:hover, .blog-card:hover {
  transform: none !important; /* Evitar que salten o se eleven */
  background: #151515 !important;
}

/* ── MOBILE NAV: HAMBURGER & DROPDOWN ── */
.pr-hamburger { display: none; }
.pr-mobile-cta { display: none; }

@media (max-width: 992px) {
  .pr-nav {
    padding: 12px 24px;
    width: calc(100% - 32px);
  }
  .pr-desktop-cta {
    display: none !important;
  }
  .pr-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .pr-hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--pr-white);
    transition: 0.3s ease;
    border-radius: 2px;
  }
  
  /* Animación Hamburger a X */
  .pr-nav.menu-open .pr-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .pr-nav.menu-open .pr-hamburger span:nth-child(2) {
    opacity: 0;
  }
  .pr-nav.menu-open .pr-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Menú desplegable */
  .pr-nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--pr-card-border);
    border-radius: 24px;
    flex-direction: column;
    padding: 32px;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }
  
  .pr-nav.menu-open .pr-nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .pr-mobile-cta {
    display: block;
    width: 100%;
    margin-top: 8px;
  }
  .pr-mobile-cta .pr-btn {
    width: 100%;
    box-sizing: border-box;
  }
}
