/* WordPress / Divi integration.
   Each section of the design is its own Divi section > row > column >
   Code Module, so the team can reorder, duplicate or move sections and
   adjust them from the Divi settings. The design system controls its own
   spacing and widths: the imported sections already set padding 0 and
   full width in their Divi settings, and these rules only cover what those
   settings leave out (margins, backgrounds, Divi's gutters). They weigh one
   class, like Divi's own defaults, and load after them; the per-section
   styles Divi writes from each module's settings are more specific, so a
   padding, margin or background set in Divi still wins. */

#page-container, #et-main-area, #main-content { padding: 0; margin: 0; background: none; }
#main-content .container { width: auto; max-width: none; padding: 0; }
#main-content .container::before { display: none; }
/* Only the WordPress page article: the design has articles of its own */
#main-content article.type-page, #main-content .entry-content { padding: 0; margin: 0; }

:where(.et-l) :is(.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_code, .et_pb_code_inner) { margin: 0; background-color: transparent; }
:where(.et-l) :is(.et_pb_column, .et_pb_code, .et_pb_code_inner) { width: auto; max-width: none; padding: 0; }
:where(.et-l) .et_pb_row { display: block; }
/* The full-width, flush section and row that build.py sets on every Code
   Module, repeated here: Divi only writes them to its per-page CSS cache, and
   while that cache regenerates rows fall back to 80% wide / 1480px max and
   crop the design. Same values, so nothing changes when the cache is fine. */
.et-l .et_pb_section:has(.et_pb_code) { padding: 0; }
.et-l .et_pb_row:has(.et_pb_code) { width: 100%; max-width: none; padding: 0; }
:where(.et-l) .et_pb_column { float: none; }

/* Header and footer: Divi gives its wrappers position and z-index, which
   makes each layout its own stacking layer. The header would sit below the
   page content (hidden behind the hero at the top, behind the sections once
   it turns into the fixed bar) and would position itself against the
   wrapper instead of the page. Their wrappers step back to plain boxes. */
:is(.et-l--header, .et-l--footer),
:is(.et-l--header, .et-l--footer) :is(.et_builder_inner_content, .et_pb_section, .et_pb_row, .et_pb_column, .et_pb_code, .et_pb_code_inner) {
  position: static; z-index: auto; overflow: visible; transform: none;
}

/* Logged in, the WordPress admin bar is fixed at the top: the fixed header
   and the sticky link bar go below it. On phones it scrolls away. */
.admin-bar { --wpab: 32px; }
@media (max-width: 782px) { .admin-bar { --wpab: 46px; } }
@media (max-width: 600px) { .admin-bar { --wpab: 0px; } }
.admin-bar .site-header.is-fixed, body.admin-bar.menu-open .site-header { top: var(--wpab); }
.admin-bar .jumpnav { top: calc(var(--hdr-fixed, 0px) + var(--wpab)); }

/* The in-page link bar is position: sticky. Sticky only works inside its
   parent box and with no clipping ancestor, and here the parent would be the
   Code Module wrapper, as tall as the bar itself. On the public page (op-js
   is not added inside the Visual Builder) the wrappers around that module
   step out of the layout, so the bar sticks through the whole page. */
#page-container, #et-main-area, #main-content, .et-l--post, .et-l--post .et_builder_inner_content { overflow: visible; }
.op-js .et-l--post :is(.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_code, .et_pb_code_inner):has(.jumpnav) { display: contents; }

/* The Divi Theme Customizer colors all body text and headings black
   (body, h1-h6 { color: var(--gcid-...) }) and sets the body to 14px with
   line-height 1.7em, which children inherit as a fixed 23.8px instead of
   1.7 times their own size. It is printed outside the WordPress queue. One
   extra element in the selector beats it, while any design-system class
   still wins. */
