/* ===================== KRYONTEK — SHARED STYLES ===================== */

:root{
  --navy-deep:#0a0e1a;
  --navy-panel:#111629;
  --navy-panel-2:#161c35;
  --line:#232a47;
  --ice:#2f6bff;
  --ice-light:#6fa8ff;
  --ice-soft:rgba(47,107,255,.12);
  --ice-soft-2:rgba(47,107,255,.22);
  --text:#edf1f8;
  --text-muted:#8b93aa;
  --white:#ffffff;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--navy-deep);
  color:var(--text);
  font-family:'Inter',sans-serif;
  line-height:1.6;
  overflow-x:hidden;
}
h1,h2,h3,h4{font-family:'Space Grotesk',sans-serif;}
a{color:inherit;text-decoration:none;}
img{max-width:100%;}
.wrap{max-width:1180px;margin:0 auto;padding:0 32px;}
.mono-tag{font-family:'Space Grotesk',sans-serif;}

/* ---------- NAV ---------- */
header{
  position:sticky;top:0;z-index:50;
  background:rgba(10,14,26,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 32px;max-width:1180px;margin:0 auto;
}
.brand img{height:34px;width:auto;display:block;}
.nav-links{display:flex;gap:36px;font-size:14px;font-weight:500;color:var(--text-muted);}
.nav-links a{position:relative;padding:4px 0;transition:color .2s;}
.nav-links a:hover{color:var(--text);}
.nav-links a.active{color:var(--text);}
.nav-links a.active::after{
  content:"";position:absolute;bottom:-4px;left:0;width:100%;height:2px;background:var(--ice);
}
.nav-right{display:flex;align-items:center;gap:20px;}
.nav-cta{
  background:var(--ice);color:var(--white);padding:10px 20px;border-radius:6px;
  font-size:14px;font-weight:600;transition:background .2s;
}
.nav-cta:hover{background:var(--ice-light);}
.burger{display:none;background:none;border:none;color:var(--text);cursor:pointer;padding:4px;}
.burger svg{width:24px;height:24px;display:block;}

/* ---------- PAGE HERO (subpages) ---------- */
.page-hero{
  position:relative;padding:88px 32px 72px;border-bottom:1px solid var(--line);overflow:hidden;
}
.page-hero::before{
  content:"";position:absolute;top:-30%;right:-10%;width:560px;height:560px;
  background:radial-gradient(circle, var(--ice-soft) 0%, transparent 70%);pointer-events:none;
}
.page-hero-inner{max-width:1180px;margin:0 auto;position:relative;z-index:2;}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:13px;font-weight:600;color:var(--ice-light);
  letter-spacing:1.5px;text-transform:uppercase;margin-bottom:20px;
}
.eyebrow::before{content:"";width:20px;height:1px;background:var(--ice-light);}
.page-hero h1{font-size:44px;font-weight:700;line-height:1.12;letter-spacing:-1px;max-width:680px;margin-bottom:16px;}
.page-hero h1 span{color:var(--ice-light);}
.page-hero p{font-size:17px;color:var(--text-muted);max-width:560px;}
.breadcrumb{font-size:13px;color:var(--text-muted);margin-bottom:20px;}
.breadcrumb a:hover{color:var(--ice-light);}
.breadcrumb .sep{margin:0 8px;opacity:.5;}

/* ---------- HOME HERO ---------- */
.hero{position:relative;padding:120px 32px 150px;overflow:hidden;border-bottom:1px solid var(--line);}
.hero::before{
  content:"";position:absolute;top:-20%;right:-10%;width:640px;height:640px;
  background:radial-gradient(circle, var(--ice-soft) 0%, transparent 70%);pointer-events:none;
}
.hero-mark{position:absolute;top:50%;right:6%;transform:translateY(-50%);width:280px;pointer-events:none;opacity:.92;}
.hero-mark img{width:100%;height:auto;display:block;}
.hero-inner{max-width:1180px;margin:0 auto;position:relative;z-index:2;}
.hero h1{font-size:56px;font-weight:700;line-height:1.08;letter-spacing:-1px;max-width:680px;margin-bottom:24px;}
.hero h1 span{color:var(--ice-light);}
.hero p{font-size:18px;color:var(--text-muted);max-width:520px;margin-bottom:40px;}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap;}

