/* ============================================================
   ARTE CARDENAS — CSS Principal
   Paleta: Noche Andina / Oro / Marfil
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Jost:wght@200;300;400;500&display=swap');

/* ---- VARIABLES ---- */
:root {
  --ivory:      #F8F5EF;
  --warm:       #EDE8DF;
  --gold:       #A8894A;
  --gold-light: #C9A96E;
  --dark:       #1A1714;
  --text:       #2C2820;
  --muted:      #7A7060;
  --accent:     #8B6F3A;
  --success:    #5A8A3A;
  --danger:     #A32D2D;
  --nav-h:      64px;
  --transition: 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ---- TIPOGRAFÍA ---- */
.font-display { font-family: 'Cormorant Garamond', serif; }

h1,h2,h3,h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.05;
}
.eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 0.5px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---- NAV ---- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(248,245,239,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid rgba(168,137,74,0.18);
  transition: var(--transition);
}
#nav.scrolled {
  background: rgba(26,23,20,0.96);
}
#nav.scrolled .nav-link { color: rgba(248,245,239,0.6); }
#nav.scrolled .nav-link:hover { color: var(--gold-light); }
#nav.scrolled .brand-main { color: #F8F5EF; }
#nav.scrolled .brand-sub  { color: var(--gold-light); }

.brand-mark { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-logo { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-sub  {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 8px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  transition: var(--transition);
}
.brand-main {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--dark);
  transition: var(--transition);
}

.nav-links { display: flex; gap: 32px; }
.nav-link {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 0.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 9px 22px;
  border: 0.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.nav-cta:hover { background: var(--gold); color: var(--ivory); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  width: 22px; height: 0.5px;
  background: var(--dark);
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 48px;
}
.hero-title {
  font-size: clamp(52px, 5.5vw, 80px);
  color: var(--dark);
  margin-bottom: 28px;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-desc {
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 380px;
  margin-bottom: 44px;
}
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 0.5px solid rgba(168,137,74,0.2);
  display: flex;
  gap: 44px;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
   margin-top: 6px;
  font-weight: 400;
}
.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--warm);
}
.hero-canvas { width: 100%; height: 100%; object-fit: cover; }

/* ---- BOTONES ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.btn-dark {
  background: var(--dark);
  color: var(--ivory);
  padding: 14px 32px;
}
.btn-dark:hover { background: var(--gold); }
.btn-gold {
  background: var(--gold);
  color: var(--ivory);
  padding: 14px 32px;
}
.btn-gold:hover { background: var(--accent); }
.btn-outline {
  background: transparent;
  color: var(--muted);
  padding: 14px 32px;
  border: 0.5px solid rgba(120,112,96,0.4);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-weight: 300;
}
.btn-ghost:hover { color: var(--gold); }
.btn-ghost svg { transition: transform var(--transition); }
.btn-ghost:hover svg { transform: translateX(4px); }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  padding: 14px 28px;
  gap: 10px;
}
.btn-whatsapp:hover { background: #1ebe5d; }

/* ---- SECCIONES ---- */
.section { padding: 100px 48px; }
.section-sm { padding: 60px 48px; }
.section-dark { background: var(--dark); }
.section-warm { background: var(--warm); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
}
.section-title { font-size: clamp(36px, 3.5vw, 52px); color: var(--dark); }
.section-title.light { color: var(--ivory); }
.section-title em { font-style: italic; color: var(--gold); }
.section-title.light em { color: var(--gold-light); }

