/* ==========================================================================
   Corinth — Análisis y Principios de Contabilidad Financiera
   Hoja de estilos global
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --graphite: #262b30;
  --graphite-soft: #4b5258;
  --graphite-mute: #7a8188;
  --white: #ffffff;
  --offwhite: #f6f8f7;
  --line: #e2e6e4;
  --green: #6fcf97;
  --green-deep: #3fae72;
  --green-tint: #e9f7ef;

  --radius: 3px;
  --max-width: 1200px;

  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  color: var(--graphite);
  background-color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--graphite);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.6em 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1.2em 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--green-deep);
  font-weight: 600;
  margin-bottom: 0.9em;
  display: block;
}

.section {
  padding: 80px 0;
}

.section--tight {
  padding: 56px 0;
}

.section--offwhite {
  background-color: var(--offwhite);
}

.section--graphite {
  background-color: var(--graphite);
  color: var(--white);
}

.section--graphite h2, .section--graphite h3 { color: var(--white); }
.section--graphite p { color: #c9cdd0; }

.section-head {
  max-width: 700px;
  margin: 0 0 48px 0;
}

.section-head.center {
  margin: 0 auto 48px auto;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--graphite);
  color: var(--white);
}
.btn-primary:hover { background-color: var(--green-deep); }

.btn-outline {
  background-color: transparent;
  border-color: var(--graphite);
  color: var(--graphite);
}
.btn-outline:hover {
  border-color: var(--green-deep);
  color: var(--green-deep);
}

.btn-ghost {
  background: none;
  color: var(--graphite-soft);
  padding: 14px 6px;
}
.btn-ghost:hover { color: var(--green-deep); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo .mark {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--graphite);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo .mark::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: var(--green);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--graphite-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--graphite);
  border-bottom-color: var(--green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--graphite);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy p.lead {
  font-size: 1.15rem;
  color: var(--graphite-soft);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/3.1;
  object-fit: cover;
}

.hero-figure-note {
  font-size: 0.8rem;
  color: var(--graphite-mute);
  margin-top: 10px;
}

.hero--split .hero-grid { grid-template-columns: 1fr; max-width: 760px; }

/* ---------- Breadcrumb / page intro (non-hero pages) ---------- */
.page-intro {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
  background-color: var(--offwhite);
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--graphite-mute);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--graphite-mute); }
.breadcrumb a:hover { color: var(--green-deep); }

/* ---------- Grids / Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.card .icon-box {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green-deep);
}

.card h4 { margin-bottom: 10px; }
.card p { color: var(--graphite-soft); font-size: 0.94rem; margin-bottom: 0; }

/* ---------- Data table ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 0.92rem;
}
.data-table th, .data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.data-table th {
  background-color: var(--offwhite);
  font-weight: 600;
  color: var(--graphite);
}
.data-table td { color: var(--graphite-soft); }

/* ---------- Stat row ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.stat-row .stat { text-align: left; }
.stat .num {
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--green-deep);
  display: block;
}
.stat .label {
  font-size: 0.85rem;
  color: var(--graphite-mute);
}

/* ---------- Content article ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 56px;
}

.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.4em; color: var(--graphite); }
.article-body p, .article-body li { color: var(--graphite-soft); }
.article-body ul, .article-body ol { padding-left: 1.2em; }
.article-body blockquote {
  border-left: 3px solid var(--green);
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  font-style: normal;
  color: var(--graphite);
  font-size: 1.05rem;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--graphite-mute);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sidebar-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 24px;
}
.sidebar-box h4 { margin-bottom: 14px; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { margin-bottom: 12px; font-size: 0.9rem; }
.sidebar-box a { color: var(--graphite-soft); }
.sidebar-box a:hover { color: var(--green-deep); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--graphite);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
}
.faq-question .plus {
  font-size: 1.4rem;
  color: var(--green-deep);
  transition: transform 0.2s ease;
  font-weight: 300;
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { color: var(--graphite-soft); padding-bottom: 20px; }
.faq-item.open .faq-answer { max-height: 800px; }

/* ---------- Timeline / process ---------- */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.process-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.process-list li:first-child { border-top: none; }
.process-index {
  font-size: 0.9rem;
  color: var(--green-deep);
  font-weight: 600;
  padding-top: 3px;
}

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--graphite);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--graphite);
  background-color: var(--white);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-deep);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: 0.8rem;
  color: var(--graphite-mute);
  margin-top: -6px;
  margin-bottom: 22px;
}

.form-success {
  display: none;
  background-color: var(--green-tint);
  border: 1px solid var(--green);
  color: var(--graphite);
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.92rem;
}
.form-success.visible { display: flex; align-items: center; gap: 10px; }

.form-error {
  display: none;
  background-color: #fbeaea;
  border: 1px solid #e0a4a4;
  color: #7a2b2b;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.88rem;
}
.form-error.visible { display: block; }

/* ---------- Contact info blocks ---------- */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}
.contact-info-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-list .icon-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background-color: var(--green-tint);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-list strong { display: block; font-size: 0.85rem; color: var(--graphite-mute); font-weight: 500; }
.contact-info-list span { font-size: 0.98rem; color: var(--graphite); }

/* ---------- Map placeholder box ---------- */
.map-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-box iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Team ---------- */
.team-card {
  text-align: left;
}
.team-card img {
  width: 100%;
  aspect-ratio: 1/1.05;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.team-card h4 { margin-bottom: 2px; }
.team-card .role {
  font-size: 0.83rem;
  color: var(--green-deep);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}
.team-card p { font-size: 0.88rem; color: var(--graphite-soft); }

/* ---------- Glossary ---------- */
.glossary-block {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.glossary-term {
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 6px;
  display: block;
}
.glossary-letter {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--green-deep);
  font-weight: 700;
  margin: 40px 0 6px;
  text-transform: uppercase;
}

/* ---------- CTA band ---------- */
.cta-band {
  background-color: var(--graphite);
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h3 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: #c9cdd0; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--graphite);
  color: #c9cdd0;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #3a4046;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 11px; font-size: 0.9rem; }
.footer-grid a { color: #b7bcbf; }
.footer-grid a:hover { color: var(--green); }
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand .logo .mark { border-color: var(--white); }
.footer-brand p { font-size: 0.88rem; color: #9aa0a3; max-width: 280px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  color: #8b9195;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: #8b9195; }
.footer-bottom a:hover { color: var(--green); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px;
    gap: 16px;
  }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { flex-direction: column; text-align: center; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
