/* =========================
   VARIABLES
========================= */
:root{
  --primary:#EF8220;
  --dark:#111;
  --text:#222;
  --gray:#666;
  --bg:#f5f5f5;
  --navbar-height:100px;
  --radius:190px;
  --transition-smooth:all .3s cubic-bezier(.2,.8,.2,1);
}

/* =========================
   RESET
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

img{
  max-width:100%;
  height:auto;
}

body{
  font-family:Inter,sans-serif;
  color:var(--text);
  background:#fff;
  overflow-x:hidden;
}

/* =========================
   TEXT STYLES
========================= */
.text{
  line-height:1.8;
  color:var(--gray);
  font-size:1.02rem;
}

.text-justify{
  text-align:justify;
}

.accent{
  color:var(--primary);
  font-weight:600;
}

.accent:hover{
  text-shadow:0 0 8px rgba(250,94,58,0.3);
}

/* =========================
   COMPONENTS
========================= */
.btn-container {
    display: flex;
    justify-content: center;
}
/* GLASS CARD */
.glass-card{
  background:rgba(255,255,255,0.7);
  border:1px solid rgba(0,0,0,0.05);
  backdrop-filter:blur(10px);
  border-radius:20px;
  padding:30px;
  transition:all 0.4s ease;
  box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

.glass-card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 50px rgba(250,94,58,0.15);
}

/* GRID */
.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
}

.grid-4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:30px;
}

/* TITLES */
.section-title{
  font-size:42px;
  margin-bottom:60px;
  text-align:center;
  position:relative;
}

.section-title::after{
  content:"";
  display:block;
  width:50px;
  height:3px;
  background:var(--primary);
  margin:12px auto 0;
  border-radius:2px;
}

/* EFFECTS */
.hover-lift{
  transition:0.3s ease;
}

.hover-lift:hover{
  transform:translateY(-6px) scale(1.02);
}

/* SECTION SCROLL-REVEAL */
.section{
  opacity:0;
  transform:translateY(40px);
  transition:all .8s ease;
}

.section.show{
  opacity:1;
  transform:translateY(0);
}

/* UNIVERSAL REVEAL */
.reveal{
  opacity:0;
  transform:translateY(30px);
  transition:opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active{
  opacity:1;
  transform:translateY(0);
}

/* =========================
   NAVBAR
========================= */

.navbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
}

.navbar::before{
  content:"";
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:var(--navbar-height);
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  pointer-events:none;
  z-index:-1;
}

.nav-container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 8%;
  max-width:1400px;
  margin:auto;
}

/* LOGO */
.logo img{
  height:60px;
  max-width:100%;
  object-fit:contain;
  transition:.3s;
}

.logo img:hover{
  transform:scale(1.05);
}

/* LINKS */
.nav-links{
  display:flex;
  gap:32px;
  list-style:none;
}

.nav-links a{
  text-decoration:none;
  color:var(--text);
  font-weight:700;
  position:relative;
  transition:.3s;
}

.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-5px;
  width:0%;
  height:2px;
  background:var(--primary);
  transition:.3s;
}

.nav-links a:hover::after{
  width:100%;
}

.nav-links a:hover{
  color:var(--primary);
}

/* =========================
   DROPDOWN (DESKTOP)
========================= */

.dropdown{
  position:relative;
}

.dropdown-menu{
  position:absolute;
  top:100%;
  left:0;
  background:white;
  list-style:none;
  padding:10px 0;
  min-width:200px;
  border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);

  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:all .3s ease;
  z-index:999;
}

.dropdown-menu li{
  padding:10px 20px;
}

.dropdown-menu a{
  color:var(--text);
  text-decoration:none;
  display:block;
  transition:.3s;
}

.dropdown-menu a:hover{
  color:var(--primary);
  transform:translateX(5px);
}

/* DROPDOWN ARROW */
.dropdown > a::after{
  content:"▾";
  margin-left:4px;
  font-size:10px;
  display:inline-block;
  transition:transform .3s ease;
  color:var(--primary);
}
.dropdown:hover > a::after{
  transform:rotate(180deg);
}

