/* ============================================================
   TERMAEBRO — LANDING PAGE v3.0
   Brand-new design from scratch
   ============================================================ */

/* ---------- DESIGN TOKENS (LIGHT) ---------- */
:root,
[data-theme="light"] {
  --blue:        #2EA5CF;
  --blue-dark:   #183B82;
  --white:       #FFFFFF;
  --gray-light:  #F4F7F9;
  --orange:      #F46A20;
  --yellow:      #F8BD25;
  --coral:       #E94B2E;
  --ink:         #172337;

  --bg:          var(--white);
  --bg-alt:      var(--gray-light);
  --surface:     var(--white);
  --surface-alt: #edf2f6;
  --border:      #dce4ec;
  --text:        var(--ink);
  --text-sub:    #4a5d78;
  --text-faint:  #8899ad;
  --primary:     var(--blue-dark);
  --accent:      var(--blue);
  --shadow-card: 0 2px 12px rgba(23,35,55,.07);
  --shadow-hover:0 8px 30px rgba(23,35,55,.12);
  --nav-bg:      rgba(255,255,255,.92);
}

/* ---------- DESIGN TOKENS (DARK) ---------- */
[data-theme="dark"] {
  --bg:          #0b1120;
  --bg-alt:      #101827;
  --surface:     #151f30;
  --surface-alt: #1b2740;
  --border:      #253350;
  --text:        #e4ecf5;
  --text-sub:    #94a7bf;
  --text-faint:  #5e7491;
  --primary:     var(--blue);
  --accent:      var(--orange);
  --shadow-card: 0 2px 12px rgba(0,0,0,.3);
  --shadow-hover:0 8px 30px rgba(0,0,0,.4);
  --nav-bg:      rgba(11,17,32,.92);
}

