@import url("/organizar-documentacion-clientes-gestoria-base.css");
@import url("/organizar-documentacion-clientes-gestoria-components.css");
@import url("/organizar-documentacion-clientes-gestoria-responsive.css");

.automatizar-documentacion-guide .od-section { padding: 64px 0; }
.automatizar-documentacion-guide .od-hero { padding: 54px 0 58px; }
.automatizar-documentacion-guide .od-title-grid { margin-bottom: 30px; }
.automatizar-documentacion-guide .od-intro-grid { margin-top: 36px; }
.automatizar-documentacion-guide .od-section-heading { margin-bottom: 28px; }
.automatizar-documentacion-guide .od-section-heading > p:not(.od-kicker) { margin-top: 13px; }

.ad-prose { max-width: 900px; }
.ad-prose p { margin: 0 0 15px; color: #40504d; font-size: 1.02rem; line-height: 1.72; }
.ad-prose > p:last-child { margin-bottom: 0; }
.ad-prose ul { display: grid; gap: 8px; margin: 18px 0 22px; padding-left: 22px; color: #40504d; line-height: 1.6; }
.ad-prose h3 { margin: 32px 0 13px; color: var(--od-ink); font-size: 1.28rem; line-height: 1.3; }
.ad-prose code { padding: 2px 6px; border-radius: 4px; background: var(--od-soft); color: var(--od-green-dark); font-size: .92em; }
.ad-lead { color: var(--od-ink) !important; font-size: 1.12rem !important; }
.ad-sequence { margin: 22px 0; color: var(--od-green-dark) !important; font-weight: 780; letter-spacing: .01em; }
.ad-quote { margin: 24px 0; padding: 20px 23px; border-left: 4px solid var(--od-green); background: var(--od-mint); color: var(--od-green-dark); font-size: 1.08rem; font-weight: 740; line-height: 1.55; }
.ad-context-link, .ad-source-note { margin-top: 24px !important; padding: 16px 18px; border: 1px solid #c6ddd7; border-radius: 7px; background: var(--od-soft); }
.ad-context-link a, .ad-source-note a { color: var(--od-green-dark); font-weight: 750; }

.ad-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 26px 0 4px; }
.ad-flow span { padding: 10px 12px; border: 1px solid #c6ddd7; border-radius: 6px; background: #fff; color: var(--od-green-dark); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.ad-flow i { color: var(--od-green); font-style: normal; font-weight: 800; }

.ad-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 24px 0; }
.ad-card { padding: 22px; border: 1px solid var(--od-line); border-radius: 8px; background: #fff; }
.ad-card svg { width: 26px; height: 26px; margin-bottom: 14px; color: var(--od-green); }
.ad-card h3 { margin: 0 0 8px; font-size: 1rem; }
.ad-card p { margin: 0; color: var(--od-muted); font-size: .9rem; line-height: 1.55; }

.ad-table-wrap { margin: 26px 0; overflow-x: auto; border: 1px solid var(--od-line); border-radius: 8px; background: #fff; }
.ad-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.ad-table th, .ad-table td { padding: 13px 15px; border-bottom: 1px solid var(--od-line); text-align: left; vertical-align: top; font-size: .88rem; line-height: 1.45; }
.ad-table th { background: var(--od-green-dark); color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; }
.ad-table tr:last-child td { border-bottom: 0; }
.ad-table tbody tr:nth-child(even) { background: #f7faf9; }

.ad-steps-six, .ad-steps-seven { display: grid; gap: 0; margin: 25px 0; padding: 0; border: 1px solid var(--od-line); border-radius: 8px; background: #fff; list-style: none; overflow: hidden; }
.ad-steps-six { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ad-steps-seven { grid-template-columns: repeat(7,minmax(0,1fr)); }
.ad-step { padding: 22px 18px; border-right: 1px solid var(--od-line); border-bottom: 1px solid var(--od-line); }
.ad-steps-six .ad-step:nth-child(3n), .ad-steps-seven .ad-step:last-child { border-right: 0; }
.ad-steps-six .ad-step:nth-child(n+4) { border-bottom: 0; }
.ad-step > span { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px; border-radius: 50%; background: var(--od-green); color: #fff; font-size: .75rem; font-weight: 800; }
.ad-step h3 { margin: 0 0 9px; font-size: .96rem; line-height: 1.3; }
.ad-step p { margin: 0; color: var(--od-muted); font-size: .84rem; line-height: 1.55; }

.ad-layer-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin: 28px 0; }
.ad-layer-flow > div { padding: 22px; border: 1px solid var(--od-line); border-radius: 8px; background: #fff; }
.ad-layer-flow > i { align-self: center; color: var(--od-green); font-style: normal; font-weight: 900; }
.ad-layer-flow strong { display: block; margin-bottom: 12px; color: var(--od-green-dark); font-size: .78rem; text-transform: uppercase; }
.ad-layer-flow p { margin: 0; color: #40504d; line-height: 1.6; }

.ad-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 24px 0 10px; }
.ad-metric { padding: 19px; border: 1px solid var(--od-line); border-radius: 8px; background: #fff; }
.ad-metric strong { display: block; margin-bottom: 4px; color: var(--od-green); font-size: 2rem; line-height: 1; }
.ad-metric:nth-child(2) strong { color: #d88a12; }
.ad-metric:nth-child(3) strong { color: #b64141; }
.ad-metric:nth-child(4) strong { color: #3574ae; }
.ad-metric span { color: var(--od-muted); font-size: .82rem; line-height: 1.4; }
.ad-caption { color: var(--od-muted) !important; font-size: .84rem !important; font-style: italic; }

.ad-concepts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 24px 0; }
.ad-concept { padding: 23px; border: 1px solid var(--od-line); border-radius: 8px; background: #fff; }
.ad-concept svg { width: 30px; height: 30px; margin-bottom: 16px; color: var(--od-green); }
.ad-concept h3 { margin: 0 0 10px; font-size: 1rem; }
.ad-concept p { margin: 0; color: var(--od-muted); font-size: .88rem; line-height: 1.55; }

.ad-checklist { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 28px; margin: 22px 0; padding: 0; list-style: none; }
.ad-checklist li { position: relative; padding-left: 28px; color: #40504d; line-height: 1.55; }
.ad-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--od-mint); color: var(--od-green-dark); font-size: .72rem; font-weight: 900; }

.ad-example { display: grid; grid-template-columns: .72fr 1.28fr; gap: 16px; margin: 24px 0; }
.ad-example > div { padding: 22px; border: 1px solid var(--od-line); border-radius: 8px; background: #fff; }
.ad-file-list { display: grid; gap: 9px; margin-top: 14px; }
.ad-file-list code { display: block; padding: 10px 12px; background: var(--od-soft); }
.ad-state-list { display: grid; gap: 10px; margin-top: 14px; }
.ad-state-list span { padding: 11px 12px; border-left: 3px solid var(--od-green); background: var(--od-soft); color: #40504d; font-size: .88rem; line-height: 1.5; }

.ad-faq { display: grid; gap: 10px; margin-top: 24px; }
.ad-faq details { border: 1px solid var(--od-line); border-radius: 7px; background: #fff; }
.ad-faq summary { position: relative; padding: 18px 48px 18px 18px; cursor: pointer; color: var(--od-ink); font-weight: 760; list-style: none; }
.ad-faq summary::-webkit-details-marker { display: none; }
.ad-faq summary::after { content: "+"; position: absolute; right: 18px; top: 15px; color: var(--od-green); font-size: 1.35rem; }
.ad-faq details[open] summary::after { content: "−"; }
.ad-faq .ad-faq-answer { padding: 0 18px 18px; }
.ad-faq .ad-faq-answer p { margin: 0 0 10px; color: #40504d; line-height: 1.65; }
.ad-faq .ad-faq-answer p:last-child { margin-bottom: 0; }

.ad-ending-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 18px; margin-top: 28px; }
.ad-sources { padding: 26px; border: 1px solid var(--od-line); border-radius: 8px; background: var(--od-soft); }
.ad-sources h2 { font-size: 1.45rem; }
.ad-sources p { color: var(--od-muted); line-height: 1.6; }
.ad-sources ul { display: grid; gap: 10px; margin: 18px 0 0; padding-left: 20px; }
.ad-sources a { color: var(--od-green-dark); font-weight: 700; }
.ad-cta-card { display: flex; flex-direction: column; justify-content: center; padding: 30px; border-radius: 8px; background: var(--od-green-dark); color: #fff; }
.ad-cta-card .od-kicker { color: #9fd8c8; }
.ad-cta-card h2 { margin: 0; color: #fff; font-size: 2rem; line-height: 1.12; }
.ad-cta-card p { margin: 15px 0 22px; color: #d8ebe6; line-height: 1.65; }
.ad-cta-card .button { align-self: flex-start; background: #fff; color: var(--od-green-dark); }

@media (max-width: 1080px) {
  .ad-steps-seven { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .ad-steps-seven .ad-step { border-bottom: 1px solid var(--od-line); }
  .ad-steps-seven .ad-step:nth-child(4n) { border-right: 0; }
  .ad-steps-seven .ad-step:nth-child(n+5) { border-bottom: 0; }
  .ad-steps-seven .ad-step:last-child { border-right: 0; }
}

@media (max-width: 760px) {
  .automatizar-documentacion-guide .od-section { padding: 48px 0; }
  .automatizar-documentacion-guide .od-hero { padding: 40px 0 46px; }
  .ad-card-grid, .ad-concepts, .ad-metrics, .ad-checklist, .ad-example, .ad-ending-grid, .ad-layer-flow { grid-template-columns: 1fr; }
  .ad-layer-flow > i { justify-self: center; transform: rotate(90deg); }
  .ad-steps-six, .ad-steps-seven { grid-template-columns: 1fr; }
  .ad-step, .ad-steps-six .ad-step:nth-child(3n), .ad-steps-six .ad-step:nth-child(n+4), .ad-steps-seven .ad-step:nth-child(4n), .ad-steps-seven .ad-step:nth-child(n+5) { border-right: 0; border-bottom: 1px solid var(--od-line); }
  .ad-steps-six .ad-step:last-child, .ad-steps-seven .ad-step:last-child { border-bottom: 0; }
  .ad-cta-card h2 { font-size: 1.7rem; }
}

/* Keep the current approved hero sharp while preserving the approved layout. */
.automatizar-documentacion-guide .od-hero-photo { max-width: 1040px; margin-left: auto; margin-right: auto; }
