:root{
  --bg: #0b0b10;          /* fondo principal oscuro */
  --bg-2: #0f1117;        /* secciones */
  --card: #141824;        /* tarjetas */
  --text: #e6e7ea;        /* texto principal */
  --muted:#a2a7b3;        /* texto secundario */
  --brand:#16b2ff;        /* acento frío que combina con blanco/negro del logo */
  --brand-2:#4cd1ff;      /* acento suave */
  --line: rgba(255,255,255,.08);
  --radius:16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html,body { height: 100%; scroll-behavior: smooth; }
body{
  margin:0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -20%, rgba(76,209,255,.12), transparent 60%), var(--bg);
}

/* Utilidades */
.container{ width:min(1120px, 92vw); margin-inline:auto; }
.section{ padding: 72px 0; }
.section-head{ text-align:center; margin-bottom:32px; }
.section-head h2{ font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin:0 0 8px; }
.section-head p{ color: var(--muted); margin:0; }
.center{ text-align:center; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:.6rem; padding:.9rem 1.2rem; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color:#0b0b10; font-weight:800; border:0; text-decoration:none;
  box-shadow: 0 6px 18px rgba(22,178,255,.35);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn-ghost{
  background: transparent; color: var(--text);
  border:1px solid var(--line); box-shadow:none;
}
.btn-soft{
  background: #1a2030; color: var(--text); box-shadow:none; border:1px solid var(--line);
}
.btn-sm{ padding:.55rem .9rem; font-weight:700; }

/* Header */
.site-header{
  position: sticky; top:0; z-index:50; backdrop-filter: blur(6px);
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  border-bottom:1px solid var(--line);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding: 14px 0; }

.brand{ display:flex; align-items:center; gap:.6rem; color: var(--text); text-decoration:none; font-weight:900; letter-spacing:.5px; }
.brand img{ height: 36px; width:36px; object-fit:contain; filter: invert(1) contrast(1.1); }
.brand span{ font-size:1.1rem; }
.brand small{ opacity:.8; margin-left:.2rem; letter-spacing:.2em; font-size:.7rem; }

.nav ul{ display:flex; gap: 18px; align-items:center; list-style:none; margin:0; padding:0; }
.nav a{ color: var(--text); text-decoration:none; padding:.6rem .7rem; border-radius: 10px; }
.nav a:hover{ background: rgba(255,255,255,.06); }

/* Hamburguesa */
.menu-toggle{
  display:none; width:42px; height:42px; border:0; background:transparent; cursor:pointer;
}
.menu-toggle span{
  display:block; height:2px; background: var(--text); margin:7px 6px; border-radius:2px; transition: transform .25s ease, opacity .2s ease;
}

/* Hero */
.hero{ padding: 86px 0 56px; position:relative; border-bottom:1px solid var(--line); }
.hero-inner{ display:grid; grid-template-columns: 1.05fr .95fr; gap:28px; align-items:center; }
.hero-copy h1{ font-size: clamp(1.9rem, 3.6vw, 3rem); line-height:1.1; margin:0 0 10px; }
.hero-copy p{ color: var(--muted); margin:0 0 20px; max-width: 54ch; }
.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; }
.hero-art {
  width: 100%;
  max-width: 500px;             /* ancho máximo del cuadro */
  height: 320px;                /* alto fijo */
  background-image: url('assets/images/arekko-logo.webp');
  background-size: cover;       /* que cubra todo el cuadro */
  background-position: center;  /* centrada */
  border-radius: 12px;          /* esquinas redondeadas */
  box-shadow: 0 0 20px rgba(0,0,0,0.4); /* sombra opcional */
}

.hero-badges{ display:flex; gap:10px; justify-content:center; padding-top:18px; flex-wrap:wrap; }
.hero-badges span{
  font-size:.8rem; color:#b7bfd1; border:1px dashed var(--line); padding:.35rem .6rem; border-radius:999px; background:#0f131d;
}

/* About */
.grid-2{ display:grid; gap:24px; grid-template-columns: 1.1fr .9fr; align-items:start; }
.about .mini-card{
  background: var(--card); border:1px solid var(--line); border-radius: var(--radius);
  padding:18px; box-shadow: var(--shadow); margin-bottom:16px;
}
.about h2{ margin-top:0; }

/* Services */
.cards{
  display:grid; gap:18px;
  grid-template-columns: repeat(4, 1fr);
}
.card{
  background: var(--card); border:1px solid var(--line); border-radius: var(--radius);
  padding:18px; box-shadow: var(--shadow); display:flex; flex-direction:column; gap:10px;
}
.card .icon{ font-size:1.6rem; }
.card h3{ margin:0; }
.card p{ color: var(--muted); margin:0 0 6px; }

/* Projects */
.project-grid{ display:grid; gap:18px; grid-template-columns: repeat(3, 1fr); }
.project{
  background: var(--card); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow);
}
.project img{ width:100%; height:220px; object-fit:cover; display:block; }
.project-info{ padding:14px 16px; }
.project-info h3{ margin:0 0 6px; }

/* Team */
.team-grid{ display:grid; gap:18px; grid-template-columns: repeat(3, 1fr); }
.person{
  text-align:center; background: var(--card); border:1px solid var(--line); border-radius: var(--radius);
  padding:18px; box-shadow: var(--shadow);
}

.person img {
  width:100%;
  height:220px;
  object-fit: contain;    /* ahora se muestra toda la foto */
  object-position: center;
  background-color: #0b0b10; /* color de fondo de las franjas */
  border-radius: 12px;
  margin-bottom:10px;
}


