/* ============================================================
   CONSTRUCTORA MC — Estilos Principales
   Requiere tokens.css cargado antes.
   Sin dark mode. Sin color-mix(). Puro CSS3 estándar.
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { color: var(--ink-soft); line-height: 1.75; text-wrap: pretty; }

/* ── Tipografía ─────────────────────────────────────────────── */
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

/* ── Contenedor ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Componentes compartidos del nuevo sistema ───────────────── */

/* Botones mc-btn (del design system) */
.mc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.mc-btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mc-btn.primary:hover { background: var(--ocean); border-color: var(--ocean); }
.mc-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.mc-btn.ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mc-btn.accent { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.mc-btn.accent:hover { background: var(--ocean-deep); border-color: var(--ocean-deep); }
.mc-btn.sm { padding: 7px 16px; font-size: 12px; }
.mc-btn.lg { padding: 14px 28px; font-size: 15px; }
.mc-btn.block { width: 100%; justify-content: center; }

/* Logo mc-logo */
.mc-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.mc-logo .mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.mc-logo > span:not(.mark) {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.mc-logo small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Clases de hover para tarjetas (reemplazo de inline onmouseover) */
.card-hover {
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(18,44,79,0.12);
}

/* mc-eyebrow */
.mc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  font-family: var(--font-body);
}
.mc-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  flex-shrink: 0;
}

/* mc-field / mc-input */
.mc-field { display: flex; flex-direction: column; gap: 7px; }
.mc-field label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.mc-input, .mc-textarea, .mc-select {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mc-input:focus, .mc-textarea:focus, .mc-select:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px var(--ocean-soft);
}
.mc-input::placeholder, .mc-textarea::placeholder { color: var(--ink-faint); }
.mc-textarea { resize: vertical; min-height: 120px; }

