:root{
  --bg:#f5edd9;
  --panel:#ffffff;
  --panel2:#f4f1eb;
  --text:#2f2a25;
  --muted:#6f655e;
  --accent:#7aa08a;
  --accent2:#6aa6b0;
  --mono:'JetBrains Mono', monospace;
}

[data-theme="dark"]{
  --bg:#0f1213;
  --panel:#111415;
  --panel2:#191d1f;
  --text:#e6e6e6;
  --muted:#8f9794;
  --accent:#4f8f75;
  --accent2:#3f8993;
}

/* =========================
   BASE — MÓVIL
========================= */

body{
  margin:0;
  padding:8px;
  background:var(--bg);
  color:var(--text);
  font-family:Inter, sans-serif;
}

.wrap{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}

/* BRAND / LOGO — MÓVIL */

.brand{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
}

/* logo un poco más pequeño en móvil */
.logo-plate{
  width:140px;
  height:140px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.logo-circle{
  width:120px;
  height:120px;
  border-radius:50%;
  background:var(--panel);
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(0,0,0,0.06);
  overflow:hidden;
}

.logo-img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.theme-toggle{
  background:transparent;
  border:1px solid rgba(0,0,0,0.1);
  padding:6px 10px;
  border-radius:8px;
  font-size:13px;
  color:var(--muted);
  cursor:pointer;
  white-space:nowrap;
}

/* TITLES */

.title{
  font-size:22px;
  font-weight:600;
  margin-bottom:4px;
  text-align:center;
}

.subtitle{
  font-size:14px;
  color:var(--muted);
  margin-bottom:18px;
  text-align:center;
}

/* TERMINAL */

.terminal{
  background:rgba(0,0,0,0.03);
  padding:12px;
  border-radius:10px;
  font-family:var(--mono);
  font-size:13px;
  line-height:1.45;
  min-height:140px;
  border:1px solid rgba(0,0,0,0.05);
  white-space:pre-wrap;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.term-line{
  opacity:0;
  transition:.12s;
}

/* SERVICES */

.services{
  grid-column:1 / -1;
  margin-top:28px;
  padding:18px;
  background:var(--panel);
  border-radius:14px;
  border:1px solid rgba(0,0,0,0.05);
}

.services h2{
  margin:0 0 8px 0;
  font-size:20px;
  font-weight:600;
}

.services p{
  margin:0 0 16px 0;
  color:var(--muted);
  font-size:14px;
}

.service-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}

.service-title{
  font-weight:600;
  color:var(--accent);
  margin-bottom:6px;
}

/* CONTACT */

.contact-controls{
  margin-top:24px;
  margin-bottom:22px;
}

.btn{
  display:inline-block;
  padding:10px 16px;
  background:var(--accent);
  color:white;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
}

.btn-alt{
  display:inline-block;
  padding:8px 12px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.08);
  color:var(--accent2);
  margin-left:8px;
  text-decoration:none;
  font-weight:600;
}

/* FORM */

.form-block{
  margin-top:16px;
  padding:18px;
  background:var(--panel2);
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.04);
}

.form-block h3{
  margin-top:0;
  font-size:18px;
}

form label{
  display:block;
  font-size:13px;
  font-weight:600;
  margin-bottom:4px;
}

form input,
form textarea{
  width:100%;
  padding:10px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.1);
  background:var(--panel);
  color:var(--text);
  font-size:14px;
  font-family:Inter,sans-serif;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-bottom:14px;
}

.full-form{
  width:94%;
}

/* =========================
   TABLET
========================= */

@media (min-width:600px){
  body{ padding:16px; }

  /* vuelve a layout centrado */
  .brand{
    flex-direction:column;
    align-items:center;
    justify-content:center;
  }

  .logo-plate{ width:150px; height:150px; }
  .logo-circle{ width:150px; height:150px; }

  .terminal{
    font-size:14px;
    padding:16px;
  }

  .service-grid{
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  }

  .full-form{
    width:97%;
  }
}

/* =========================
   DESKTOP
========================= */

@media (min-width:900px){
  body{ padding:36px; }

  .wrap{
    grid-template-columns:320px 1fr;
    gap:32px;
  }

  .logo-plate{ width:260px; height:260px; }
  .logo-circle{ width:250px; height:250px; }

  .title{ font-size:26px; text-align:left; }
  .subtitle{ font-size:16px; text-align:left; }

  .terminal{
    font-size:15px;
    min-height:170px;
  }

  .services{
    padding:28px;
    margin-top:38px;
  }

  .full-form{
    width:98%;
  }
}