/* HOVER DESKTOP */
.dropdown:hover .dropdown-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* =========================
   LANGUAGE SWITCHER
========================= */

.lang-item {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.lang-switch {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.lang-switch:hover {
  color: var(--primary);
}

.lang-switch.lang-active {
  color: var(--primary);
  background: rgba(239,130,32,0.1);
}

.lang-divider {
  color: #ccc;
  font-size: 14px;
}

@media(max-width:900px){
  .lang-item {
    margin-left: 0;
    margin-top: 10px;
  }
  .lang-switch {
    font-size: 20px;
  }
}

/* =========================
   HAMBURGER
========================= */

.menu-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.menu-toggle span{
  width:25px;
  height:3px;
  background:var(--text);
  border-radius:2px;
  transition:all .3s ease;
  transform-origin:center;
}

.menu-toggle.active span:nth-child(1){
  transform:translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
  opacity:0;
}

.menu-toggle.active span:nth-child(3){
  transform:translateY(-8px) rotate(-45deg);
}

/* =========================
   OVERLAY (MOBILE)
========================= */

.nav-overlay{
  position:fixed;
  inset:0;
  z-index:998;
  background:rgba(0,0,0,0.35);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  opacity:0;
  pointer-events:none;
  transition:opacity .35s ease;
}

.nav-overlay.active{
  opacity:1;
  pointer-events:auto;
}

/* =========================
   MOBILE
========================= */

@media(max-width:900px){

  .menu-toggle{
    display:flex;
    z-index:1100;
    position:relative;
  }

  .nav-links{
    position:fixed;
    top:0;
    right:0;
    width:min(320px, 80vw);
    height:100vh;
    height:100dvh;

    background:rgba(255,255,255,0.97);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);

    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:28px;

    padding:100px 24px 40px;
    box-sizing:border-box;

    transform:translateX(100%);
    transition:transform .35s cubic-bezier(.2,.8,.2,1);

    box-shadow:-8px 0 40px rgba(0,0,0,0.12);

    z-index:1099;
  }

  .nav-links.active{
    transform:translateX(0);
  }

  .nav-links a{
    font-size:18px;
  }

  /* DROPDOWN MOBILE (ACORDEÓN) */
  .dropdown-menu{
    position:static;
    box-shadow:none;

    max-height:0;
    overflow:hidden;

    opacity:0;
    transform:translateY(-6px);

    transition:
      max-height .4s ease,
      opacity .3s ease,
      transform .3s ease;

    padding:0;
    margin-top:6px;

    visibility:visible;
  }

  .dropdown.open .dropdown-menu{
    max-height:300px;
    opacity:1;
    transform:translateY(0);
  }

  .dropdown{
  text-align:center;
  width:100%;
}

  /* Link principal */
  .dropdown > a{
    display:block;
    width:100%;
    text-align:center;
  }

  /* Submenú */
  .dropdown-menu{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
  }

  /* Items */
  .dropdown-menu li{
    width:100%;
  }

  /* Links internos */
  .dropdown-menu a{
    display:block;
    width:100%;
    text-align:center;
    font-size:16px;
  }

  .lang-item {
    margin-left: 0;
    margin-top: 16px;
  }
  .lang-switch {
    font-size: 18px;
  }

}

/* =========================
   HERO
========================= */

.hero{
  height:100vh;
  display:flex;
  align-items:center;
  padding:0 8%;
  background: linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,.4)), url("../images/Autonomous.png");
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
  color:white;
  position:relative;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at 30% 50%, rgba(239,130,32,0.15), transparent 60%),
             radial-gradient(ellipse at 70% 20%, rgba(250,94,58,0.1), transparent 50%);
  animation:heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow{
  0%{opacity:.6;transform:scale(1);}
  100%{opacity:1;transform:scale(1.05);}
}

.hero-content{
  max-width:700px;
  position:relative;
  z-index:1;
}