/* mc-pill (status badge) */
.mc-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.mc-pill .d { width: 6px; height: 6px; border-radius: 50%; }
.mc-pill.green  { background: rgba(46,125,91,0.12); color: #2E7D5B; }
.mc-pill.green .d  { background: #2E7D5B; }
.mc-pill.amber  { background: rgba(201,138,31,0.14); color: #C98A1F; }
.mc-pill.amber .d  { background: #C98A1F; }
.mc-pill.blue   { background: var(--ocean-soft); color: var(--ocean-deep); }
.mc-pill.blue .d   { background: var(--ocean); }
.mc-pill.red    { background: rgba(178,58,72,0.12); color: #B23A48; }
.mc-pill.red .d    { background: #B23A48; }
.mc-pill.gray   { background: var(--bg-soft); color: var(--ink-soft); }
.mc-pill.gray .d   { background: var(--ink-faint); }

/* mc-theme-toggle */
.mc-theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--line-strong);
  color: var(--ink); cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mc-theme-toggle:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── Botones legado ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.3px;
  border-radius: 999px; border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer; text-decoration: none;
  white-space: nowrap;
}
.btn-lg   { padding: 14px 32px; font-size: 0.95rem; }
.btn-sm   { padding: 7px 16px; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-gold, .btn-accent {
  background: var(--gold); color: #ffffff; border-color: var(--gold);
}
.btn-gold:hover, .btn-accent:hover {
  background: var(--gold-dark); border-color: var(--gold-dark);
  box-shadow: 0 8px 24px rgba(200,168,112,0.40);
}
.btn-primary {
  background: var(--midnight); color: #ffffff; border-color: var(--midnight);
}
.btn-primary:hover {
  background: var(--midnight-90); border-color: var(--midnight-90);
  box-shadow: 0 8px 24px rgba(18,44,79,0.35);
}
.btn-dark { background: #111; color: #ffffff; border-color: #111; }
.btn-dark:hover { background: #333; }
.btn-outline-gold {
  background: transparent; color: var(--gold); border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: #ffffff; }
.btn-outline-white {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn-whatsapp:hover { background: #1da851; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 4px 12px;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; border-radius: 999px;
}
.badge-gold     { background: var(--gold); color: #ffffff; }
.badge-primary  { background: var(--midnight); color: #ffffff; }
.badge-orange   { background: #f97316; color: #fff; }
.badge-purple   { background: #8b5cf6; color: #fff; }
.badge-green    { background: #22c55e; color: #fff; }
.badge-gray     { background: #d1d5db; color: #374151; }

/* ── Alertas ─────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: var(--r-sm);
  margin-bottom: 16px; font-size: 0.9rem; font-weight: 500;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Formularios legado ─────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 6px;
}
.form-control {
  width: 100%; padding: 12px 14px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); font-family: var(--font-body);
  font-size: 0.92rem; color: var(--ink); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  border-color: var(--ocean); box-shadow: 0 0 0 3px var(--ocean-soft);
}
.form-control::placeholder { color: var(--ink-faint); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { display: block; font-size: 0.78rem; color: var(--danger); margin-top: 4px; }

/* ── Topbar superior ─────────────────────────────────────────── */
.topbar {
  background: var(--midnight);
  color: rgba(251,249,228,0.65);
  font-size: 0.78rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-contact a, .topbar-contact span {
  color: rgba(251,249,228,0.65); display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.topbar-contact a:hover { color: var(--ocean); }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { color: rgba(251,249,228,0.55); font-size: 0.82rem; transition: color 0.2s; }
.topbar-social a:hover { color: var(--ocean); }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.navbar-brand img { height: 40px; width: auto; }
.navbar-brand-text {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.5px;
}
.navbar-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-link {
  font-size: 0.88rem; font-weight: 500; color: var(--ink-soft);
  padding: 8px 14px; border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px;
  left: 14px; right: 14px; height: 1.5px;
  background: var(--ocean); transform: scaleX(0); transition: transform 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.navbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.navbar-toggler {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; cursor: pointer;
}
.navbar-toggler span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.25s;
}
/* Acciones de cuenta — solo visibles dentro del menú móvil abierto */
.nav-mobile-actions { display: none; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: calc(100vh - 108px);
  display: flex; align-items: center;
  background: var(--midnight) url('/images/hero-bg.jpg') center/cover no-repeat;
  color: #fff; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--grad-hero);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 640px; padding: 80px 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ocean);
  margin-bottom: 24px; padding: 7px 18px;
  border: 1px solid rgba(91,136,178,0.45); border-radius: 999px;
  font-family: var(--font-mono);
  background: rgba(91,136,178,0.08);
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ocean); flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 500; color: #fff; line-height: 0.98;
  margin-bottom: 28px; letter-spacing: -0.035em;
}
.hero-title em {
  font-style: italic; color: transparent;
  background: linear-gradient(135deg, var(--gold) 0%, #e8c98a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,0.68);
  line-height: 1.78; margin-bottom: 40px; max-width: 500px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.45); font-size: 0.72rem;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
  animation: bounce 2s infinite; z-index: 2;
  background: none; border: none; padding: 0;
  touch-action: manipulation;
}
.hero-scroll:hover { color: rgba(255,255,255,0.75); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Sección genérica ────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-title  { margin-bottom: 12px; }
.section-subtitle { max-width: 560px; margin: 0 auto; }
.title-line {
  display: block; width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  margin: 20px auto 0; border-radius: 2px;
}
.eyebrow, .section-eyebrow {
  display: inline-block; font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
  padding: 5px 14px;
  background: rgba(200,168,112,0.1);
  border-radius: 999px;
  border: 1px solid rgba(200,168,112,0.3);
}

/* ── About ──────────────────────────────────────────────────── */
.about-split    { padding: 100px 0; background: var(--bg); }
.about-grid     { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-image-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.about-image-wrap img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--r-lg); }
.about-badge {
  position: absolute; bottom: 24px; right: -20px;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-deep) 100%);
  color: var(--bg);
  border-radius: var(--r-lg); padding: 20px 28px;
  text-align: center; box-shadow: 0 16px 48px rgba(91,136,178,0.45);
}
.about-badge .years { display: block; font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; line-height: 1; }
.about-badge .label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.about-text h2  { margin-bottom: 20px; }
.about-text p   { margin-bottom: 16px; }
.about-features { margin: 28px 0 32px; display: flex; flex-direction: column; gap: 20px; }
.about-feature  { display: flex; gap: 16px; align-items: flex-start; }
.about-feature-icon {
  width: 44px; height: 44px; background: var(--ocean); color: var(--bg);
  border-radius: var(--r-sm); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}

/* ── Stats ──────────────────────────────────────────────────── */
.stats-section  {
  padding: 72px 0; background: var(--midnight); color: #fff;
  position: relative; overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent, transparent 28px,
    rgba(255,255,255,0.018) 28px, rgba(255,255,255,0.018) 29px
  );
  pointer-events: none;
}
.stats-grid     { display: grid; grid-template-columns: repeat(4,1fr); position: relative; z-index: 1; }
.stat-card {
  text-align: center; padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-card:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700; line-height: 1; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat-number span {
  background: linear-gradient(135deg, #a8d4f0 0%, var(--ocean) 50%, #7ab3d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.stat-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}

/* ── Services ───────────────────────────────────────────────── */
.services-section  { padding: 100px 0; background: var(--bg-soft); }
.services-grid     { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.service-card {
  background: var(--surface); border-radius: var(--r-lg); padding: 32px 26px;
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--ocean), var(--midnight));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(18,44,79,0.18); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--ocean) 100%);
  color: var(--bg);
  border-radius: var(--r-md); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(91,136,178,0.35);
}

/* ── Projects ───────────────────────────────────────────────── */
.featured-section { padding: 100px 0; background: var(--bg-soft); }
.projects-grid    { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.projects-grid-premium { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 24px; }

/* Tarjeta de proyecto */
.project-card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 24px 64px rgba(18,44,79,0.16); border-color: var(--gold); }
.project-card-img {
  position: relative; height: 240px; overflow: hidden; background: var(--bg-soft);
}
.project-card-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s;
}
.project-card:hover .project-card-img img { transform: scale(1.07); }
.project-card-img .badge { position: absolute; top: 14px; left: 14px; }
.project-card-views-btn {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(255,255,255,0.95); color: var(--midnight);
  border: none; border-radius: 999px; padding: 7px 16px;
  font-size: 0.78rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.project-card:hover .project-card-views-btn { opacity: 1; transform: translateY(0); }
.project-card-views-btn:hover { background: var(--midnight); color: var(--bg); }
.project-card-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.project-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--ink); line-height: 1.3; }
.project-meta {
  display: flex; gap: 14px; font-size: 0.78rem;
  color: var(--ink-faint); margin-bottom: 12px; flex-wrap: wrap;
}
.project-meta i { color: var(--ocean); margin-right: 3px; }
.project-specs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.project-spec {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.75rem; color: var(--ink-soft);
  background: var(--bg-soft); padding: 4px 10px;
  border-radius: 999px; border: 1px solid var(--line);
}
.project-price {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500;
  color: var(--midnight); margin-bottom: 10px;
  display: flex; align-items: baseline; gap: 6px; letter-spacing: -0.02em;
}
.project-price-label {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 500;
  color: var(--ink-faint); text-transform: uppercase; letter-spacing: 1px;
}
.project-card-body > p { font-size: 0.85rem; margin-bottom: 16px; flex: 1; }
.project-card-footer {
  display: flex; align-items: center; gap: 8px;
  padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap;
}

/* ── Filtros de proyectos ────────────────────────────────────── */
.projects-filters {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 16px 0; position: sticky; top: 68px; z-index: 100;
}
.filters-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.filter-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 8px 16px; flex: 1; max-width: 300px;
}
.filter-search i { color: var(--ink-faint); }
.filter-search input { background: none; border: none; outline: none; font-size: 0.9rem; color: var(--ink); width: 100%; }
.filter-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  background: none; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-family: var(--font-body); font-size: 0.78rem;
  font-weight: 600; color: var(--ink-soft); transition: background 0.2s, color 0.2s, border-color 0.2s; cursor: pointer;
}
.filter-btn:hover, .filter-btn.active { background: var(--midnight); border-color: var(--midnight); color: var(--bg); }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--midnight) 0%, #1a3a64 60%, #0e2240 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, rgba(91,136,178,0.07) 25%, transparent 25%),
    linear-gradient(225deg, rgba(91,136,178,0.07) 25%, transparent 25%),
    linear-gradient(315deg, rgba(91,136,178,0.07) 25%, transparent 25%),
    linear-gradient(45deg,  rgba(91,136,178,0.07) 25%, transparent 25%);
  background-size: 56px 56px;
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,136,178,0.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; text-align: center; color: #fff; }
.cta-content h2 { color: #fff; margin-bottom: 16px; }
.cta-content p  { color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 32px; }
.cta-actions    { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Page Hero ──────────────────────────────────────────────── */
.page-hero {
  background: var(--midnight) url('/images/hero-bg.jpg') center/cover no-repeat;
  position: relative; padding: 100px 0 72px;
  text-align: center; color: #fff; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(7,17,31,0.85), rgba(18,44,79,0.78));
  z-index: 1;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 2; pointer-events: none;
}
.page-hero-content { position: relative; z-index: 3; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero-breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; font-size: 0.82rem; color: rgba(255,255,255,0.5);
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.page-hero-breadcrumb a:hover { color: var(--ocean); }
.page-hero-breadcrumb i { font-size: 0.65rem; }

/* ── Contact ────────────────────────────────────────────────── */
.contact-section { padding: 100px 0; background: var(--bg-soft); }
.contact-grid    { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-detail  { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.contact-detail-icon {
  width: 44px; height: 44px; background: var(--ocean); color: var(--bg);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}

/* ── Auth — Split Screen ─────────────────────────────────────── */
.auth-page-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100vh; width: 100%;
}
.auth-visual {
  background: var(--midnight); color: var(--bg);
  padding: 48px; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden;
}
.auth-visual::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 80% 20%, rgba(91,136,178,0.22), transparent 65%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 26px);
  pointer-events: none;
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual-top { display: flex; justify-content: space-between; align-items: center; }
.auth-visual-top .mc-logo { color: var(--bg); }
.auth-visual-top .mc-logo .mark { background: var(--bg); color: var(--midnight); }
.auth-visual-top .mc-logo small { color: rgba(251,249,228,0.5); }
.auth-visual-back {
  font-size: 13px; color: rgba(251,249,228,0.65);
  display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s;
}
.auth-visual-back:hover { color: var(--bg); }
.auth-visual-quote {
  font-family: var(--font-display); font-size: clamp(1.9rem,3.2vw,2.7rem);
  line-height: 1.05; letter-spacing: -0.025em; font-weight: 500;
  max-width: 480px;
}
.auth-visual-quote em { font-style: italic; color: var(--ocean); }
.auth-visual-cite { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.auth-visual-cite .ava {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ocean); display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-family: var(--font-display); font-size: 1rem;
  flex-shrink: 0;
}
.auth-visual-cite .who b { display: block; font-weight: 600; font-size: 14px; color: var(--bg); }
.auth-visual-cite .who span { font-size: 12px; color: rgba(251,249,228,0.6); }
.auth-visual-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
  padding-top: 24px; border-top: 1px solid rgba(251,249,228,0.12);
}
.auth-visual-stats .stat .n {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 500;
  letter-spacing: -0.02em; color: var(--bg);
}
.auth-visual-stats .stat .l {
  font-size: 10px; color: rgba(251,249,228,0.55); margin-top: 4px;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.auth-form-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 48px; background: var(--bg); position: relative; min-height: 100vh;
}
.auth-form-inner { width: 100%; max-width: 440px; }
.auth-eyebrow-sm {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); font-family: var(--font-mono); display: block; margin-bottom: 10px;
}
.auth-title { font-size: clamp(1.9rem,3.5vw,2.6rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 10px; }
.auth-lead  { color: var(--ink-soft); font-size: 15px; }
.auth-tabs  {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg-soft); border-radius: 999px;
  margin: 28px 0 24px; width: -webkit-fit-content; width: fit-content;
}
.auth-tabs a {
  padding: 8px 18px; border-radius: 999px;
  font-size: 13px; color: var(--ink-soft); font-weight: 500; transition: background 0.15s, color 0.15s;
}
.auth-tabs a.active { background: var(--ink); color: var(--bg); }
.auth-stack { display: flex; flex-direction: column; gap: 18px; }
.auth-opts  { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); cursor: pointer; }
.auth-check input { accent-color: var(--ocean); width: 16px; height: 16px; }
.auth-forgot { color: var(--ocean); font-weight: 600; font-size: 13px; }
.auth-swap  { text-align: center; margin-top: 20px; font-size: 14px; color: var(--ink-soft); }
.auth-swap a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.auth-foot  {
  position: absolute; left: 48px; right: 48px; bottom: 28px;
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-faint); letter-spacing: 0.04em;
}
.password-wrap { position: relative; }
.password-eye  {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--ink-soft); cursor: pointer;
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
}
.password-eye:hover { color: var(--ink); }
.pw-strength { display: flex; gap: 4px; margin-top: 6px; }
.pw-strength span { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background 0.2s; }
.pw-strength.s1 span:nth-child(-n+1) { background: var(--danger); }
.pw-strength.s2 span:nth-child(-n+2) { background: var(--warning); }
.pw-strength.s3 span:nth-child(-n+3) { background: var(--success); }
.pw-strength.s4 span                 { background: var(--success); }
.pw-strength-lbl { font-size: 12px; color: var(--ink-soft); margin-top: 5px; }

/* ── Dashboard ──────────────────────────────────────────────── */
.dashboard-section { padding: 48px 0; background: var(--bg-soft); min-height: 80vh; }
.dashboard-grid    { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.dashboard-sidebar {
  background: var(--midnight); border-radius: var(--r-lg); overflow: hidden;
  position: sticky; top: 88px; box-shadow: var(--shadow-md);
}
.dashboard-user-info {
  padding: 28px 24px 22px; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dashboard-avatar {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, var(--ocean), var(--ocean-deep));
  border: 3px solid rgba(255,255,255,0.18); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  margin: 0 auto 14px;
}
.dashboard-user-info h4 { color: #fff; font-size: 0.98rem; margin-bottom: 4px; }
.dashboard-user-info p  { font-size: 0.75rem; color: rgba(255,255,255,0.42); margin: 0; }
.dashboard-nav { padding: 10px 0; }
.dashboard-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 22px; font-size: 0.86rem; color: rgba(255,255,255,0.48);
  transition: color 0.2s, background 0.2s, border-color 0.2s; border-left: 3px solid transparent;
}
.dashboard-nav a:hover, .dashboard-nav a.active {
  color: #fff; background: rgba(255,255,255,0.07); border-left-color: var(--ocean);
}
.dashboard-nav a.danger-link { color: rgba(239,68,68,0.65) !important; }
.dashboard-nav a.danger-link:hover { color: #ef4444 !important; background: rgba(239,68,68,0.08) !important; border-left-color: #ef4444 !important; }
.dashboard-main { display: flex; flex-direction: column; gap: 20px; }
.dashboard-card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}

/* Perfil header */
.profile-header-card {
  background: var(--midnight);
  border-radius: var(--r-lg); padding: 32px; color: #fff;
  position: relative; overflow: hidden; border: none;
  box-shadow: 0 12px 40px rgba(18,44,79,0.35);
}
.profile-header-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.profile-avatar-lg {
  width: 78px; height: 78px; background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.28); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; flex-shrink: 0;
}
.profile-header-text h2 { color: #fff; font-size: 1.55rem; margin-bottom: 4px; }
.profile-header-text p  { color: rgba(255,255,255,0.68); font-size: 0.88rem; margin: 0; }

/* ── Mensajes ────────────────────────────────────────────────── */
.msg-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ef4444; color: #fff; font-size: 0.62rem; font-weight: 700;
  border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px; margin-left: auto;
}
.msg-card { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform 0.2s, box-shadow 0.2s; }
.msg-card.msg-unread { border-left: 4px solid var(--ocean) !important; background: #f0f9ff; }
.msg-header  { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.msg-meta    { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }
.msg-meta i  { color: var(--ocean); margin-right: 4px; }
.msg-body    { background: var(--bg-soft); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 14px; border-left: 3px solid var(--line); }
.msg-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.msg-avatar  {
  width: 40px; height: 40px; background: var(--midnight); color: var(--bg);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
}

/* ── Intereses ──────────────────────────────────────────────── */
.interests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 18px; }
.interest-card {
  border-radius: var(--r-lg); border: 2px solid var(--line);
  background: var(--surface); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
}
.interest-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }
.interest-btn--add {
  background: var(--midnight) !important; color: #fff !important;
  border: 2px solid var(--midnight) !important; border-radius: 999px !important;
  font-size: 0.82rem !important; padding: 8px 14px !important;
}
.interest-btn--remove {
  background: #fee2e2 !important; color: #ef4444 !important;
  border: 2px solid #fca5a5 !important; border-radius: 999px !important;
  font-size: 0.82rem !important; padding: 8px 14px !important;
}
.interest-btn-inline { margin-left: auto; }

/* ── Admin stats ────────────────────────────────────────────── */
.admin-stat-card {
  background: var(--surface); border-radius: var(--r-lg); padding: 22px;
  border: 1px solid var(--line); display: flex; align-items: center;
  gap: 18px; transition: transform 0.2s, box-shadow 0.2s;
}
.admin-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.admin-stat-icon {
  width: 54px; height: 54px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: #fff; flex-shrink: 0;
}
.admin-stat-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 500;
  color: var(--ink); line-height: 1; margin-bottom: 4px; letter-spacing: -0.02em;
}
.admin-stat-lbl { font-size: 0.72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 1.2px; }
.admin-stat-badge { font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-top: 4px; display: inline-block; }
.admin-stat-badge-red   { background: #fee2e2; color: #dc2626; }
.admin-stat-badge-green { background: #d1fae5; color: #059669; }

/* Admin tabla */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table thead th {
  background: var(--bg-soft); padding: 11px 16px; text-align: left;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--ink-faint);
  border-bottom: 2px solid var(--line); white-space: nowrap;
}
.admin-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.admin-table tbody tr:hover td { background: var(--bg-soft); }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* Admin formulario */
.admin-form-section {
  background: var(--bg-soft); border-radius: var(--r-md); padding: 22px;
  margin-bottom: 22px; border: 1px solid var(--line);
}
.admin-form-section-title {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--ocean); margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.admin-form-section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Admin accesos rápidos */
.admin-quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 14px; }
.admin-quick-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 26px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; text-align: center; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; position: relative;
}
.admin-quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.admin-quick-card-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
}
.admin-quick-card-label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.admin-quick-card-desc  { font-size: 0.75rem; color: var(--ink-faint); margin: 0; line-height: 1.4; }
.admin-quick-card .badge-notification {
  position: absolute; top: 10px; right: 10px;
  background: #ef4444; color: #fff; font-size: 0.62rem; font-weight: 700;
  border-radius: 999px; padding: 2px 7px;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--line-strong); border-radius: var(--r-lg);
  padding: 28px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s;
  background: var(--bg-soft); position: relative;
}
.upload-zone:hover { border-color: var(--ocean); background: rgba(91,136,178,0.05); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone-icon { font-size: 2.2rem; color: var(--line-strong); margin-bottom: 10px; }
.upload-zone-text { font-size: 0.88rem; color: var(--ink-soft); }
.upload-zone-hint { font-size: 0.72rem; color: var(--ink-faint); margin-top: 5px; }
.image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px,1fr)); gap: 7px; margin-top: 10px; }
.image-preview-item {
  position: relative; border-radius: var(--r-sm); overflow: hidden;
  height: 78px; background: var(--bg-soft); border: 2px solid var(--line);
}
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-item .remove-img {
  position: absolute; top: 4px; right: 4px; background: rgba(239,68,68,0.9);
  color: #fff; border: none; width: 20px; height: 20px; border-radius: 50%;
  font-size: 0.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ── Detalle de proyecto ─────────────────────────────────────── */
.project-detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; padding: 40px 0 72px; }
.project-gallery { border-radius: var(--r-lg); overflow: hidden; background: #000; }
.gallery-main { position: relative; height: 460px; overflow: hidden; background: var(--bg-soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.92); border: none; width: 42px; height: 42px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; color: var(--midnight); cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: background 0.2s, color 0.2s; z-index: 10;
}
.gallery-nav-btn:hover { background: var(--midnight); color: #fff; }
.gallery-nav-prev { left: 16px; }
.gallery-nav-next { right: 16px; }
.gallery-counter {
  position: absolute; bottom: 16px; right: 16px;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 0.75rem;
  padding: 4px 12px; border-radius: 999px;
}
.gallery-thumbs {
  display: flex; gap: 5px; padding: 8px; background: var(--midnight); overflow-x: auto;
}
.gallery-thumb {
  flex-shrink: 0; width: 76px; height: 56px; border-radius: 5px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; opacity: 0.6; transition: border-color 0.2s, opacity 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--ocean); opacity: 1; }
.project-video-wrap { border-radius: var(--r-lg); overflow: hidden; margin-top: 20px; background: #000; }
.project-video-wrap iframe { width: 100%; height: 300px; border: none; display: block; }

.project-detail-sidebar { display: flex; flex-direction: column; gap: 18px; }
.project-price-card {
  background: var(--surface); border-radius: var(--r-lg); padding: 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: sticky; top: 88px;
}
.project-price-card .price-main {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 500;
  color: var(--midnight); line-height: 1; margin-bottom: 4px; letter-spacing: -0.025em;
}
.project-price-card .price-note { font-size: 0.72rem; color: var(--ink-faint); margin-bottom: 18px; }
.project-detail-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.detail-spec-item {
  background: var(--bg-soft); border-radius: var(--r-sm); padding: 12px;
  text-align: center; border: 1px solid var(--line);
}
.detail-spec-item i { font-size: 1rem; color: var(--ocean); display: block; margin-bottom: 4px; }
.detail-spec-item .spec-val { font-weight: 700; font-size: 0.92rem; color: var(--ink); display: block; }
.detail-spec-item .spec-lbl { font-size: 0.65rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.8px; }
.project-cta-btns { display: flex; flex-direction: column; gap: 10px; }

.project-info-card { background: var(--surface); border-radius: var(--r-lg); padding: 22px; border: 1px solid var(--line); }
.project-info-card h4 { font-size: 0.96rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 0.86rem; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .info-key { color: var(--ink-faint); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.info-row .info-val { font-weight: 600; color: var(--ink); text-align: right; max-width: 60%; }
.project-description { background: var(--surface); border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line); margin-top: 22px; }
.project-description h3 { font-size: 1.2rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ocean); }
.detail-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--ink-faint); padding: 18px 0 0; }
.detail-breadcrumb a { color: var(--ocean); }
.detail-breadcrumb a:hover { color: var(--midnight); }