.see-all {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 0.5px solid transparent;
  transition: var(--transition);
}
.see-all:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ---- GRID OBRAS ---- */
.obras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.obras-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.obra-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--warm);
  height: 360px;
}
.obra-card.span-2 {
  grid-column: span 2;
  height: 460px;
}
.obra-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94);
}
.obra-card:hover .obra-img { transform: scale(1.05); }
.obra-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.obra-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 24px 24px;
  background: linear-gradient(to top, rgba(26,23,20,0.9) 0%, transparent 100%);
  transform: translateY(6px);
  transition: transform 0.4s;
}
.obra-card:hover .obra-overlay { transform: translateY(0); }
.obra-vertiente {
  font-size: 8px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 5px;
}
.obra-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  color: #F8F5EF;
  font-style: italic;
  line-height: 1.15;
}
.obra-meta { font-size: 11px; color: rgba(248,245,239,0.55); margin-top: 5px; }
.obra-precio {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--gold-light);
  margin-top: 8px;
}
.badge {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.badge-venta     { background: rgba(168,137,74,0.9);  color: var(--ivory); }
.badge-vendido   { background: rgba(26,23,20,0.75);   color: rgba(248,245,239,0.6); }
.badge-reservado { background: rgba(90,138,58,0.85);  color: var(--ivory); }
.badge-consig    { background: rgba(91,110,145,0.85); color: var(--ivory); }
.badge-default   { background: rgba(122,112,96,0.4);  color: var(--dark); }
.obra-status-badge {
  position: absolute;
  top: 16px; left: 16px;
}
.obra-price-tag {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(248,245,239,0.95);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  padding: 6px 10px;
  color: var(--dark);
  opacity: 0;
  transition: opacity var(--transition);
}
.obra-card:hover .obra-price-tag { opacity: 1; }

/* ---- VERTIENTES PILLS ---- */
.vertientes-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  padding: 12px 24px;
  border: 0.5px solid rgba(168,137,74,0.35);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.pill:hover, .pill.active {
  background: var(--gold);
  border-color: var(--gold);
}
.pill-name {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color var(--transition);
  display: block;
  font-weight: 400;
}
.pill:hover .pill-name, .pill.active .pill-name { color: var(--ivory); }
.pill-count {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--text);
  display: block;
  margin-top: 4px;
  transition: color var(--transition);
  font-weight: 400;
}
.pill:hover .pill-count, .pill.active .pill-count { color: rgba(248,245,239,0.65); }

/* ---- ETAPAS TIMELINE ---- */
.etapas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 0.5px solid rgba(248,245,239,0.1);
}
.etapa-item {
  padding: 48px 32px;
  border-right: 0.5px solid rgba(248,245,239,0.1);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.etapa-item:last-child { border-right: none; }
.etapa-item:hover { background: rgba(168,137,74,0.07); }
.etapa-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: rgba(248,245,239,0.06);
  line-height: 1;
  margin-bottom: 14px;
}
.etapa-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--ivory);
  margin-bottom: 6px;
}
.etapa-period {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.etapa-desc { font-size: 12px; line-height: 1.75; color: rgba(248,245,239,0.45); }
.etapa-arrow {
  position: absolute;
  bottom: 28px; right: 28px;
  color: var(--gold-light);
  font-size: 18px;
  opacity: 0;
  transition: opacity var(--transition);
}
.etapa-item:hover .etapa-arrow { opacity: 1; }

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}
.about-img-wrap { overflow: hidden; background: var(--warm); }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-content {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-quote {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.45;
  color: var(--dark);
  margin-bottom: 28px;
  padding-left: 24px;
  border-left: 1.5px solid var(--gold);
}
.about-bio {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 36px;
}
.firma-display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 38px;
  color: var(--dark);
}
.firma-img { height: 52px; width: auto; mix-blend-mode: multiply; opacity: 0.8; }
.firma-sub {
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
  display: block;
}

/* ---- BLOG CARDS ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.blog-card { cursor: pointer; }
.blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--warm);
  margin-bottom: 20px;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-cat {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.blog-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.2;
}
.blog-excerpt { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.blog-date { font-size: 10px; color: var(--muted); letter-spacing: 0.1em; }

/* ---- FORMULARIO CONTACTO ---- */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 0.5px solid rgba(168,137,74,0.3);
  background: transparent;
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 14px;
  transition: border-color var(--transition);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-control:focus { border-color: var(--gold); }
.form-control::placeholder { color: rgba(122,112,96,0.5); }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ---- CARRITO ---- */
.cart-icon {
  position: relative;
  cursor: pointer;
}
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--gold);
  color: var(--ivory);
  font-size: 9px;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 0.5px solid rgba(168,137,74,0.15);
}
.cart-item-img { width: 80px; height: 80px; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--dark);
}
.cart-item-precio {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--gold);
  margin-top: 4px;
}
.cart-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-top: 8px;
  padding: 0;
  transition: color var(--transition);
}
.cart-remove:hover { color: var(--danger); }

