*{box-sizing:border-box}
:root{
  --bg:#08111f;
  --bg2:#0d1b2a;
  --surface:#ffffff;
  --surface2:#f5f7fb;
  --text:#122033;
  --muted:#607086;
  --line:#dfe5ec;
  --accent:#0f6fff;
  --accent2:#00a67d;
  --white:#fff;
  --max:1180px;
}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Segoe UI",Arial,Helvetica,sans-serif;
  color:var(--text);
  background:var(--surface);
  line-height:1.6;
}
a{text-decoration:none;color:inherit}
.container{width:min(92%,var(--max));margin:auto}
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(8,17,31,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav-wrap{height:76px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px;color:#fff;font-weight:800;letter-spacing:.04em}
.brand-mark{
  width:38px;height:38px;border-radius:11px;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--accent),var(--accent2));font-size:21px;
}
.nav{display:flex;align-items:center;gap:28px;color:#dbe4ef;font-size:14px}
.nav a:hover{color:#fff}
.menu-toggle{display:none;border:0;background:transparent;padding:5px}
.menu-toggle span{display:block;width:25px;height:2px;background:#fff;margin:5px 0}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:0 22px;border-radius:12px;
  background:var(--accent);color:#fff;font-weight:700;
  border:1px solid var(--accent);transition:.2s ease;
}
.btn:hover{transform:translateY(-1px);filter:brightness(1.05)}
.btn-small{min-height:40px;padding:0 16px}
.btn-secondary{background:transparent;border-color:rgba(255,255,255,.28)}
.btn-light{background:#fff;color:var(--bg);border-color:#fff}
.hero{
  background:
    radial-gradient(circle at 78% 20%,rgba(15,111,255,.24),transparent 35%),
    radial-gradient(circle at 75% 70%,rgba(0,166,125,.16),transparent 30%),
    var(--bg);
  color:#fff;padding:95px 0 105px;
}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:70px;align-items:center}
.eyebrow{
  display:inline-block;font-size:12px;font-weight:800;letter-spacing:.16em;
  color:#4c91ff;margin-bottom:15px;
}
.hero h1{font-size:clamp(42px,5vw,70px);line-height:1.03;margin:0 0 24px;max-width:850px}
.hero-copy>p{font-size:19px;color:#b7c5d6;max-width:660px;margin:0 0 30px}
.hero-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:18px;
}
.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:45px}
.hero-stats div{border-top:1px solid rgba(255,255,255,.16);padding-top:14px}
.hero-stats strong{display:block;font-size:17px}
.hero-stats span{display:block;color:#8fa1b7;font-size:13px;margin-top:3px}
.hero-panel{
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.06);
  border-radius:22px;overflow:hidden;
  box-shadow:0 30px 70px rgba(0,0,0,.35);
}
.panel-top{display:flex;gap:7px;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.1)}
.panel-top span{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.35)}
.panel-body{padding:34px}
.code-line{height:10px;border-radius:10px;background:rgba(255,255,255,.13);margin:14px 0}
.w90{width:90%}.w70{width:70%}.w80{width:80%}
.diagram{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:12px;margin:38px 0}
.node{padding:16px 12px;text-align:center;border-radius:12px;background:rgba(15,111,255,.15);border:1px solid rgba(76,145,255,.35);font-weight:700;font-size:14px}
.arrow{color:#6f87a1}
.status{display:flex;align-items:center;gap:10px;color:#b9c8d9;font-size:14px}
.dot{width:10px;height:10px;border-radius:50%;background:#34d399;box-shadow:0 0 0 6px rgba(52,211,153,.12)}
.section{padding:92px 0}
.section-alt{background:var(--surface2)}
.section-head{max-width:760px;margin-bottom:42px}
.section h2{font-size:clamp(32px,4vw,48px);line-height:1.12;margin:0 0 16px}
.section-head p,.split p{color:var(--muted);font-size:17px}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{
  border:1px solid var(--line);border-radius:18px;padding:28px;background:#fff;
  transition:.2s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:0 18px 45px rgba(24,39,58,.08)}
.card .icon{
  width:44px;height:44px;border-radius:12px;display:grid;place-items:center;
  background:#eef4ff;color:var(--accent);font-weight:800;font-size:13px
}
.card h3{margin:22px 0 10px;font-size:20px}
.card p{margin:0;color:var(--muted);font-size:14px}
.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.project-card{
  min-height:220px;padding:30px;border-radius:18px;background:#fff;border:1px solid var(--line);
display:flex;flex-direction:column;justify-content:flex-start
}
.project-tag{font-size:11px;font-weight:800;letter-spacing:.15em;color:var(--accent);margin-bottom:12px}
.project-card h3{font-size:25px;margin:0 0 8px;min-height:60px}
.project-card p{margin:0;color:var(--muted)}
.split{display:grid;grid-template-columns:1fr 1fr;gap:75px;align-items:start}
.contact-section{padding-top:20px}
.contact-box{
  padding:48px;border-radius:24px;background:linear-gradient(135deg,#0f6fff,#0b9476);
  color:#fff;display:flex;align-items:center;justify-content:space-between;gap:30px
}
.contact-box .eyebrow{color:#dcecff}
.contact-box h2{margin-bottom:8px}
.contact-box p{margin:0;color:#eaf2ff}
.footer{padding:28px 0;background:var(--bg);color:#8fa1b7}
.footer-inner{display:flex;justify-content:space-between;gap:20px;font-size:13px}

@media (max-width:900px){
  .nav{position:absolute;top:76px;left:0;right:0;display:none;flex-direction:column;align-items:flex-start;padding:20px 4%;background:var(--bg)}
  .nav.open{display:flex}
  .menu-toggle{display:block}
  .hero-grid,.split{grid-template-columns:1fr}
  .hero-panel{max-width:680px}
  .cards{grid-template-columns:repeat(2,1fr)}
  .project-grid{grid-template-columns:1fr}
  .contact-box{flex-direction:column;align-items:flex-start}
}
.hero-image-mobile{
    display:none;
}
@media (max-width:560px){
  .hero{padding:45px 0 55px}
  .hero h1{font-size:42px}
.hero-panel{
    display:none;
}

.hero-image-mobile{
    display:block;
    margin:30px 0 35px;
}

.hero-image-mobile img{
    display:block;
    width:100%;
    height:auto;
    border-radius:20px;
}
  
  .hero-stats{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr}
  .diagram{grid-template-columns:1fr}
  .arrow{transform:rotate(90deg);text-align:center}
  .section{padding:70px 0}
  .contact-box{padding:32px 24px}
  .footer-inner{flex-direction:column}
}

/* V2 correction: robust local typography and proportional hero */
.hero h1{font-size:clamp(38px,4.6vw,64px);letter-spacing:-.025em}
.hero-copy>p{max-width:720px}
@media (max-width:1100px){
  .hero-grid{gap:45px}
  .hero h1{font-size:clamp(38px,4.8vw,58px)}
}
.hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 20px;
}
.hero-panel {
    transform: translateY(-75px);
}

.gd-highlight {
  margin: 30px 0;
  padding: 24px 28px;
  border-left: 5px solid #3b82f6;
  background: #f4f8ff;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
}

.gd-regulatory-box {
  margin-top: 36px;
  padding: 30px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #dfe6ee;
}
/* =========================================================
   GEMELOS DIGITALES - R-E-C-P-G-A
   ========================================================= */

.gemelos-page .container {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.gemelos-page .section,
.gemelos-page .hero {
  width: 100%;
}

.gemelos-page .hero {
  padding-top: 55px;
  padding-bottom: 60px;
}

.gemelos-page .gemelos-hero-image {
  margin-top: 38px;
  width: 100%;
}

.gemelos-page .gemelos-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.gemelos-page .article-figure {
  width: 100%;
  margin: 35px auto 45px;
}

.gemelos-page .article-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 560px) {

  .gemelos-page .article-figure {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 12px;
  }

  .gemelos-page .article-figure img {
    width: 1050px;
    max-width: none;
    height: auto;
  }

}

.gemelos-page .article-figure figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #64748b;
}

.gemelos-page .cards.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gemelos-page .cards.three .card {
  min-width: 0;
}

.gemelos-page .process-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 30px 0;
  text-align: center;
}

@media (max-width: 900px) {
  .gemelos-page .cards.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gemelos-page .container {
    width: min(100% - 28px, 1180px);
  }

  .gemelos-page .cards.three {
    grid-template-columns: 1fr;
  }

  .gemelos-page .hero {
    padding-top: 45px;
    padding-bottom: 45px;
  }
}
.gemelos-page .cards.three.references-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .gemelos-page .cards.three.references-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gemelos-page .cards.three.references-grid {
        grid-template-columns: 1fr;
    }
}
/* Ajuste del encabezado de Gemelos Digitales */

.gemelos-page .hero h1 {
  max-width: 1100px;
  font-size: clamp(2.3rem, 3.6vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-top: 16px;
  margin-bottom: 22px;
}

.gemelos-page .hero-text {
  max-width: 950px;
  font-size: 1.08rem;
  line-height: 1.6;
}

.gemelos-page .gemelos-hero-image {
  margin-top: 30px;
}
/* Identificación visual de las etapas R-E-C-P-G-A */

.gemelos-page .cards.three .card > .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #eef4ff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.gemelos-page .cards.three .card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}
/* Ruta visual de madurez */

.gemelos-page .process-line {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin: 34px 0 28px;
}

.gemelos-page .process-line strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 14px 12px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fafc;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.25;
}

.gemelos-page .process-line span {
  display: none;
}

/* Compacta el espacio entre secciones */

.gemelos-page .section {
  padding-top: 55px;
  padding-bottom: 55px;
}

.gemelos-page .section-heading {
  margin-bottom: 26px;
}

@media (max-width: 900px) {
  .gemelos-page .process-line {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .gemelos-page .process-line {
    grid-template-columns: 1fr;
  }
}
/* Ajustes de aplicaciones y referencias */

.gemelos-page .section + .section {
  margin-top: 0;
}

.gemelos-page .cards.three .card a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  text-decoration: none;
}

.gemelos-page .cards.three .card a:hover {
  text-decoration: underline;
}

/* Destaca la tarjeta que enlaza a Generación Distribuida */

.gemelos-page .cards.three .card:last-child {
  background: #f8fbff;
  border-color: #cfdcf0;
}
/* Reduce el espacio superior de la metodología inglesa */
.gemelos-page .section.compact-top {
  padding-top: 10px;
}

.gemelos-page .section.compact-top .article-figure {
  margin-top: 0;
}
/* Reduce el espacio inferior de la sección conceptual */
.gemelos-page .section.compact-bottom {
  padding-bottom: 30px;
}
.scroll-hint{
    text-align:center;
    font-size:14px;
    color:#64748b;
    margin:12px 0 6px;
    font-weight:500;
  }

.image-hint {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 6px;
    font-weight: 500;
}

@media (max-width: 640px) {
    .scroll-hint {
        font-size: 13px;
        margin: 8px 0 4px;
    }

    .image-hint {
        font-size: 13px;
        margin: 2px 0 4px;
    }

    .gemelos-page .article-figure figcaption {
        margin-bottom: 12px;
    }
}