.hero h1{
  font-size:64px;
  line-height:1.1;
  opacity:0;
  animation:fadeInUp 1s ease forwards;
  animation-delay:0.5s;
}

.hero span,
.highlight{
  color:var(--primary);
  font-weight:600;
  position:relative;
  animation:highlightAnim 1.2s ease-in-out forwards;
}

.accent{
  color:var(--primary);
  font-weight:600;
  background:linear-gradient(90deg,var(--primary),#FA5E3A);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  transition:all .3s ease;
}

.hero p{
  margin-top:24px;
  font-size:18px;
  color:#ddd;
  opacity:0;
  animation:fadeInUp 1s ease forwards;
  animation-delay:1.2s;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  0%{opacity:0;transform:translateY(20px);}
  100%{opacity:1;transform:translateY(0);}
}

@keyframes highlightAnim {
  0%{
    color:#fff;
    text-shadow:0 0 0 transparent;
    transform:translateY(10px);
    opacity:0;
  }
  60%{
    color:var(--primary);
    text-shadow:0 0 12px rgba(250,94,58,0.6);
    opacity:1;
  }
  100%{
    color:var(--primary);
    text-shadow:0 0 6px rgba(250,94,58,0.4);
    transform:translateY(0);
  }
}

/* RESPONSIVE HERO */
@media(max-width:900px){
  .hero h1{
    font-size:40px;
  }
  .hero{
    background-attachment:scroll;
  }
}

/* HERO BUTTON ENTRANCE */
.hero .btn-primary{
  opacity:0;
  animation:fadeInUp 1s ease forwards;
  animation-delay:1.8s;
}

/* BUTTON */
.btn-primary{
  display:inline-block;
  margin-top:30px;
  padding:14px 30px;
  background:var(--primary);
  color:white;
  text-decoration:none;
  border-radius:8px;
  font-weight:500;
  transition:.3s;
}

.btn-primary:hover{
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 0 25px rgba(250,94,58,0.6);
}

/* =========================
   HEADER PILL
========================= */
.header-pill{
  display:inline-block;
  background:rgba(239,130,32,0.15);
  border:1px solid rgba(239,130,32,0.25);
  color:var(--primary);
  padding:6px 18px;
  border-radius:100px;
  font-weight:600;
  font-size:12px;
  letter-spacing:.6px;
  margin-bottom:24px;
  backdrop-filter:blur(4px);
  animation:headerPillGlow 3s ease-in-out infinite alternate;
}

@keyframes headerPillGlow{
  0%{border-color:rgba(239,130,32,0.25);box-shadow:0 0 0 rgba(239,130,32,0);}
  100%{border-color:rgba(239,130,32,0.5);box-shadow:0 0 20px rgba(239,130,32,0.08);}
}

/* =========================
   HERO BUTTONS
========================= */
.hero-buttons{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:32px;
  position:relative;
  z-index:5;
}

.hero-buttons .btn-primary{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:linear-gradient(135deg,var(--primary),#ff9a3c);
  color:#fff;
  padding:14px 32px;
  border-radius:12px;
  font-weight:700;
  font-size:15px;
  letter-spacing:.3px;
  transition:all .35s ease;
  text-decoration:none;
  box-shadow:0 4px 20px rgba(239,130,32,0.3);
  position:relative;
  z-index:5;
  pointer-events:auto;
  margin-top:0;
  animation:none;
  opacity:1;
}

.hero-buttons .btn-primary:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 30px rgba(239,130,32,0.4);
}

.hero-buttons .btn-secondary{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,0.06);
  color:rgba(255,255,255,0.85);
  padding:14px 32px;
  border-radius:12px;
  font-weight:600;
  font-size:15px;
  letter-spacing:.3px;
  border:1px solid rgba(255,255,255,0.12);
  transition:all .35s ease;
  text-decoration:none;
  position:relative;
  z-index:5;
  pointer-events:auto;
  margin-top:0;
}

.hero-buttons .btn-secondary:hover{
  background:rgba(255,255,255,0.1);
  border-color:rgba(239,130,32,0.4);
  transform:translateY(-3px);
}