/* ── Sección CTA social ─────────────────────────────────────── */
.social-cta-section {
  margin-top: 72px; padding: 56px 40px;
  background: linear-gradient(135deg, var(--midnight) 0%, #1a3a64 100%);
  border-radius: var(--r-lg); text-align: center; color: #fff;
}
.social-cta-section h3 { color: #fff; font-size: clamp(1.3rem, 3vw, 2rem); margin-bottom: 12px; }
.social-cta-section p  { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 28px; }

/* ── Responsabilidad Social ─────────────────────────────────── */
.social-section { padding: 100px 0; background: var(--bg); }
.social-impact-bar {
  background: var(--midnight); border-radius: var(--r-lg);
  padding: 44px 38px; color: #fff; margin-bottom: 56px;
}
.social-impact-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.social-impact-stat { text-align: center; padding: 0 24px; border-right: 1px solid rgba(255,255,255,0.14); }
.social-impact-stat:last-child { border-right: none; }
.social-impact-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; color: #fff; line-height: 1; letter-spacing: -0.03em; }
.social-impact-lbl { font-size: 0.72rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 6px; }
.social-activities-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.social-card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; box-shadow: var(--shadow-sm);
}
.social-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--ocean); }
.social-card-img { height: 210px; overflow: hidden; background: var(--midnight); position: relative; display: flex; align-items: center; justify-content: center; }
.social-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.social-card:hover .social-card-img img { transform: scale(1.06); }
.social-card-category {
  position: absolute; bottom: 14px; left: 14px; background: rgba(0,0,0,0.6);
  color: #fff; font-size: 0.65rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.social-card-body { padding: 22px; }
.social-card-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.social-card-meta { display: flex; align-items: center; gap: 14px; font-size: 0.76rem; color: var(--ink-faint); flex-wrap: wrap; }
.social-card-meta i { color: var(--ocean); margin-right: 3px; }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.72);
  z-index: 9000; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: var(--r-lg); width: 100%;
  max-width: 600px; max-height: 90vh; overflow-y: auto;
  transform: translateY(20px); transition: transform 0.3s; box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-close  { background: var(--bg-soft); border: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ── WhatsApp flotante ──────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5); transition: transform 0.2s, background 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); background: #1da851; }
