:root{
  --azul:#1f6feb;
  --azul-hover:#155bd6;
  --texto:#0b1f3a;
  --gris:#64748b;
  --borde:#dbe7ff;
  --fondo:#f4f8ff;
  --blanco:#fff;
  --oscuro:#061b3a;
  --shadow:0 8px 24px rgba(0,0,0,.05);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"Segoe UI",Arial,sans-serif;background:var(--fondo);color:var(--texto)}
section{scroll-margin-top:100px}
a{text-decoration:none}
button{cursor:pointer}

.page{
  width:96%;
  max-width:1700px;
  margin:20px auto;
  background:var(--blanco);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.12);
}

/* NAVBAR */
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:24px 50px;
  background:rgba(255,255,255,.92);
}

.logo{flex-shrink:0}
.logo img{height:58px}

.menu{
  display:flex;
  gap:22px;
  flex-shrink:1;
}

.menu a{
  color:var(--texto);
  font-weight:600;
  font-size:15px;
}

.menu a:hover,
.menu a.active{color:var(--azul)}

.nav-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
  flex-wrap:nowrap;
}

.login-btn,
.admin-product-btn{
  padding:10px 14px;
  border-radius:10px;
  font-weight:800;
  white-space:nowrap;
}

.login-btn{
  border:2px solid var(--borde);
  color:var(--texto);
  background:var(--blanco);
}

.admin-product-btn{
  background:var(--azul);
  color:var(--blanco);
  border:1px solid var(--azul);
  font-size:14px;
}

.admin-product-btn:hover{background:var(--azul-hover)}

