/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #faf7f2;
  --warm-white: #f5f0e8;
  --ink: #1a1612;
  --ink-light: #3d3530;
  --sand: #c9b99a;
  --sage: #8a9e8c;
  --rust: #b85c38;
  --gold: #c8a96e;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── GRAIN OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ─── UTILITIES ─── */
.hidden { display: none !important; }

/* ─── HEADER ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 185, 154, 0.3);
  padding: 0 3rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}

.logo span {
  font-style: italic;
  color: var(--rust);
}

nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover { color: var(--rust); }

.btn-upload-nav {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.btn-upload-nav:hover { background: var(--rust) !important; }

/* ─── HERO ─── */
.hero {
  padding: 7rem 3rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeUp 0.9s ease both;
}

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

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--rust);
  display: block;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-light);
  max-width: 380px;
  margin-bottom: 2.5rem;
}

.hero-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-visual {
  position: relative;
  height: 420px;
}

.hero-card {
  position: absolute;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26,22,18,0.12);
}

.hero-card.large {
  width: 260px;
  height: 340px;
  top: 0;
  right: 60px;
  background: linear-gradient(135deg, #d4c5b2 0%, #b8a898 50%, #9e8e7e 100%);
  animation: floatA 6s ease-in-out infinite;
}

.hero-card.small {
  width: 180px;
  height: 220px;
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, #c4bdb0 0%, #a89888 100%);
  animation: floatB 7s ease-in-out infinite 0.5s;
}

.hero-card.accent {
  width: 120px;
  height: 150px;
  top: 80px;
  right: 280px;
  background: linear-gradient(135deg, #e8dfd4 0%, #c8b9a6 100%);
  animation: floatC 5s ease-in-out infinite 1s;
}

.hero-card .placeholder-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
}

.hero-card .placeholder-icon svg { width: 32px; height: 32px; }

@keyframes floatA {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0px) rotate(1.5deg); }
  50%       { transform: translateY(-8px) rotate(1.5deg); }
}
@keyframes floatC {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50%       { transform: translateY(-6px) rotate(-3deg); }
}

/* ─── SECTION LABEL ─── */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.5rem;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
  margin-top: 1.5rem;
  text-decoration: none;
}

.btn-primary:hover { background: var(--rust); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary:disabled:hover { background: var(--ink); }
.btn-full { width: 100%; justify-content: center; }

.btn-secondary {
  background: none;
  border: 1px solid var(--sand);
  color: var(--ink-light);
  padding: 0.5rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover { border-color: var(--rust); color: var(--rust); }

/* ─── MODAL (LOGIN) ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--cream);
  border-radius: 6px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 30px 80px rgba(26,22,18,0.25);
  animation: fadeUp 0.35s ease both;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--sand);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--ink); }

.modal-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.4rem;
}

.modal-subtitle {
  color: var(--ink-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ─── FORM FIELDS ─── */
.field-group {
  margin-bottom: 1.2rem;
}

.field-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.5rem;
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="password"],
.field-group input[type="number"],
.field-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(201,185,154,0.5);
  border-radius: 3px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-group textarea {
  resize: vertical;
  min-height: 80px;
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(184,92,56,0.08);
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: var(--sand);
  font-style: italic;
}

.field-price .price-input-wrap {
  position: relative;
}

.field-price .price-currency {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sand);
  font-size: 0.9rem;
  pointer-events: none;
}

.field-price input[type="number"] {
  padding-left: 1.8rem;
}

.login-error {
  color: var(--rust);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
  min-height: 1.2rem;
}

/* ─── UPLOAD SECTION ─── */
#upload {
  padding: 5rem 3rem;
  background: var(--warm-white);
  border-top: 1px solid rgba(201,185,154,0.25);
  border-bottom: 1px solid rgba(201,185,154,0.25);
}

.upload-inner {
  max-width: 720px;
  margin: 0 auto;
}

.upload-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.upload-header-row h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 0.3rem;
}

.upload-header-row > div > p {
  color: var(--ink-light);
  font-size: 0.95rem;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drop-zone {
  border: 1.5px dashed var(--sand);
  border-radius: 6px;
  padding: 3.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  background: rgba(255,255,255,0.5);
  position: relative;
  margin-bottom: 1.5rem;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--rust);
  background: rgba(184, 92, 56, 0.03);
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.2rem;
  color: var(--sand);
}