.btn-primary{
  background:var(--ice);color:var(--white);padding:14px 28px;border-radius:6px;
  font-weight:600;font-size:15px;transition:transform .2s, background .2s;display:inline-block;
}
.btn-primary:hover{background:var(--ice-light);transform:translateY(-2px);}
.btn-secondary{
  border:1px solid var(--line);color:var(--text);padding:14px 28px;border-radius:6px;
  font-weight:600;font-size:15px;transition:border-color .2s, background .2s;display:inline-block;
}
.btn-secondary:hover{border-color:var(--ice);background:var(--navy-panel);}
.btn-block{width:100%;text-align:center;}

/* ---------- STATS STRIP ---------- */
.stats{border-bottom:1px solid var(--line);background:var(--navy-panel);}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);}
.stat{padding:36px 24px;text-align:center;border-left:1px solid var(--line);}
.stat:first-child{border-left:none;}
.stat .num{font-family:'Space Grotesk',sans-serif;font-size:32px;font-weight:700;color:var(--ice-light);}
.stat .label{font-size:13px;color:var(--text-muted);margin-top:4px;}

/* ---------- SECTION HEADERS ---------- */
.section{padding:100px 32px;}
.section-tight{padding:72px 32px;}
.section-head{max-width:600px;margin-bottom:56px;}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center;}
.section-head .eyebrow{margin-bottom:16px;}
.section-head h2{font-size:36px;font-weight:700;letter-spacing:-.5px;margin-bottom:16px;}
.section-head p{color:var(--text-muted);font-size:16px;}

/* ---------- SERVICIOS GRID (home preview + servicios page) ---------- */
.services{background:var(--navy-panel);border-bottom:1px solid var(--line);}
.service-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden;
}
.service-card{background:var(--navy-panel);padding:40px 32px;position:relative;transition:background .25s;}
.service-card:hover{background:var(--navy-panel-2);}
.service-num{font-size:13px;color:var(--ice-light);font-weight:600;letter-spacing:1px;margin-bottom:20px;font-family:'Space Grotesk',sans-serif;}
.service-icon{width:44px;height:44px;margin-bottom:24px;display:flex;align-items:center;justify-content:center;background:var(--ice-soft);border-radius:8px;color:var(--ice-light);}
.service-icon svg{width:20px;height:20px;}
.service-card h3{font-size:19px;font-weight:600;margin-bottom:12px;}
.service-card p{color:var(--text-muted);font-size:14.5px;}
.service-card .link{display:inline-flex;align-items:center;gap:6px;margin-top:18px;font-size:13.5px;font-weight:600;color:var(--ice-light);}

/* ---------- SERVICE DETAIL BLOCKS (servicios.html) ---------- */
.service-detail{
  display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;
  padding:80px 0;border-bottom:1px solid var(--line);
}
.service-detail:last-child{border-bottom:none;}
.service-detail.reverse .sd-visual{order:2;}
.service-detail.reverse .sd-text{order:1;}
.sd-text .eyebrow{margin-bottom:14px;}
.sd-text h3{font-size:30px;font-weight:700;letter-spacing:-.5px;margin-bottom:16px;}
.sd-text > p{color:var(--text-muted);font-size:15.5px;margin-bottom:28px;}
.sd-features{display:flex;flex-direction:column;gap:14px;margin-bottom:28px;}
.sd-feature{display:flex;gap:12px;align-items:flex-start;font-size:14.5px;}
.sd-feature svg{flex-shrink:0;margin-top:2px;width:18px;height:18px;color:var(--ice-light);}
.sd-feature strong{color:var(--text);}
.sd-feature span{color:var(--text-muted);}
.sd-visual{
  aspect-ratio:4/3;border-radius:16px;background:linear-gradient(155deg, var(--navy-panel) 0%, var(--navy-deep) 100%);
  border:1px solid var(--line);position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;
}
.sd-visual::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 30% 20%, var(--ice-soft) 0%, transparent 55%);
}
.sd-visual svg{position:relative;z-index:2;width:56%;height:56%;color:var(--ice-light);}

/* ---------- PROCESS / TIMELINE ---------- */
.process{background:var(--navy-panel);border-bottom:1px solid var(--line);}
.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;position:relative;}
.process-step{position:relative;padding-top:8px;}
.process-step::before{
  content:"";position:absolute;top:0;left:0;right:0;height:2px;background:var(--line);
}
.process-step.active::before{background:var(--ice);}
.process-num{font-family:'Space Grotesk',sans-serif;font-size:14px;font-weight:700;color:var(--ice-light);margin:20px 0 10px;}
.process-step h4{font-size:16px;font-weight:600;margin-bottom:8px;}
.process-step p{font-size:14px;color:var(--text-muted);}