.icon-btn,
.cart-btn{
  width:44px;
  height:44px;
  border:2px solid var(--borde);
  border-radius:12px;
  background:var(--blanco);
  color:var(--texto);
  font-size:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.cart-btn span{
  position:absolute;
  top:-8px;
  right:-8px;
  min-width:20px;
  height:20px;
  border-radius:50%;
  background:var(--azul);
  color:var(--blanco);
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}

.language-box{position:relative}

.language-menu{
  display:none;
  position:absolute;
  right:0;
  top:52px;
  background:var(--blanco);
  border:1px solid var(--borde);
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  overflow:hidden;
  z-index:50;
}

.language-menu button{
  width:130px;
  padding:12px;
  border:none;
  background:var(--blanco);
  color:var(--texto);
  text-align:left;
  font-weight:600;
}

.language-menu button:hover{background:#eef5ff;color:var(--azul)}

.user-box{
  display:flex;
  align-items:center;
  gap:10px;
  max-width:190px;
  overflow:hidden;
  padding:10px 14px;
  border:2px solid var(--borde);
  border-radius:12px;
  background:var(--blanco);
  font-weight:700;
  white-space:nowrap;
}

.user-box span{
  max-width:90px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.user-box small{
  background:var(--azul);
  color:var(--blanco);
  padding:3px 8px;
  border-radius:8px;
  font-size:12px;
}

.logout-btn{color:#d62828;font-weight:700}

.currency-select{
  padding:10px 12px;
  border:1px solid var(--borde);
  border-radius:10px;
  font-weight:800;
  background:var(--blanco);
  color:var(--texto);
}

/* HERO */
.hero{
  min-height:620px;
  padding:70px 55px 30px;
  background-image:
    linear-gradient(90deg,#fff 0%,rgba(255,255,255,.95) 42%,rgba(255,255,255,.5) 100%),
    url("assets/hero-robot-global.png");
  background-size:cover;
  background-position:center right;
}

.hero-content{max-width:580px}

.hero h1{
  font-size:58px;
  line-height:1.05;
  font-weight:800;
  margin-bottom:24px;
}

.hero h1 span{color:var(--azul)}

.hero p{
  font-size:19px;
  color:var(--gris);
  line-height:1.7;
  margin-bottom:32px;
}

.buttons{display:flex;gap:18px}

.btn-primary,
.btn-secondary{
  display:inline-block;
  padding:16px 28px;
  border-radius:10px;
  font-weight:700;
}

.btn-primary{background:var(--azul);color:var(--blanco)}
.btn-secondary{border:2px solid var(--borde);color:var(--texto);background:var(--blanco)}

/* FLEX GROUPS */
.features,
.about-stats,
.service-grid,
.stats,
.logo-row,
.contact-grid,
.form-grid,
.footer,
.about-hero,
.mission-vision,
.services,
.results{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}

/* FEATURES */
.features{
  padding:0 55px 55px;
  margin-top:-20px;
  position:relative;
  z-index:5;
}

.feature-card,
.about-stat,
.mv-card,
.service-card{
  background:var(--blanco);
  border:1px solid var(--borde);
  box-shadow:var(--shadow);
}

.feature-card{
  flex:1 1 220px;
  border-radius:14px;
  padding:22px;
  box-shadow:0 8px 24px rgba(31,111,235,.08);
}

.feature-card h4{font-size:15px;margin-bottom:6px}
.feature-card p{color:var(--gris);font-size:13px}

/* ABOUT */
.about-section,
.services,
.results,
.contact-section,
.footer{scroll-margin-top:30px}

.about-section,
.services{background:var(--blanco)}

.about-section{padding:70px 55px}

.about-hero{
  align-items:center;
  margin-bottom:45px;
}

.about-hero>div{flex:1 1 420px}

.about-section h2,
.contact-section h2{
  font-size:42px;
  margin-bottom:18px;
}

.about-section p,
.services p{
  color:var(--gris);
  line-height:1.7;
}

.about-section p{font-size:18px}

.about-image img{
  width:100%;
  max-height:330px;
  object-fit:contain;
}

.about-stat{
  flex:1 1 200px;
  border-radius:16px;
  padding:32px;
  text-align:center;
}

.about-stat h3{
  color:var(--azul);
  font-size:42px;
  margin-bottom:10px;
}

.mission-vision{margin-top:30px}

.mv-card{
  flex:1 1 400px;
  border-radius:18px;
  padding:34px;
}

.mv-card h3{font-size:24px;margin-bottom:14px}

/* SERVICES */
.services{padding:45px 55px 70px}
.services>div:first-child,
.results>div:first-child{flex:1 1 280px}

.service-grid{flex:2 1 650px}

.section-label{
  color:var(--azul);
  font-weight:800;
  margin-bottom:10px;
}

.services h2{
  font-size:34px;
  margin-bottom:18px;
}

.services p{line-height:1.6}

.service-card{
  flex:1 1 180px;
  min-height:220px;
  border-radius:18px;
  padding:26px;
}

.service-card img{height:45px;margin-bottom:22px}
.service-card h3{font-size:19px;margin-bottom:12px}
.service-card p{font-size:14px}

/* RESULTS */
.results{
  padding:45px 55px;
  color:var(--blanco);
  background:linear-gradient(135deg,#061b3a,#002b66);
}

.results h2{font-size:30px}
.stats{flex:3 1 650px}

.stat{
  flex:1 1 160px;
  padding:28px;
  border-radius:18px;
  text-align:center;
  background:rgba(255,255,255,.07);
}

.stat h3{font-size:34px;margin-bottom:10px}
.stat p{color:#b8c7e6}

/* TRUSTED */
.trusted{
  padding:45px 55px;
  text-align:center;
  background:var(--blanco);
  border-top:1px solid var(--borde);
  border-bottom:1px solid var(--borde);
}

.trusted .section-label{margin-bottom:30px}
.logo-row{align-items:center;justify-content:center}

.logo-row img{
  width:150px;
  max-height:55px;
  object-fit:contain;
  filter:grayscale(100%);
  opacity:.85;
}

.logo-row img:hover{filter:grayscale(0);opacity:1}

/* RESOURCES */
.resources-section{
  padding:90px 55px;
  background:#f8fbff;
}

.resources-section h2{
  font-size:42px;
  color:#0b1f33;
  margin-bottom:15px;
}

.resources-subtitle{
  max-width:600px;
  color:#53627a;
  font-size:18px;
  margin-bottom:40px;
  line-height:1.6;
}

.resources-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

.resource-card{
  background:var(--blanco);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 25px rgba(0,0,0,.08);
  transition:transform .3s ease;
}

.resource-card:hover{transform:translateY(-6px)}

.resource-card img{
  width:100%;
  height:160px;
  object-fit:cover;
}

.resource-content{padding:22px}
.resource-content h3{color:#0b1f33;margin-bottom:12px}
.resource-content p{color:#53627a;line-height:1.5}

.resource-content a{
  display:inline-block;
  margin-top:18px;
  color:#2f6df6;
  font-weight:bold;
}

/* CONTACT */
.contact-section{
  padding:70px 55px;
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.98),rgba(255,255,255,.88),rgba(255,255,255,.45)),
    url("assets/contact-bg.png");
  background-size:cover;
  background-position:center right;
}

.contact-subtitle{
  color:var(--gris);
  font-size:18px;
  line-height:1.6;
  max-width:620px;
  margin-bottom:35px;
}

.info-box{
  flex:1 1 300px;
  display:flex;
  flex-direction:column;
  gap:22px;
}

.form-card{
  flex:1 1 420px;
  border:1px solid var(--borde);
  border-radius:18px;
  padding:28px;
  background:rgba(255,255,255,.94);
  box-shadow:0 12px 35px rgba(0,0,0,.1);
}

.info-item{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.icon{
  width:42px;
  height:42px;
  border-radius:50%;
  background:#eef5ff;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--azul);
  font-size:20px;
  flex:none;
}

.info-item strong{display:block;margin-bottom:5px}
.info-item span{color:var(--gris);line-height:1.5}
.form-grid input,
.form-grid textarea{flex:1 1 240px}

input,
textarea{
  width:100%;
  padding:16px;
  border:1px solid var(--borde);
  border-radius:10px;
  outline:none;
  font-size:15px;
}

textarea{
  flex-basis:100%;
  height:160px;
  resize:none;
}

button{
  flex-basis:100%;
  padding:17px;
  border:none;
  border-radius:10px;
  background:var(--azul);
  color:var(--blanco);
  font-size:17px;
  font-weight:800;
}

button:hover{background:var(--azul-hover)}

/* FOOTER */
.footer{
  padding:35px 55px;
  background:var(--oscuro);
  color:var(--blanco);
}

.footer>div{flex:1 1 160px}
.footer img{height:45px;margin-bottom:15px}
.footer h4{margin-bottom:12px}

.footer a,
.footer p{
  display:block;
  color:#b8c7e6;
  font-size:14px;
  margin-bottom:8px;
}

.socials{display:flex;gap:10px}

.socials a{
  width:32px;
  height:32px;
  border-radius:8px;
  background:rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:center;
}

/* EXTRAS */
.top-actions{
  display:flex;
  gap:15px;
  margin-bottom:20px;
  flex-wrap:wrap;
}

/* RESPONSIVE */
@media(max-width:1500px){
  .navbar{flex-wrap:wrap}
  .nav-actions{
    width:100%;
    justify-content:flex-end;
  }
}

@media(max-width:1000px){
  .menu{display:none}
  .hero h1{font-size:42px}
  .resources-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:600px){
  .navbar,
  .hero,
  .features,
  .about-section,
  .services,
  .results,
  .trusted,
  .resources-section,
  .contact-section,
  .footer{
    padding-left:24px;
    padding-right:24px;
  }

  .buttons{flex-direction:column}

  .contact-section h2,
  .resources-section h2{font-size:34px}

  .resources-grid{grid-template-columns:1fr}

  .nav-actions{
    justify-content:flex-start;
    gap:8px;
  }
}
.language-btn{
  font-size:20px;
  line-height:1;
}
.admin-logo img{
  width:150px;
  max-width:100%;
  margin-bottom:20px;
  display:block;
}

.whatsapp-link{
  color:#16a34a;
  font-weight:700;
  text-decoration:none;
}

.whatsapp-link:hover{
  text-decoration:underline;
}