/* ─────────────────────────────────────────────────────────────────────
   NODO Estudio · Stylesheet
   Paleta: gris oscuro #414040 + naranja #fe8b40 (extraída del sitio real)
   ───────────────────────────────────────────────────────────────────── */

:root {
  --bg: #414040;
  --bg-dark: #343130;
  --bg-darker: #2a2826;
  --bg-card: #4d4c4c;
  --brand: #fe8b40;
  --brand-hover: #e6783a;
  --brand-soft: rgba(254, 139, 64, 0.15);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.78);
  --text-3: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; font-weight: 400; line-height: 1.5;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-hover); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: "Montserrat", sans-serif; font-weight: 700; line-height: 1.2; color: var(--text); }

.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; background: var(--brand); color: #fff; padding: 12px 18px; font-size: 13px; font-weight: 600; z-index: 1000; text-decoration: none; }
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; outline: 3px solid var(--brand); outline-offset: 2px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
section { padding: 90px 0; }
@media (max-width: 768px) { section { padding: 60px 0; } }

/* ── Header / Nav ──────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg-dark); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; position: relative; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--brand); }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--text); text-transform: uppercase; }

.nav-toggle { display: none; padding: 8px; color: var(--brand); }
.nav-toggle svg { width: 26px; height: 26px; }
.main-nav ul { display: flex; gap: 6px; list-style: none; align-items: center; }
.main-nav a { display: block; padding: 8px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); border-radius: 3px; transition: all .2s ease; }
.main-nav a:hover { color: var(--brand-hover); background: rgba(255,255,255,0.04); }
.main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]::after { content: ""; display: block; margin-top: 4px; height: 2px; background: var(--brand); border-radius: 1px; }
.main-nav .cta a { border: 2px solid var(--brand); padding: 8px 18px; border-radius: 999px; color: var(--brand); }
.main-nav .cta a:hover { background: var(--brand); color: var(--bg-dark); }
.main-nav .cta a[aria-current="page"]::after { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-dark); border-bottom: 1px solid var(--line-strong); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .main-nav[data-open="true"] { max-height: 600px; }
  .main-nav ul { flex-direction: column; padding: 12px 16px; gap: 2px; align-items: stretch; }
  .main-nav a { padding: 14px 16px; }
  .main-nav .cta a { border: 0; padding: 14px 16px; border-radius: 3px; }
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text); text-align: center; padding: 100px 24px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(254,139,64,0.06) 0%, transparent 70%), repeating-linear-gradient(45deg, transparent 0 80px, rgba(255,255,255,0.012) 80px 81px); pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero .hero-logo { width: clamp(180px, 22vw, 280px); height: auto; margin: 0 auto 36px; display: block; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); color: var(--text); margin-bottom: 18px; font-weight: 700; letter-spacing: 0.01em; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p { font-size: clamp(15px, 1.4vw, 18px); color: var(--text-2); font-weight: 300; margin: 0 auto 32px; max-width: 640px; }
.hero .btn { background: transparent; color: var(--brand); border: 2px solid var(--brand); padding: 14px 36px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; display: inline-block; transition: all .2s ease; text-decoration: none; }
.hero .btn:hover { background: var(--brand); color: var(--bg-dark); transform: translateY(-1px); }

.page-banner { background: var(--bg-dark); color: var(--text); text-align: center; padding: 100px 24px 70px; border-bottom: 1px solid var(--line); }
.page-banner h1 { color: var(--text); font-size: clamp(32px, 4.5vw, 48px); font-weight: 700; position: relative; display: inline-block; padding-bottom: 18px; }
.page-banner h1::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 64px; height: 3px; background: var(--brand); border-radius: 2px; }

.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 14px; color: var(--text); }
.section-title p { font-size: 16px; color: var(--text-2); max-width: 640px; margin: 0 auto; }
.section-title .accent { color: var(--brand); }

/* ── Service cards (Home) ──────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .cards-grid { grid-template-columns: 1fr; } }
.card { background: var(--bg-card); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); transition: transform .3s, border-color .3s, box-shadow .3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.card-image { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: var(--bg-darker); border-bottom: 1px solid var(--line); }
.card-image svg { width: 56%; height: 56%; color: var(--brand); opacity: 0.85; }
.card-body { padding: 28px 26px 32px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.3; color: var(--text); font-weight: 700; }
.card h4 { font-size: 13px; font-weight: 400; color: var(--text-3); margin-bottom: 24px; line-height: 1.5; flex: 1; letter-spacing: 0.02em; }
.card .btn-link { display: inline-block; padding: 10px 24px; background: transparent; color: var(--brand); border: 2px solid var(--brand); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; transition: all .2s; align-self: flex-start; }
.card .btn-link:hover { background: var(--brand); color: var(--bg-dark); }

/* ── Process ──────────────────────────────────────────────────── */
.process { background: var(--bg-dark); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; text-align: center; }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr; gap: 36px; } }
.process-step .step-icon { width: 100px; height: 100px; margin: 0 auto 24px; background: transparent; border: 2px solid var(--brand); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--brand); transition: background .3s ease; }
.process-step:hover .step-icon { background: var(--brand-soft); }
.process-step .step-icon svg { width: 46px; height: 46px; }
.process-step h3 { font-size: 22px; margin-bottom: 10px; color: var(--text); font-weight: 700; }
.process-step p { color: var(--text-2); font-size: 15px; max-width: 280px; margin: 0 auto; }

