/* Estilos compartidos de las páginas por comuna (mismo sistema visual que index.html) */
:root {
  --bg: #090c10; --bg2: #0e1318; --surface: #1a2130;
  --accent: #00c9ff; --accent-dim: rgba(0,201,255,0.12);
  --text: #e8ecf0; --text2: #8a9aaa; --text3: #607080;
  --border: rgba(0,201,255,0.15); --border2: rgba(255,255,255,0.06);
  --green: #00e676; --orange: #ff9100;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; }
h1, h2, h3 { font-family: 'Rajdhani', sans-serif; line-height: 1.1; }
a { color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.tag {
  display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim); border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 16px;
}

/* NAV */
nav { position: sticky; top: 0; z-index: 100; background: rgba(9,12,16,0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700; text-decoration: none; letter-spacing: 0.04em; }
.logo b { font-weight: inherit; }
.logo b span { color: var(--accent); }
.logo svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { background: var(--accent); color: #000; padding: 8px 16px; border-radius: 6px; font-weight: 500; font-size: 13px; }

/* BREADCRUMB */
.breadcrumb { font-size: 13px; color: var(--text3); padding-top: 22px; }
.breadcrumb a { color: var(--text2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* HERO */
.hero { position: relative; overflow: hidden; padding: 28px 0 72px; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(0,201,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,201,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; margin-top: 24px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 700; margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: 17px; color: var(--text2); max-width: 560px; margin-bottom: 28px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: 0.03em;
  padding: 13px 24px; border-radius: 8px; transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-dim); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 13px; color: var(--text2); }
.hero-badges span::before { content: '✓'; color: var(--green); margin-right: 7px; font-weight: 700; }
.hero-photo { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0,0,0,0.5); aspect-ratio: 4 / 5; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: rgba(20,26,34,0.92); backdrop-filter: blur(8px); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; font-size: 13px;
}
.hero-photo figcaption small { display: block; color: var(--text3); font-size: 12px; }

/* SECCIONES */
section { padding: 64px 0; }
.alt { background: var(--bg2); border-top: 1px solid var(--border2); border-bottom: 1px solid var(--border2); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 12px; }
.section-head p { color: var(--text2); font-size: 16px; }

.sectors { display: flex; flex-wrap: wrap; gap: 10px; }
.sectors span { background: var(--bg); border: 1px solid var(--border2); border-radius: 100px; padding: 8px 18px; font-size: 14px; color: var(--text2); }
.sectors-note { margin-top: 18px; font-size: 14px; color: var(--text3); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--bg2); border: 1px solid var(--border2); border-radius: 14px; padding: 26px 24px; }
.alt .card { background: var(--bg); }
.card-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-dim); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text2); }

/* TRABAJO REAL */
.work { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.work-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.work-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--border2); display: block; }
.work-meta { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.work h3 { font-size: 26px; margin-bottom: 12px; }
.work p { color: var(--text2); font-size: 15px; margin-bottom: 14px; }
.quote { background: var(--bg); border: 1px solid var(--border2); border-left: 3px solid var(--accent); border-radius: 10px; padding: 18px 20px; margin-top: 8px; }
.quote p { font-style: italic; color: var(--text); margin-bottom: 10px; }
.quote .stars { color: var(--orange); letter-spacing: 2px; font-size: 14px; }
.quote cite { font-style: normal; font-size: 13px; color: var(--text3); }
.work-solo { grid-template-columns: 1fr; max-width: 760px; }
.checklist { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 32px; max-width: 900px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips span { font-size: 12px; color: var(--text2); border: 1px solid var(--border2); border-radius: 100px; padding: 6px 12px; }

/* PRECIO */
.price-box { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: linear-gradient(160deg, var(--surface) 0%, var(--bg2) 100%); border: 1px solid var(--border); border-radius: 18px; padding: 40px; }
.price { font-family: 'Rajdhani', sans-serif; font-size: 52px; font-weight: 700; color: var(--accent); line-height: 1; margin: 10px 0 6px; }
.price-note { font-size: 13px; color: var(--text3); }
.price-list { list-style: none; display: grid; gap: 10px; }
.price-list li { font-size: 15px; color: var(--text2); }
.price-list li::before { content: '✓'; color: var(--green); font-weight: 700; margin-right: 10px; }

/* PROCESO */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { border-top: 2px solid var(--border); padding-top: 16px; }
.step::before { counter-increment: step; content: '0' counter(step); font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--accent); font-size: 14px; letter-spacing: 0.1em; }
.step h3 { font-size: 18px; margin: 6px 0; }
.step p { font-size: 14px; color: var(--text2); }

/* FAQ */
.faq { max-width: 760px; display: grid; gap: 10px; }
.faq details { background: var(--bg2); border: 1px solid var(--border2); border-radius: 10px; }
.alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 22px; font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; color: var(--text2); font-size: 15px; }
.faq a { color: var(--accent); }