.whatsapp-tooltip {
  position: absolute; right: 68px; background: var(--midnight); color: #fff;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap; padding: 6px 12px;
  border-radius: var(--r-sm); opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--midnight); color: rgba(251,249,228,0.55); padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px;
}
.footer-logo { height: 38px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-logo-text { font-family: var(--font-display); font-size: 1.3rem; color: var(--bg); margin-bottom: 14px; }
.footer-col p  { font-size: 0.86rem; line-height: 1.75; }
.footer-col h5 {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ocean); margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.86rem; color: rgba(251,249,228,0.5); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--ocean); }
.footer-contact-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; }
.footer-contact-list i  { color: var(--ocean); margin-top: 3px; flex-shrink: 0; }
.footer-contact-list a  { color: rgba(251,249,228,0.5); }
.footer-contact-list a:hover { color: var(--ocean); }
.footer-social { display: flex; gap: 9px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; background: rgba(255,255,255,0.07);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border: 1px solid rgba(255,255,255,0.08);
}
.footer-social a:hover { background: var(--ocean); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.76rem; letter-spacing: 0.04em;
}

/* ── Animaciones ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* Feedback flotante */
.page-feedback {
  position: fixed; top: 100px; right: 24px; z-index: 8000;
  max-width: 340px; border-radius: var(--r-sm); padding: 13px 18px;
  font-size: 0.88rem; font-weight: 500; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18); animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ── Skip link (accesibilidad) ───────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--ink); color: var(--bg);
  padding: 10px 20px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: 14px; font-weight: 600; z-index: 99999;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; outline: 3px solid var(--ocean); outline-offset: 2px; }