/* ── Quote ────────────────────────────────────────────────────── */
.quote-section { background: var(--bg-darker); color: var(--text); text-align: center; padding: 100px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-section blockquote { font-style: italic; font-size: clamp(20px, 2.4vw, 28px); font-weight: 300; line-height: 1.5; max-width: 820px; margin: 0 auto 18px; color: var(--text); }
.quote-section blockquote::before { content: "\201C"; color: var(--brand); font-size: 1.5em; vertical-align: -0.2em; margin-right: 0.1em; }
.quote-section blockquote::after  { content: "\201D"; color: var(--brand); font-size: 1.5em; vertical-align: -0.4em; margin-left: 0.1em; }
.quote-section cite { display: block; font-size: 12px; letter-spacing: 0.16em; color: var(--brand); font-style: normal; text-transform: uppercase; font-weight: 600; }

/* ── Servicios detallados ─────────────────────────────────────── */
.service-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; margin-bottom: 80px; padding-bottom: 80px; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
@media (max-width: 900px) { .service-block { grid-template-columns: 1fr; gap: 28px; padding-bottom: 56px; margin-bottom: 56px; } }
.service-icon-wrap { width: 100%; aspect-ratio: 1/1; max-width: 280px; margin: 0 auto; border: 2px solid var(--brand); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--brand); background: rgba(254,139,64,0.04); }
.service-icon-wrap svg { width: 50%; height: 50%; }
.service-content h3 { font-size: 26px; margin-bottom: 18px; color: var(--text); position: relative; padding-bottom: 14px; }
.service-content h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--brand); border-radius: 2px; }
.service-content h4 { font-size: 15px; font-weight: 700; margin-top: 22px; margin-bottom: 10px; color: var(--brand); text-transform: uppercase; letter-spacing: 0.06em; }
.service-content h4:first-of-type { margin-top: 0; }
.service-content p { color: var(--text-2); margin-bottom: 12px; }
.service-content ul { list-style: none; padding: 0; }
.service-content li { padding-left: 22px; position: relative; margin-bottom: 6px; color: var(--text-2); font-size: 15px; line-height: 1.7; }
.service-content li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; background: var(--brand); border-radius: 50%; }

