/*
Theme Name: RYJ Corporate Pro v3
Theme URI: https://ryjserviciosperu.com/
Author: Redes R & J Servicios Generales S.A.C.
Description: Tema corporativo ligero B2B para telecomunicaciones, energía y obras civiles. Optimizado para velocidad y cotizaciones.
Version: 4.3.0
License: GNU General Public License v2 or later
Text Domain: ryj-corporate-v3
*/

:root{
  --bg: #0b1220;
  --surface: #0f1a2e;
  --text: #0f172a;
  --muted: #475569;
  --brand: #0ea5e9; /* Azul */
  --accent: #f97316; /* Naranja */
  --line: #e2e8f0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(2,6,23,.10);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:#f8fafc;
  line-height:1.5;
}

a{color:inherit}
.container{
  width:min(1100px, 92%);
  margin-inline:auto;
}
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(248,250,252,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.brand-badge{
  width:40px;height:40px;
  border-radius:12px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: var(--shadow);
}

.brand-logo{
  width:40px;height:40px;
  border-radius:12px;
  box-shadow: var(--shadow);
  object-fit:cover;
  display:block;
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-text strong{font-size:14px; letter-spacing:.2px}
.brand-text span{font-size:12px; color:var(--muted)}

.nav{
  display:flex;
  align-items:center;
  gap:16px;
}
.nav a{
  text-decoration:none;
  color:#0f172a;
  font-weight:600;
  font-size:14px;
  padding:8px 10px;
  border-radius:12px;
}
.nav a:hover{background:#eaf2ff}
.header-cta{
  display:flex;
  align-items:center;
  gap:10px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:white;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  box-shadow: 0 1px 0 rgba(2,6,23,.04);
}
.btn.primary{
  background: linear-gradient(135deg, var(--brand), #38bdf8);
  color:white;
  border-color: transparent;
}
.btn.primary:hover{filter:brightness(.98)}
.btn.whatsapp{
  background:#25D366;
  color:white;
  border-color: transparent;
}
.btn.small{padding:8px 12px; border-radius:12px; font-size:13px}

.menu-toggle{
  display:none;
  border:1px solid var(--line);
  background:white;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
}

.hero{
  padding:44px 0 22px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:stretch;
}
.hero-card{
  background: white;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:26px;
  overflow:hidden;
}
.kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#ecfeff;
  border:1px solid #cffafe;
  color:#155e75;
  font-weight:800;
  font-size:12px;
}
.hero h1{
  margin:12px 0 10px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height:1.08;
}
.hero p{
  margin:0 0 18px;
  color:#334155;
  font-size:16px;
}
.pills{
  display:flex; flex-wrap:wrap; gap:10px; margin-top:14px;
}
.pill{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#f8fafc;
  font-weight:700;
  font-size:13px;
  color:#0f172a;
}

.hero-media{
  background: linear-gradient(180deg, #0b1220, #0f1a2e);
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  position:relative;
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.9;
  display:block;
}
.hero-media .overlay{
  position:absolute; inset:0;
  background: radial-gradient(900px 300px at 20% 0%, rgba(14,165,233,.45), transparent),
              radial-gradient(700px 260px at 70% 20%, rgba(249,115,22,.35), transparent),
              linear-gradient(180deg, rgba(2,6,23,.35), rgba(2,6,23,.70));
}
.hero-media .mini{
  position:absolute;
  inset:auto 14px 14px 14px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding:14px;
  color:white;
}
.mini strong{display:block; font-size:13px}
.mini span{display:block; font-size:12px; opacity:.9; margin-top:4px}

.section{padding:28px 0}
.section h2{margin:0 0 14px; font-size:24px}
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  background:white;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.card h3{margin:0 0 8px; font-size:16px}
.card p{margin:0; color:#334155; font-size:14px}
.card ul{margin:10px 0 0; padding-left:18px; color:#334155; font-size:14px}
.card li{margin:6px 0}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  font-weight:800;
  font-size:12px;
}
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.footer{
  margin-top:34px;
  padding:26px 0;
  background:#0b1220;
  color:#e2e8f0;
}
.footer a{color:#e2e8f0; text-decoration:none}
.footer a:hover{text-decoration:underline}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr .6fr;
  gap:16px;
}
.footer small{color:#cbd5e1}
.footer .links{display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end}
.footer .links a{padding:6px 10px; border:1px solid rgba(226,232,240,.18); border-radius:12px}

.wp-block{
  max-width: 1100px;
}
.entry-content{
  padding: 12px 0 30px;
}
.entry-content h2{margin-top:26px}
.notice{
  background:#ecfeff;
  border:1px solid #cffafe;
  border-radius: 16px;
  padding:14px;
}

@media (max-width: 920px){
  .hero-grid{grid-template-columns: 1fr; }
  .grid3{grid-template-columns: 1fr}
  .split{grid-template-columns: 1fr}
  .footer-grid{grid-template-columns: 1fr}
  .footer .links{justify-content:flex-start}
  .nav{display:none}
  .menu-toggle{display:inline-flex}
  .nav.is-open{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    position:absolute;
    top:64px;
    right:4%;
    left:4%;
    background:white;
    border:1px solid var(--line);
    border-radius: 16px;
    padding:10px;
    box-shadow: var(--shadow);
  }
}


/* === TOP upgrades: clients strip + projects gallery + lightbox === */
.clients-strip{
  margin-top:18px;
  padding:14px 16px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.7);
  border-radius:16px;
}
.clients-title{
  font-weight:800;
  letter-spacing:.02em;
  margin-bottom:10px;
}
.clients-logos{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
}
.clientcard{
  padding:10px 14px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(15,23,42,.02);
  border-radius:14px;
}
.clientmark{
  height:58px;
  width:auto;
  opacity:.45;
  filter:grayscale(100%) contrast(1.05);
}
.clientcard:hover .clientmark{
  opacity:.55;
}
.clients-note{
  margin-top:8px;
  font-size:12px;
  opacity:.7;
}

.page-hero{
  padding:48px 0 18px;
  background:linear-gradient(180deg, rgba(14,165,233,.08), rgba(255,255,255,0));
}
.page-hero h1{ margin:0 0 10px; font-size:40px; line-height:1.06; }
.page-hero p{ margin:0; max-width:70ch; opacity:.85; }

.projects-section{ padding:22px 0 56px; }
.projects-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
@media (max-width: 960px){
  .projects-grid{ grid-template-columns:1fr; }
  .page-hero h1{ font-size:34px; }
}
.project-card{
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 12px 40px rgba(2,6,23,.06);
}
.project-media{ display:block; }
.project-media img{
  display:block;
  width:100%;
  height:260px;
  object-fit:cover;
  cursor: zoom-in;
}
.project-body{ padding:14px 14px 16px; }
.tags{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.tags span{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:rgba(14,165,233,.10);
  border:1px solid rgba(14,165,233,.16);
}
.project-body h3{ margin:0 0 8px; font-size:18px; }
.project-body p{ margin:0; opacity:.82; }

.projects-note{
  margin-top:18px;
  padding:14px 16px;
  border-radius:16px;
  border:1px dashed rgba(15,23,42,.18);
  background:rgba(2,6,23,.02);
}

.ryj-lightbox{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(2,6,23,.72);
  z-index:9999;
}
.ryj-lightbox.is-open{ display:flex; }
.ryj-lightbox-img{
  max-width:min(1100px, 96vw);
  max-height:88vh;
  border-radius:18px;
  box-shadow:0 20px 80px rgba(0,0,0,.35);
  background:#fff;
}
.ryj-lightbox-close{
  position:absolute;
  top:14px;
  right:14px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.ryj-noscroll{ overflow:hidden; }


/* Projects improvements */
.project-card--wide{ grid-column:1 / -1; }
@media (min-width: 980px){
  .project-card--wide{ display:grid; grid-template-columns: 1.25fr .75fr; align-items:stretch; }
  .project-card--wide .project-body{ padding:18px 18px 18px 18px; }
  .project-card--wide .project-media img{ height:340px; }
}
@media (max-width: 979px){
  .project-card--wide .project-media img{ height:300px; }
}

.project-results{
  margin-top:22px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.10);
  background:linear-gradient(180deg, rgba(14,165,233,.10), rgba(2,6,23,.02));
}

.results-head h2{ margin:0 0 6px 0; font-size:22px; }
.results-head p{ margin:0 0 14px 0; color:rgba(15,23,42,.80); }

.results-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
@media (max-width: 980px){
  .results-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.metric-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  padding:12px 12px;
  box-shadow:0 10px 30px rgba(2,6,23,.06);
}
.metric-kpi{
  font-size:26px;
  font-weight:800;
  letter-spacing:-.02em;
}
.metric-label{
  margin-top:2px;
  font-size:12px;
  color:rgba(15,23,42,.78);
  line-height:1.25;
}

.project-media--contain img{
  height:auto !important;
  object-fit:contain !important;
  background:#fff;
  padding:10px;
}

.results-table{ margin-top:14px; }
.results-footnote{
  margin-top:8px;
  font-size:12px;
  color:rgba(15,23,42,.70);
}


/* ===== Proyectos: “burbujas” (v3.4) ===== */
.ryj-projects-intro{
  margin: 14px 0 18px;
  color: rgba(11,18,32,.72);
  font-size: 15px;
}
.ryj-bubbles{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:flex-start;
  justify-content:flex-start;
  margin: 14px 0 8px;
}
.ryj-bubble{
  width: 140px;
  text-align:center;
}
.ryj-bubble__img{
  width: 140px;
  height: 140px;
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 14px 30px rgba(2,6,23,.10);
  background: rgba(2,6,23,.03);
  display:flex;
  align-items:center;
  justify-content:center;
}
.ryj-bubble__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
.ryj-bubble__tag{
  display:inline-block;
  margin-top:10px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  color:#0b1220;
  background: rgba(11,92,255,.08);
  border: 1px solid rgba(11,92,255,.16);
}
@media (max-width: 520px){
  .ryj-bubble, .ryj-bubble__img{width:110px;}
  .ryj-bubble__img{height:110px;}
}


/* ===== SEO content blocks (v3.9) ===== */
.ryj-seo-section{margin: 22px 0;}
.ryj-projects-intro{color: rgba(11,18,32,.72); font-size: 15px; margin: 10px 0 0;}
/* Logos one line + 90% opacity (watermark) */
.ryj-logos-one-line img{opacity:.9 !important;}


/* ===== Hotfix v4.0 (clientes + footer + proyectos) ===== */
.clients-strip .clients-title{font-weight:900;}
.clients-logos{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:nowrap;
  overflow-x:auto;
  padding-bottom:6px;
}
.clientcard{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  height:64px;
  padding:8px 12px;
  border-radius:16px;
}
.clientcard img{
  max-height:44px;
  width:auto;
  opacity:.9; /* sello de agua */
  filter: grayscale(100%);
}
.clients-note{
  margin-top:10px;
  font-size:13px;
  color: rgba(11,18,32,.65);
  font-weight:700;
}

/* Footer: igualar tamaño de botones/enlaces */
.footer .links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.footer .links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  min-height:40px;
  line-height:1;
}

/* Asegurar burbujas visibles (si el grid de proyectos interfiere) */
.ryj-bubbles{
  margin-top:14px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.ryj-bubble{
  width:180px;
  max-width:45vw;
}
.ryj-bubble__img{
  width:180px;
  height:180px;
  border-radius:999px;
  overflow:hidden;
  border: 2px solid rgba(15,23,42,.08);
  box-shadow:0 14px 30px rgba(2,6,23,.08);
  background:#fff;
}
.ryj-bubble__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ryj-bubble__tag{
  margin-top:10px;
  font-weight:900;
  color:#0b1220;
}
@media (max-width: 820px){
  .ryj-bubble, .ryj-bubble__img{width:150px;height:150px;}
}



/* ==== Proyectos: evidencias en burbujas (solo círculos, sin grilla rectangular) ==== */
.ryj-evidence-bubble-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:22px;
  align-items:start;
  margin-top:18px;
}
@media (max-width: 900px){
  .ryj-evidence-bubble-grid{ grid-template-columns: 1fr; }
}
.ryj-evidence-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding:10px 10px 14px;
  border:1px solid rgba(226,232,240,.9);
  border-radius:18px;
  background:#fff;
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
}
.ryj-evidence-media{
  display:block;
  width:260px;
  height:260px;
  border-radius:50%;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 30px rgba(2,6,23,.10);
  background:#f8fafc;
}
@media (max-width: 500px){
  .ryj-evidence-media{ width:220px; height:220px; }
}
.ryj-evidence-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ryj-evidence-caption{
  margin-top:12px;
  max-width: 520px;
}
.ryj-evidence-area{
  display:inline-block;
  font-weight:700;
  font-size:.86rem;
  color:#0f172a;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(14,165,233,.35);
  background: rgba(14,165,233,.08);
}
.ryj-evidence-caption h3{
  margin:10px 0 6px;
  font-size:1.15rem;
}
.ryj-evidence-caption p{
  margin:0;
  color:#475569;
}

/* Centrado del bloque de burbujas de áreas */
.ryj-bubbles{
  justify-content:center;
}
.ryj-bubbles .ryj-bubble{
  margin-left:auto;
  margin-right:auto;
}

/* Footer nav: sin viñetas y tamaños consistentes */
.footer .footer-nav{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.footer .footer-nav li{ list-style:none; padding:0; margin:0; }
.footer .footer-nav li::marker{ content:''; }




/* ===== HOTFIX v4.2: Centrado y tamaños uniformes (Proyectos) ===== */
.ryj-bubbles{
  justify-content:center; /* centrar burbujas superiores */
}
.ryj-evidence-bubble-grid{
  max-width: 980px;
  margin-left:auto;
  margin-right:auto; /* centrar grilla */
  justify-items:center;
}
.ryj-evidence-item{
  width: 100%;
  max-width: 460px; /* uniformidad de tarjetas */
  min-height: 420px;
}
.ryj-evidence-media{
  width: 260px;
  height: 260px;
}
@media (max-width: 900px){
  .ryj-evidence-item{ max-width: 520px; min-height: unset; }
}
@media (max-width: 500px){
  .ryj-evidence-media{ width:220px; height:220px; }
}

/* Footer: quitar viñetas/puntos en navegación */
.site-footer ul,
.site-footer ol{
  list-style:none !important;
  margin:0;
  padding:0;
}
.site-footer li{
  list-style:none !important;
}
.site-footer li::marker{ content:""; }

