/* =========================
    RESET + VARIABLES
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-main: #0f172a;
  --bg-main2: #c8d0e2;
  --bg-soft: #020617;
  --accent: #22d3ee;
  --accent-2: #a855f7;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --card-bg: rgba(255,255,255,0.04);
  --border-soft: rgba(255,255,255,0.08);



--bg-main: #0b1220;        /* azul noche profundo */
--bg-section: #0f172a;     /* secciones */
--bg-card: #111827;       /* cards / servicios */
--text-main: #e5e7eb;      /* texto principal */
--text-muted: #9ca3af;    /* texto secundario */
--accent-primary: #a855f7; /* violeta tecnológico */
--accent-secondary: #6366f1; /* índigo suave */
--cta-bg: rgba(15, 23, 42, 0.9);
--cta-border: rgba(255, 255, 255, 0.15);
--cta-hover: rgba(255, 255, 255, 0.08);

}



body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, var(--bg-main), var(--bg-soft));
  color: var(--text-main);
  scroll-behavior: smooth;
  padding-top: 80px; /* espacio para header fijo */
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* =========================
    HEADER (FIJO)
========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-main);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 1000;
  display: flex;
  justify-content: center;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: center; /* centra el menú */
  padding: 14px 24px;
  width: 100%;
  max-width: 1200px;
  position: relative; /* necesario para mobile */
}


.nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav a {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 40px; /* ajustá a gusto */
  width: auto;
}

/* =========================
   HERO / INICIO
========================== */
#inicio.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  padding: 160px 10% 80px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 4vw, 4rem);
  line-height: 1.1;
  background: linear-gradient(90deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin-top: 20px;
  max-width: 520px;
  color: var(--text-main);
  font-size: 1.1rem;
}


.hero .btn {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 34px;
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.95),
    rgba(168, 85, 247, 0.85)
  );

  color: #020617; /* contraste limpio */
  font-weight: 600;
  letter-spacing: 0.2px;

  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow:
    0 10px 30px rgba(34, 211, 238, 0.25),
    inset 0 0 0 rgba(255,255,255,0);

  transition: 
    transform .25s ease,
    box-shadow .25s ease,
    filter .25s ease;
}

.hero .btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(34, 211, 238, 0.4);
  filter: brightness(1.05);
}

/* =========================
   SERVICIOS
========================== */
#servicios {
  padding: 120px 10%;
  background: #020617;
}

#servicios h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 2.4rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 24px;
  transition: transform .3s ease, border-color .3s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
}

.card h3 {
  margin-bottom: 10px;
  color: var(--accent);
  padding-left: 10px;
  border-left: 2px solid rgba(255,255,255,0.25);
}

#servicios .card:hover h3 {
  border-left-color: var(--accent);
  text-shadow:
    0 0 1px rgba(34,211,238,0.8),
    0 0 10px rgba(34,211,238,0.25);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =========================
   NOSOTROS
========================== */
#nosotros {
  padding: 120px 10%;
  background-color: var(--bg-section);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-card {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.02)
  );
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 32px;

  opacity: 0;
  transform: translateY(30px);
  transition: 
    opacity .6s ease,
    transform .6s ease,
    box-shadow .4s ease,
    border-color .4s ease;
}

.about-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow:
    0 0 0 1px rgba(34,211,238,0.15),
    0 20px 40px rgba(0,0,0,0.35);
}


.about-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-card h3 {
  color: var(--accent);
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-muted);
}

/* =========================
   CONTACTO
========================== */
#contacto {
  padding: 120px 10%;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--card-bg);
  border-radius: 32px;
  padding: 48px;
  border: 1px solid var(--border-soft);
  opacity: 0;
  transform: translateY(30px);
  transition: all .6s ease;
}

.contact-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-info h2 {
  font-size: 2.4rem;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-soft);
  color: #fff;
}

.contact-form button {
  padding: 14px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #000;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* =========================
   FOOTER
========================== */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 48px 24px;
  gap: 16px;

  background: linear-gradient(
    180deg,
    rgba(2,6,23,0.95),
    rgba(2,6,23,1)
  );

  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.footer-logo {
  width: 120px;
  max-width: 70%;
  opacity: 0.9;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.45));
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}


/* =========================
   HERO VISUAL
========================== */
.hero-visual {
  position: relative;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  max-width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
  opacity: 0.95;
}

/* =========================
   MENU HAMBURGUESA
========================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  display: block;
}

@media (max-width: 900px) {

  #inicio.hero {
    text-align: center;
    justify-items: center;
        display: flex;
    flex-direction: column;
    padding-top: 140px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content p {
    max-width: 90%;
  }

  .hero .btn {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    justify-content: center;
  }

  .about-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .nav ul {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-soft);
    display: none;
    flex-direction: column;
    z-index: 999;
  }

  .nav-menu li {
    border-top: 1px solid var(--border-soft);
  }

  .nav-menu li a {
    display: block;
    padding: 16px 24px;
    color: var(--text-main);
    font-size: 1rem;
  }

  .nav-menu li a:hover {
    background: rgba(255,255,255,0.04);
  }

  .nav-menu.active {
    display: flex;
  }

  .hero-visual {
    margin-top: 40px;
    min-height: 220px;
  }

  .hero-logo {
    max-width: 80%;
  }
  
  header nav {
    justify-content: flex-end; /* botón a la derecha */
  }

  .menu-toggle {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
  }
}


/* =========================
   HERO VIDEO BACKGROUND
========================== */

#inicio.hero {
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6; /* el video ahora se ve claro */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2,6,23,0.25),
    rgba(2,6,23,0.4)
  ); /* oscuridad MUY tenue */
  z-index: 1;
}

/* Elevar contenido */
.hero-content,
.hero-visual {
  position: relative;
  z-index: 2;
}
.hero-video {
  transition: opacity 1.2s ease;
}