/* =========================
   HEADER STATS
========================= */
.header-stats{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  margin-top:40px;
}

.header-stat{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
}

.header-stat-num{
  font-size:24px;
  font-weight:800;
  color:#fff;
  letter-spacing:-.5px;
}

.header-stat-label{
  font-size:11px;
  font-weight:500;
  color:rgba(255,255,255,0.45);
  text-transform:uppercase;
  letter-spacing:.8px;
}

.header-stat-dot{
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--primary);
  opacity:0.5;
}

/* HEADER FADE */
.header-fade{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:100px;
  background:linear-gradient(to top, #fff, transparent);
  pointer-events:none;
  z-index:2;
}

@media(max-width:900px){
  .header-stats{
    gap:16px;
    margin-top:32px;
  }

  .header-stat-num{
    font-size:20px;
  }
}

@media(max-width:600px){
  .hero-buttons{
    flex-direction:column;
    align-items:center;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary{
    width:100%;
    max-width:280px;
    justify-content:center;
  }

  .header-stats{
    flex-wrap:wrap;
    gap:12px 20px;
  }

  .header-stat-dot{
    display:none;
  }
}

/* =========================
   HERO BOILERPLATE (TECH PAGES)
======================== */

.tech-title {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 20px;
}

.tech-title .accent {
  color: var(--primary);
}

.tech-title .glow {
  text-shadow: 0 0 12px rgba(250,94,58,0.8);
}

.tech-subtitle {
  font-size: 1.2rem;
  color: #ddd;
  max-width: 700px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.tech-divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 30px auto;
  border-radius: 2px;
}

.tech-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.tech-tags span {
  background: rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #fff;
  cursor: default;
  transition: all 0.3s ease;
}

.tech-tags span:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(250,94,58,0.5);
}

/* =========================
   ANIMATIONS (SHARED)
======================== */

@keyframes dataFlow {
  to{left:100%;}
}

@keyframes gridMove {
  from{background-position:0 0;}
  to{background-position:40px 40px;}
}

/* =========================
   MODAL VIDEO
======================== */

.video-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.8);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2000;
}

.video-container{
  position:relative;
  width:90%;
  max-width:1000px;
  aspect-ratio:16/9;
}

.video-container iframe{
  width:100%;
  height:100%;
  border-radius:10px;
}

.close-video{
  position:absolute;
  top:-40px;
  right:0;
  font-size:28px;
  color:white;
  cursor:pointer;
}

/* =========================
   FOOTER
========================= */

.footer {
  background: linear-gradient(180deg,#111 0%,#1a1a1a 100%);
  color: #ccc;
  padding: 60px 8% 40px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  border-top: 3px solid var(--primary);
  position:relative;
}

.footer::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg,transparent,var(--primary),transparent);
  opacity:.6;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Branding */
.footer-brand {
  text-align: center;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 8px;
  letter-spacing:-.5px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #888;
  max-width: 500px;
  margin: 0 auto;
}

/* Links Section */
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-column h4 {
  color: #fff;
  margin-bottom: 18px;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform:uppercase;
  opacity:.7;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #999;
  text-decoration: none;
  transition: all 0.3s;
  font-size:0.95rem;
  position:relative;
  padding-bottom:2px;
}

.footer-column ul li a::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:0;
  height:1px;
  background:var(--primary);
  transition:.3s;
}

.footer-column ul li a:hover {
  color: var(--primary);
}

.footer-column ul li a:hover::after{
  width:100%;
}

/* Social Icons */
.social-icons {
  display:flex;
  gap:12px;
  margin-top:4px;
}

.social-icons a {
  display: inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  color: #aaa;
  font-size: 1.1rem;
  transition: all 0.3s;
  border-radius:50%;
  background:rgba(255,255,255,0.05);
}

.social-icons a:hover {
  color: #fff;
  background:var(--primary);
  transform:translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
}

/* =========================
   UTILIDADES
========================= */

html, body {
  height: 100%;
}

body {
  overflow-x: hidden;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}