/* ---------- RESET ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:5rem}
body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  font-size:16px;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  transition:background .3s,color .3s;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{cursor:pointer;border:none;background:none;font:inherit;color:inherit}
ul,ol{list-style:none}
::selection{background:rgba(46,165,207,.2)}

/* ---------- UTILITIES ---------- */
.container{max-width:1160px;margin:0 auto;padding:0 24px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

/* ---------- NAVIGATION ---------- */
.site-nav{
  position:sticky;top:0;z-index:100;
  background:var(--nav-bg);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
  transition:background .3s,border-color .3s;
}
.nav-wrap{
  display:flex;align-items:center;justify-content:space-between;
  height:74px;
}
.nav-brand{
  order:1;
  display:flex;align-items:center;
  flex-shrink:0;
}
.nav-brand img{height:60px;width:auto;max-height:60px;object-fit:contain;transition:height .2s}
.nav-links{display:flex;align-items:center;gap:28px}
.nav-links--left{order:2;margin-left:auto;margin-right:28px}
.nav-links--right{order:3}
.nav-links a{
  font-size:.9rem;font-weight:600;
  color:var(--text);
  transition:color .2s;
  white-space:nowrap;
}
.nav-links a:hover{color:var(--primary)}

@media(max-width:768px){
  .site-nav .container{padding:0 12px}
  .nav-wrap{height:60px}
  .nav-brand{order:2;margin:0}
  .nav-brand img{height:40px;max-height:40px}
  .nav-links--left{order:1;margin:0}
  .nav-links--right{order:3;margin:0}
  .nav-links{gap:10px}
  .nav-links a{font-size:.82rem;font-weight:600}
}

@media(max-width:380px){
  .site-nav .container{padding:0 6px}
  .nav-brand img{height:34px;max-height:34px}
  .nav-links{gap:5px}
  .nav-links a{font-size:.74rem}
}



/* ---------- HERO ---------- */
.hero{
  position:relative;
  padding:100px 0 80px;
  background:linear-gradient(145deg,var(--blue-dark) 0%,#1e4fa8 40%,var(--blue) 100%);
  overflow:hidden;
}
.hero::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(circle at 70% 30%,rgba(255,255,255,.08) 0%,transparent 60%);
}
.hero .container{position:relative;z-index:1}
.hero-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:60px;
  align-items:center;
}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(6px);
  color:#fff;padding:6px 16px;border-radius:99px;
  font-size:.8rem;font-weight:600;
  letter-spacing:.03em;text-transform:uppercase;
  margin-bottom:24px;
}
.hero-eyebrow svg{width:8px;height:8px;fill:var(--yellow)}
.hero h1{
  font-size:clamp(2.2rem,5vw,3.6rem);
  font-weight:900;color:#fff;
  line-height:1.08;letter-spacing:-.03em;
  margin-bottom:20px;
}
.hero h1 em{
  font-style:normal;
  color:var(--yellow);
}
.hero-sub{
  font-size:clamp(1rem,2vw,1.2rem);
  color:rgba(255,255,255,.78);
  max-width:46ch;
  margin-bottom:32px;
  line-height:1.65;
}
.hero-btns{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:36px}
.btn-hero{
  padding:14px 32px;border-radius:99px;
  font-size:1rem;font-weight:700;
  display:inline-flex;align-items:center;gap:8px;
  transition:transform .2s,box-shadow .2s;
}
.btn-hero:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,.25)}
.btn-hero--solid{background:#fff;color:var(--blue-dark)}
.btn-hero--ghost{
  background:transparent;color:#fff;
  border:2px solid rgba(255,255,255,.35);
}
.btn-hero--ghost:hover{border-color:#fff}
.hero-checks{display:flex;flex-wrap:wrap;gap:16px}
.hero-checks span{
  display:flex;align-items:center;gap:6px;
  font-size:.82rem;font-weight:500;
  color:rgba(255,255,255,.72);
}
.hero-checks svg{width:16px;height:16px;color:var(--yellow);flex-shrink:0}

/* Hero card */
.hero-card{
  background:rgba(255,255,255,.07);
  backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  padding:48px 32px;
  text-align:center;
  display:flex;flex-direction:column;align-items:center;gap:16px;
}
.hero-card img{width:80px;height:80px;object-fit:contain;border-radius:12px}
.hero-card h2, .hero-card-title{font-size:1.5rem;font-weight:800;color:#fff;letter-spacing:-.02em}
.hero-card p{font-size:.85rem;font-weight:500;color:rgba(255,255,255,.65);letter-spacing:.04em;text-transform:uppercase}
.hero-stats{
  display:flex;gap:24px;margin-top:16px;
  padding-top:20px;border-top:1px solid rgba(255,255,255,.12);
  width:100%;justify-content:center;
}
.hero-stat{text-align:center}
.hero-stat strong{display:block;font-size:1.5rem;font-weight:800;color:#fff}
.hero-stat small{font-size:.75rem;color:rgba(255,255,255,.6)}

@media(max-width:768px){
  .hero{padding:60px 0 50px}
  .hero-grid{grid-template-columns:1fr;gap:40px;text-align:center}
  .hero-btns,.hero-checks{justify-content:center}
  .hero-card{max-width:400px;margin:0 auto}
}

/* ---------- SECTIONS COMMON ---------- */
.section{padding:80px 0}
.section--alt{background:var(--bg-alt)}
.section-label{
  font-size:.78rem;font-weight:700;
  text-transform:uppercase;letter-spacing:.08em;
  color:var(--accent);
  margin-bottom:8px;
}
.section-title{
  font-size:clamp(1.8rem,4vw,2.6rem);
  font-weight:800;letter-spacing:-.025em;
  color:var(--text);
  line-height:1.15;
  margin-bottom:12px;
}
.section-sub{
  font-size:1rem;
  color:var(--text-sub);
  max-width:52ch;
  line-height:1.7;
}
.section-head{margin-bottom:48px}
.section-head--center{text-align:center}
.section-head--center .section-sub{margin-inline:auto}

/* ---------- SERVICES ---------- */
.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.service-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:32px 24px;
  transition:box-shadow .25s,transform .25s,border-color .25s;
}
.service-card:hover{
  box-shadow:var(--shadow-hover);
  transform:translateY(-4px);
  border-color:var(--accent);
}
.service-icon{
  width:48px;height:48px;
  background:linear-gradient(135deg,rgba(46,165,207,.12),rgba(24,59,130,.08));
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  color:var(--accent);
  margin-bottom:20px;
}
.service-card h3, .service-card-title{
  font-size:1.1rem;font-weight:700;
  color:var(--text);
  margin-bottom:8px;
}
.service-card p{
  font-size:.9rem;color:var(--text-sub);
  line-height:1.65;margin-bottom:16px;
}
.service-card .link{
  font-size:.85rem;font-weight:600;
  color:var(--primary);
  display:inline-flex;align-items:center;gap:4px;
  transition:gap .2s;
}
.service-card:hover .link{gap:8px}

@media(max-width:900px){.services-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.services-grid{grid-template-columns:1fr}}

/* ---------- WHY US ---------- */
.why-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:48px;align-items:center;
}
.why-features{display:flex;flex-direction:column;gap:28px}
.why-feat{
  display:flex;gap:16px;align-items:flex-start;
}
.why-feat-icon{
  flex-shrink:0;width:44px;height:44px;
  background:linear-gradient(135deg,rgba(46,165,207,.12),rgba(24,59,130,.08));
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  color:var(--accent);
}
.why-feat h4{font-size:1rem;font-weight:700;color:var(--text);margin-bottom:4px}
.why-feat p{font-size:.88rem;color:var(--text-sub);line-height:1.6}
.why-banner{
  background:linear-gradient(145deg,var(--blue-dark),#1e4fa8,var(--blue));
  border-radius:20px;
  padding:44px 36px;
  display:grid;grid-template-columns:1fr 1fr;gap:28px;
}
.why-banner-stat{text-align:center}
.why-banner-stat strong{display:block;font-size:clamp(1.6rem,3vw,2.4rem);font-weight:900;color:#fff}
.why-banner-stat span{font-size:.8rem;color:rgba(255,255,255,.7)}

@media(max-width:768px){
  .why-grid{grid-template-columns:1fr}
  .why-banner{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .why-banner{grid-template-columns:1fr}
}

/* ---------- PROCESS ---------- */
.process-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}
.process-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-top:3px solid var(--accent);
  border-radius:16px;
  padding:28px 22px;
  text-align:center;
  transition:box-shadow .25s,transform .25s;
}
.process-card:hover{box-shadow:var(--shadow-card);transform:translateY(-3px)}
.process-num{
  font-size:2rem;font-weight:900;
  color:var(--accent);
  line-height:1;margin-bottom:12px;
}
.process-card h3{font-size:1rem;font-weight:700;color:var(--text);margin-bottom:8px}
.process-card p{font-size:.85rem;color:var(--text-sub);line-height:1.6}

@media(max-width:900px){.process-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.process-grid{grid-template-columns:1fr}}

/* ---------- CTA BANNER ---------- */
.cta-banner{
  background:linear-gradient(135deg,var(--blue-dark),var(--blue));
  border-radius:24px;
  padding:56px 48px;
  display:flex;align-items:center;justify-content:space-between;
  gap:32px;flex-wrap:wrap;
}
.cta-banner h2{font-size:clamp(1.4rem,3vw,2rem);font-weight:800;color:#fff;letter-spacing:-.02em;max-width:24ch}
.cta-banner p{font-size:1rem;color:rgba(255,255,255,.7);max-width:42ch;margin-top:8px}
.cta-actions{display:flex;flex-direction:column;gap:12px;align-items:center}
.btn-white{
  background:#fff;color:var(--blue-dark);
  padding:13px 30px;border-radius:99px;
  font-size:.95rem;font-weight:700;
  display:inline-flex;align-items:center;gap:8px;
  transition:box-shadow .2s,transform .2s;
}
.btn-white:hover{box-shadow:0 6px 20px rgba(0,0,0,.2);transform:translateY(-2px)}
.cta-phone{
  color:rgba(255,255,255,.8);
  font-size:.88rem;font-weight:600;
  display:flex;align-items:center;gap:8px;
}

@media(max-width:768px){
  .cta-banner{flex-direction:column;text-align:center;padding:40px 28px}
  .cta-actions{align-items:center}
}

/* ---------- CONTACT ---------- */
.contact-grid{
  display:grid;grid-template-columns:1fr 1.3fr;
  gap:48px;align-items:start;
}
.contact-info-list{display:flex;flex-direction:column;gap:24px;margin-top:32px}
.contact-info-item{display:flex;gap:14px;align-items:flex-start}
.contact-info-icon{
  width:42px;height:42px;flex-shrink:0;
  background:linear-gradient(135deg,rgba(46,165,207,.12),rgba(24,59,130,.08));
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  color:var(--accent);
}
.contact-info-item strong{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-faint);display:block;margin-bottom:2px}
.contact-info-item span{font-size:.95rem;font-weight:600;color:var(--text)}

.form-box{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  padding:36px;
  box-shadow:var(--shadow-card);
}
.form-box h3, .form-box-title{font-size:1.3rem;font-weight:800;color:var(--text);margin-bottom:24px;letter-spacing:-.02em}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-group{margin-bottom:18px}
.form-group label{display:block;font-size:.82rem;font-weight:600;color:var(--text-sub);margin-bottom:6px}
.form-group input,
.form-group select,
.form-group textarea{
  width:100%;
  background:var(--bg-alt);
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px 14px;
  font-size:.95rem;
  color:var(--text);
  font-family:inherit;
  transition:border-color .2s,box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline:none;border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(46,165,207,.12);
}
.form-group textarea{min-height:110px;resize:vertical}
.form-group select option{background:var(--surface);color:var(--text)}
.btn-submit{
  width:100%;padding:14px;border-radius:99px;
  background:var(--primary);color:#fff;
  font-size:1rem;font-weight:700;
  display:flex;align-items:center;justify-content:center;gap:8px;
  transition:background .2s,box-shadow .2s,transform .2s;
  margin-top:4px;
}
.btn-submit:hover{background:var(--blue-dark);box-shadow:var(--shadow-card);transform:translateY(-1px)}
.form-ok{
  display:none;text-align:center;padding:40px 20px;
}
.form-ok svg{color:var(--accent);margin:0 auto 16px}
.form-ok h3, .form-ok-title{font-size:1.3rem;font-weight:800;color:var(--text);margin-bottom:8px}
.form-ok p{color:var(--text-sub)}

@media(max-width:768px){
  .contact-grid{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
}

/* ---------- FOOTER ---------- */
.site-footer{
  background:var(--surface);
  border-top:1px solid var(--border);
  padding:56px 0 0;
  transition:background .3s,border-color .3s;
}
.footer-grid{
  display:grid;grid-template-columns:1.6fr 1fr 1fr;
  gap:48px;margin-bottom:40px;
}
.footer-brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.15rem;color:var(--primary);margin-bottom:14px}
.footer-brand img{width:30px;height:30px;object-fit:contain;border-radius:6px}
.footer-desc{font-size:.88rem;color:var(--text-sub);line-height:1.65;max-width:32ch}
.footer-nav-cols{display:contents}
.footer-col-title{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text);margin-bottom:14px}
.footer-links{display:flex;flex-direction:column;gap:8px}
.footer-links a{font-size:.88rem;color:var(--text-sub);transition:color .2s}
.footer-links a:hover{color:var(--primary)}

.footer-bottom{
  border-top:1px solid var(--border);
  padding:20px 0;
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:14px;
  font-size:.78rem;color:var(--text-faint);
}
.footer-copy{display:flex;flex-direction:column;gap:2px}
.footer-author{font-size:.78rem;color:var(--text-faint)}
.footer-author a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;transition:opacity .2s}
.footer-author a:hover{opacity:.7}
.footer-certs{display:flex;gap:8px;flex-wrap:wrap}
.footer-cert{
  background:var(--bg-alt);
  border:1px solid var(--border);
  border-radius:99px;
  padding:4px 12px;
  font-size:.72rem;font-weight:600;
  color:var(--text-sub);
}

@media(max-width:768px){
  .site-footer{padding:28px 0 0}
  .footer-grid{
    grid-template-columns:1fr;
    gap:20px;
    margin-bottom:24px;
    text-align:left;
  }
  .footer-desc{display:none} /* Ocultamos descripción larga en móvil para reducir altura */
  .footer-brand{margin-bottom:8px}
  .footer-nav-cols{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
  }
  .footer-col-title{margin-bottom:8px;font-size:.72rem}
  .footer-links{gap:6px;align-items:flex-start}
  .footer-links a{font-size:.8rem}
  .footer-bottom{
    flex-direction:column;
    text-align:center;
    gap:10px;
    padding:16px 0;
  }
  .footer-copy{align-items:center;gap:2px}
  .footer-certs{justify-content:center;gap:6px}
  .footer-cert{padding:2px 8px;font-size:.68rem}
}

@media(max-width:480px){
  .container{padding:0 18px}
  .hero{padding:48px 0 40px}
  .hero-card{padding:32px 20px}
  .hero-stats{gap:12px}
  .hero-stat strong{font-size:1.25rem}
  .hero-stat small{font-size:.7rem}
  .btn-hero{width:100%;justify-content:center}
  .section{padding:56px 0}
  .form-box{padding:24px 18px}
  .form-group input,
  .form-group select,
  .form-group textarea{font-size:16px} /* Prevents automatic zoom in iOS Safari */
}

/* ---------- SCROLL REVEAL ---------- */
.reveal{
  opacity:0;transform:translateY(28px);
  transition:opacity .55s ease,transform .55s ease;
}
.reveal.visible{opacity:1;transform:translateY(0)}
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
}