/* ── Focus visible global ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Reset outline en elementos que manejan su propio foco */
.mc-input:focus-visible,
.mc-textarea:focus-visible,
.mc-select:focus-visible,
.form-control:focus-visible { outline: none; }

/* ── Touch action ────────────────────────────────────────────── */
button, .btn, .mc-btn, [role="button"] {
  touch-action: manipulation;
}
.modal-overlay { overscroll-behavior: contain; }

/* ── Safe areas (notch / home bar) ──────────────────────────── */
.navbar {
  padding-top: env(safe-area-inset-top, 0px);
}
.whatsapp-float {
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  right: calc(28px + env(safe-area-inset-right, 0px));
}
#cookieBanner {
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  padding-left: calc(24px + env(safe-area-inset-left, 0px));
  padding-right: calc(24px + env(safe-area-inset-right, 0px));
}

/* ── Prefers reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-scroll {
    animation: none;
  }
  .project-card:hover,
  .service-card:hover,
  .social-card:hover,
  .admin-stat-card:hover,
  .admin-quick-card:hover {
    transform: none;
  }
}

/* ── Navbar glassmorphism mejorado ───────────────────────────── */
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 24px rgba(18,44,79,0.10), 0 1px 0 rgba(18,44,79,0.06);
}

/* ── Hover de footer links via CSS ──────────────────────────── */
.footer-bottom-link {
  color: rgba(251,249,228,0.4);
  font-size: 0.72rem;
  transition: color 0.2s;
}
.footer-bottom-link:hover { color: rgba(251,249,228,0.7); }