/* Contact */
.contact .lead{ color: var(--muted); }
.contact-list{ list-style:none; padding:0; margin: 10px 0 22px; }
.contact-list a{ color: var(--text); text-decoration: underline dotted; text-underline-offset: 3px; }
.form{
  background: var(--card); border:1px solid var(--line); border-radius: var(--radius);
  padding:18px; display:grid; gap:12px; box-shadow: var(--shadow);
}
.form label{ display:grid; gap:8px; font-weight:600; }
.form input, .form textarea{
  background:#0f131d; border:1px solid #202638; color: var(--text);
  padding:.8rem .9rem; border-radius: 10px; outline: none;
}
.form input:focus, .form textarea:focus{ border-color: var(--brand); }
.form-status{ margin:6px 0 0; min-height:1.2em; color: var(--muted); }

/* Footer */
.site-footer{ border-top:1px solid var(--line); padding: 26px 0; background: var(--bg-2); }
.footer-inner{ display:grid; align-items:center; grid-template-columns: 1fr auto 1fr; gap:16px; }
.footer-nav{ display:flex; gap:16px; justify-self:center; }
.footer-nav a{ color: var(--muted); text-decoration:none; }
.footer-nav a:hover{ color: var(--text); }
.brand--footer img{ height:28px; width:28px; filter: invert(1) contrast(1.1); }
.legal{ justify-self:end; color: var(--muted); margin:0; font-size:.9rem; }

/* Responsivo */
@media (max-width: 1024px){
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .project-grid{ grid-template-columns: repeat(2, 1fr); }
  .grid-2, .hero-inner{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; height: 280px; }
}
@media (max-width: 720px){
  .menu-toggle{ display:block; }
  .nav{ position: fixed; inset: 60px 0 auto 0; background: #0b0f17; border-bottom: 1px solid var(--line); transform: translateY(-150%); transition: transform .25s ease; }
  .nav ul{ flex-direction:column; align-items:flex-start; padding:12px; gap:0; }
  .nav a{ width:100%; border-radius:10px; }
  .nav .btn-sm{ width:100%; justify-content:center; margin:6px 0 8px; }
  .site-header.nav-open .nav{ transform: translateY(0); }
  .footer-inner{ grid-template-columns: 1fr; text-align:center; }
  .footer-nav{ justify-content:center; }
  .cards{ grid-template-columns: 1fr; }
  .project-grid, .team-grid{ grid-template-columns: 1fr; }
}

.site-footer {
  border-top:1px solid var(--line);
  padding: 14px 0;              /* menos alto que antes */
  background: var(--bg-2);
}

.footer-inner {
  display:flex;                 /* más simple que grid */
  flex-wrap:wrap;               /* se acomoda en varias líneas si no cabe */
  justify-content:space-between;
  align-items:center;
  gap:12px;
  text-align:center;
}

.footer-nav {
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  justify-content:center;
}

.footer-nav a {
  color: var(--muted);
  text-decoration:none;
}

.footer-nav a:hover { 
  color: var(--text); 
}

.brand--footer img {
  height:28px;
  width:28px;
  filter: invert(1) contrast(1.1);
}

.legal {
  color: var(--muted);
  margin:0;
  font-size:.85rem;
}

/* Hace que body ocupe toda la altura */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* El main se expande y empuja el footer hacia abajo */
main {
  flex: 1;
}

.person .role {
  font-weight: 700;
  margin: 6px 0 4px;
  color: var(--text);
}

.person .bio {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Asegurar que la tarjeta con <a> no se vea como link azul */
.project {
  display: block;
  color: inherit;          /* que use el color normal del texto */
  text-decoration: none;   /* sin subrayado */
}

.project:hover {
  transform: translateY(-4px);           /* efecto flotante */
  box-shadow: 0 12px 24px rgba(0,0,0,.45);
  transition: all 0.25s ease;
}

.project-info h3,
.project-info p {
  color: var(--text);       /* usa el color definido en tu tema */
}

.menu-toggle {
  display: none;           /* oculto en escritorio */
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin: 0;               /* <-- asegúrate que no tenga margen extra */
  padding: 0;              /* <-- elimina relleno extra */
}

@media (max-width: 720px){
  .menu-toggle { 
    display:block; 
  }
}

.header-inner {
  padding: 14px 0;
}

@media (max-width: 720px){
  .nav ul {
    flex-direction: column;
    align-items: stretch;             /* que ocupen todo el ancho */
    padding: 16px 12px;               /* más espacio general */
    gap: 10px;                        /* SEPARACIÓN entre elementos */
  }

  .nav a {
    padding: 12px 16px;               /* más área clickeable */
    width: 100%;
    display: block;
    border-radius: 10px;
  }

  .nav .btn-sm {
    width: 100%;
    justify-content: center;
    margin: 10px 0 4px;               /* más separación arriba */
  }
}

.nav a:hover {
  background: rgba(255,255,255,0.06);
}

/* Botón Discord en hero */
.btn-discord {
  background-color: #5865F2; /* color oficial Discord */
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-discord:hover {
  background-color: #4752C4;
  transform: translateY(-2px);
}

/* Icono de Discord */
.btn-discord::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/discord.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Contenedor de botones */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; /* espacio entre botones */
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch; /* botones ocupan todo el ancho */
  }

  .hero-cta a {
    text-align: center;
    width: 100%;
  }
}




