
:root{
  --bg:#08172b;
  --bg-2:#0b203c;
  --card:#0d2544;
  --card-2:#102b4d;
  --muted:#c2b7a3;
  --text:#f8f4ec;
  --text-soft:#d7cfbf;
  --line:#263c59;
  --gold:#c2b180;
  --gold-2:#e4decd;
  --bluegray:#52637a;
  --shadow:0 24px 80px rgba(0,0,0,.35);
  --radius:18px;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 72% 8%, rgba(194,177,128,.16), transparent 28rem),
    linear-gradient(180deg, #071525 0%, var(--bg) 38%, #071525 100%);
  min-height:100vh;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size:52px 52px;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.7), transparent 80%);
  z-index:-1;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}

.container{
  width:min(var(--max), calc(100% - 48px));
  margin-inline:auto;
}
.site-header{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(18px);
  background:rgba(8,23,43,.78);
  border-bottom:1px solid rgba(38,60,89,.65);
}
.nav{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:-.04em;
  font-size:1.15rem;
}
.brand-mark{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid var(--line);
  background:linear-gradient(135deg, var(--card), transparent);
  border-radius:10px;
  color:var(--gold);
  font-size:.82rem;
  font-weight:900;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:34px;
  color:var(--text-soft);
  font-size:.92rem;
}
.nav-actions{
  display:flex;
  align-items:center;
  gap:14px;
}
.nav-link:hover,.footer a:hover{color:var(--gold)}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid var(--line);
  color:var(--text);
  background:transparent;
  min-height:48px;
  padding:0 22px;
  border-radius:8px;
  cursor:pointer;
  transition:.18s ease;
}
.btn:hover{
  transform:translateY(-2px);
  border-color:var(--gold);
  box-shadow:0 14px 40px rgba(194,177,128,.12);
}
.btn-primary{
  color:#08172b;
  background:var(--gold);
  border-color:var(--gold);
}
.btn-primary:hover{background:#d2c493}
.btn-ghost{border-color:transparent}
.mobile-toggle{display:none}

.hero{
  padding:96px 0 120px;
}
.hero-grid{
  display:grid;
  grid-template-columns:360px 1fr;
  gap:22px;
  align-items:stretch;
}
.stat-stack{
  display:grid;
  gap:20px;
}
.stat-card,.map-card,.hero-panel,.card,.system-card,.metric-card,.project-card,.person-card,.contact-card,.service-hero-card,.method-card,.faq-card{
  background:linear-gradient(180deg, rgba(15,42,76,.92), rgba(9,27,50,.86));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.stat-card,.map-card{
  min-height:205px;
  padding:30px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.eyebrow{
  margin:0 0 18px;
  text-transform:uppercase;
  letter-spacing:.2em;
  font-size:.72rem;
  color:var(--muted);
  font-weight:700;
}
.stat-number{
  font-size:3.1rem;
  line-height:1;
  font-weight:800;
  letter-spacing:-.04em;
}
.muted{color:var(--text-soft)}
.map-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color:var(--text-soft);
}
.hero-panel{
  position:relative;
  overflow:hidden;
  min-height:560px;
  padding:54px 48px;
  display:flex;
  align-items:flex-end;
}
.hero-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(8,23,43,.58), rgba(8,23,43,.18) 45%, rgba(8,23,43,.72)),
    url("assets/hero-coastal-glazing.png") center/cover no-repeat;
  opacity:.92;
}
.hero-panel::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 78% 18%, rgba(194,177,128,.2), transparent 17rem);
}
.hero-content{position:relative;z-index:1;max-width:710px}
.hero h1{
  margin:0 0 24px;
  font-size:clamp(3.2rem, 7vw, 7.8rem);
  line-height:.92;
  letter-spacing:-.08em;
}
.hero h1 em{
  display:block;
  color:var(--gold);
  font-style:italic;
  letter-spacing:-.06em;
}
.hero p{
  font-size:1.12rem;
  line-height:1.8;
  color:var(--text-soft);
  max-width:680px;
}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:34px}

