/* =========================================================
   DOPA STUDIO — Sistema de diseño
   v1.0 — Mayo 2026
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Paleta */
  --ink:        #1A1814;
  --bone:       #F2EDE5;
  --bone-soft:  #EDE6DB;
  --warm-grey:  #8C857A;
  --soft-text:  #5A554D;
  --ochre:      #B8945F;
  --terracota:  #A05B3F;
  --rule:       #D9D2C5;

  /* Tipografía */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Layout */
  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(80px, 12vw, 160px);
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--ochre); color: var(--bone); }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.15rem; font-weight: 500; }

p { margin: 0 0 1.2em; }
strong { font-weight: 600; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 1.2em;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
  font-style: italic;
}

.small {
  font-size: 0.82rem;
  color: var(--soft-text);
  letter-spacing: 0.02em;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bone);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--soft-text);
}

.nav {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav a {
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
  transition: color .2s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.nav a:hover { color: var(--ochre); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 640px) {
  .nav { gap: 18px; font-size: 0.8rem; }
  .brand__sub { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(60px, 10vw, 140px);
  padding-bottom: clamp(60px, 10vw, 120px);
}
.hero h1 {
  max-width: 14ch;
  margin-bottom: 0.5em;
}
.hero .lead {
  max-width: 38ch;
  margin-bottom: 0;
  color: var(--soft-text);
}
.hero__meta {
  display: flex;
  gap: 32px;
  margin-top: 60px;
  font-size: 0.78rem;
  color: var(--soft-text);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.hero__meta span::before {
  content: '·';
  color: var(--ochre);
  margin-right: 8px;
}

/* ---------- Image placeholder (substitute with real photos later) ---------- */
.imgbox {
  background: var(--bone-soft);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--warm-grey);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 24px;
}
.imgbox__inner {
  max-width: 28ch;
}
.imgbox__inner strong {
  display: block;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.66rem;
  color: var(--ochre);
  margin-bottom: 8px;
}
.imgbox--16x9 { aspect-ratio: 16/9; }
.imgbox--4x5  { aspect-ratio: 4/5; }
.imgbox--1x1  { aspect-ratio: 1/1; }
.imgbox--3x2  { aspect-ratio: 3/2; }
.imgbox--full { aspect-ratio: 21/9; }

/* When real images loaded, drop the .imgbox class and use <img>:
   <img src="img/cork-hero.jpg" alt="..."> */

/* ---------- Servicios ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin-top: 60px;
}
.service {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.service__num {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ochre);
  margin-bottom: 18px;
}
.service h3 {
  margin-bottom: 16px;
  font-size: 1.6rem;
}
.service p {
  font-size: 0.95rem;
  color: var(--soft-text);
  line-height: 1.55;
}
.service__price {
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 800px) {
  .services { grid-template-columns: 1fr; }
}

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(20px, 4vw, 80px);
  margin-bottom: 60px;
  align-items: end;
}
.section-head__intro { max-width: 50ch; color: var(--soft-text); }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- Featured work ---------- */
.work-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.work-feature__copy { padding-right: 12px; }
.work-feature .eyebrow { margin-bottom: 1em; }
.work-feature h2 { margin-bottom: 24px; }
.work-feature p { color: var(--soft-text); margin-bottom: 28px; max-width: 42ch; }
.work-feature .link-cta { margin-top: 8px; }
@media (max-width: 800px) {
  .work-feature { grid-template-columns: 1fr; }
}

/* ---------- CTA links / buttons ---------- */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: gap .2s ease, color .2s ease, border-color .2s ease;
}
.link-cta::after { content: '→'; transition: transform .25s ease; }
.link-cta:hover { color: var(--ochre); border-color: var(--ochre); gap: 18px; }
.link-cta:hover::after { transform: translateX(4px); }

.btn {
  display: inline-block;
  padding: 18px 32px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background .2s ease;
}
.btn:hover { background: var(--ochre); color: var(--ink); }

/* ---------- Quote / pull ---------- */
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 28ch;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--ink);
  color: var(--bone);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.contact .eyebrow { color: var(--ochre); }
.contact h2 {
  color: var(--bone);
  max-width: 14ch;
  margin-bottom: 40px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-top: 48px;
}
.contact-info p { color: var(--bone); opacity: 0.85; max-width: 36ch; }
.contact-info .lead { color: var(--bone); font-style: normal; }
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.contact-list li { color: var(--bone); }
.contact-list .label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 4px;
}
.contact-list a { color: var(--bone); border-bottom: 1px solid rgba(242,237,229,0.3); padding-bottom: 2px; }
.contact-list a:hover { border-color: var(--ochre); color: var(--ochre); }
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding: 32px 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(242,237,229,0.12);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0.7;
}

/* =========================================================
   CASO DE ESTUDIO — estilos especificos
   ========================================================= */

.case-hero {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.case-hero__title {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 48px;
}
.case-hero__title h1 { font-size: clamp(3rem, 9vw, 7rem); margin-bottom: 0; }
.case-hero__title .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--soft-text);
  max-width: 50ch;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.case-meta__item .label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 8px;
}
.case-meta__item .value {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 700px) {
  .case-meta { grid-template-columns: 1fr; gap: 16px; }
}

.case-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 4vw, 80px);
  padding: clamp(40px, 6vw, 80px) 0;
}
.case-block .heading {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
}
.case-block p {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 60ch;
}
.case-block + .case-block { border-top: 1px solid var(--rule); }
@media (max-width: 800px) {
  .case-block { grid-template-columns: 1fr; gap: 12px; }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(8px, 1.5vw, 16px);
  margin: clamp(40px, 6vw, 80px) 0;
}
.gallery .imgbox { width: 100%; height: 100%; }

.gallery .g-full   { grid-column: 1 / -1; }
.gallery .g-half   { grid-column: span 6; }
.gallery .g-third  { grid-column: span 4; }
.gallery .g-twothirds { grid-column: span 8; }
@media (max-width: 700px) {
  .gallery .g-half, .gallery .g-third, .gallery .g-twothirds { grid-column: 1 / -1; }
}

.case-table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  font-size: 0.95rem;
}
.case-table th, .case-table td {
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.case-table th {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  width: 30%;
}
.case-table td {
  color: var(--ink);
  font-weight: 500;
}

.testimonial {
  padding: clamp(60px, 8vw, 100px) 0;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.3;
  margin: 0 auto;
  max-width: 30ch;
  color: var(--ink);
}
.testimonial cite {
  display: block;
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft-text);
}

.case-cta {
  background: var(--bone-soft);
  text-align: center;
  padding: clamp(60px, 8vw, 100px) 0;
}
.case-cta h3 {
  margin-bottom: 24px;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.case-cta p {
  color: var(--soft-text);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}

/* ---------- Anchor return ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft-text);
  margin-bottom: 32px;
  transition: color .2s ease;
}
.back-link::before { content: '←'; transition: transform .2s ease; }
.back-link:hover { color: var(--ochre); }
.back-link:hover::before { transform: translateX(-4px); }