/* ── About / Team ─────────────────────────────────────────────── */
.about-intro { max-width: 820px; margin: 0 auto 56px; text-align: center; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.about-intro strong { color: var(--brand); font-weight: 700; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 24px; }
.team-grid.team-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .team-grid.team-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .team-grid, .team-grid.team-grid-3 { grid-template-columns: 1fr; } }
.team-card { background: var(--bg-card); padding: 36px; border-radius: 6px; border: 1px solid var(--line); border-top: 3px solid var(--brand); }
.team-card h3 { font-size: 22px; margin-bottom: 4px; color: var(--text); }
.team-card .role { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.team-card p { color: var(--text-2); font-size: 15px; line-height: 1.7; }

/* ── Contact ──────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: stretch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { background: var(--bg-card); padding: 40px; border-radius: 6px; display: flex; flex-direction: column; gap: 28px; border: 1px solid var(--line); }
.contact-info h3 { font-size: 20px; color: var(--brand); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row .icon { flex-shrink: 0; width: 44px; height: 44px; background: var(--brand); color: var(--bg-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.contact-row .icon svg { width: 20px; height: 20px; }
.contact-row .text { flex: 1; }
.contact-row .text strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 700; margin-bottom: 3px; }
.contact-row .text span, .contact-row .text a, .contact-row .text address { font-size: 16px; color: var(--text); font-weight: 400; }
.map-embed { border-radius: 6px; overflow: hidden; min-height: 420px; background: var(--bg-card); border: 1px solid var(--line); filter: invert(0.85) hue-rotate(180deg); }
.map-embed iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer { background: var(--bg-darker); color: var(--text-2); padding: 56px 0 28px; font-size: 14px; border-top: 1px solid var(--line); }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 32px; }
@media (max-width: 768px) { .site-footer .container { grid-template-columns: 1fr; gap: 32px; } }
.footer-col h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; font-weight: 700; }
.footer-col p, .footer-col li { color: var(--text-2); margin-bottom: 6px; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col a { color: var(--text); }
.footer-col a:hover { color: var(--brand); }
.footer-brand .brand-block { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-block img { width: 44px; height: 44px; }
.footer-brand .brand-block strong { color: var(--brand); font-size: 18px; letter-spacing: 0.04em; font-weight: 700; }
.footer-bottom { text-align: center; font-size: 12px; color: var(--text-3); padding-top: 20px; border-top: 1px solid var(--line); margin-bottom: 0; }
.site-footer .footer-bottom { display: block; }

@media print { .site-header, .site-footer, .nav-toggle, .skip-link { display: none; } body { color: #000; background: #fff; } }

/* ═══════════════════════════════════════════════════════════════════════
   CALCULADORA · estilos específicos
   ═══════════════════════════════════════════════════════════════════════ */

.calc-section { padding: 80px 0; }
@media (max-width: 900px) { .calc-section { padding: 50px 0; } }

.calc-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 1080px) { .calc-layout { grid-template-columns: 1fr; gap: 28px; } }