/* OTRAS COMUNAS */
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a { text-decoration: none; border: 1px solid var(--border); border-radius: 100px; padding: 9px 18px; font-size: 14px; color: var(--text); transition: background 0.2s, border-color 0.2s; }
.links a:hover { background: var(--accent-dim); border-color: var(--accent); }

/* CTA FINAL */
.final { text-align: center; border: 1px solid var(--border); border-radius: 20px; padding: 52px 28px;
  background: radial-gradient(circle at 15% 0%, rgba(0,201,255,0.16) 0%, transparent 50%), radial-gradient(circle at 85% 100%, rgba(0,119,182,0.22) 0%, transparent 55%), var(--bg2); }
.final h2 { font-size: clamp(26px, 3.8vw, 40px); margin-bottom: 12px; }
.final p { color: var(--text2); max-width: 540px; margin: 0 auto 26px; }
.final .btns { justify-content: center; }

/* FOOTER */
footer { border-top: 1px solid var(--border2); padding: 36px 0 28px; font-size: 13px; color: var(--text3); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer strong { display: block; color: var(--text); font-family: 'Rajdhani', sans-serif; font-size: 18px; margin-bottom: 6px; }
footer a { color: var(--text2); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer ul { list-style: none; display: grid; gap: 6px; }

/* GUÍAS */
.hero-article { padding-bottom: 28px; }
.hero-article h1 { margin-top: 0; max-width: 820px; }
.article { max-width: 800px; }
.article-meta { font-size: 13px; color: var(--text3); margin-top: -12px; }
.prose { padding-bottom: 56px; }
.prose h2 { font-size: clamp(24px, 3.2vw, 32px); margin: 44px 0 14px; }
.prose p { color: var(--text2); font-size: 17px; margin-bottom: 14px; }
.prose ul, .prose ol { color: var(--text2); font-size: 17px; padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose .faq { margin-top: 8px; }
.tbl-wrap { overflow-x: auto; margin: 6px 0 20px; border: 1px solid var(--border2); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border2); vertical-align: top; }
.tbl th { background: var(--bg2); font-family: 'Rajdhani', sans-serif; font-size: 15px; letter-spacing: 0.03em; color: var(--text); }
.tbl td { color: var(--text2); }
.tbl td:first-child { color: var(--text); font-weight: 500; }
.tbl tr:last-child td { border-bottom: none; }
.callout { margin: 26px 0; padding: 22px 24px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(160deg, var(--surface) 0%, var(--bg2) 100%); }
.callout strong { display: block; font-family: 'Rajdhani', sans-serif; font-size: 20px; margin-bottom: 4px; }
.callout p { font-size: 15px; margin-bottom: 14px; }
.guide-card { text-decoration: none; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s; }
.guide-card:hover { border-color: var(--border); transform: translateY(-3px); }
.guide-more { margin-top: auto; padding-top: 14px; color: var(--accent); font-size: 14px; font-weight: 500; }

/* BARRA MÓVIL */
.mobile-bar { display: none; }

@media (max-width: 900px) {
  .hero-grid, .work, .price-box { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: rgba(9,12,16,0.96); backdrop-filter: blur(12px); border-top: 1px solid var(--border2);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none;
    border-radius: 10px; padding: 11px 6px; font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 600;
    background: var(--surface); border: 1px solid var(--border2);
  }
  .mobile-bar a.mb-wa { background: #25D366; border-color: #25D366; color: #fff; }
  .mobile-bar svg { width: 17px; height: 17px; }
  body { padding-bottom: 68px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  section { padding: 52px 0; }
  .btns .btn { width: 100%; justify-content: center; }
  .work-photos { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .price-box { padding: 28px 22px; }
  .price { font-size: 44px; }
}