.drop-zone h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 0.4rem;
}

.drop-zone p {
  font-size: 0.85rem;
  color: var(--sand);
}

/* ─── IMAGE PREVIEW ─── */
.image-preview {
  margin-bottom: 1.5rem;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(201,185,154,0.3);
}

.image-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
  padding: 1rem;
}

.preview-change {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(26,22,18,0.75);
  color: var(--cream);
  border: none;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}

.preview-change:hover { background: var(--rust); }

/* ─── META FIELDS ─── */
.meta-fields {
  margin-bottom: 0.5rem;
}

/* ─── UPLOAD PROGRESS ─── */
.upload-progress {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-bar {
  height: 3px;
  background: rgba(201,185,154,0.3);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--rust);
  border-radius: 99px;
  transition: width 0.3s ease;
  width: 0%;
}

.upload-progress span {
  font-size: 0.8rem;
  color: var(--sand);
  letter-spacing: 0.06em;
}

/* ─── GALLERY ─── */
#galeria {
  padding: 5rem 3rem;
  max-width: 1300px;
  margin: 0 auto;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.gallery-header h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
}

.gallery-count {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--sand);
}

/* ─── MASONRY GRID ─── */
.gallery-grid {
  columns: 3;
  column-gap: 1.2rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  animation: fadeUp 0.5s ease both;
  background: rgba(201,185,154,0.15);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(26,22,18,0.75));
  color: white;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.gallery-caption .caption-title {
  font-size: 1rem;
  display: block;
  margin-bottom: 0.2rem;
}

.gallery-caption .caption-price {
  font-size: 0.85rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ─── GALLERY EMPTY / LOADING ─── */
.gallery-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--sand);
  column-span: all;
}

.gallery-empty p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.gallery-empty span { font-size: 0.85rem; letter-spacing: 0.05em; }

.gallery-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 2rem;
  column-span: all;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(201,185,154,0.3);
  border-top-color: var(--rust);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,0.92);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(8px);
  padding: 2rem;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.lightbox-info {
  text-align: center;
}

.lightbox-caption {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.lightbox-desc {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 400px;
}

.lightbox-price {
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.lightbox-close:hover { color: white; }

.lightbox-delete {
  background: rgba(184,92,56,0.15);
  border: 1px solid rgba(184,92,56,0.4);
  color: var(--rust);
  padding: 0.5rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.lightbox-delete:hover { background: rgba(184,92,56,0.3); }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.9rem 1.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 30px rgba(26,22,18,0.2);
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 320px;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 3px solid var(--sage); }
.toast.error { border-left: 3px solid var(--rust); }

/* ─── FOOTER ─── */
footer {
  text-align: center;
  padding: 3rem;
  border-top: 1px solid rgba(201,185,154,0.25);
  color: var(--sand);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

footer strong {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink-light);
}

/* ─── ADMIN PANEL ─── */
.admin-tabs-bar {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 64px;
  z-index: 90;
}

.admin-tabs-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 56px;
}

.admin-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-right: 1rem;
  white-space: nowrap;
}

.admin-tabs-bar .btn-secondary {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.25);
}
.admin-tabs-bar .btn-secondary:hover {
  color: white;
  border-color: rgba(255,255,255,0.6);
}

.admin-tabs {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.admin-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  padding: 0.45rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-tab:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.75); }

.admin-tab.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.admin-section {
  padding: 4rem 3rem;
  background: var(--warm-white);
  border-bottom: 1px solid rgba(201,185,154,0.25);
}

/* ─── PHOTO UPLOAD ─── */
.photo-upload-area {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(201,185,154,0.4);
  border-radius: 4px;
  margin-bottom: 0.3rem;
}

.photo-current {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(201,185,154,0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-current img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: rgba(100,80,60,0.4);
}

.photo-placeholder span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-upload-btn-wrap { display: flex; flex-direction: column; gap: 0.4rem; }

.field-hint {
  font-size: 0.75rem;
  color: var(--sand);
  letter-spacing: 0.04em;
}

/* ─── ABOUT PHOTO pública ─── */
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── PROJECT EDIT CARDS ─── */
.project-edit-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(201,185,154,0.35);
  border-radius: 4px;
  padding: 1.5rem 1.5rem 1rem;
  margin-bottom: 1.2rem;
  position: relative;
  animation: fadeUp 0.3s ease both;
}

