/* ==========================================================================
   Kenya Marín — Diseñadora Gráfica & UX/UI — Global styles
   ========================================================================== */

:root {
  --bg: #0a0a10;
  --bg-alt: #121017;
  --card: #16141d;
  --line: rgba(213, 211, 245, 0.16);
  --line-strong: rgba(213, 211, 245, 0.4);

  --ink: #d7d3f6;          /* lavender headings / logo */
  --ink-soft: #b7b2e6;
  --text: #eceaf5;         /* body text, near white */
  --text-muted: #9d9aae;   /* secondary text */

  --blob-pink: #ff5d8f;
  --blob-blue: #4d5bff;
  --blob-teal: #2fe0c4;

  --radius-pill: 999px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --maxw: 1160px;

  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

section { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .9em;
}

.lead {
  color: var(--text);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 640px;
}
.lead.centered { margin-left: auto; margin-right: auto; text-align: center; }

.muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .95em 2.1em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
  white-space: nowrap;
}
.btn:hover {
  background: var(--ink);
  color: #14121c;
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn.btn-solid {
  background: var(--ink);
  color: #14121c;
  border-color: var(--ink);
}
.btn.btn-solid:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn.btn-block { width: 100%; }

/* ---------- Decorative background blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.blob-pink { background: var(--blob-pink); }
.blob-blue { background: var(--blob-blue); }
.blob-teal { background: var(--blob-teal); }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 16, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 24px;
}
.nav-logo img { height: 26px; width: auto; }
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .95rem;
}
.nav-links a {
  color: var(--text);
  opacity: .85;
  transition: opacity .2s ease, color .2s ease;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--ink); }
.nav-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
}
.nav-mobile-panel { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px;
  margin-top: 120px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: var(--text-muted);
}
.footer-inner a { color: var(--text-muted); }
.footer-inner a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 40px;
  overflow: hidden;
}
.hero-top {
  text-align: left;
}
.hero-tags {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tag {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: .5em 1.2em;
  font-size: .9rem;
  color: var(--text);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 56px;
  align-items: center;
}
.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy .btn { margin-top: 8px; }

/* ---------- Proceso ---------- */
.proceso { padding: 120px 0; }
.proceso-head { max-width: 640px; margin-bottom: 64px; }
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.step-num-title {
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.step-num { color: var(--text-muted); font-family: var(--font-display); font-size: 1.1rem; }
.step h3 { margin: 0; }
.step p { margin: 0; color: var(--text-muted); max-width: 560px; }

/* ---------- Proyectos grid ---------- */
.proyectos { padding: 120px 0; }
.proyectos-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--card);
  border: 1px solid var(--line);
  display: block;
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover img { transform: scale(1.04); }
.project-card .project-label {
  position: absolute;
  left: 20px; bottom: 18px;
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.project-card .project-tag {
  position: absolute;
  left: 20px; top: 18px;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  background: rgba(10,10,16,.45);
  padding: .35em .8em;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}
.project-card.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
}
.project-card.placeholder .ph-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.proyectos-more { text-align: center; margin-top: 56px; }

/* ---------- Clientes / logos ---------- */
.clientes { padding: 40px 0 100px; }
.clientes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  opacity: .8;
}
.clientes-row span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-muted);
  letter-spacing: .02em;
}

/* ---------- CTA final ---------- */
.cta-final { padding: 60px 0 130px; }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 56px;
  align-items: center;
}
.cta-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: 70px 0 40px; }

/* ---------- Quién soy ---------- */
.about-body { padding: 0 0 100px; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 460px) 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; margin-bottom: 12px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text .btn { margin-top: 12px; }

/* ---------- Contact form ---------- */
.contact-body { padding: 10px 0 120px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 28px;
  margin-top: 48px;
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .92rem; color: var(--text); }
.field label .req { color: var(--blob-pink); }
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 1em 1.4em;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s ease;
  width: 100%;
}
.field textarea {
  border-radius: var(--radius-md);
  resize: vertical;
  min-height: 130px;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%239d9aae' stroke-width='1.5' fill='none' fill-rule='evenodd'/></svg>"); background-repeat: no-repeat; background-position: right 1.4em center; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); }
.checkbox-group { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.checkbox-group label {
  display: flex; align-items: center; gap: 10px;
  font-size: .95rem; color: var(--text); cursor: pointer;
}
.checkbox-group input { accent-color: var(--ink); width: 16px; height: 16px; }
.form-submit { margin-top: 12px; text-align: left; }
.form-note { font-size: .8rem; color: var(--text-muted); margin-top: 14px; }

/* ---------- Project detail (case study) ---------- */
.case-hero { padding: 70px 0 20px; }
.case-meta {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin: 32px 0 64px;
}
.case-meta div span { display: block; }
.case-meta .k { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.case-meta .v { color: var(--text); font-size: 1rem; }
.case-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 64px; background: var(--card); }
.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}
.case-gallery img, .case-cover img { width: 100%; display: block; object-fit: cover; }
.case-gallery img { border-radius: var(--radius-md); background: var(--card); }
.case-gallery .wide { grid-column: 1 / -1; }
.case-text { max-width: 720px; margin-bottom: 64px; }
.case-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-top: 40px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid, .cta-grid, .about-grid { grid-template-columns: 1fr; }
  .cta-grid .cta-photo { order: -1; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-meta { gap: 28px; }
  .container { padding: 0 20px; }
}

@media (max-width: 900px) {
  .nav-mobile-panel {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 32px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(10,10,16,.96);
  }
  .nav-mobile-panel.open { display: flex; }
  .nav-mobile-panel a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }
  .nav-mobile-panel .btn { margin-top: 14px; }
}