.calc-panel { background: rgba(255, 255, 255, 0.9); color: #232323; border-radius: 8px; padding: 40px; box-shadow: 0 14px 40px rgba(0,0,0,0.25); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (max-width: 600px) { .calc-panel { padding: 24px; } }
.calc-view { display: flex; flex-direction: column; gap: 22px; }
.calc-view[hidden], [hidden] { display: none !important; }

.calc-header { display: flex; gap: 22px; align-items: center; margin-bottom: 6px; }
.calc-logo { width: 80px; height: 80px; flex-shrink: 0; }
.calc-header h2 { font-size: clamp(18px, 1.6vw, 22px); color: #232323; font-weight: 600; line-height: 1.35; }
.calc-header h2 .accent { color: var(--brand); font-weight: 700; }

.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.calc-form .row { display: flex; flex-direction: column; gap: 6px; }
.calc-form .row.full { grid-column: span 2; }
.calc-form .row.pair { grid-column: span 2; }
.calc-form label { font-size: 13px; font-weight: 700; color: #232323; text-transform: none; letter-spacing: 0; }
.calc-form input[type="text"], .calc-form input[type="email"], .calc-form input[type="date"] { width: 100%; padding: 11px 12px; font-family: inherit; font-size: 15px; font-variant-numeric: tabular-nums; border: 1px solid #cfd2d6; border-radius: 4px; background: #fff; color: #232323; transition: border-color .15s, box-shadow .15s; }
.calc-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(254,139,64,0.18); }
.calc-form input::placeholder { color: #aaa; }

.input-gs, .input-pct { position: relative; }
.input-gs::before { content: "Gs."; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #888; font-weight: 600; pointer-events: none; }
.input-gs input { padding-left: 38px !important; }
.input-pct::before { content: "%"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #888; font-weight: 600; pointer-events: none; }
.input-pct input { padding-left: 28px !important; }

.pair-inputs { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
@media (max-width: 500px) { .pair-inputs { grid-template-columns: 1fr; gap: 8px; } }

.form-error { grid-column: span 2; font-size: 13px; color: #d9534f; min-height: 18px; margin-top: -4px; }
.form-error:empty { display: none; }

.btn-pill { grid-column: span 2; justify-self: center; background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 14px 56px; font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; transition: all .18s ease; margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; box-shadow: 0 4px 14px rgba(254,139,64,0.35); }
.btn-pill:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(254,139,64,0.45); color: #fff; }
.btn-pill:active { transform: translateY(0); }

@media (max-width: 600px) {
  .calc-form { grid-template-columns: 1fr; }
  .calc-form .row.full, .calc-form .row.pair { grid-column: span 1; }
  .btn-pill { grid-column: span 1; }
  .form-error { grid-column: span 1; }
}

.result-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid #e8eaee; }
@media (max-width: 700px) { .result-top { grid-template-columns: 1fr; } }

.result-summary { background: #fafafa; border: 1px solid #e8eaee; border-radius: 6px; padding: 22px 24px; }
.summary-title { font-weight: 700; font-size: 14px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #e8eaee; color: #232323; text-transform: uppercase; letter-spacing: 0.04em; }
.summary-title .accent { color: var(--brand); }
.summary-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.summary-table th, .summary-table td { text-align: left; padding: 6px 0; vertical-align: top; color: #232323; }
.summary-table th { font-weight: 700; color: #232323; width: 130px; }
.summary-table td { font-variant-numeric: tabular-nums; }
.summary-table td.pct { text-align: right; color: #555; width: 70px; }

.result-email { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.email-logo { width: 90px; height: 90px; }
.email-label { font-size: 14px; color: #232323; font-weight: 500; margin-top: 4px; }
.email-form { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 280px; align-items: center; }
.email-form input { width: 100%; padding: 11px 14px; font-family: inherit; font-size: 14px; border: 1px solid #cfd2d6; border-radius: 4px; background: #fff; color: #232323; text-align: center; }
.email-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(254,139,64,0.18); }
.email-form .btn-pill { margin-top: 0; padding: 11px 44px; font-size: 13px; }
.email-feedback { font-size: 13px; color: #2ea65a; min-height: 18px; }
.email-feedback.error { color: #d9534f; }

.indicators-block { padding-top: 28px; text-align: center; }
.indicators-block h3 { font-size: 14px; font-weight: 700; color: #232323; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 28px; }
.indicators-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; justify-items: center; align-items: end; margin-bottom: 28px; }

.ind-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ind-title { font-size: 16px; font-weight: 700; color: #232323; margin-bottom: 4px; }
.ind-bar-wrap { position: relative; width: 240px; display: flex; justify-content: center; padding-left: 130px; }
.ind-bar { width: 32px; height: 280px; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.ind-bar .zone { flex: 1; }
.ind-bar .z1 { background: #1f4ea8; }
.ind-bar .z2 { background: #4aa3df; }
.ind-bar .z3 { background: #2ea65a; }
.ind-bar .z4 { background: #f5a623; }
.ind-bar .z5 { background: #d9534f; }
.ind-marker { position: absolute; left: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; transition: top .6s cubic-bezier(.34, 1.2, .64, 1); pointer-events: none; }
.marker-label { background: transparent; color: #232323; font-size: 12px; font-weight: 600; text-align: right; line-height: 1.3; white-space: pre-line; margin-right: 8px; position: absolute; right: calc(50% + 24px); top: 50%; transform: translateY(-50%); text-shadow: 0 1px 2px rgba(255,255,255,0.7); }
.marker-dot { display: block; width: 22px; height: 22px; background: #5a5a5a; border: 2px solid #fff; border-radius: 50%; position: absolute; left: calc(50% - 11px + 22px); top: 50%; transform: translateY(-50%); box-shadow: 0 2px 6px rgba(0,0,0,0.25); }

.ind-value { font-size: 13px; color: #555; font-variant-numeric: tabular-nums; margin-top: 12px; }
.ind-value .vlabel { color: #888; font-weight: 600; }
.ind-value span:last-child { color: #232323; font-weight: 700; font-size: 15px; margin-left: 4px; }
.btn-text { background: transparent; color: var(--brand); border: 0; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 12px; margin: 0 auto; display: block; transition: color .2s ease; }
.btn-text:hover { color: var(--brand-hover); text-decoration: underline; }
@media (max-width: 700px) { .indicators-grid { grid-template-columns: 1fr; gap: 36px; } }

.calc-info { background: rgba(255, 255, 255, 0.9); color: #232323; border-radius: 8px; padding: 40px; box-shadow: 0 14px 40px rgba(0,0,0,0.25); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (max-width: 600px) { .calc-info { padding: 24px; } }
.info-block { display: flex; gap: 22px; }
.info-block-with-scale .scale-graphic, .info-block-with-icon .info-icon { flex-shrink: 0; }
.info-block:not(.info-block-with-scale):not(.info-block-with-icon) { flex-direction: column; }
.info-title { text-align: right; font-size: 15px; font-weight: 700; color: var(--brand); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.info-block p { font-size: 14.5px; line-height: 1.65; color: #444; text-align: justify; }
.info-block strong { color: #232323; font-weight: 700; }
.info-text { flex: 1; }
.scale-graphic { width: 110px; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.scale-zone { height: 56px; display: flex; align-items: center; padding-left: 6px; font-size: 11px; font-weight: 600; color: #232323; position: relative; }
.scale-zone span { line-height: 1.2; padding-right: 6px; }
.scale-zone.z1 { background: #1f4ea8; color: #fff; }
.scale-zone.z2 { background: #4aa3df; color: #fff; }
.scale-zone.z3 { background: #2ea65a; color: #fff; }
.scale-zone.z4 { background: #f5a623; color: #232323; }
.scale-zone.z5 { background: #d9534f; color: #fff; }
.info-icon { width: 90px; height: 90px; border-radius: 6px; background: #fafafa; border: 1px solid #e8eaee; display: flex; align-items: center; justify-content: center; color: var(--brand); }
.info-icon svg { width: 65px; height: 65px; }
.info-cta { align-self: flex-start; margin-top: 4px; padding: 12px 40px; }
.info-cta svg { width: 20px; height: 20px; }


/* ═══════════════════════════════════════════════════════════════════════
   PORTFOLIO · PÁGINA PROYECTOS
   ═══════════════════════════════════════════════════════════════════════ */

.proj-intro {
  max-width: 820px; margin: 0 auto 48px;
  text-align: center; font-size: 17px; line-height: 1.7; color: var(--text-2);
}

/* ── Filtros ──────────────────────────────────────────────────── */
.proj-filters {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
  justify-content: center;
  padding: 24px 28px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 36px;
}
.filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-label {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-right: 4px;
}
.filter-btn {
  padding: 7px 14px;
  font-family: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-2);
  cursor: pointer; transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--brand); color: var(--text); }
.filter-btn[aria-pressed="true"] {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.proj-count-wrap {
  margin-left: auto;
  font-size: 12px; color: var(--text-3); letter-spacing: 0.04em;
}
.proj-count-wrap b { color: var(--brand); font-size: 14px; font-weight: 700; }

/* ── Admin bar ────────────────────────────────────────────────── */
.admin-controls {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px; flex-wrap: wrap;
  padding: 16px 22px;
  background: rgba(254, 139, 64, 0.08);
  border: 1px dashed var(--brand);
  border-radius: 6px;
}
.admin-controls .lock {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.admin-controls .lock svg { width: 16px; height: 16px; }
.admin-controls .grow { flex: 1; }

.btn-admin {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-family: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  background: transparent;
  border: 1.5px solid var(--brand);
  border-radius: 4px;
  color: var(--brand);
  cursor: pointer; transition: all .18s ease;
}
.btn-admin:hover { background: var(--brand); color: var(--bg-darker); }
.btn-admin svg { width: 14px; height: 14px; }
.btn-admin.primary { background: var(--brand); color: var(--bg-darker); }
.btn-admin.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-admin.danger { border-color: #d9534f; color: #d9534f; }
.btn-admin.danger:hover { background: #d9534f; color: #fff; }

#btn-login {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1.5px solid var(--brand);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
#btn-login:hover { background: var(--brand); color: var(--bg-darker); transform: translateY(-2px); }
#btn-login svg { width: 18px; height: 18px; }

/* ── Grid de proyectos ────────────────────────────────────────── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.proj-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 14px 32px rgba(0,0,0,0.32);
}

.proj-img {
  aspect-ratio: 16/10;
  background: var(--bg-darker);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.proj-img img { width: 100%; height: 100%; object-fit: cover; }
.proj-img-placeholder { width: 50%; height: 50%; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.proj-img-placeholder svg { width: 100%; height: 100%; }

.proj-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
}
.tag-status.status-finalizado { background: rgba(46, 166, 90, 0.18); color: #5cd078; border: 1px solid rgba(46, 166, 90, 0.35); }
.tag-status.status-en-desarrollo { background: rgba(254, 139, 64, 0.18); color: var(--brand); border: 1px solid rgba(254, 139, 64, 0.4); }
.tag-specialty { background: transparent; color: var(--text-2); border: 1px solid var(--line-strong); }

.proj-card h3 { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.35; margin: 2px 0; }
.proj-meta { font-size: 12px; color: var(--text-3); display: flex; gap: 4px; flex-wrap: wrap; }
.proj-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 2px; flex: 1; }
.proj-client { font-size: 12px; color: var(--text-3); padding-top: 8px; border-top: 1px solid var(--line); margin-top: auto; }
.proj-client strong { color: var(--brand); text-transform: uppercase; letter-spacing: 0.05em; margin-right: 6px; font-size: 11px; }

.proj-admin-bar {
  display: flex; gap: 8px; margin-top: 10px;
  padding-top: 12px; border-top: 1px dashed var(--brand);
}
.proj-admin-bar button {
  flex: 1; padding: 6px 10px;
  font-family: inherit; font-size: 11px; font-weight: 600;
  background: transparent; border: 1px solid var(--line-strong); color: var(--text-2);
  border-radius: 4px; cursor: pointer; transition: all .18s;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.proj-admin-bar button:hover { color: var(--brand); border-color: var(--brand); }
.proj-admin-bar .proj-delete:hover { color: #ff5a5a; border-color: #ff5a5a; }
.proj-admin-bar svg { width: 12px; height: 12px; }

.proj-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 15px;
  background: var(--bg-card);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
}

/* ── Modal (compartido login + editor) ───────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none !important; }

.modal-panel {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--brand);
  border-radius: 10px;
  width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.modal-panel.compact { max-width: 420px; }
.modal-panel h2 {
  font-size: 20px; color: var(--brand); margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: 0.06em;
}

.modal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.modal-form .row { display: flex; flex-direction: column; gap: 6px; }
.modal-form .row.full { grid-column: span 2; }
.modal-form label { font-size: 12px; font-weight: 700; color: var(--text); }
.modal-form input, .modal-form select, .modal-form textarea {
  width: 100%; padding: 10px 12px;
  font-family: inherit; font-size: 14px;
  border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--bg-darker); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(254, 139, 64, 0.2);
}
.modal-form textarea { resize: vertical; min-height: 80px; }

.image-uploader { display: grid; grid-template-columns: 1fr 100px; gap: 10px; align-items: stretch; }
.image-controls { display: flex; flex-direction: column; gap: 6px; }
.image-controls .btn-admin { padding: 6px 8px; font-size: 10px; }
.ed-image-preview {
  background: var(--bg-darker); border: 1px solid var(--line);
  border-radius: 4px; aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ed-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.ed-image-preview .hint { color: var(--text-3); font-size: 12px; }

.modal-actions {
  grid-column: span 2;
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 14px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.modal-actions .btn-admin { padding: 10px 22px; font-size: 13px; }

.field-hint { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.field-error { font-size: 12px; color: #ff5a5a; margin-top: 4px; min-height: 16px; }

@media (max-width: 600px) {
  .modal-form { grid-template-columns: 1fr; }
  .modal-form .row.full, .modal-actions { grid-column: span 1; }
  .image-uploader { grid-template-columns: 1fr; }
  .modal-panel { padding: 20px; }
}

body.admin-on .proj-card { border-style: solid; }