/* ── Imágenes ─────────────────────────────────────────────────── */
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

/* ── Sección con clase reutilizable ─────────────────────────── */
.section { padding: var(--section-py) 0; }
.section-light { background: var(--bg); }
.section-soft  { background: var(--bg-soft); }
.section-dark  { background: var(--midnight); color: #fff; }

/* ── Utilidades ─────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ── Badge destacado en tarjetas de proyecto ─────────────────── */
.badge-featured {
  position: absolute; top: 14px; right: 14px;
  background: rgba(0,0,0,0.65); color: #ffd700;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 20px;
  backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: 4px;
}

/* ── Placeholder de imagen en tarjeta social ─────────────────── */
.social-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.3);
}

/* ── Impact area cards en social.php ────────────────────────── */
.impact-area-card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 28px 22px; border: 1px solid var(--line); text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.impact-area-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
}

/* ── Nav card (404, misc) ────────────────────────────────────── */
.nav-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.nav-card:hover { border-color: var(--ocean); transform: translateY(-2px); }

/* ── Tarjeta de servicios (services.php) ─────────────────────── */
.svc-card {
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(18,44,79,0.14);
  border-color: var(--ocean) !important;
}

/* ── Aliases de compatibilidad para páginas con CSS antiguo ─── */
/* Estas clases garantizan que las páginas que usan el sistema viejo
   sigan renderizando correctamente. */
:root {
  --primary:   #122C4F;
  --accent:    #5B88B2;
  --dark:      #000000;
  --light:     #FBF9E4;
  --gold:      #C8A870;
  --gold-dark: #B8965E;
  --white:     #ffffff;
  --off-white: #F8F6F1;
  --gray-100:  #e8e8e2;
  --gray-200:  #d8d8d2;
  --gray-300:  #c8c8c2;
  --gray-400:  #a0a09a;
  --text:      #1a1a1a;
  --text-soft: rgba(18,44,79,0.60);
  --radius:    8px;
  --radius-lg: 20px;
  --shadow:    0 2px 12px rgba(18,44,79,0.08);
  --shadow-lg: 0 16px 48px rgba(18,44,79,0.14);
  --transition:.25s ease;
  --container: 1280px;
}

/* ── Selección de texto (brand) ──────────────────────────────── */
::selection {
  background: rgba(91,136,178,0.22);
  color: var(--midnight);
}

/* ── Tap highlight (iOS/Android) ─────────────────────────────── */
a, button, [role="button"], .btn, .mc-btn {
  -webkit-tap-highlight-color: transparent;
}

/* ── Tipografía numérica tabular ─────────────────────────────── */
.project-price, .stat-number, .admin-stat-num,
.price-main, .social-impact-num {
  font-variant-numeric: tabular-nums;
}

/* ── Testimonios ─────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 20px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.testimonial-card:hover {
  border-color: var(--ocean);
  box-shadow: var(--shadow-md);
}
.testimonial-stars { display: flex; gap: 3px; }
.testimonial-quote {
  font-size: 0.9rem; color: var(--ink-soft);
  line-height: 1.75; font-style: italic; margin: 0;
  padding-left: 22px; position: relative;
}
.testimonial-quote::before {
  content: '\201C';
  position: absolute; left: 0; top: -6px;
  font-family: var(--font-display);
  font-size: 2.4rem; line-height: 1;
  color: var(--ocean); opacity: 0.3;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--midnight); color: var(--pearl);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.88rem;
  font-family: var(--font-display); flex-shrink: 0;
}
.testimonial-name { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.testimonial-role { font-size: 0.75rem; color: var(--ink-soft); margin-top: 1px; }

/* ── Menú móvil abierto (global, sin media query) ────────────
   Aplican sólo cuando JS añade la clase .open al navbar-nav   */
.navbar-nav.open .nav-link {
  display: block !important;
  font-size: 1.05rem !important; font-weight: 600 !important;
  padding: 16px 0 !important; color: var(--ink) !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
}
.navbar-nav.open .nav-link:last-of-type { border-bottom: none !important; }
.navbar-nav.open .nav-link::after { display: none !important; }