/* ---- NOTIFICACIONES ---- */
.alert {
  padding: 14px 20px;
  margin-bottom: 20px;
  font-size: 13px;
  border-left: 3px solid;
}
.alert-success { background: rgba(90,138,58,0.08); border-color: var(--success); color: var(--success); }
.alert-error   { background: rgba(163,45,45,0.08); border-color: var(--danger);  color: var(--danger); }
.alert-info    { background: rgba(168,137,74,0.08); border-color: var(--gold);   color: var(--accent); }

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--gold);
  padding: 80px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1;
}
.btn-ivory {
  background: var(--ivory);
  color: var(--gold);
  padding: 14px 32px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-ivory:hover { background: var(--dark); color: var(--ivory); }
.btn-outline-ivory {
  background: transparent;
  color: var(--ivory);
  padding: 14px 32px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 0.5px solid rgba(248,245,239,0.55);
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline-ivory:hover { background: rgba(248,245,239,0.12); }

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  padding: 72px 48px 32px;
  border-top: 0.5px solid rgba(168,137,74,0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(248,245,239,0.38);
  margin-top: 16px;
}
.footer-col-title {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 13px;
  color: rgba(248,245,239,0.42);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 0.5px solid rgba(248,245,239,0.07);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 11px; color: rgba(248,245,239,0.22); }
.social-row { display: flex; gap: 18px; }
.social-link {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248,245,239,0.3);
  transition: color var(--transition);
}
.social-link:hover { color: var(--gold-light); }

/* ---- WHATSAPP FLOAT ---- */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
}

/* ---- ADMIN PANEL ---- */
.admin-body { background: #F4F2EE; min-height: 100vh; }
.admin-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 240px;
  height: 100vh;
  background: var(--dark);
  padding: 32px 0;
  overflow-y: auto;
  z-index: 100;
}
.admin-main { margin-left: 240px; padding: 32px; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(248,245,239,0.45);
  transition: var(--transition);
}
.admin-nav-link:hover, .admin-nav-link.active {
  color: var(--gold-light);
  background: rgba(168,137,74,0.07);
  border-left: 2px solid var(--gold);
}
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 32px; }
.kpi-card {
  background: #fff;
  padding: 24px;
  border-top: 2px solid var(--gold);
}
.kpi-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: var(--dark);
}
.kpi-label { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}
.admin-table th {
  background: var(--warm);
  padding: 12px 16px;
  text-align: left;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 0.5px solid rgba(168,137,74,0.2);
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 0.5px solid rgba(0,0,0,0.05);
  color: var(--text);
}
.admin-table tr:hover td { background: rgba(237,232,223,0.4); }

/* ---- LOADER ---- */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.loader-overlay.hidden { opacity: 0; visibility: hidden; }
.loader-firma { height: 60px; width: auto; mix-blend-mode: multiply; animation: fadeInOut 1.5s ease-in-out infinite; }
@keyframes fadeInOut { 0%,100%{opacity:0.3} 50%{opacity:0.85} }

/* ---- PAGINATION ---- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 56px; }
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 0.5px solid rgba(168,137,74,0.3);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ivory);
}

/* ---- MODAL OBRA ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,23,20,0.88);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--ivory);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-img { background: var(--warm); }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 48px; }
.modal-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.modal-obra-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 8px;
}
.modal-obra-meta { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.modal-obra-precio {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 24px;
}
.modal-obra-desc { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 28px; }
.modal-obra-specs {
  border-top: 0.5px solid rgba(168,137,74,0.2);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.spec-row { display: flex; justify-content: space-between; font-size: 12px; }
.spec-key { color: var(--muted); letter-spacing: 0.1em; }
.spec-val { color: var(--text); text-align: right; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 60px 32px; }
  .about-grid { grid-template-columns: 1fr; }
  .obras-grid { grid-template-columns: repeat(2,1fr); }
  .etapas-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .section, .section-sm { padding: 60px 24px; }
  .obras-grid { grid-template-columns: 1fr; gap: 2px; }
  .blog-grid { grid-template-columns: 1fr; }
  .cta-section { flex-direction: column; text-align: center; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-img { height: 240px; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .admin-main { margin-left: 0; }
  .obras-grid-4 { grid-template-columns: repeat(2,1fr); }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- ANIMACIONES ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ARTE CARDENAS — CSS Responsive Móvil
   Agregar al FINAL de main.css
   ============================================================ */