.project-edit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-edit-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: rgba(201,185,154,0.5);
  line-height: 1;
}

.project-edit-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-save-project {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-save-project:hover { background: var(--rust); }
.btn-save-project:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-delete-project {
  background: none;
  border: 1px solid rgba(184,92,56,0.3);
  color: var(--rust);
  padding: 0.4rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-delete-project:hover {
  background: rgba(184,92,56,0.08);
  border-color: var(--rust);
}

.btn-add-project {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1.5px dashed var(--sand);
  color: var(--ink-light);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-add-project:hover {
  border-color: var(--rust);
  color: var(--rust);
  background: rgba(184,92,56,0.03);
}

.projects-admin-loading {
  display: flex;
  justify-content: center;
  padding: 3rem;
}

/* ─── HERO CARDS con imágenes reales ─── */
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── LIGHTBOX WHATSAPP ─── */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}

.btn-whatsapp-lightbox {
  margin-top: 1rem;
}

/* ─── SOBRE MÍ ─── */
.about-section {
  padding: 6rem 3rem;
  background: var(--warm-white);
  border-top: 1px solid rgba(201,185,154,0.25);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  margin-bottom: 0.3rem;
}

.about-text p {
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-visual {
  position: relative;
  height: 400px;
}

.about-frame {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8dfd4 0%, #c8b9a6 100%);
  box-shadow: 0 20px 60px rgba(26,22,18,0.1);
}

.about-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: rgba(100,80,60,0.5);
}

.about-placeholder span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-tag {
  position: absolute;
  bottom: -1rem;
  left: -1.5rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
}

.about-tag-2 {
  bottom: 2.5rem;
  left: auto;
  right: -1.5rem;
  background: var(--rust);
}

/* ─── PROYECTOS ─── */
.projects-section {
  padding: 6rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.projects-inner > h2 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  margin-bottom: 0.3rem;
}

.projects-intro {
  color: var(--ink-light);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--warm-white);
  border: 1px solid rgba(201,185,154,0.3);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: var(--sand);
  box-shadow: 0 8px 30px rgba(26,22,18,0.06);
  transform: translateY(-3px);
}

.project-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(201,185,154,0.6);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.project-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
}

.project-card p {
  color: var(--ink-light);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.project-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}

/* ─── CONTACTO ─── */
.contact-section {
  padding: 6rem 3rem;
  background: var(--warm-white);
  border-top: 1px solid rgba(201,185,154,0.25);
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  margin-bottom: 0.3rem;
}

.contact-left p {
  color: var(--ink-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-note {
  font-size: 0.78rem;
  color: var(--sand);
  margin-top: 0.8rem;
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .gallery-grid { columns: 2; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .upload-header-row { flex-direction: column; gap: 1rem; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { height: 280px; }
  .projects-grid { grid-template-columns: 1fr; gap: 1rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }

  /* Admin — tablet */
  .admin-label { display: none; }
  .admin-tabs-inner { padding: 0 1.5rem; gap: 0.25rem; }
  .admin-section { padding: 3rem 1.5rem; }
}

@media (max-width: 560px) {
  .gallery-grid { columns: 1; }
  header { padding: 0 1.5rem; }
  nav { gap: 1.2rem; }
  nav a:not(.btn-upload-nav):not(:last-of-type) { display: none; }
  #galeria, #upload { padding: 3rem 1.5rem; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .about-section, .projects-section, .contact-section { padding: 4rem 1.5rem; }
  .modal { padding: 2rem 1.5rem; margin: 1rem; }
  .toast { bottom: 1rem; right: 1rem; left: 1rem; max-width: none; }

  /* Admin — mobile */
  .admin-tabs-inner {
    padding: 0;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .admin-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab {
    flex-shrink: 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
  }
  .admin-tabs-inner > .btn-secondary {
    align-self: flex-end;
    margin: 0.5rem 1rem;
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    color: rgba(255,255,255,0.75);
    border-color: rgba(255,255,255,0.25);
  }
  .admin-section { padding: 2rem 1.25rem; }
}