.navbar-nav.open .nav-mobile-actions {
  display: flex !important; flex-direction: column !important;
  gap: 10px !important; margin-top: 20px !important;
  padding-top: 20px !important;
  border-top: 2px solid var(--line) !important;
}
.navbar-nav.open .nav-mobile-actions .mc-btn {
  width: 100% !important; justify-content: center !important;
  padding: 14px !important; font-size: 0.95rem !important;
  display: flex !important;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   Breakpoints: 1024px · 768px · 480px
   ════════════════════════════════════════════════════════════ */

/* ── Tablet (≤1024px) ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid            { grid-template-columns: 1fr; gap: 48px; }
  .about-badge           { right: 16px; }
  .stats-grid            { grid-template-columns: repeat(2,1fr); }
  .stat-card:nth-child(2){ border-right: none; }
  .footer-grid           { grid-template-columns: 1fr 1fr; gap: 36px; }
  .services-grid         { grid-template-columns: repeat(2,1fr); }
  .project-detail-layout { grid-template-columns: 1fr; }
  .project-price-card    { position: static; }
  .gallery-main          { height: 360px; }
  .social-activities-grid{ grid-template-columns: repeat(2,1fr); }
  .social-impact-grid    { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .social-impact-stat    { border-right: none; padding: 12px 0; }
  .auth-page-wrap        { grid-template-columns: 1fr; }
  .auth-visual           { display: none; }
  .auth-form-wrap        { min-height: 100vh; }
  .admin-form-row        { grid-template-columns: 1fr; }
  .admin-form-row-3      { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile (≤768px) ─────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Topbar oculto en móvil */
  .topbar { display: none; }

  /* Container con buen padding lateral */
  .container { padding: 0 20px; }

  /* ── Navbar ── */
  .navbar-inner       { height: 62px; gap: 12px; }
  /* Quitar backdrop-filter en móvil: Safari/iOS lo convierte en stacking
     context que recorta hijos con position:fixed al tamaño del navbar */
  .navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255,255,255,0.99) !important;
  }
  .navbar-nav,
  .navbar-actions     { display: none; }
  .navbar-toggler     { display: flex; }

  /* ── Hero ── */
  .hero { min-height: 92vh; }
  .hero-content { padding: 52px 0 60px; max-width: 100%; }
  .hero-title   { font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1.05; margin-bottom: 18px; }
  .hero-subtitle{ font-size: 0.95rem; margin-bottom: 32px; max-width: 100%; }
  .hero-eyebrow { font-size: 0.62rem; letter-spacing: 0.18em; padding: 6px 14px; margin-bottom: 18px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn, .hero-actions .mc-btn {
    width: 100%; justify-content: center; padding: 16px 24px; font-size: 1rem;
  }
  .hero-scroll  { display: none; }

  /* ── Page hero ── */
  .page-hero          { padding: 64px 0 44px; }
  .page-hero h1       { font-size: clamp(1.7rem, 6.5vw, 2.5rem); }
  .page-hero > .page-hero-content > p { font-size: 0.9rem; }

  /* ── Padding de secciones ── */
  .stats-section    { padding: 44px 0; }
  .services-section { padding: 52px 0; }
  .featured-section { padding: 52px 0; }
  .cta-banner       { padding: 56px 0 !important; }
  .about-split      { padding: 52px 0; }
  .contact-section  { padding: 52px 0; }
  .social-section   { padding: 52px 0; }

  /* ── Section headers ── */
  .section-header   { margin-bottom: 36px; }
  .section-title    { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
  .section-subtitle { font-size: 0.9rem; }

  /* ── Stats ── */
  .stats-grid       { grid-template-columns: repeat(2,1fr); }
  .stat-card        { padding: 32px 16px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-card:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.08); }
  .stat-card:nth-last-child(-n+2) { border-bottom: none; }
  .stat-number      { font-size: clamp(2.4rem, 8vw, 3rem); }

  /* ── Services ── */
  .services-grid    { grid-template-columns: 1fr; gap: 14px; }
  .service-card     { padding: 24px 20px; }
  .service-icon     { width: 46px; height: 46px; font-size: 1rem; margin-bottom: 16px; }

  /* ── Projects ── */
  .projects-grid,
  .projects-grid-premium { grid-template-columns: 1fr; }
  .project-card-img    { height: 230px; }
  .project-card-body   { padding: 18px 20px; }
  .gallery-main        { height: 240px; }
  .gallery-thumbs      { gap: 6px; }
  .gallery-thumb       { height: 64px; }
  .project-video-wrap iframe { height: 200px; }

  /* ── About ── */
  .about-grid          { gap: 36px; }
  .about-image-wrap    { border-radius: var(--r-md); }
  .about-image-wrap img{ height: 300px; }
  .about-badge         { bottom: 16px; right: 12px; padding: 16px 20px; }
  .about-badge .years  { font-size: 2.2rem; }
  .about-text h2       { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .about-features      { gap: 16px; }

  /* ── CTA banner ── */
  .cta-content h2   { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .cta-actions      { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-actions .btn, .cta-actions .mc-btn {
    width: 100%; justify-content: center; text-align: center; padding: 16px;
  }

  /* ── Contact ── */
  .contact-grid     { grid-template-columns: 1fr; gap: 40px; }
  .contact-detail   { margin-bottom: 16px; }

  /* ── Social / actividades ── */
  .social-activities-grid { grid-template-columns: 1fr; }
  .social-impact-grid     { grid-template-columns: repeat(2,1fr); }
  .social-impact-bar      { padding: 28px 20px; }

  /* ── Footer ── */
  .footer           { padding: 48px 0 0; }
  .footer-grid      { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer-bottom    { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-col h5    { margin-bottom: 12px; }

  /* ── Cookie banner ── */
  #cookieBanner     { flex-direction: column; gap: 12px; padding: 16px; font-size: 12px; }
  #cookieBanner p   { font-size: 12px; }

  /* ── WhatsApp flotante ── */
  .whatsapp-float   { bottom: 18px; right: 18px; width: 54px; height: 54px; font-size: 1.45rem; }
  .whatsapp-tooltip { display: none; }

  /* ── Forms ── */
  .form-row,
  .admin-form-row,
  .admin-form-row-3 { grid-template-columns: 1fr !important; }
  .mc-field label   { font-size: 0.76rem; }
  .mc-input, .mc-select, .mc-textarea { font-size: 0.95rem; padding: 12px 14px; }
  .form-control     { font-size: 0.95rem; padding: 12px 14px; }

  /* ── Buttons ── */
  .mc-btn.lg, .btn.btn-lg { padding: 14px 24px; font-size: 0.95rem; }

  /* ── Grids específicos ── */
  .calc-layout, .project-form-layout,
  .admin-form-row                { grid-template-columns: 1fr !important; }

  /* ── Dashboard ── */
  .dashboard-grid    { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }

  /* ── Filter / proyectos ── */
  .filters-inner     { flex-direction: column; gap: 12px; }
  .filter-search     { max-width: 100%; width: 100%; }
  .filter-btns       { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
                       white-space: nowrap; padding-bottom: 4px; display: flex; flex-wrap: nowrap; }
  .filter-btns::-webkit-scrollbar { height: 3px; }
  .filter-btns::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

  /* ── Admin ── */
  .admin-quick-grid  { grid-template-columns: repeat(2,1fr); }

  /* ── Auth ── */
  .auth-form-wrap    { padding: 28px 20px; }
  .auth-title        { font-size: 1.8rem; }
  .auth-tabs         { gap: 4px; }

  /* ── Intereses ── */
  .interests-grid    { grid-template-columns: 1fr; }

  /* ── Proyecto detalle ── */
  .project-detail-sidebar { gap: 14px; }
  .detail-spec-item       { padding: 10px 8px; }
}

/* ── Mobile small (≤480px) ───────────────────────────────────── */
@media (max-width: 480px) {

  .container       { padding: 0 14px; }

  /* Hero aún más compacto */
  .hero-content    { padding: 36px 0 44px; }
  .hero-title      { font-size: clamp(1.75rem, 9vw, 2.4rem); }

  /* Stats en 2 columnas compactas */
  .stats-grid      { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-card       { padding: 20px 12px; }
  .stat-number span{ font-size: 2rem; }

  /* Page hero */
  .page-hero       { padding: 44px 0 32px; }
  .page-hero h1    { font-size: clamp(1.4rem, 7vw, 1.9rem); }

  /* Footer social compacto */
  .footer-social   { gap: 8px; }
  .footer-social a { width: 32px; height: 32px; font-size: 0.78rem; }

  /* WhatsApp sticky aún más pequeño */
  .whatsapp-float  { bottom: 12px; right: 12px; width: 48px; height: 48px; font-size: 1.25rem; }
  .whatsapp-tooltip{ display: none; }

  /* Sección servicios home */
  .service-card    { padding: 20px 16px; }
  .service-icon    { width: 44px; height: 44px; font-size: 1rem; }

  /* Admin quick grid */
  .admin-quick-grid{ grid-template-columns: 1fr 1fr; }

  /* CTA compacto */
  .cta-content h2  { font-size: 1.35rem; }
  .cta-content p   { font-size: 0.88rem; }

  /* Badges de proyecto */
  .badge           { font-size: 0.62rem; padding: 4px 8px; }

  /* Section titles */
  .section-title   { font-size: 1.5rem; }
  h2               { font-size: clamp(1.3rem, 5vw, 1.8rem); }
}

/* ── Galería fotográfica ─────────────────────────────────────── */
.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.gallery-photo-item {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  cursor: zoom-in;
}
.gallery-photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}
.gallery-photo-item:hover img { transform: scale(1.06); }

/* Lightbox overlay */
.photo-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.photo-lightbox.active { opacity: 1; pointer-events: all; }
.photo-lightbox img {
  max-width: 90vw; max-height: 88vh;
  border-radius: var(--r-md);
  object-fit: contain;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.photo-lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; transition: background 0.2s;
}
.photo-lightbox-close:hover { background: rgba(255,255,255,0.25); }
.photo-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; transition: background 0.2s;
}
.photo-lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.photo-lightbox-prev { left: 20px; }
.photo-lightbox-next { right: 20px; }

@media (max-width: 768px) {
  .gallery-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .photo-lightbox-nav { display: none; }
}
@media (max-width: 480px) {
  .gallery-photo-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
}

/* ── Refinamientos estéticos modernos ────────────────────────── */

/* Fondo alternado sections — blanco puro vs warm-gray */
.services-section  { background: var(--bg-soft); }
.featured-section  { background: var(--bg-soft); }
.about-split       { background: var(--bg); }
.social-section    { background: var(--bg); }
.contact-section   { background: var(--bg-soft); }

/* Cards con bordes más sutiles y sombras elegantes */
.project-card,
.service-card,
.social-card,
.testimonial-card,
.dashboard-card,
.project-info-card,
.project-price-card,
.project-description {
  box-shadow: 0 1px 4px rgba(18,44,79,0.06), 0 4px 16px rgba(18,44,79,0.06);
}

/* Línea de acento dorado bajo headings de sección */
.section-header .section-title::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 14px auto 0;
}
.section-header.left-align .section-title::after {
  margin-left: 0;
}

/* Hero eyebrow con acento gold */
.hero-eyebrow { border-color: rgba(200,168,112,0.45); color: var(--gold); background: rgba(200,168,112,0.08); }
.hero-eyebrow::before { background: var(--gold); }

/* Botón primario con acento gold en hover */
.btn-primary:hover { background: var(--midnight-90); border-color: var(--midnight-90); }

/* Nav link active con línea gold */
.nav-link::after { background: var(--gold); }

/* Project card views button hover */
.project-card-views-btn:hover { background: var(--gold); color: #fff; }

/* Filter active con gold */
.filter-btn:hover, .filter-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* Interest add button */
.interest-btn--add { background: var(--gold) !important; border-color: var(--gold) !important; color: #fff !important; }

/* Footer link separadores */
.footer-col h5 { color: var(--gold) !important; }

/* Admin form section title */
.admin-form-section-title { color: var(--gold); }

/* Project description border */
.project-description h3 { border-bottom-color: var(--gold); }

/* About badge usa gold */
.about-badge { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: #fff; box-shadow: 0 16px 48px rgba(200,168,112,0.45); }

/* Service card icon gold */
.service-icon { background: linear-gradient(135deg, var(--midnight) 0%, var(--ocean) 100%); }

/* Testimonial quote mark */
.testimonial-quote::before { color: var(--gold); opacity: 0.4; }

/* ── Dashboard quick-action cards ────────────────────────── */
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}
.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 12px 18px;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 16px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    cursor: pointer;
}
.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(18,44,79,.1);
    border-color: var(--ocean);
}
.quick-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
}
.quick-action-label {
    font-size: .88rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}
.quick-action-desc {
    font-size: .75rem;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.4;
}
@media (max-width: 480px) {
    .quick-action-grid { grid-template-columns: repeat(2, 1fr); }
}