@media (max-width: 768px) {

  /* ---- NAV ---- */
  #nav {
    padding: 0 16px;
    height: 60px;
  }
  #nav .brand-text { display: none; }
  #nav #logo-divider { display: none; }
  #logo-firma { height: 28px !important; }
  #search-form { display: none !important; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex !important; }

  /* ---- HERO ---- */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-left {
    padding: 48px 24px 40px;
  }
  .hero-right { display: none; }
  .hero-title { font-size: 48px; }
  .hero-stats { gap: 24px; }
  .hero-stats .stat-num { font-size: 36px; }

  /* ---- SECCIONES ---- */
  .section { padding: 60px 20px; }
  .section-sm { padding: 40px 20px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* ---- GRID OBRAS HOME ---- */
  .obras-grid {
    grid-template-columns: 1fr !important;
  }
  .obras-grid .obra-card {
    height: 280px !important;
  }
  .obras-grid .obra-card.span-2 {
    grid-column: span 1 !important;
    height: 280px !important;
  }

  /* ---- GRID CATÁLOGO ---- */
  .obras-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2px !important;
  }
  .obras-grid-4 .obra-card {
    height: 240px !important;
  }

  /* ---- VERTIENTES PILLS ---- */
  .vertientes-pills { gap: 8px; }
  .pill { padding: 10px 16px; }
  .pill-name { font-size: 10px; }
  .pill-count { font-size: 22px; }

  /* ---- ETAPAS GRID ---- */
  .etapas-grid {
    grid-template-columns: 1fr !important;
  }
  .etapa-item {
    border-right: none !important;
    border-bottom: 0.5px solid rgba(248,245,239,0.1);
    padding: 32px 24px;
  }

  /* ---- ABOUT / EL ARTISTA ---- */
  .about-grid {
    grid-template-columns: 1fr !important;
  }
  .about-img-wrap {
    height: 300px;
  }
  .about-content {
    padding: 40px 24px !important;
  }

  /* ---- BLOG GRID ---- */
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  /* ---- CTA SECTION ---- */
  .cta-section {
    flex-direction: column;
    padding: 60px 24px;
    text-align: center;
  }
  .cta-title { font-size: 36px; }

  /* ---- FOOTER ---- */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  footer { padding: 48px 24px 24px; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  /* ---- PÁGINA ARTISTA ---- */
  /* Hero artista */
  .artista-hero-grid,
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Biografía — sticky desactivado */
  [style*="position:sticky"] {
    position: relative !important;
    top: auto !important;
  }

  /* Grid de pilares 3 col → 1 col */
  [style*="repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Grid exposiciones 2 col */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* ---- PÁGINA CONTACTO ---- */
  [style*="grid-template-columns:1fr 1fr"]:has(.form-control) {
    grid-template-columns: 1fr !important;
  }

  /* Contacto layout principal */
  .contacto-grid,
  [style*="min-height:calc(100vh"] {
    grid-template-columns: 1fr !important;
  }

  /* ---- PÁGINA ETAPAS ---- */
  /* Timeline nav de etapas */
  [style*="display:flex;align-items:center;gap:0;margin-top:60px"] {
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* ---- MODAL ---- */
  .modal-box {
    grid-template-columns: 1fr !important;
    max-height: 95vh;
  }
  .modal-img { height: 220px; }
  .modal-info { padding: 28px 20px !important; }

  /* ---- ADMIN ---- */
  .admin-sidebar {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
  }
  .admin-main { margin-left: 0 !important; padding: 20px !important; }
  .kpi-grid { grid-template-columns: repeat(2,1fr) !important; }
  .two-col { grid-template-columns: 1fr !important; }

  /* ---- PÁGINA ARTISTA — secciones internas ---- */
  .artista-pilares {
    grid-template-columns: 1fr !important;
  }

  /* Stats artista */
  [style*="display:flex;gap:40px;padding-top:32px"] {
    gap: 20px !important;
    flex-wrap: wrap;
  }

  /* ---- TEXTO GENERAL ---- */
  .hero-desc { font-size: 16px; }
  .about-quote { font-size: 20px !important; }
  .section-title { font-size: 32px !important; }
  p { line-height: 1.75; }

  /* ---- WHATSAPP FLOAT ---- */
  .wa-float { bottom: 20px; right: 16px; width: 46px; height: 46px; }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .obras-grid { grid-template-columns: repeat(2,1fr) !important; }
  .obras-grid-4 { grid-template-columns: repeat(3,1fr) !important; }
  .etapas-grid { grid-template-columns: repeat(2,1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .hero-left { padding: 60px 40px; }
  [style*="repeat(3,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
}
/* ---- FIXES ADICIONALES MÓVIL ---- */
@media (max-width: 768px) {

  /* Evitar overflow horizontal en toda la página */
  body, html { overflow-x: hidden; max-width: 100vw; }
  * { max-width: 100%; }

  /* Artista — imagen sticky en móvil */
  [style*="position:sticky;top:100px"] {
    position: relative !important;
    top: 0 !important;
    margin-bottom: 32px;
  }

  /* Artista — grid biografía 2 col → 1 col */
  [style*="grid-template-columns:1fr 1.6fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Catálogo vertientes en etapas — 4 col → 2 col */
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2,1fr) !important;
  }

  /* Etapas — timeline header flex → column */
  [style*="display:flex;align-items:center;gap:0;margin-top:60px"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    border: 0.5px solid rgba(248,245,239,0.1);
  }

  /* Etapas — secciones 2 col → 1 col */
  [style*="grid-template-columns:1fr 1fr;gap:80px"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Etapas — padding lateral */
  [style*="padding:100px 48px"] {
    padding: 56px 20px !important;
  }
  [style*="padding:80px 48px"] {
    padding: 48px 20px !important;
  }

  /* Pilares artista 3 col → 1 col */
  [style*="grid-template-columns:repeat(3,1fr);gap:2px"] {
    grid-template-columns: 1fr !important;
  }

  /* Contacto — 2 col → 1 col */
  [style*="grid-template-columns:1fr 1fr;min-height"] {
    grid-template-columns: 1fr !important;
  }

  /* Secciones con max-width */
  [style*="max-width:1100px"], 
  [style*="max-width:1200px"],
  [style*="max-width:800px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
/* ---- OBRA.PHP RESPONSIVE ---- */
@media (max-width: 768px) {
  [style*="grid-template-columns:1.2fr 1fr"] { grid-template-columns: 1fr !important; gap: 24px !important; }
  [style*="position:sticky;top:calc(var(--nav-h)"] { position: relative !important; top: auto !important; }
  [style*="padding:16px 48px"] { padding: 12px 20px !important; }
  [style*="padding:60px 48px;max-width:1200px"] { padding: 28px 20px !important; }
  [style*="padding:60px 48px;background:var(--warm)"] { padding: 40px 20px !important; }
  [style*="display:flex;gap:12px;margin-bottom:40px"] { flex-direction: column !important; gap: 10px !important; }
  [style*="display:flex;gap:12px;margin-bottom:40px"] a { width: 100% !important; justify-content: center !important; }
}

/* ---- ETAPAS HERO RESPONSIVE ---- */
@media (max-width: 768px) {
  [style*="grid-template-columns:1fr 320px"] { grid-template-columns: 1fr !important; gap: 0 !important; }
  [style*="grid-template-columns:1fr 320px"] > div:last-child { height: 280px !important; order: -1 !important; }
  [style*="grid-template-columns:repeat(4,1fr);gap:2px"] { grid-template-columns: repeat(2,1fr) !important; }
}

/* ---- SPEC ROWS — Ficha técnica obra.php ---- */
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 0.5px solid rgba(168,137,74,0.15);
}
.spec-row:last-child { border-bottom: none; }
.spec-key {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 400;
}
.spec-val {
  color: var(--dark);
  text-align: right;
  font-weight: 400;
  font-size: 13px;
}
/* Spec sobre fondo oscuro (columna derecha obra.php) */
.obra-dark-panel .spec-key { color: rgba(201,169,110,0.75); }
.obra-dark-panel .spec-val { color: rgba(248,245,239,0.88); }
.obra-dark-panel .spec-row { border-bottom-color: rgba(255,255,255,0.07); }