/* ---------- WHY GRID ---------- */
.why-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden;
}
.why-item{background:var(--navy-deep);padding:32px 26px;transition:background .25s;border-top:2px solid transparent;}
.why-item:hover{background:var(--navy-panel);border-top-color:var(--ice);}
.why-mark{
  width:38px;height:38px;border-radius:8px;margin-bottom:20px;background:var(--ice-soft);color:var(--ice-light);
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;font-family:'Space Grotesk',sans-serif;
}
.why-item h4{font-size:16px;font-weight:600;margin-bottom:8px;line-height:1.3;}
.why-item p{color:var(--text-muted);font-size:14px;}

/* ---------- TESTIMONIALS ---------- */
.testimonials{background:var(--navy-panel);border-bottom:1px solid var(--line);}
.testi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.testi-card{background:var(--navy-deep);border:1px solid var(--line);border-radius:12px;padding:32px;display:flex;flex-direction:column;gap:20px;}
.testi-stars{display:flex;gap:3px;color:var(--ice-light);}
.testi-quote{font-size:14.5px;color:var(--text);line-height:1.65;}
.testi-author{display:flex;align-items:center;gap:12px;margin-top:auto;}
.testi-avatar{
  width:38px;height:38px;border-radius:50%;background:var(--ice-soft);color:var(--ice-light);
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;font-family:'Space Grotesk',sans-serif;
}
.testi-author .name{font-size:14px;font-weight:600;}
.testi-author .role{font-size:12.5px;color:var(--text-muted);}

/* ---------- VALUES / MISSION (nosotros) ---------- */
.values-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.value-card{padding:32px;border:1px solid var(--line);border-radius:12px;background:var(--navy-panel);transition:border-color .2s;}
.value-card:hover{border-color:var(--ice);}
.value-icon{width:42px;height:42px;border-radius:10px;background:var(--ice-soft);display:flex;align-items:center;justify-content:center;margin-bottom:20px;color:var(--ice-light);}
.value-icon svg{width:20px;height:20px;}
.value-card h4{font-size:17px;font-weight:600;margin-bottom:10px;}
.value-card p{font-size:14px;color:var(--text-muted);}

.story-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;}
.story-visual{
  aspect-ratio:1/1;border-radius:16px;background:linear-gradient(155deg, var(--navy-panel) 0%, var(--navy-deep) 100%);
  border:1px solid var(--line);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;
}
.story-visual img{width:46%;opacity:.95;}
.story-text p{color:var(--text-muted);font-size:15.5px;margin-bottom:18px;}
.story-text p:last-child{margin-bottom:0;}

/* ---------- FAQ ---------- */
.faq-list{display:flex;flex-direction:column;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden;}
.faq-item{background:var(--navy-deep);}
.faq-q{
  padding:22px 28px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;
  font-size:15.5px;font-weight:600;user-select:none;
}
.faq-q .plus{color:var(--ice-light);font-size:20px;font-weight:400;transition:transform .25s;flex-shrink:0;margin-left:16px;}
.faq-item.open .faq-q .plus{transform:rotate(45deg);}
.faq-a{max-height:0;overflow:hidden;transition:max-height .3s ease;}
.faq-a p{padding:0 28px 22px;color:var(--text-muted);font-size:14.5px;max-width:640px;}