.section{
  padding:105px 0;
}
.section-heading{
  max-width:760px;
  margin:0 auto 54px;
  text-align:center;
}
.section-heading.left{
  margin-inline:0;
  text-align:left;
}
.section-heading h2{
  margin:0 0 16px;
  font-size:clamp(2.2rem, 5vw, 4.6rem);
  line-height:1;
  letter-spacing:-.07em;
}
.section-heading h2 em{color:var(--gold);font-style:italic}
.section-heading p{
  margin:0;
  color:var(--text-soft);
  line-height:1.8;
  font-size:1.05rem;
}
.method-grid{
  display:grid;
  grid-template-columns:1.35fr .95fr;
  gap:24px;
}
.method-main{
  padding:38px;
  min-height:520px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.method-steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  align-items:center;
  gap:8px;
  position:relative;
  margin-top:90px;
}
.method-steps::before{
  content:"";
  position:absolute;
  height:2px;
  left:0;
  right:0;
  top:32px;
  background:linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity:.45;
}
.step{
  position:relative;
  z-index:1;
  text-align:center;
}
.step-icon{
  margin:auto;
  width:60px;
  height:60px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--gold);
  border-radius:10px;
}
.step span{
  display:block;
  margin-top:12px;
  font-family:"Roboto Mono", monospace;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:var(--muted);
  font-size:.72rem;
}
.method-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--line);
  padding-top:30px;
  gap:22px;
}
.method-stats strong{
  font-size:1.8rem;
}
.method-side{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}
.feature{
  padding:28px;
}
.feature:nth-child(3){
  grid-column:1 / 2;
}
.icon-box{
  width:46px;
  height:46px;
  border:1px solid var(--line);
  display:grid;
  place-items:center;
  border-radius:10px;
  color:var(--gold);
  margin-bottom:34px;
  background:#0a1b33;
}
.feature h3,.system-card h3,.project-card h3,.method-card h3,.service-feature h3,.faq-card h3{
  margin:0 0 14px;
  font-size:1.3rem;
  letter-spacing:-.035em;
}
.feature p,.system-card p,.project-card p,.method-card p,.service-feature p,.contact-card p,.faq-card p{
  margin:0;
  color:var(--text-soft);
  line-height:1.7;
}
.badges{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:22px;
}
.badge{
  border:1px solid var(--line);
  background:rgba(194,177,128,.08);
  color:var(--muted);
  border-radius:8px;
  padding:7px 10px;
  font-family:"Roboto Mono", monospace;
  text-transform:uppercase;
  font-size:.68rem;
  letter-spacing:.12em;
}
.system-grid{
  display:grid;
  grid-template-columns:1.2fr .85fr;
  gap:22px;
}
.system-card{
  padding:38px;
  min-height:320px;
}
.system-card:nth-child(3){
  grid-column:1 / -1;
}
.system-kicker{
  font-family:"Roboto Mono", monospace;
  color:var(--gold);
  letter-spacing:.2em;
  text-transform:uppercase;
  font-size:.78rem;
  margin-bottom:16px;
}
.metrics{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  margin-top:34px;
}
.metric-card{
  min-height:190px;
  display:grid;
  place-items:center;
  text-align:center;
  padding:28px;
}
.metric-card strong{
  font-size:3.4rem;
  font-weight:400;
  letter-spacing:-.05em;
}
.metric-card strong small{font-size:1.1rem;color:var(--text-soft)}
.gold-line{
  width:48px;
  height:1px;
  background:var(--gold);
  margin:16px auto 18px;
}
.project-intro{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:40px;
  align-items:start;
  margin-bottom:34px;
}
.project-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.project-card{
  padding:24px;
  overflow:hidden;
}
.project-card.large{grid-column:span 1}
.thumb-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:22px;
}
.thumb-grid img{
  aspect-ratio:1.24/1;
  width:100%;
  object-fit:cover;
  border-radius:10px;
  border:1px solid var(--line);
}
.cta{
  background:linear-gradient(135deg, rgba(13,37,68,.98), rgba(8,23,43,.98));
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.cta-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:40px;
  align-items:center;
}
.people{
  display:grid;
  gap:18px;
}
.person-card{
  padding:20px;
  display:flex;
  align-items:center;
  gap:18px;
}
.avatar{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  background:var(--text);
  color:var(--bg);
  font-weight:900;
  border-radius:3px;
}
.person-card small{
  color:var(--muted);
  font-family:"Roboto Mono", monospace;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.footer{
  padding:70px 0 34px;
  border-top:1px solid var(--line);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:42px;
}
.footer h4{
  font-family:"Roboto Mono", monospace;
  text-transform:uppercase;
  letter-spacing:.22em;
  color:var(--muted);
  font-size:.75rem;
  margin:0 0 24px;
}
.footer p,.footer a{
  color:var(--text-soft);
  line-height:1.8;
}
.footer ul{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.socials{display:flex;gap:14px;margin-top:24px;color:var(--muted)}
.copyright{
  border-top:1px solid var(--line);
  margin-top:50px;
  padding-top:24px;
  color:var(--text-soft);
  display:flex;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  font-size:.9rem;
}
.page-hero{
  padding:96px 0 70px;
}
.page-hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}
.page-hero h1{
  margin:0 0 24px;
  font-size:clamp(2.8rem, 7vw, 6.2rem);
  line-height:.96;
  letter-spacing:-.07em;
}
.page-hero p{color:var(--text-soft);line-height:1.8;font-size:1.08rem}
.page-image{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  position:relative;
}
.page-image img{aspect-ratio:4/3;object-fit:cover;width:100%}
.service-hero-card{padding:38px}
.workflow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:24px;
}
.workflow span{
  padding:10px 12px;
  border:1px solid var(--line);
  color:var(--gold);
  border-radius:8px;
  font-family:"Roboto Mono", monospace;
  text-transform:uppercase;
  font-size:.7rem;
}
.service-features{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}
.service-feature{
  background:rgba(15,42,76,.62);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
}
.method-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.method-card{padding:32px}
.code-box{
  margin-top:18px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#061120;
  color:var(--gold);
  font-family:"Roboto Mono", monospace;
  font-size:.8rem;
  line-height:1.9;
}
.contact-grid{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:28px;
}
.contact-card{
  padding:34px;
}
.contact-list{
  display:grid;
  gap:22px;
}
.contact-item strong{
  display:block;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.17em;
  font-size:.75rem;
  margin-bottom:8px;
}
.form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.form label{
  display:grid;
  gap:8px;
  color:var(--text-soft);
  font-size:.92rem;
}
.form input,.form textarea,.form select{
  background:#061120;
  border:1px solid var(--line);
  color:var(--text);
  border-radius:10px;
  min-height:48px;
  padding:12px 14px;
}
.form textarea{min-height:140px;resize:vertical}
.form .full{grid-column:1 / -1}
.form input:focus,.form textarea:focus,.form select:focus{
  outline:2px solid rgba(194,177,128,.36);
  border-color:var(--gold);
}
.region-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.region{
  padding:22px;
  border:1px solid var(--line);
  background:rgba(15,42,76,.5);
  border-radius:var(--radius);
}
.region strong{
  display:block;
  color:var(--gold);
  font-size:1.4rem;
  margin-bottom:8px;
}
.faq-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}
.faq-card{padding:24px}

