:root {
  --bg:#0b1120;
  --bg-soft:#020617;
  --card:#020617;
  --accent:#D1D5DB;       /* plateado principal */
  --accent-soft:#F3F4F6;  /* plateado claro */
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border:#1f2937;
  --max-width:1120px;
  --radius:18px;
  --shadow:0 18px 40px rgba(0,0,0,.5);
}

* { box-sizing:border-box; }

html, body {
  margin:0;
  padding:0;
  background:radial-gradient(circle at top, #1f2937 0, #020617 45%, #000 100%);
  color:var(--text);
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body { line-height:1.6; }

img { max-width:100%; display:block; }

a { color:inherit; text-decoration:none; }

.container {
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
}

/* HEADER / NAV */

header {
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter:blur(16px);
  background:linear-gradient(to bottom, rgba(15,23,42,.95), rgba(15,23,42,.75), transparent);
  border-bottom:1px solid rgba(148,163,184,.15);
}

.nav {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:20px;
}

.nav-left {
  display:flex;
  align-items:center;
  gap:12px;
}

.logo-mark {
  width:42px;
  height:42px;
  border-radius:14px;
  background:#020617;
  border:1px solid rgba(148,163,184,.6);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:18px;
  color:var(--accent);
  box-shadow:0 10px 25px rgba(0,0,0,.6);
  overflow:hidden;
}

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

.brand-block {
  display:flex;
  flex-direction:column;
}

.brand-title {
  font-family:Poppins, system-ui, sans-serif;
  font-weight:700;
  letter-spacing:.06em;
  font-size:13px;
  text-transform:uppercase;
  color:var(--muted);
}

.brand-sub {
  font-size:12px;
  color:#6b7280;
}

.nav-links {
  display:flex;
  align-items:center;
  gap:18px;
  font-size:14px;
}

.nav-links a {
  color:var(--muted);
  transition:color .18s ease, opacity .18s ease;
}

.nav-links a:hover {
  color:var(--text);
  opacity:1;
}

/* BOTÓN HAMBURGUESA (MÓVIL) */

.nav-toggle {
  display:none;
  flex-direction:column;
  gap:4px;
  background:none;
  border:none;
  padding:6px;
  cursor:pointer;
}

.nav-toggle span {
  width:20px;
  height:2px;
  border-radius:999px;
  background:#e5e7eb;
}

/* BOTONES */

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  border:1px solid rgba(148,163,184,.4);
  background:rgba(15,23,42,.8);
  color:var(--text);
  cursor:pointer;
  transition:.18s ease all;
  gap:8px;
}

/* BOTÓN PLATEADO OSCURO Y LEGIBLE */
.btn-primary {
  background:linear-gradient(135deg,#6B7280,#9CA3AF); /* gris oscuro → gris acero */
  border:none;
  color:white; /* texto super legible */
  box-shadow:0 10px 22px rgba(0,0,0,.45);
  transition:.2s ease;
}

.btn-primary:hover {
  background:linear-gradient(135deg,#7D8593,#AEB2B7); /* un poco más claro en hover */
  box-shadow:0 14px 28px rgba(0,0,0,.55);
  transform:translateY(-1px);
}

/* HERO */

.hero {
  padding:40px 0 52px;
}

.hero-grid {
  display:grid;
  gap:28px;
}

@media(min-width:900px) {
  .hero-grid {
    grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
    align-items:stretch;
  }
}

.hero-left { }

.eyebrow {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--accent-soft);
  text-transform:uppercase;
  letter-spacing:.12em;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(209,213,219,.55);
  background:rgba(15,23,42,.9);
  margin-bottom:10px;
}

.eyebrow-dot {
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 0 6px rgba(209,213,219,.25);
}

h1 {
  font-family:Poppins, system-ui, sans-serif;
  font-size: clamp(30px, 6vw, 44px);
  line-height:1.15;
  margin:0 0 10px;
}

.hero-highlight {
  display:block;
}

.hero-sub {
  color:var(--muted);
  font-size:15px;
  max-width:460px;
  margin-bottom:18px;
}

.hero-sub-animated {
  opacity:0;
  transform:translateY(10px);
  animation:heroFadeIn 0.7s ease forwards 0.15s;
}

@keyframes heroFadeIn {
  to {
    opacity:1;
    transform:translateY(0);
  }
}

.badge-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.pill {
  font-size:11px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.5);
  color:#9ca3af;
  background:rgba(15,23,42,.8);
}

.hero-meta {
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  font-size:12px;
  color:#9ca3af;
  margin-top:12px;
}

.hero-meta span::before {
  content:"• ";
  color:#475569;
}

.hero-right { }

.hero-photo-card {
  position:relative;
  border-radius:26px;
  background:radial-gradient(circle at top, #1e293b 0, #020617 60%);
  padding:16px;
  box-shadow:var(--shadow);
  border:1px solid rgba(148,163,184,.25);
  overflow:hidden;
}

.hero-photo-main {
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.3);
}

.hero-photo-main img {
  width:100%;
  height:260px;
  object-fit:cover;
}

.hero-tag {
  position:absolute;
  left:18px;
  bottom:18px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(15,23,42,.92);
  border:1px solid rgba(148,163,184,.4);
  font-size:11px;
  color:var(--muted);
  display:flex;
  gap:10px;
  align-items:center;
}

.hero-tag strong {
  color:var(--accent);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.14em;
}

/* SECCIONES GENERALES */

.section {
  padding:42px 0 30px;
  border-top:1px solid rgba(31,41,55,.9);
  background:radial-gradient(circle at top, rgba(15,23,42,.95), #020617 40%, #020617 100%);
}

.section-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:22px;
}

.section-kicker {
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:11px;
  color:#6b7280;
  margin-bottom:4px;
}

.section-title {
  font-family:Poppins, system-ui, sans-serif;
  font-size:22px;
  margin:0;
}

.section-description {
  color:var(--muted);
  font-size:14px;
  max-width:420px;
}

/* GRID */

.grid {
  display:grid;
  gap:16px;
}

@media(min-width:800px) {
  .grid-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .grid-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* CARDS */

.card {
  background:radial-gradient(circle at top left, #111827, #020617 60%);
  border-radius:var(--radius);
  border:1px solid var(--border);
  padding:18px 16px 16px;
}

.card h3 {
  margin:0 0 6px;
  font-size:15px;
}

.card p {
  margin:0;
  font-size:13px;
  color:var(--muted);
}

/* SERVICIOS */

.service-card {
  position:relative;
  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.service-card:hover {
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(0,0,0,.65);
  border-color:rgba(209,213,219,.4);
  background:radial-gradient(circle at top, #111827, #020617 70%);
}

.service-icon {
  width:40px;
  height:40px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:8px;
  background:rgba(15,23,42,.9);
  border:1px solid rgba(148,163,184,.5);
}

.service-icon svg {
  width:28px;
  height:28px;
}

/* TAG / PILL SMALL */

.tag {
  display:inline-flex;
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.4);
  color:#9ca3af;
  margin-bottom:8px;
}

.pill-small {
  font-size:11px;
  color:#9ca3af;
}

/* PROJECTS */

.project-img {
  border-radius:14px;
  border:1px solid rgba(31,41,55,.9);
  overflow:hidden;
  margin-bottom:8px;
}

.project-img img {
  width:100%;
  height:150px;
  object-fit:cover;
}

/* GALLERY */

.gallery-grid{
  display:grid;
  gap:16px;
}

@media(min-width:900px){
  .gallery-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(min-width:600px) and (max-width:899px){
  .gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

.gallery-item{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:13px;
  color:var(--muted);
}

.gallery-img{
  border-radius:14px;
  border:1px solid rgba(31,41,55,0.95);
  overflow:hidden;
  position:relative;
  background:#020617;
}

.gallery-img img{
  width:100%;
  height:200px;
  object-fit:cover;
  transform:scale(1.02);
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    opacity 0.25s ease;
}

.gallery-img::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top,rgba(15,23,42,0.0),rgba(15,23,42,0.6));
  opacity:0;
  transition:opacity 0.25s ease;
}

.gallery-item:hover .gallery-img img{
  transform:scale(1.06);
  filter:brightness(1.05);
}

.gallery-item:hover .gallery-img::after{
  opacity:1;
}

.gallery-item figcaption{
  font-size:12px;
  color:#9ca3af;
}

/* FORMULARIOS */

form {
  display:grid;
  gap:10px;
}

.field {
  display:grid;
  gap:4px;
  font-size:13px;
}

label {
  color:#e5e7eb;
  font-size:12px;
}

input, textarea, select {
  border-radius:12px;
  border:1px solid #1f2937;
  background:#020617;
  color:#e5e7eb;
  padding:9px 11px;
  font-family:inherit;
  font-size:13px;
}

input:focus, textarea:focus, select:focus {
  outline:1px solid #9CA3AF;
  border-color:#9CA3AF;
}

textarea { min-height:90px; resize:vertical; }

.form-note {
  font-size:11px;
  color:#6b7280;
  margin-top:6px;
}

.form-status {
  font-size:12px;
  margin-top:6px;
}

/* TIMESHEETS GRID SIMPLE */

.timesheet-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

@media(max-width:700px){
  .timesheet-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

/* CONTACT INFO */

.contact-list {
  list-style:none;
  padding:0;
  margin:0 0 14px;
  font-size:13px;
  color:var(--muted);
}

.contact-list li {
  margin-bottom:8px;
}

.contact-label {
  display:block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:#6b7280;
  margin-bottom:2px;
}

.contact-note {
  font-size:12px;
  color:#9ca3af;
  margin-top:10px;
}

/* FOOTER */

.footer {
  border-top:1px solid #111827;
  padding:20px 0 26px;
  background:#020617;
  font-size:12px;
  color:#6b7280;
}

.footer-inner {
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.footer a { color:#9ca3af; }

/* ANIMACIÓN FADE-IN ON SCROLL */

.reveal-on-scroll {
  opacity:0;
  transform:translateY(10px);
  transition:opacity .45s ease, transform .45s ease;
}

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

/* RESPONSIVE NAV */

@media(max-width:800px){
  .nav-links {
    position:fixed;
    inset:56px 16px auto 16px;
    padding:14px;
    border-radius:18px;
    background:rgba(15,23,42,.98);
    border:1px solid rgba(31,41,55,.9);
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    transform:translateY(-20px);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
  }

  body.nav-open .nav-links {
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }

  .nav-toggle {
    display:flex;
  }
}

/* RESPONSIVE HERO Y SECCIONES */

@media(max-width:700px){
  .hero {
    padding:24px 0 32px;
  }

  .hero-photo-main img {
    height:220px;
  }

  .section-header {
    flex-direction:column;
    align-items:flex-start;
  }
}

/* FIX PARA QUE LA BURBUJA NO SE TAPE CON EL LOGO DEL HERO */
.hero-tag {
  bottom: 20px !important;  /* sube la burbuja */
  background: rgba(10, 15, 25, 0.85) !important; /* más opaco para más contraste */
  backdrop-filter: blur(6px); 
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* En pantallas pequeñas, que suba más */
@media (max-width: 768px) {
  .hero-tag {
    bottom: 35px !important;
  }
}

/* Ajuste para que la imagen del hero se vea completa */
.hero-photo-main img {
  object-fit: contain !important;   /* Muestra la imagen completa */
  width: 100%;
  height: 100%;
  background-color: #0f172a;       /* fondo oscuro para que no se vea vacío */
  padding: 20px;                   /* separa la imagen para que no se corte */
  border-radius: 16px;
}

/* Ajuste del contenedor para no recortar la imagen */
.hero-photo-main {
  overflow: visible !important;
}

/* Si quieres que la imagen sea más pequeña aún */
.hero-right {
  max-width: 420px;  /* baja de tamaño el card completo */
}

@media (max-width: 768px) {
  .hero-right {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* EXTRA: ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
  h1 {
    font-size: clamp(26px, 7vw, 32px);
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}