@media only screen and (min-width: 768px) {
    .contact-row {
        display: block;
    }
}

/* This block is used twice on /get-in-touch/ (one per regional office),
   rendered as two separate full-width <section> siblings — Figma shows
   them side by side as two columns, not one full-width block stacked on
   top of the other. float (not inline-block: the two <section> tags have
   a newline between them in the rendered HTML, which inline-block would
   render as a real whitespace gap wide enough to push the second block
   onto its own line; float isn't whitespace-sensitive) makes each
   instance sit at half width, flowing side by side like the design. The
   element right after both (the footer) needs clear:both — see below. */
.contact-details {
    float: left;
    width: 50%;
    /* Matches tabbed-form.css's same fix above it on this page — this
       block's own .container also only had max-width:944px + auto
       margins, with no padding of its own, so at/below 944px wide (every
       mobile/tablet width) it sat flush against the edge with zero
       breathing room. */
    box-sizing: border-box;
    padding-left: 24px;
    padding-right: 24px;
    /* The global footer pulls itself up by margin-top:-10px (expecting
       whatever section precedes it to already have its own bottom
       padding to compensate) — this block had none, so the footer
       overlapped straight into the office address text instead of
       leaving a gap below it. */
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    .contact-details {
        /* One per row on mobile, not two half-width columns squeezed
           into a narrow screen. */
        width: 100%;
        float: none;
        /* A bit more breathing room before the footer specifically on
           mobile, per feedback that it read as too tight there. */
        padding-bottom: 40px;
    }
}

/* The two floated .contact-details sections above need something right
   after them to clear the float, or the footer would try to flow up
   beside them instead of starting below both. */
.page-id-954 footer {
    clear: both;
}

/* Each .contact-details section floats at 50% of the FULL viewport width
   with nothing capping it — unlike every other section on this page
   (tabbed-form, the "Oficinas regionales" title), which sit inside a
   max-width:944px container centered with auto margins. Below ~944px wide
   that's invisible (50% is already narrower than the cap), but past it the
   two cards keep stretching with the window, leaving the short address/
   email lines looking lost in an oversized half instead of lining up with
   the 944px column the rest of the page uses. Pin each card to a fixed
   472px (half of 944) and center the pair as a unit, the same width the
   form/title above already use, instead of letting them track the
   viewport. The two sections have no shared wrapper to center as a group,
   so the first one's left margin does the centering and the second
   (selected via adjacency, since both share the same .contact-details
   class with nothing else to tell them apart) just sits flush after it. */
@media (min-width: 992px) {
    .contact-details:has(+ .contact-details) {
        width: 472px;
        float: left;
        margin-left: calc(50% - 472px);
    }

    .contact-details + .contact-details {
        width: 472px;
        float: left;
        margin-left: 0;
    }
}

/* Styles the email row (the "links" repeater — icon + link, pre-existing
   ACF field, previously used for a phone+email pair in the old content)
   to match the address row below it: same icon size, same font, same
   gap, just with the field's own mail icon instead of the location pin. */
.contact-details .links .contact-tb ul {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.contact-details .links .contact-tb ul li {
    display: block;
    width: auto;
}

.contact-details .links .contact-tb img.contact-tb {
    width: 20px;
    height: auto;
    margin-top: 2px;
}

.contact-details .links .contact-tb a {
    font-family: "Alright Sans", Verdana, sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 26px;
    color: #030405;
    text-decoration: none;
}

.contact-details .links .contact-tb a:hover {
    text-decoration: underline;
}

@media (min-width: 992px) {
    .col-md-7 {
        width: 58.33333333%;
    }
}


@media (min-width: 992px) {
    .col-md-5 {
        width: 41.66666667%;
    }
}

/* The México office card has an email row (.links) AND an address row
   (.content-container) — col-md-5/col-md-7 split those side by side into
   two narrow columns. Puerto Rico has no email, so its card only renders
   the address column, full width. Side by side, that made the two cards
   look lopsided: México's address got squeezed into ~42% width and wrapped
   to 3 lines, while Puerto Rico's sat in a clean single column. Stacking
   email above address (instead of side by side) inside each card keeps
   both cards visually symmetric regardless of whether the email row is
   present. */
.contact-details .contact-row .links.col-md-5 {
    width: 100%;
    float: none;
}

.contact-details .contact-row .content-container.col-md-7 {
    width: 100%;
    float: none;
}

.text.contact-tb li {
    display: inline-block;
    vertical-align: top;
}

/* .text-container li, .text.contact-tb li {
    display: inline-block;
    vertical-align: top;
}*/

.contact-tb li {
    display: inline-block;
}

.text-container li:last-child, .contact-tb li:last-child {
    width: calc(100% - 40px);
}

.contact-tb li:first-child {
    width: 20px;
    margin-right: 10px;
}

/*.text-container li:first-child, .contact-tb li:first-child {
    width: 20px;
    margin-right: 10px;
}*/

@media (max-width: 768px){
    .contact-details .block-title {
        text-align: left !important;
        /* margin-bottom: 8px !important; */
        margin-bottom: 12px !important;
    }
    .contact-details{
        margin-top: 35px !important;
    }
    .contact-tb ul:first-child{
        margin-bottom: 16px !important;
    }
    .contact-row .links{
        margin-bottom: 16px !important;
    }
    .contact-tb ul li img,
    .text-container ul li img{
        width: 20px;
    }
    .contact-tb li:first-child {
        margin-right: 16px !important;
    }
    .text-container ul li{
        margin-right: 5px;
    }
}