.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease, transform .7s ease}
.reveal.visible{opacity:1;transform:translateY(0)}

@media (max-width:980px){
  .hero-grid,.method-grid,.system-grid,.project-intro,.cta-grid,.page-hero-grid,.contact-grid{grid-template-columns:1fr}
  .service-features,.metrics,.region-grid{grid-template-columns:repeat(2,1fr)}
  .project-grid,.method-cards{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .hero-panel{min-height:520px}
}
@media (max-width:720px){
  .container{width:min(100% - 28px, var(--max))}
  .nav-links,.nav-actions{display:none}
  .mobile-toggle{display:inline-flex}
  .nav.open .nav-links,.nav.open .nav-actions{
    display:flex;
    position:absolute;
    left:14px;
    right:14px;
    top:72px;
    background:#071525;
    border:1px solid var(--line);
    border-radius:14px;
    padding:18px;
    flex-direction:column;
    align-items:stretch;
  }
  .nav.open .nav-actions{top:230px}
  .hero{padding:52px 0 80px}
  .hero-panel{padding:34px 24px;min-height:500px}
  .hero h1{font-size:3.45rem}
  .method-side,.method-stats,.metrics,.service-features,.region-grid,.faq-grid,.form{grid-template-columns:1fr}
  .method-steps{grid-template-columns:repeat(2,1fr);row-gap:24px}
  .system-card:nth-child(3),.form .full{grid-column:auto}
  .footer-grid{grid-template-columns:1fr}
  .copyright{display:grid}
}



/* ===== Theme and language toggles, porque hasta el sol tuvo que aprender JS ===== */
html{
  color-scheme: dark;
}
html[data-theme="light"]{
  color-scheme: light;
  --bg:#f3ebdd;
  --bg-2:#f8f4ec;
  --card:#fffaf1;
  --card-2:#f4ead7;
  --muted:#8b6f33;
  --text:#0b203c;
  --text-soft:#52637a;
  --line:#d8cab0;
  --gold:#977335;
  --gold-2:#c2b180;
  --bluegray:#52637a;
  --shadow:0 22px 70px rgba(11,32,60,.16);
}
html[data-theme="light"] body{
  background:
    radial-gradient(circle at 72% 8%, rgba(151,115,53,.18), transparent 28rem),
    linear-gradient(180deg, #fffaf1 0%, #f3ebdd 45%, #efe4cf 100%);
}
html[data-theme="light"] .site-header{
  background:rgba(255,250,241,.82);
  border-bottom-color:rgba(216,202,176,.88);
}
html[data-theme="light"] .stat-card,
html[data-theme="light"] .map-card,
html[data-theme="light"] .hero-panel,
html[data-theme="light"] .card,
html[data-theme="light"] .system-card,
html[data-theme="light"] .metric-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .person-card,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .service-hero-card,
html[data-theme="light"] .method-card,
html[data-theme="light"] .faq-card{
  background:linear-gradient(180deg, rgba(255,250,241,.97), rgba(244,234,215,.92));
}
html[data-theme="light"] .hero-panel::before{
  background:
    linear-gradient(90deg, rgba(255,250,241,.74), rgba(255,250,241,.18) 45%, rgba(8,23,43,.52)),
    url("assets/hero-coastal-glazing.png") center/cover no-repeat;
}
html[data-theme="light"] .service-feature,
html[data-theme="light"] .region{
  background:rgba(255,250,241,.7);
}
html[data-theme="light"] .cta{
  background:linear-gradient(135deg, rgba(255,250,241,.98), rgba(239,228,207,.98));
}
html[data-theme="light"] .icon-box,
html[data-theme="light"] .step-icon,
html[data-theme="light"] .code-box,
html[data-theme="light"] .form input,
html[data-theme="light"] .form textarea,
html[data-theme="light"] .form select{
  background:#fffdf8;
}
html[data-theme="light"] .avatar{
  background:#0b203c;
  color:#f8f4ec;
}
html[data-theme="light"] .btn-primary{
  color:#fffaf1;
}
html[data-theme="light"] .badge{
  background:rgba(151,115,53,.08);
}
html[data-theme="light"] .hero h1,
html[data-theme="light"] .page-hero h1,
html[data-theme="light"] .section-heading h2{
  text-shadow:0 16px 44px rgba(11,32,60,.10);
}
html[data-theme="light"] .brand-mark{
  background:#fffdf8;
}
html[data-theme="light"] .footer{
  background:linear-gradient(180deg, rgba(255,250,241,.04), rgba(255,250,241,.35));
}

*,
*::before,
*::after{
  transition:
    background-color .36s ease,
    color .36s ease,
    border-color .36s ease,
    box-shadow .36s ease,
    opacity .24s ease,
    transform .24s ease,
    filter .24s ease;
}
html.theme-changing body{
  animation: softPulse .42s ease;
}
@keyframes softPulse{
  0%{filter:saturate(1)}
  50%{filter:saturate(1.18) brightness(1.04)}
  100%{filter:saturate(1)}
}
.transition-flash{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:999;
  opacity:0;
  background:radial-gradient(circle at top right, rgba(194,177,128,.38), transparent 36rem);
}
.transition-flash.active{
  animation: flashWave .72s ease;
}
@keyframes flashWave{
  0%{opacity:0; transform:scale(.96)}
  35%{opacity:1; transform:scale(1)}
  100%{opacity:0; transform:scale(1.06)}
}

.tool-btn{
  position:relative;
  display:inline-grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:999px;
  border:1px solid rgba(194,177,128,.7);
  background:linear-gradient(135deg, var(--gold), #d5c693);
  color:#08172b;
  cursor:pointer;
  overflow:hidden;
  box-shadow:0 14px 40px rgba(194,177,128,.16);
}
.tool-btn:hover{
  transform:translateY(-2px) rotate(-2deg);
  box-shadow:0 20px 50px rgba(194,177,128,.24);
}
.tool-btn:active{
  transform:translateY(0) scale(.94);
}
.tool-icon,
.flag-icon{
  position:relative;
  z-index:2;
  font-size:1.25rem;
  line-height:1;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.18));
}
.flag-icon{
  font-size:1.35rem;
}
.tool-spark{
  position:absolute;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#fff;
  opacity:.5;
  transform:translate(-18px,-15px);
}
.tool-btn:hover .tool-spark{
  animation:sparkle 1s ease infinite;
}
@keyframes sparkle{
  0%,100%{transform:translate(-18px,-15px) scale(.8); opacity:.25}
  50%{transform:translate(16px,14px) scale(1.4); opacity:.65}
}
.tool-btn.spin .tool-icon,
.tool-btn.spin .flag-icon{
  animation:iconSpin .52s cubic-bezier(.2,.8,.2,1);
}
@keyframes iconSpin{
  from{transform:rotate(0deg) scale(.8)}
  55%{transform:rotate(220deg) scale(1.18)}
  to{transform:rotate(360deg) scale(1)}
}
html.lang-switching main{
  animation:languageFade .38s ease;
}
@keyframes languageFade{
  0%{opacity:.35; transform:translateY(8px)}
  100%{opacity:1; transform:translateY(0)}
}

@media (max-width:720px){
  .nav.open .nav-links,
  .nav.open .nav-actions{
    display:flex;
    position:absolute;
    left:14px;
    right:14px;
    background:var(--bg);
    border:1px solid var(--line);
    border-radius:14px;
    padding:18px;
    flex-direction:column;
    align-items:stretch;
  }
  .nav.open .nav-links{top:72px}
  .nav.open .nav-actions{
    top:236px;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:center;
  }
  .nav.open .nav-actions .btn{
    flex:1 1 100%;
  }
}