html body { color: var(--c-ink); font-size: 1.0625rem; line-height: 1.7; font-weight: 300; letter-spacing: .02em; }
@media (min-width: 1200px) { html body { font-size: calc(22 * var(--u)); line-height: calc(40 * var(--u)); } }   /* = main.css */
html :is(h1, h2, h3, h4, h5, h6) { color: inherit; }

/* Divi's element styles for text (padding under p and headings, a lighter
   heading weight, a blue bar on blockquotes) have no place in the design.
   One extra element beats Divi's plain element rules, any class still wins,
   and revert falls back to the browser default, as in the static site. */
html :is(p, h1, h2, h3, h4, h5, h6) { padding-bottom: 0; }
html :is(h1, h2, h3, h4, h5, h6) { font-weight: revert; line-height: revert; }
html blockquote { margin: 0; padding: 0; border: 0; }

/* Divi adds bullets, numbers and padding to every list in its layouts with a
   rule stronger than a class. Design lists all carry role="list"; the plain
   lists of the legal pages keep their bullets. */
:is(#page-container, #et-boc) :is(ul, ol)[role="list"] { list-style: none; padding: 0; line-height: inherit; }
:is(#page-container, #et-boc) .more__links[role="list"] { line-height: 1.5; }
/* That inherit also beats the design lists with their own line-height (desktop only) */
@media (min-width: 1200px) {
  :is(#page-container, #et-boc) .ticks[role="list"] { line-height: calc(34 * var(--u)); }
  :is(#page-container, #et-boc) .tech--options .ticks[role="list"] { line-height: calc(28 * var(--u)); }
  :is(#page-container, #et-boc) .creds__group ul[role="list"] { line-height: calc(34 * var(--u)); }
  :is(#page-container, #et-boc) .more__links[role="list"] { line-height: calc(30 * var(--u)); }
}
/* Legal pages: plain lists keep their bullets, with the design's indent and line height */
:is(#page-container, #et-boc) .legal__body :is(ul, ol) { padding: 0 0 0 1.3em; line-height: inherit; list-style-position: outside; }
/* That reset outranks the design classes, so the design lists that do have
   their own padding or line height get it back here (same values as
   main.css / inner.css) */



/* Header menu from Appearance > Menus ([delmain_menu]): WordPress prints the
   same nested lists the static site uses, with class sub-menu on the dropdowns */
.site-nav ul, .site-menu__nav ul { list-style: none; margin: 0; padding: 0; }
.site-menu__nav .sub-menu { padding: 0 0 14px 2px; }
.site-menu__nav .sub-menu a { padding: 6px 0; font-family: var(--ff); font-size: 1.0625rem; letter-spacing: .02em; color: var(--c-ink); }
@media (min-width: 1200px) {
  .site-nav .sub-menu {
    position: absolute; top: 100%; left: calc(-24 * var(--u)); min-width: calc(330 * var(--u));
    padding: calc(14 * var(--u)) 0;
    background: rgba(48, 35, 32, .94); -webkit-backdrop-filter: blur(21px); backdrop-filter: blur(21px);
    border-radius: 0 var(--radius) 0 var(--radius);
    opacity: 0; visibility: hidden; transform: translateY(calc(8 * var(--u)));
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
  .site-nav .sub-menu a { display: block; padding: calc(10 * var(--u)) calc(24 * var(--u)); font-size: calc(18 * var(--u)); line-height: 1.3; letter-spacing: .02em; color: var(--c-cream); text-transform: none; }
  .site-nav .sub-menu a:hover, .site-nav .sub-menu .current-menu-item > a { color: var(--c-sky); }
}

/* The page hero sits under the absolute header: no gap above the first section */
.et-l--post > .et_builder_inner_content > .et_pb_section:first-child { margin-top: 0; }

/* Footer column lists and the legal links keep the design's own list styles */
:is(#page-container, #et-boc) .site-footer ul, :is(#page-container, #et-boc) .social { list-style: none; padding: 0; line-height: inherit; }

/* Divi styles every table in the content (border on the table, border-top and
   padding on each cell). The office hours table keeps only its own spacing. */
html .et-l .hours table { border: 0; margin: 0; }
html .et-l .hours :is(th, td) { border: 0; padding: 4px 0; }
html .et-l .hours td { padding-left: 16px; }
@media (min-width: 1200px) { html .et-l .hours :is(th, td) { padding: 0; } }

/* Páginas Hide & Keep: copy del sitio anterior en el editor de WordPress (SOP de Delmain, sin diseño propio).
   Solo una columna de lectura con las fuentes y colores del sitio. */
html body.opd-hk #main-content .container { width: auto; max-width: 860px; padding: 150px var(--gutter, 20px) 96px; }
.opd-hk #main-content .container::before { display: none; }
.opd-hk #left-area { width: 100%; float: none; padding: 0; }
.opd-hk .entry-content { font-size: 1.0625rem; line-height: 1.7; color: var(--c-ink); }
.opd-hk .entry-content :is(h1, h2, h3, h4) { font-family: var(--ff-display); font-weight: 400; letter-spacing: -.02em; color: var(--c-brown-dark); padding: .2em 0 0; }
.opd-hk .entry-content h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: 1.1; color: var(--c-brown-dark); }
.opd-hk .entry-content h2 { margin-top: 1.8em; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); line-height: 1.15; }
.opd-hk .entry-content h3 { margin-top: 1.4em; font-size: 1.5rem; line-height: 1.2; color: var(--c-navy); }
.opd-hk .entry-content h4 { margin-top: 1.2em; font-size: 1.25rem; line-height: 1.25; }
.opd-hk .entry-content p { margin-top: .9em; padding: 0; }
.opd-hk .entry-content :is(ul, ol) { margin-top: .9em; padding: 0 0 0 1.3em; line-height: 1.7; list-style-position: outside; }
.opd-hk .entry-content ul { list-style-type: disc; }
.opd-hk .entry-content li + li { margin-top: .45em; }
.opd-hk .entry-content a { color: var(--c-blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.opd-hk .entry-content a:hover { color: var(--c-navy); }
@media (min-width: 1200px) { html body.opd-hk #main-content .container { padding-top: 200px; } }

/* Aviso de cookies (mu-plugin cookie-consent-banner de Delmain). Sin color de marca en Divi, el botón
   cae en negro: acá toma los colores y la forma de botón del sitio. Mientras está abierto, main.css
   le descuenta su alto (--ccb-height) al hero para que los botones del hero sigan a la vista. */
:root { --ccb-bar: var(--c-cream); --ccb-bar-text: var(--c-ink); --ccb-btn: var(--c-blue-strong); --ccb-btn-text: var(--c-white); }
html #ccb-banner { font-family: var(--ff); }
html #ccb-banner .ccb-accept {
  min-height: 48px; padding: 12px 26px; border-radius: 0 var(--radius) 0 var(--radius);
  font-family: var(--ff); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: 0;
  transition: background-color .3s var(--ease), border-radius .35s var(--ease);
}
html #ccb-banner .ccb-accept:is(:hover, :focus) { background: var(--c-blue-dark); opacity: 1; border-radius: var(--radius) 0 var(--radius) 0; }
/* Con la barra de acciones del celular a la vista, el aviso flota encima de ella */
@media (max-width: 781px) { html:has(.mbar.is-visible) { --ccb-bottom-gap: calc(64px + 12px); } }
@media (min-width: 782px) and (max-width: 1199px) { html:has(.mbar.is-visible) #ccb-banner { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); } }

/* Gravity Forms (Contact): mismos campos y botón que el formulario del diseño.
   El tema Orbital de Gravity Forms se maneja con variables; lo que no cubren va con !important. */
.contact .gform_wrapper.gform-theme {
  --gf-color-primary: var(--c-blue-strong); --gf-color-primary-darker: var(--c-blue-dark); --gf-color-primary-contrast: var(--c-white);
  --gf-ctrl-border-color: var(--c-sand); --gf-ctrl-border-color-focus: var(--c-blue); --gf-ctrl-bg-color: var(--c-white); --gf-ctrl-color: var(--c-ink);
  --gf-ctrl-radius: 0 var(--radius) 0 var(--radius); --gf-ctrl-font-size: 1rem; --gf-ctrl-size: 54px; --gf-ctrl-padding-x: 16px;
  --gf-ctrl-label-color-primary: var(--c-navy); --gf-ctrl-label-font-size-primary: .9375rem; --gf-ctrl-label-font-weight-primary: 500;
  --gf-ctrl-label-color-req: var(--c-blue-ink); --gf-ctrl-choice-check-color: var(--c-white); --gf-form-gap-y: 18px; --gf-form-gap-x: 18px;
  --gf-ctrl-shadow: none; --gf-ctrl-outline-color-focus: rgba(93, 127, 151, .25);
  font-family: var(--ff);
}
.contact .gform_wrapper.gform-theme :is(input[type="text"], input[type="tel"], input[type="email"], select, textarea) { border-radius: 0 var(--radius) 0 var(--radius) !important; font-family: var(--ff) !important; }
.contact .gform_wrapper.gform-theme textarea { min-height: 150px; resize: vertical; }
.contact .gform_wrapper.gform-theme .opd-consent label { font-size: .875rem !important; line-height: 1.5 !important; font-weight: 400 !important; color: var(--c-ink) !important; }
.contact .gform_wrapper.gform-theme .opd-consent a { color: var(--c-navy); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.contact .gform_wrapper.gform-theme .gform_footer .gform_button {
  min-height: 56px !important; padding: 12px 26px !important; font-family: var(--ff) !important; font-weight: 600 !important; font-size: 1rem !important; line-height: 1.2 !important;
  text-transform: uppercase; color: var(--c-white) !important; background: var(--c-blue-strong) !important; border: 0 !important; box-shadow: none !important;
  border-radius: 0 var(--radius) 0 var(--radius) !important; transition: background-color .3s var(--ease), border-radius .3s var(--ease);
}
.contact .gform_wrapper.gform-theme .gform_footer .gform_button:hover { background: var(--c-blue-dark) !important; border-radius: var(--radius) 0 var(--radius) 0 !important; }

/* Blog: índice y entradas (copy del sitio anterior), en la columna de lectura de las Hide & Keep */
.opd-blog #sidebar, .opd-blog #comment-wrap, .opd-blog .post-meta .author, .opd-blog .et_post_meta_wrapper img { display: none; }
.opd-blog #left-area { padding-bottom: 0; }
.opd-blog :is(.opd-blog__title, h1.entry-title) { font-family: var(--ff-display); font-weight: 400; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; color: var(--c-brown-dark); padding: 0; }
.opd-blog .post-meta { margin-top: 10px; padding: 0; font-size: .9375rem; color: var(--c-blue-ink); }
.opd-blog.single .entry-content { margin-top: 28px; padding: 0; }
.opd-blog #left-area article.et_pb_post { margin: 0; }
.opd-blog.blog #left-area article.et_pb_post, .opd-blog.archive #left-area article.et_pb_post { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--c-brown-mid); font-size: 1.0625rem; line-height: 1.7; color: var(--c-ink); }
.opd-blog h2.entry-title { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); line-height: 1.2; letter-spacing: -.02em; padding: 0; }
.opd-blog h2.entry-title a { color: var(--c-navy); }
.opd-blog h2.entry-title a:hover { color: var(--c-blue-ink); text-decoration: underline; text-underline-offset: 4px; }
.opd-blog article.et_pb_post > .post-meta { margin-bottom: 12px; }
.opd-blog .pagination { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--c-brown-mid); }
.opd-blog .pagination a { color: var(--c-blue-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
