*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-mid: #555;
  --color-text-soft: #888;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1eba59;
  --color-line: #e2e0db;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --max-width: 460px;
  --pad: 28px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: var(--max-width);
  background: var(--color-surface);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ─── Brand ─── */
.brand {
  padding: 44px var(--pad) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  width: 50%;
  height: auto;
  display: block;
}

.brand-nombre {
  margin-top: 20px;
  width: 72%;
  height: auto;
  display: block;
}

/* ─── Divider ─── */
.divider {
  margin: 28px var(--pad);
  border: none;
  height: 1px;
  background: var(--color-line);
}

/* ─── Project ─── */
.project-title {
  text-align: center;
  padding: 0 var(--pad) 24px;
}

.project-title h1 {
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.01em;
}

.project-title .location {
  margin-top: 4px;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Gallery ─── */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.gallery-item {
  width: 100%;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item--padded {
  padding: 0 var(--pad);
}

.gallery-item--framed {
  padding: 0 var(--pad);
}

.gallery-item--framed img {
  border-radius: 12px;
  border: 1px solid var(--color-line);
}

/* ─── Contact ─── */
.contact {
  padding: 0 var(--pad) 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contact-prompt {
  text-align: center;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-text-mid);
  margin-bottom: 18px;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-pair {
  display: flex;
  gap: 10px;
}

.cta-pair .cta {
  flex: 1;
  min-width: 0;
  transition: flex 0.3s ease;
}

/* ─── Person selector ─── */
.cta--person {
  background: var(--color-text);
  color: var(--color-surface);
  border: 1.5px solid var(--color-text);
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, flex 0.3s ease;
}

.cta--person:hover {
  background: #000;
}

/* When a person is selected, dim the other one */
.cta--person.is-active {
  flex: 2;
  background: var(--color-text);
  color: var(--color-surface);
  border-color: var(--color-text);
}

.cta--person.is-active .cta-icon {
  display: none;
}

.cta--person.is-inactive {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-line);
}

.cta--person.is-inactive:hover {
  border-color: var(--color-text-soft);
  background: #f4f3f1;
}

/* ─── Expandable details ─── */
.person-details {
  display: flex;
  gap: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease;
  margin-top: 0;
}

.person-details[aria-hidden="false"] {
  max-height: 80px;
  opacity: 1;
  margin-top: 10px;
}

.person-details .cta {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  padding: 13px 12px;
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-line);
}

.person-details .cta:hover {
  border-color: var(--color-text-soft);
  background: #f4f3f1;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 14px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta:active { transform: scale(0.97); }

.cta--phone {
  background: var(--color-text);
  color: var(--color-surface);
  box-shadow: none;
}
.cta--phone:hover {
  background: #000;
}

.cta--whatsapp {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-line);
}
.cta--whatsapp:hover {
  border-color: var(--color-text-soft);
  background: #f4f3f1;
}

.cta--outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-line);
}
.cta--outline:hover {
  border-color: var(--color-text-soft);
  background: #f4f3f1;
}

.cta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 14px var(--pad) 18px;
  border-top: 1px solid var(--color-line);
}

.footer a {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--color-text-soft);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer a:hover { color: var(--color-text); }

/* ─── Load animation ─── */
@media (prefers-reduced-motion: no-preference) {
  .brand, .project-title, .gallery-item, .contact {
    animation: fadeUp 0.5s ease both;
  }
  .brand                     { animation-delay: 0s; }
  .project-title             { animation-delay: 0.06s; }
  .gallery-item:nth-child(1) { animation-delay: 0.12s; }
  .gallery-item:nth-child(2) { animation-delay: 0.18s; }
  .gallery-item:nth-child(3) { animation-delay: 0.24s; }
  .contact                   { animation-delay: 0.30s; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}


