/* Las Tertulias palette (verde olivo) and type, then the page CSS from the approved prototype (diseno/index.html). */
:root {
  --p-bg: #f3f1ea; --p-surface: #e2e3d6; --p-ink: #1f2a22; --p-muted: #5a6457;
  --p-accent: #3f5a3c; --p-accent-ink: #ffffff; --p-action: #3f5a3c; --p-action-ink: #ffffff;
  --p-inv-bg: #1f2a22; --p-inv-surface: #2b372d; --p-inv-ink: #f3f1ea; --p-inv-muted: #a3aa9f;
  --p-inv-accent: #f3f1ea; --p-inv-accent-ink: #1f2a22; --p-inv-action: #f3f1ea; --p-inv-action-ink: #1f2a22;
  --font-display: var(--nf-newsreader), Georgia, serif;
  --font-text: var(--nf-hanken), system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.018em;
  --display-tracking-xl: -0.025em;
  --ly-scale: 1.06;
}

  .nav__logo img { height: 40px; width: 40px; border-radius: 50%; }
  h1, h2, h3, h4 { hyphens: manual; -webkit-hyphens: manual; }
  /* phone: each section as tall as its content, no forced full-screen height (no empty gaps) */
  @media (max-width: 639px) {
    main > :is(section, .section):not(.hero, .section--hero), footer.closing { min-height: 0; }
    main > :is(section, .section):not(.hero, .section--hero) { padding-top: 64px; padding-bottom: 32px; scroll-margin-top: 24px; }
    footer.closing { padding-top: 64px; }
    footer.closing:has(> .wrap > .closing__cta > .close__media) > .wrap { grid-template-rows: auto auto; row-gap: var(--s-8, 64px); }
    :where(main > :is(section, .section):not(.hero, .section--hero):has(> :is(.wrap, .container)), footer.closing) { grid-template-rows: auto; }
    main > :is(section, .section).g2m > :is(.wrap, .container), footer.closing.g2m > .wrap { grid-template-rows: auto auto; row-gap: var(--s-7); }
  }
  .rows .rows__name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-small); }
  .frame--photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; }
  .frame--photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
  #servicios .frame--photo { height: min(640px, var(--ly-fit, 640px)); }
  .pic { margin: var(--s-7) 0 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
  .pic > img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .pic--tall { margin: 0; aspect-ratio: auto; height: min(640px, var(--ly-fit, 640px)); }
  #sectores .frame--photo { aspect-ratio: 4 / 3; }
  .develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(600px, var(--ly-fit, 600px)); }
  .develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .form-panel { background: var(--g-alt, var(--surface)); border-radius: var(--r-lg); padding: var(--s-7); }
  @media (max-width: 1023px) {
    .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); }
    #servicios .frame--photo { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); }
  }
  @media (max-width: 1023px) { .pic--tall { height: auto; aspect-ratio: 4 / 5; margin-top: var(--s-7); } }
  @media (max-width: 639px) {
    .form-panel { padding: var(--s-5); }
    #respaldo .rows__name small { display: none; }
    #sectores .grid { grid-template-columns: 1fr 1fr; }
    #sectores .frame--photo { grid-column: auto; aspect-ratio: 3 / 5; }
    #propuesta .form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3); }
    #propuesta .form > .field { grid-column: 1 / -1; }
    #propuesta .form > .field--half { grid-column: auto; }
    #propuesta .form-panel { padding: var(--s-4); }
    #propuesta .pic { aspect-ratio: 4 / 3; }
  }

/* Aviso de privacidad: one reading column */
.legal .section { min-height: 0; }
.legal__body { max-width: 68ch; }
.legal__body h1 { font-size: var(--t-h2); margin-bottom: var(--s-3); }
.legal__body h2 { font-size: var(--t-h3); margin: var(--s-7) 0 var(--s-3); }
.legal__body p, .legal__body li { margin-bottom: var(--s-3); }
.legal__body ul { list-style: disc; padding-left: 1.25em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