/* ---------- CONTACT ---------- */
.contact{background:var(--navy-panel);}
.contact-box{
  background:var(--navy-deep);border:1px solid var(--line);border-radius:16px;
  padding:64px;display:grid;grid-template-columns:1.1fr 1fr;gap:56px;position:relative;overflow:hidden;
}
.contact-box::after{
  content:"";position:absolute;bottom:-40%;left:-10%;width:400px;height:400px;
  background:radial-gradient(circle, var(--ice-soft) 0%, transparent 70%);
}
.contact-info h2{font-size:32px;font-weight:700;margin-bottom:16px;letter-spacing:-.5px;}
.contact-info > p{color:var(--text-muted);margin-bottom:32px;max-width:400px;}
.contact-detail{display:flex;align-items:center;gap:12px;margin-bottom:16px;font-size:14.5px;}
.contact-detail strong{color:var(--text);font-weight:600;}
.contact-form{display:flex;flex-direction:column;gap:14px;position:relative;z-index:2;}
.contact-form .row{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.contact-form input, .contact-form textarea, .contact-form select{
  background:var(--navy-panel);border:1px solid var(--line);color:var(--text);
  padding:13px 16px;border-radius:8px;font-size:14px;font-family:'Inter',sans-serif;outline:none;transition:border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus{border-color:var(--ice);}
.contact-form textarea{resize:vertical;min-height:100px;}
.contact-form button{
  background:var(--ice);color:var(--white);border:none;padding:14px;border-radius:8px;
  font-weight:600;font-size:15px;cursor:pointer;transition:background .2s;
}
.contact-form button:hover{background:var(--ice-light);}

/* Contact page extras */
.contact-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom:24px;}
.contact-card{padding:28px;border:1px solid var(--line);border-radius:12px;background:var(--navy-deep);}
.contact-card .service-icon{margin-bottom:18px;}
.contact-card h4{font-size:15.5px;font-weight:600;margin-bottom:6px;}
.contact-card p{font-size:13.5px;color:var(--text-muted);margin-bottom:12px;}
.contact-card a{font-size:13.5px;font-weight:600;color:var(--ice-light);}

/* ---------- FINAL CTA BAND ---------- */
.cta-band{padding:90px 32px;text-align:center;position:relative;overflow:hidden;}
.cta-band::before{
  content:"";position:absolute;top:-40%;left:50%;transform:translateX(-50%);width:700px;height:700px;
  background:radial-gradient(circle, var(--ice-soft) 0%, transparent 70%);pointer-events:none;
}
.cta-band-inner{position:relative;z-index:2;max-width:600px;margin:0 auto;}
.cta-band h2{font-size:34px;font-weight:700;letter-spacing:-.5px;margin-bottom:16px;}
.cta-band p{color:var(--text-muted);margin-bottom:32px;font-size:16px;}
.cta-band .actions{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;}

/* ---------- FOOTER ---------- */
footer{padding:48px 32px 32px;border-top:1px solid var(--line);}
.footer-top{
  max-width:1180px;margin:0 auto 32px;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:32px;
  padding-bottom:32px;border-bottom:1px solid var(--line);
}
.footer-col h5{font-size:13px;font-weight:600;color:var(--text);margin-bottom:16px;letter-spacing:.5px;text-transform:uppercase;}
.footer-col a{display:block;font-size:14px;color:var(--text-muted);margin-bottom:10px;transition:color .2s;}
.footer-col a:hover{color:var(--ice-light);}
.footer-col p{font-size:14px;color:var(--text-muted);max-width:260px;margin-top:14px;}
.footer-inner{
  max-width:1180px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;
}
.footer-inner .brand img{height:22px;}
.footer-note{color:var(--text-muted);font-size:13px;}
.footer-social{display:flex;gap:14px;}
.footer-social a{
  width:36px;height:36px;border-radius:8px;border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:var(--text-muted);
  transition:border-color .2s, color .2s, background .2s;
}
.footer-social a:hover{border-color:var(--ice);color:var(--ice-light);background:var(--navy-panel);}
.footer-social svg{width:17px;height:17px;}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px){
  .service-detail{grid-template-columns:1fr;gap:32px;}
  .service-detail.reverse .sd-visual{order:1;}
  .service-detail.reverse .sd-text{order:2;}
  .story-grid{grid-template-columns:1fr;gap:32px;}
  .process-grid{grid-template-columns:1fr 1fr;gap:32px;}
  .stats-grid{grid-template-columns:1fr 1fr;}
  .stat{border-left:none;border-top:1px solid var(--line);}
  .stat:nth-child(1), .stat:nth-child(2){border-top:none;}
  .footer-top{grid-template-columns:1fr 1fr;}
}
@media (max-width: 860px){
  .nav-links{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;background:var(--navy-deep);border-bottom:1px solid var(--line);padding:16px 32px;gap:16px;}
  .nav-links.mobile-open{display:flex;}
  .burger{display:flex;align-items:center;justify-content:center;}
  .hero h1, .page-hero h1{font-size:34px;}
  .hero-mark{display:none;}
  .service-grid, .why-grid, .values-grid, .testi-grid, .contact-cards{grid-template-columns:1fr;}
  .why-item{border-top:none;border-left:2px solid transparent;}
  .why-item:hover{border-left-color:var(--ice);}
  .contact-box{grid-template-columns:1fr;padding:32px 24px;}
  .contact-form .row{grid-template-columns:1fr;}
  .section{padding:64px 20px;}
  .section-tight{padding:48px 20px;}
  .process-grid{grid-template-columns:1fr;}
  .footer-top{grid-template-columns:1fr;}
}
