/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; color: #2c2c2c; background: #fff; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ===== TOKENS ===== */
:root {
  --dark:    #141414;
  --navy:    #1c1e2d;
  --brown:   #332f2b;
  --beige:   #e8e0d3;
  --cream:   #f8f6f2;
  --gold:    #c4a882;
  --text:    #2c2c2c;
  --muted:   #666;
  --light:   #fff;
  --nav-h:   70px;
}

/* ===== TYPOGRAPHY ===== */
.brand-script  { font-family: 'Great Vibes', cursive; font-size: 2.2rem; color: var(--light); }
.title-serif   { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 400; color: var(--text); margin-bottom: 1.5rem; }
.body-text     { font-size: .875rem; line-height: 1.85; color: #555; font-weight: 300; }
.body-text p   { margin-bottom: .85rem; }
.body-text p:last-child { margin-bottom: 0; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .45s ease, border-color .45s ease, backdrop-filter .45s ease;
}
.navbar.nav-scrolled {
  background: rgba(20,20,20,.50);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(255,255,255,.05);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.nav-brand { display: flex; align-items: center; }
.brand-logo { width: auto; height: auto; display: block; }
.nav-logo { height: 56px; }
.nav-links  { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a {
  color: rgba(255,255,255,.85); font-size: .7rem; font-weight: 600;
  letter-spacing: 2.5px; transition: color .3s;
}
.nav-links a:hover { color: var(--gold); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: all .3s; }

/* ===== HERO ===== */
.hero {
  position: relative; height: 100vh; min-height: 550px;
  overflow: hidden; margin-top: 0;
}
/* Gradiente superior para legibilidad del navbar sobre la imagen */
.hero::before {
  content: ''; position: absolute; inset: 0 0 auto 0;
  height: 200px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, transparent 100%);
}
.hero-track { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-logo-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-logo {
  width: min(74vw, 931px);
  opacity: .94;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
}
.hero-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.28); color: #fff; border: none;
  font-size: 3rem; width: 52px; height: 75px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s; z-index: 10;
}
.hero-btn:hover { background: rgba(0,0,0,.55); }
.hero-prev { left: 0; } .hero-next { right: 0; }
.hero-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.45); border: none; cursor: pointer;
  transition: background .3s;
}
.hero-dot.active { background: #fff; }
.hero-focus-btn {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 12;
}
.hero-carousel-btn {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 12;
  background: rgba(0,0,0,.55); color: #fff; border: none;
  padding: .45rem 1rem; font-size: .72rem; font-weight: 600;
  font-family: 'Montserrat', sans-serif; cursor: pointer; border-radius: 3px;
  letter-spacing: 1px;
}
.hero-carousel-btn:hover { background: rgba(0,0,0,.8); }

/* ===== CAROUSEL MANAGER ===== */
.carousel-mgr-wrap {
  background: #fff; width: 92vw; max-width: 720px;
  max-height: 90vh; border-radius: 4px; padding: 2rem;
  position: relative; overflow-y: auto;
}
.carousel-label {
  font-family: 'Montserrat', sans-serif; font-size: .68rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: #666; margin-bottom: .6rem;
}
#carousel-count { color: var(--text); }
.carousel-current {
  display: flex; gap: 8px; flex-wrap: wrap;
  min-height: 78px; padding: .6rem;
  background: #f5f5f5; border-radius: 3px; margin-bottom: .4rem;
}
.carousel-thumb-wrap {
  position: relative; width: 108px; height: 78px; flex-shrink: 0;
}
.carousel-thumb {
  width: 100%; height: 100%; object-fit: cover; border-radius: 2px;
}
.carousel-remove-btn {
  position: absolute; top: -7px; right: -7px;
  background: #b52b2b; color: #fff; border: none; border-radius: 50%;
  width: 20px; height: 20px; font-size: 1rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.carousel-thumb-wrap .carousel-order {
  position: absolute; bottom: 3px; left: 5px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: .6rem; font-weight: 700; border-radius: 2px;
  padding: 1px 4px; font-family: 'Montserrat', sans-serif;
}
.carousel-divider { height: 1px; background: #e8e8e8; margin: 1.2rem 0; }

/* ===== SOBRE NOSOTROS ===== */
.section-sobre { background: #fff; }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.sobre-left {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 5.5rem 4rem;
  border-right: 1px solid rgba(0,0,0,.1);
}
.sobre-right {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5.5rem 4rem;
}
.sobre-left .title-serif { font-size: 1.85rem; }
.script-quote {
  font-family: 'Great Vibes', cursive; font-size: 1.75rem; color: var(--text);
  line-height: 1.65; text-align: center; font-style: normal;
  white-space: pre-wrap;
}
/* Valign controls: ocultos por defecto, visibles solo si la sección los soporta */
.fmt-valign-ctrl { display: none !important; }
.fmt-bar.has-valign .fmt-valign-ctrl { display: flex !important; }
.fmt-btn.fmt-active { background: rgba(196,168,130,.4); border-color: var(--gold); }

/* ===== KARINA ===== */
.section-karina { background: var(--beige); }
.karina-grid { display: grid; grid-template-columns: 1fr 1fr; }
.karina-photo-wrap { position: relative; overflow: hidden; min-height: 600px; }
.karina-photo { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.karina-text {
  padding: 5rem 4.5rem; display: flex; flex-direction: column;
  justify-content: center; gap: 0;
}
.karina-eyebrow {
  font-family: 'Montserrat', sans-serif; font-size: .7rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem;
}
.karina-name {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem;
  font-weight: 600; color: var(--text); margin-bottom: 1.6rem;
}
.karina-bio { margin-bottom: 1.8rem; }
.btn-outline {
  display: inline-block; padding: .65rem 2rem;
  border: 1.5px solid var(--text); color: var(--text);
  font-size: .7rem; font-weight: 700; letter-spacing: 2.5px;
  transition: all .3s; align-self: flex-start;
}
.btn-outline:hover { background: var(--text); color: #fff; }

/* ===== QUOTE ===== */
.section-quote { background: var(--brown); padding: 5.5rem 0; }
.big-quote {
  font-family: 'Great Vibes', cursive; font-size: 3rem;
  color: #fff; line-height: 1.5; text-align: center;
}

/* ===== SERVICIOS ===== */
.section-servicios { background: #fff; padding: 5.5rem 0; }
.title-servicios {
  font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 700;
  color: var(--text); letter-spacing: 4px; text-align: center; margin-bottom: 3rem;
}
.servicios-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(0,0,0,.09);
}
.servicio-card { padding: 2.5rem; border: 1px solid rgba(0,0,0,.09); }
.servicio-title {
  font-family: 'Montserrat', sans-serif; font-size: .8rem; font-weight: 700;
  color: var(--text); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: .9rem;
}
.servicio-body { color: #555; font-size: .8rem; }
.servicio-body p { margin-bottom: .6rem; }

/* ===== PROYECTOS ===== */
.section-proyectos { padding: 5.5rem 0; background: var(--cream); }
.proyectos-header { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-bottom: 2.5rem; }
.title-proyectos {
  font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 700;
  letter-spacing: 4px; color: var(--text); margin-bottom: 0;
}
.fotos-mgr-btn {
  background: var(--text); color: #fff; border: none;
  padding: .45rem 1rem; font-size: .68rem; font-weight: 600;
  font-family: 'Montserrat', sans-serif; cursor: pointer; border-radius: 3px;
  letter-spacing: 1px; white-space: nowrap;
}
.fotos-mgr-btn:hover { background: #444; }

/* ===== FOTOS MANAGER ===== */
.fotos-mgr-wrap {
  background: #fff; width: 95vw; max-width: 900px;
  max-height: 90vh; border-radius: 4px; padding: 2rem;
  position: relative; display: flex; flex-direction: column;
}
.fotos-layout {
  display: grid; grid-template-columns: 210px 1fr;
  gap: 1.5rem; flex: 1; min-height: 0; margin-top: 1rem; overflow: hidden;
}
.fotos-sidebar {
  display: flex; flex-direction: column; gap: .5rem;
  border-right: 1px solid #e8e8e8; padding-right: 1.2rem; overflow: hidden;
}
.fotos-folder-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .25rem; }
.fotos-folder-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .7rem; border-radius: 3px; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: .7rem; font-weight: 600;
  color: var(--text); transition: background .15s; gap: .4rem;
}
.fotos-folder-item:hover { background: var(--cream); }
.fotos-folder-item.active { background: var(--beige); }
.fotos-folder-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-del {
  background: none; border: none; color: #b52b2b; cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 0 2px; opacity: 0; flex-shrink: 0;
  transition: opacity .15s;
}
.fotos-folder-item:hover .folder-del { opacity: 1; }
.fotos-new-folder { display: flex; gap: .4rem; padding-top: .6rem; border-top: 1px solid #e8e8e8; }
.fotos-new-folder input {
  flex: 1; padding: .45rem .6rem; border: 1px solid #ddd;
  font-family: 'Montserrat', sans-serif; font-size: .75rem; min-width: 0;
}
.fotos-new-folder input:focus { border-color: var(--gold); outline: none; }
.fotos-new-folder button {
  padding: .45rem .75rem; background: var(--text); color: #fff;
  border: none; cursor: pointer; font-size: 1.1rem; border-radius: 2px; flex-shrink: 0;
}
.fotos-content { display: flex; flex-direction: column; gap: .8rem; overflow-y: auto; }
.fotos-upload-area { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.fotos-upload-btn {
  padding: .5rem 1.2rem; border: 1.5px dashed #bbb; background: #fff;
  font-family: 'Montserrat', sans-serif; font-size: .72rem; font-weight: 600;
  color: var(--text); cursor: pointer; border-radius: 3px; transition: border-color .2s;
}
.fotos-upload-btn:hover { border-color: var(--gold); }
#fotos-upload-status { font-family: 'Montserrat', sans-serif; font-size: .7rem; color: #888; }
.fotos-empty { font-family: 'Montserrat', sans-serif; font-size: .75rem; color: #aaa; padding: 2rem 0; text-align: center; }
.fotos-photo-item { position: relative; }
.fotos-photo-del {
  position: absolute; top: -7px; right: -7px;
  background: #b52b2b; color: #fff; border: none; border-radius: 50%;
  width: 22px; height: 22px; font-size: 1rem; cursor: pointer;
  display: none; align-items: center; justify-content: center; line-height: 1; z-index: 2;
}
.fotos-photo-item:hover .fotos-photo-del { display: flex; }
.proyectos-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.proyecto-card { position: relative; }
.proyecto-img-wrap {
  position: relative; aspect-ratio: 4/3;
  overflow: hidden; cursor: pointer;
}
.proyecto-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.proyecto-img-wrap:hover .proyecto-img { transform: scale(1.06); }
.proyecto-no-img {
  width: 100%; height: 100%; background: #ccc;
  display: flex; align-items: center; justify-content: center;
  color: #888; font-size: .85rem;
}
.proyecto-overlay {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  padding: 2.5rem 1rem .75rem;
}
.proyecto-label {
  font-family: 'Montserrat', sans-serif; font-size: .68rem;
  font-weight: 700; letter-spacing: 1.5px; color: #fff; text-transform: uppercase;
}
.proyecto-actions {
  display: none; position: absolute; top: 8px; right: 8px;
  flex-direction: column; gap: 4px; z-index: 5;
}
.proyecto-actions button {
  padding: 4px 9px; font-size: .68rem; border: none; border-radius: 3px;
  cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: 600;
  background: rgba(255,255,255,.92); color: var(--text); white-space: nowrap;
}
.proyecto-actions .btn-danger { background: rgba(180,40,40,.88); color: #fff; }
.add-project-card {
  display: none; aspect-ratio: 4/3; border: 2px dashed #bbb;
  cursor: pointer; background: #fff;
  align-items: center; justify-content: center;
  transition: border-color .3s;
}
.add-project-card:hover { border-color: var(--gold); }
.add-project-inner { display: flex; flex-direction: column; align-items: center; gap: .5rem; color: #aaa; }
.add-icon { font-size: 2.2rem; line-height: 1; }

/* ===== NÚMEROS ===== */
.section-numeros { background: #fff; }
.numeros-grid { display: grid; grid-template-columns: 2fr 3fr; align-items: stretch; min-height: 720px; }
.numeros-photo-wrap { position: relative; overflow: hidden; }
.numeros-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.numeros-content {
  padding: 5.5rem 5rem; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
}
.title-numeros {
  font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700;
  letter-spacing: 3.5px; text-align: center; color: var(--text); margin-bottom: 3rem;
}
.stats-row { display: flex; justify-content: center; gap: 5rem; flex-wrap: wrap; width: 100%; text-align: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.stat-val { font-family: 'Cormorant Garamond', serif; font-size: 3.8rem; font-weight: 300; line-height: 1; color: var(--text); }
.stat-lbl { font-family: 'Montserrat', sans-serif; font-size: .58rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); text-align: center; }

/* ===== FOOTER ===== */
.footer { background: var(--brown); padding: 2.8rem 3rem; }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 2rem; align-items: center;
}
.footer-brand-col { display: flex; align-items: center; }
.footer-logo { height: 80px; opacity: .75; }
.footer-col {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: .45rem;
}
.footer-icon {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(255,255,255,.65); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); margin-bottom: .2rem;
}
.footer-icon svg { width: 16px; height: 16px; }
.footer-col-title {
  font-family: 'Montserrat', sans-serif; font-size: .6rem;
  font-weight: 700; letter-spacing: 2.5px; color: #fff;
  text-transform: uppercase;
}
.footer-col-body {
  font-family: 'Montserrat', sans-serif; font-size: .68rem;
  color: rgba(255,255,255,.72); line-height: 1.75;
}
.footer-ig-link {
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  text-decoration: none; transition: opacity .25s;
}
.footer-ig-link:hover { opacity: .75; }

/* ===== FORMAT BAR ===== */
.fmt-bar {
  display: none; position: fixed; z-index: 1050;
  background: #1a1a1a; border-radius: 6px;
  padding: .35rem .6rem; gap: .35rem; align-items: center;
  box-shadow: 0 4px 22px rgba(0,0,0,.55);
  pointer-events: auto;
}
.fmt-bar.visible { display: flex; }
.fmt-btn {
  background: none; border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 28px; height: 26px; border-radius: 3px;
  cursor: pointer; font-size: .8rem; font-weight: 700; line-height: 1;
  font-family: 'Montserrat', sans-serif; transition: background .18s;
}
.fmt-btn:hover { background: rgba(255,255,255,.12); }
#fmt-size-val {
  color: rgba(255,255,255,.65); font-size: .7rem;
  min-width: 34px; text-align: center;
  font-family: 'Montserrat', sans-serif;
}
.fmt-sep { width: 1px; height: 18px; background: rgba(255,255,255,.15); }
.fmt-color-wrap {
  position: relative; width: 28px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2); border-radius: 3px;
  cursor: pointer;
}
.fmt-color-wrap input[type="color"] {
  position: absolute; inset: 0; opacity: 0;
  cursor: pointer; width: 100%; height: 100%;
}
#fmt-color-a {
  color: #fff; font-size: .9rem; font-weight: 700;
  font-family: 'Montserrat', sans-serif; pointer-events: none;
}

/* ===== EDIT MODE ===== */
.edit-only { display: none !important; }
body.edit-mode .edit-only { display: flex !important; }
body.edit-mode .proyecto-actions { display: flex !important; }
body.edit-mode .add-project-card { display: flex !important; }

.editable { outline: none; transition: outline .15s, background .15s; }
body.edit-mode .editable { outline: 1px dashed rgba(196,168,130,.55); cursor: text; }
body.edit-mode .editable:hover  { outline: 2px solid var(--gold); }
body.edit-mode .editable:focus  { outline: 2px solid var(--gold); background: rgba(196,168,130,.06); }

/* ===== EDIT BAR ===== */
.edit-bar { position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 1000; display: flex; gap: .6rem; align-items: center; }
/* El botón de edición es invisible para visitantes; solo aparece cuando ya estás en modo edición */
.edit-toggle { display: none; }
body.edit-mode .edit-toggle {
  display: block; background: rgba(0,0,0,.55); color: #fff; border: none;
  padding: .65rem 1.2rem; border-radius: 50px; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: .72rem; font-weight: 600;
  letter-spacing: 1px; box-shadow: 0 4px 18px rgba(0,0,0,.35); transition: background .3s;
}
body.edit-mode .edit-toggle:hover { background: rgba(0,0,0,.8); }
.save-btn {
  display: none; background: #3d6b4f; color: #fff; border: none;
  padding: .7rem 1.3rem; border-radius: 50px; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: .75rem; font-weight: 600;
  letter-spacing: 1px; box-shadow: 0 4px 18px rgba(0,0,0,.3); transition: background .3s;
}
.save-btn:hover { background: #2f5440; }
body.edit-mode .save-btn { display: block; }

/* ===== AUTH MODAL ===== */
.auth-wrap {
  background: #fff; width: 88vw; max-width: 320px;
  border-radius: 4px; padding: 2rem 2rem 1.5rem;
  text-align: center; position: relative;
}
.auth-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem;
  font-weight: 400; color: var(--text); margin-bottom: 1.4rem;
}
.auth-error {
  font-family: 'Montserrat', sans-serif; font-size: .7rem;
  color: #b52b2b; min-height: 1.2em; margin: -.4rem 0 .8rem;
}
.auth-submit { width: 100%; padding: .7rem; margin-top: .2rem; letter-spacing: 1.5px; }

.photo-edit-actions {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  gap: .45rem; align-items: center; z-index: 5;
}
.btn-change-photo,
.btn-focus-photo {
  background: rgba(0,0,0,.65); color: #fff; border: none;
  padding: .45rem 1rem; font-size: .72rem; font-weight: 600;
  font-family: 'Montserrat', sans-serif; cursor: pointer; border-radius: 3px;
  letter-spacing: 1px; white-space: nowrap;
}
.btn-focus-photo { background: rgba(61,107,79,.9); }
.btn-change-photo:hover,
.btn-focus-photo:hover { filter: brightness(1.08); }

.karina-photo-wrap > .btn-change-photo,
.numeros-photo-wrap > .btn-change-photo {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  z-index: 5;
}

/* ===== MODALS ===== */
.modal-bg {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.88); z-index: 1100;
  align-items: center; justify-content: center;
}
.modal-bg.open { display: flex; }

/* Gallery */
.gallery-wrap {
  background: #0a0a0a; width: 92vw; max-width: 1050px;
  max-height: 92vh; border-radius: 4px; display: flex;
  flex-direction: column; position: relative; overflow: hidden;
}
.gallery-stage {
  position: relative; flex: 1; display: flex;
  align-items: center; justify-content: center;
  background: #000; min-height: 0;
}
.gal-main-img { max-width: 100%; max-height: 75vh; object-fit: contain; }
.gal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff; border: none;
  font-size: 2.8rem; width: 52px; height: 72px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s; z-index: 5;
}
.gal-arrow:hover { background: rgba(0,0,0,.75); }
.gal-prev { left: 0; } .gal-next { right: 0; }
.gal-thumbs {
  display: flex; gap: 5px; padding: 8px 10px;
  overflow-x: auto; background: #181818;
  scrollbar-width: thin; scrollbar-color: #444 #181818;
}
.gal-thumb {
  width: 72px; height: 52px; object-fit: cover; cursor: pointer;
  opacity: .55; flex-shrink: 0; border: 2px solid transparent;
  transition: opacity .25s, border-color .25s;
}
.gal-thumb.active, .gal-thumb:hover { opacity: 1; border-color: var(--gold); }

/* Picker */
.picker-wrap {
  background: #fff; width: 88vw; max-width: 680px;
  max-height: 88vh; border-radius: 4px; padding: 2rem;
  position: relative; overflow-y: auto;
}
.picker-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: .8rem;
}
.picker-img {
  aspect-ratio: 4/3; object-fit: cover; cursor: pointer; width: 100%;
  border: 3px solid transparent; border-radius: 2px; transition: border-color .2s;
}
.picker-img:hover { border-color: var(--gold); }
.picker-img.selected { border-color: #3d6b4f; }

/* Form */
.form-wrap {
  background: #fff; width: 88vw; max-width: 560px;
  max-height: 88vh; border-radius: 4px; padding: 2rem;
  position: relative; overflow-y: auto;
}
.focus-wrap {
  background: #fff; width: min(88vw, 760px);
  max-height: 90vh; border-radius: 4px; padding: 2rem;
  position: relative; overflow-y: auto;
}
.focus-preview-frame {
  position: relative; height: min(58vh, 460px);
  background: #111; overflow: hidden; cursor: crosshair;
  border-radius: 3px; border: 1px solid rgba(0,0,0,.12);
}
.focus-preview-frame img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.focus-marker {
  position: absolute; width: 22px; height: 22px;
  border: 2px solid #fff; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,.65), 0 2px 12px rgba(0,0,0,.45);
}
.focus-marker::before,
.focus-marker::after {
  content: ""; position: absolute; background: #fff;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.focus-marker::before { width: 2px; height: 30px; }
.focus-marker::after { width: 30px; height: 2px; }
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400; color: var(--text); margin-bottom: 1.5rem; padding-right: 2rem; }
.form-group { margin-bottom: 1.3rem; }
.form-group label, .form-label {
  display: block; font-size: .72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: #666; margin-bottom: .45rem;
}
.form-group input, .form-group select {
  width: 100%; padding: .65rem 1rem; border: 1px solid #ddd;
  font-family: 'Montserrat', sans-serif; font-size: .9rem;
  color: var(--text); outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--gold); }
.modal-actions { display: flex; gap: .8rem; justify-content: flex-end; margin-top: 1.5rem; }
.btn-cancel { padding: .65rem 1.4rem; border: 1px solid #ddd; background: #fff; cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: .78rem; color: #555; }
.btn-primary { padding: .65rem 1.6rem; border: none; background: var(--text); color: #fff; cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: .78rem; font-weight: 700; }

.modal-close {
  position: absolute; top: .8rem; right: 1rem;
  background: none; border: none; font-size: 1.8rem;
  cursor: pointer; color: inherit; line-height: 1; z-index: 5;
}
.gallery-wrap .modal-close { color: #fff; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%);
  padding: .75rem 1.5rem; border-radius: 4px;
  font-family: 'Montserrat', sans-serif; font-size: .8rem; font-weight: 500;
  color: #fff; z-index: 1500; animation: fadeUp .3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,.2); white-space: nowrap;
}
.toast.ok  { background: #3d6b4f; }
.toast.err { background: #b52b2b; }
@keyframes fadeUp { from { opacity:0; transform: translate(-50%,12px); } to { opacity:1; transform: translate(-50%,0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .nav-logo { height: 45px; }
  .hero-logo { width: min(96vw, 692px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .footer-brand-col { grid-column: 1 / -1; justify-content: center; }
  .footer-logo { height: 64px; }
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-left { border-right: none; border-bottom: 1px solid rgba(0,0,0,.1); padding: 3.5rem 2.5rem; }
  .sobre-right { padding: 3.5rem 2.5rem; }
  .karina-grid { grid-template-columns: 1fr; }
  .karina-photo-wrap { min-height: 380px; max-height: 420px; }
  .karina-text { padding: 3rem 2.5rem; }
  .servicios-grid { grid-template-columns: 1fr; }
  .proyectos-grid { grid-template-columns: repeat(2,1fr); }
  .numeros-grid { grid-template-columns: 1fr; }
  .numeros-photo-wrap { min-height: 280px; max-height: 320px; }
  .numeros-content { padding: 3.5rem 2.5rem; }
  .stats-row { gap: 3rem; }
  .big-quote { font-size: 2.2rem; }
}
@media (max-width: 640px) {
  .nav-logo { height: 40px; }
  .hero-logo { width: min(100vw, 585px); }
  .footer-logo { height: 56px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--dark); padding: 1rem 2rem 1.5rem; gap: 1.2rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .proyectos-grid { grid-template-columns: 1fr; }
  .big-quote { font-size: 1.6rem; }
  .stat-val { font-size: 2.8rem; }
  .picker-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .save-btn { font-size: .68rem; padding: .65rem 1rem; }
  .edit-toggle { font-size: .68rem; padding: .65rem 1rem; }
}
