/* =========================
   VARIABLES
========================= */
:root{
  --primary:#EF8220;
  --secondary:#F4C47C;
  --dark:#111;
  --text:#222;
  --gray:#666;
  --light:#fff;
  --bg:#f5f5f5;
  --navbar-height:100px;
}

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

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

/* =========================
   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);
}




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

.navbar{
  position:fixed;
  top:0;
  width:100%;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #eee;
  z-index:1000;
}

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

/* LOGO */
.logo img{
  height:60px;
  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:500;
  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);
}

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

/* =========================
   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;
}

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

@media(max-width:900px){

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

  .nav-links{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;

    background:white;

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

    transform:translateY(-100%);
    transition:transform .4s ease;

    box-shadow:0 10px 30px rgba(0,0,0,0.08);
  }

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

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

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

    max-height:0;
    overflow:hidden;

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

    transition:
      max-height 0.4s ease,
      opacity 0.3s ease,
      transform 0.3s ease;

    padding:0;
    margin-top:10px;

    visibility:visible; /* 🔥 evita bug */
  }

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

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

  /* El 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;
  }

}

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

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

.hero-content{
  max-width:700px;
}

.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;
}

.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;
  }
}

/* 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);
}

/* =========================
   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: #111;
  color: #ccc;
  padding: 60px 8%;
  font-family: 'Arial', sans-serif;
}

.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.8rem;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 1rem;
  line-height: 1.6;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
}

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

.footer-column h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

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

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

.footer-column ul li a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #EF8220; /* Color destacado */
}

/* Social Icons */
.social-icons a {
  display: inline-block;
  margin-right: 15px;
  color: #aaa;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #EF8220;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #222;
  padding-top: 20px;
}

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

html, body {
  height: 100%;
}

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

#footer {
  margin-top: auto;
}