/* ============================================================
   BASE / RESET
   Sensible defaults so every element behaves predictably.
   ============================================================ */

/* Make padding/border count INSIDE the element's width.
   This avoids a lot of "why is my layout off?" headaches. */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    background: #F3F4F6;          /* light gray dashboard backdrop */
    line-height: 1.5;
    min-height: 100vh;
    /* Stack the top-level cards vertically with breathing room
       between them; horizontal padding gives a subtle gutter
       around the cards on every screen size. */
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 640px) {
    body {
        padding: 24px;
        gap: 24px;
    }
}

/* Modal is fixed-position so flex-gap doesn't apply to it. */
.modal {
    margin: 0;
}

img {
    display: block;       /* removes the tiny gap under images */
    max-width: 100%;      /* never overflow the parent */
    height: auto;
}

ul {
    list-style: none;     /* remove default bullet points */
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}


/* ============================================================
   AGENT HEADER
   Cover banner + circular profile photo that overlaps it.
   Now a self-contained card on the gray dashboard backdrop.
   ============================================================ */
.agent-header {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
                0 1px 2px rgba(0, 0, 0, 0.08);
    overflow: hidden;             /* round the cover's top corners */
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* Slightly smaller corners on phones — keeps the card looking
   intentional rather than floaty against the screen edges. */
@media (max-width: 480px) {
    .agent-header {
        border-radius: 8px;
    }
}

/* Cover container — width-driven; height adapts to the image's
   natural aspect, capped by max-height so the banner doesn't
   dominate the page on wide desktop screens.

   How it behaves at different widths (image is a panoramic
   banner with white edges):
     - mobile (~375px):  image fits the width naturally, well below
                         max-height → shown in full, no crop, no
                         empty side margins
     - tablet (~768px):  same — natural height stays below the cap
     - desktop (1600px): natural height would exceed 320px, so
                         max-height kicks in. object-fit: contain
                         then scales the image to fit inside the
                         320px-tall box, centered horizontally. The
                         empty space on the sides shows the white
                         card background through — blends with the
                         image's own white edges. */
.agent-header__cover {
    width: 100%;
}

.agent-header__cover img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    object-position: center;
}

/* MOBILE-FIRST: stack vertically. Photo on top-left, info below. */
.agent-header__profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;       /* everything left-aligned */
    gap: 16px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px 28px;
}

/* The profile photo overlaps the cover via a negative top margin.
   Layered treatment:
     - 4px white border  → separates it from the colorful cover photo
     - 2px outer ring    → defines the circle against the white card
                           area below the cover (soft gray, barely
                           there, just enough for definition)
     - drop shadow       → lifts the photo off the card, same family
                           as the card shadows for visual consistency

   Mobile-first: smaller photo + smaller overlap so it doesn't
   eat into the cover logos (the cover is much shorter at narrow
   widths since the banner is panoramic). Desktop values
   (160px / -80px) are restored above the 640px breakpoint. */
.agent-header__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;            /* makes it a circle */
    border: 4px solid #fff;        /* white ring around it */
    object-fit: cover;
    margin-top: -32px;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;                /* don't squish when next to text */
}

@media (min-width: 640px) {
    .agent-header__photo {
        width: 160px;
        height: 160px;
        margin-top: -80px;         /* half the photo's height */
    }
}

/* Wrapper for name + company + contact (sits next to the photo on desktop) */
.agent-header__info {
    text-align: left;
}

.agent-header__name {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
}

.agent-header__company {
    color: #6b6b6b;
    margin-top: 4px;
    font-size: 1rem;
}

.agent-header__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 12px;
    color: #4a4a4a;
    font-size: 0.9rem;
}

/* Each contact item: an icon next to text, vertically centered.
   `inline-flex` is what aligns the SVG with the text baseline. */
.agent-header__contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.15s;
}

/* On hover: dim the whole item (so the brand-colored icons also
   react) and underline the text. Both signals say "clickable". */
.agent-header__contact a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Stop the SVG from being squished if the text wraps */
.agent-header__contact svg {
    flex-shrink: 0;
}

/* TABLET / DESKTOP: switch to horizontal layout (LinkedIn-style) */
@media (min-width: 640px) {
    .agent-header__profile {
        flex-direction: row;
        align-items: flex-end;     /* info baseline-aligned to bottom of photo */
        gap: 28px;
    }
    .agent-header__info {
        padding-bottom: 8px;       /* small breathing room from bottom of photo */
    }
}


/* ============================================================
   TABS NAVIGATION (Propiedades / Sobre mí)
   Lives at the bottom of the header card. The .tabs container
   has a soft top border that visually separates the tab bar
   from the profile section above. Active tab is marked by a
   bold underline.
   ============================================================ */
.tabs {
    display: flex;
    gap: 8px;
    padding: 0 24px;
    border-top: 1px solid #ececec;
}

@media (max-width: 480px) {
    .tabs {
        padding: 0 16px;
    }
}

.tab {
    padding: 14px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b6b6b;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.tab:hover {
    color: #1a1a1a;
}

.tab--active,
.tab--active:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    font-weight: 600;
}

/* Hide the inactive panel. JS toggles `hidden` on switch. */
.tab-panel[hidden] {
    display: none;
}


/* ============================================================
   CATALOG (responsive grid)
   Mobile-first: 1 column on phone, 2 on tablet, 3 on desktop.
   Lives inside <main>; vertical spacing between filter card and
   property grid is handled by flex-gap.
   ============================================================ */
.catalog {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 640px) {
    .catalog {
        gap: 24px;
    }
}

/* Filter block is now a card (white bg, rounded, soft shadow). */
.catalog__filters-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
                0 1px 2px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
}

@media (max-width: 480px) {
    .catalog__filters-card {
        border-radius: 8px;
        padding: 16px;
    }
}

/* Informational notice shown at the bottom of the filters card
   when sorting by price across mixed currencies. Hidden by
   default (max-height 0); the --visible modifier expands it
   smoothly using opacity + max-height + margin transitions. */
.catalog__currency-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #6b6b6b;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
    transition: max-height 0.25s ease,
                opacity 0.25s ease,
                margin-top 0.25s ease;
}

.catalog__currency-notice--visible {
    max-height: 96px;             /* enough for 2-3 lines on narrow screens */
    opacity: 1;
    margin-top: 14px;
}

.catalog__currency-notice svg {
    flex-shrink: 0;
    margin-top: 3px;              /* align with text baseline */
}

.catalog__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}


/* ============================================================
   FILTER CONTROLS
   "Todas" reset button + two dropdowns (property type / operation).
   Mobile-first: stack vertically full-width. Desktop: inline row.
   ============================================================ */
.catalog__filters {
    display: flex;
    flex-direction: column;     /* stack on phones — easy to tap */
    gap: 10px;
}

@media (min-width: 640px) {
    .catalog__filters {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }
}

/* ---------- "Todas" pill button ---------- */
.filter-btn {
    padding: 10px 20px;
    border-radius: 999px;        /* pill shape */
    background: #fff;
    color: #4a4a4a;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    width: 100%;                 /* full-width on mobile */
}

@media (min-width: 640px) {
    .filter-btn {
        width: auto;             /* shrink-to-fit on desktop */
    }
}

.filter-btn:hover {
    background: #f5f5f5;
    border-color: #c8c8c8;
}

/* The currently selected filter: dark, high-contrast */
.filter-btn--active,
.filter-btn--active:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* ---------- Pill-shaped dropdown ----------
   The wrap is needed so we can keep the select styled
   consistently across browsers — full-width on mobile,
   inline on desktop. */
.filter-select-wrap {
    position: relative;
    width: 100%;
}

@media (min-width: 640px) {
    .filter-select-wrap {
        width: auto;
    }
}

.filter-select {
    /* Strip the browser-default appearance so we control the look */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Match the pill button's shape and palette */
    width: 100%;
    padding: 10px 40px 10px 20px;   /* extra right padding for the chevron */
    border-radius: 999px;
    background-color: #fff;
    color: #4a4a4a;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;

    /* Inline SVG chevron — keeps the icon crisp at any size and
       avoids an extra image request. */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a4a4a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}

.filter-select:hover {
    background-color: #f5f5f5;
    border-color: #c8c8c8;
}

.filter-select:focus {
    outline: none;
    border-color: #1a1a1a;
}


/* ---------- Multi-select dropdown (ZonaProp-style) ----------
   The trigger reuses .filter-select for visual parity with the
   single-select dropdowns. The menu is absolutely positioned
   below and stays open until the user clicks outside / Esc /
   trigger again. */
.multi-select {
    position: relative;
    width: 100%;
}

@media (min-width: 640px) {
    .multi-select {
        width: auto;
    }
}

/* The trigger is a <button>, not a <select>. Buttons default to
   center-aligned text and a different baseline — override to
   match the .filter-select look exactly. */
.multi-select__trigger {
    text-align: left;
    width: 100%;
}

.multi-select__label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 4px;     /* prevent the label from kissing the chevron */
}

.multi-select__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;               /* full width of the trigger on mobile */
    min-width: 240px;       /* don't get squished on desktop */
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 20;
}

@media (min-width: 640px) {
    .multi-select__menu {
        right: auto;        /* let it grow to its min-width on desktop */
    }
}

.multi-select__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #4a4a4a;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s;
}

.multi-select__option:hover {
    background: #f5f5f5;
}

.multi-select__option--selected {
    color: #1a1a1a;
    font-weight: 600;
}

/* "Todos los tipos" sits at the top of the list, visually separated
   from the individual options. */
.multi-select__option--all {
    border-bottom: 1px solid #ececec;
    margin-bottom: 4px;
    padding-bottom: 12px;
    border-radius: 8px 8px 0 0;
}

/* The check column. Empty by default; renders a tick when selected. */
.multi-select__check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
    color: transparent;
}

.multi-select__option--selected .multi-select__check::before {
    content: "✓";
    color: #1a1a1a;
    font-weight: 700;
}

/* Default (mobile): 1 card per row */
.property-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}


/* ============================================================
   GRID STATES — loading / error / empty
   These messages span the full grid width regardless of columns.
   ============================================================ */
.grid-state {
    grid-column: 1 / -1;          /* span every column */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 16px;
    color: #6b6b6b;
    gap: 12px;
}

.grid-state__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: grid-state-spin 0.8s linear infinite;
}

@keyframes grid-state-spin {
    to { transform: rotate(360deg); }
}

.grid-state__message {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 500;
}

.grid-state__detail {
    font-size: 0.8rem;
    color: #9a9a9a;
    max-width: 480px;
    word-break: break-word;
}

.grid-state__retry {
    margin-top: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s;
}

.grid-state__retry:hover {
    background: #000;
}

/* Tablet: switch to 2 columns */
@media (min-width: 640px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: switch to 3 columns */
@media (min-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ============================================================
   PROPERTY CARD
   Each card JS will inject into .property-grid.
   ============================================================ */
.property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;             /* round the image corners too */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
                0 1px 2px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle lift on hover — just enough to read as interactive
   without bouncing under the cursor. */
.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
                0 2px 4px rgba(0, 0, 0, 0.06);
}

@media (max-width: 480px) {
    .property-card {
        border-radius: 8px;
    }
}

.property-card__image-wrap {
    position: relative;            /* so the badge can sit on top */
    aspect-ratio: 4 / 3;           /* keeps all cards the same shape */
    overflow: hidden;
}

.property-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The "Sale" / "Rent" badge floating on the image */
.property-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;          /* pill shape */
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.property-card__badge--sale {
    background: #e63946;           /* warm red */
}

.property-card__badge--rent {
    background: #2a9d8f;           /* teal */
}

/* Fallback for unrecognized operation types (e.g. "Venta - Permuta") */
.property-card__badge--neutral {
    background: #6b6b6b;
}

.property-card__body {
    padding: 16px;
}

.property-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    /* Truncate long titles to one line with "..." */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-card__location {
    color: #6b6b6b;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.property-card__price {
    font-size: 1.15rem;
    font-weight: 700;
}

/* "Ver en ZonaProp" link at the bottom of the card.
   Placeholder href="#" for now — will become a real URL once Tokko
   data is wired up (see TOKKO_INTEGRATION_TODO.md). */
.property-card__zonaprop {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a4a4a;
    text-decoration: none;
    transition: color 0.15s;
}

.property-card__zonaprop:hover {
    color: #1a1a1a;
    text-decoration: underline;
}


/* ============================================================
   MODAL (property detail overlay)
   Hidden by HTML `hidden` attribute until JS opens it.
   ============================================================ */
.modal {
    position: fixed;               /* sits over the page */
    inset: 0;                      /* top/right/bottom/left = 0 */
    z-index: 1000;                 /* above everything else */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* Without this, our `display: flex` above would override the
   browser's default `[hidden] { display: none }` rule and the
   modal would be visible on page load. */
.modal[hidden] {
    display: none;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.modal__panel {
    position: relative;            /* stacks ABOVE the backdrop */
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;              /* fit on screen, scroll if taller */
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    font-size: 1.5rem;
    line-height: 1;
    color: #1a1a1a;
    z-index: 1;
    transition: background 0.15s;
}

.modal__close:hover {
    background: #fff;
}


/* ============================================================
   MODAL CONTENT (the property detail JS will inject)
   These classes don't exist in the HTML yet — JS creates them.
   Styling them now means once JS runs, it'll look right.
   ============================================================ */

/* Horizontal swipe gallery. Each photo takes almost the full
   width and snaps to the start, so the next one peeks in to
   hint that the gallery is scrollable. */
.detail__gallery {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    scroll-snap-type: x mandatory;
    aspect-ratio: 16 / 10;
    background: #f0f0f0;          /* visible while images load */
    -webkit-overflow-scrolling: touch;
}

.detail__gallery img {
    flex: 0 0 92%;                /* leave 8% so the next photo peeks in */
    width: 92%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

/* Single-photo galleries shouldn't peek — fill the frame. */
.detail__gallery img:only-child {
    flex-basis: 100%;
    width: 100%;
}

.detail__body {
    padding: 24px;
}

.detail__title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Reference code from Tokko — small, muted, just below title */
.detail__reference {
    color: #9a9a9a;
    font-size: 0.8rem;
    margin-top: 2px;
    letter-spacing: 0.2px;
}

.detail__location {
    color: #6b6b6b;
    margin-top: 4px;
}

.detail__price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 16px;
}

.detail__features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 12px;
}

.detail__feature {
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.detail__feature-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.detail__feature-label {
    font-size: 0.8rem;
    color: #6b6b6b;
    margin-top: 2px;
}

/* Description can be huge (Tokko listings often include long
   legal disclaimers). Cap the height so the rest of the modal
   stays visible; users can scroll the description in place. */
.detail__description {
    margin-top: 20px;
    color: #4a4a4a;
    line-height: 1.7;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 8px;            /* leave room for the scroll thumb */
    white-space: pre-wrap;         /* preserve paragraph breaks */
}

/* Amenity / feature tags */
.detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

.detail__tag {
    padding: 4px 12px;
    border-radius: 999px;
    background: #f0f0f0;
    color: #4a4a4a;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Action row at the bottom of the modal:
   - Contactar (primary, dark)
   - Ver ficha completa (secondary, outlined)
   On mobile, both stretch full width and stack vertically. */
.detail__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

@media (min-width: 480px) {
    .detail__actions {
        flex-direction: row;
    }
    .detail__actions > * {
        flex: 1;
    }
}

/* Contactar button is rendered as an <a> (links to WhatsApp), so it
   needs flex centering + no underline. The WhatsApp icon sits to the
   left of the label with an 8px gap. */
.detail__contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1a1a1a;
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
    width: 100%;
}

.detail__contact-btn:hover {
    background: #000;
    color: #fff;
}

.detail__contact-btn svg {
    flex-shrink: 0;
}

.detail__public-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    padding: 13px 24px;            /* 13 to compensate the 1px border */
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
    width: 100%;
}

.detail__public-link:hover {
    background: #f5f5f5;
}


/* ============================================================
   ABOUT SECTION ("Sobre mí" tab)
   Outer .about is the card (white bg, rounded, soft shadow);
   .about__inner caps the prose to a readable column inside it.
   ============================================================ */
.about {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
                0 1px 2px rgba(0, 0, 0, 0.08);
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px 48px;
}

@media (max-width: 480px) {
    .about {
        border-radius: 8px;
        padding: 32px 20px;
    }
}

.about__inner {
    max-width: 760px;            /* comfortable reading column */
    margin: 0 auto;
}

.about__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.about__paragraph {
    color: #4a4a4a;
    line-height: 1.75;
    margin-bottom: 18px;
    font-size: 1rem;
}

/* "Especializado en:" subtitle — sits between the bio paragraphs
   and the bulleted list. Slightly bolder than body, not huge. */
.about__subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 28px;
    margin-bottom: 12px;
}

/* Bulleted list of specializations. The base `ul { list-style: none }`
   reset is overridden here so we get real disc bullets, tinted in
   a muted gray via ::marker so they don't fight the body text. */
.about__list {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 24px;
    color: #4a4a4a;
}

.about__list li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.about__list li::marker {
    color: #9a9a9a;
}

/* WhatsApp call-to-action button. Uses the existing dark
   button palette (matches .detail__contact-btn) so we don't
   introduce a new colour; the green logo signals the channel. */
.about__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 14px 28px;
    background: #1a1a1a;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.15s;
}

.about__cta:hover {
    background: #000;
}

.about__cta svg {
    flex-shrink: 0;
}

/* On phones the CTA stretches to full width so it's easy to tap. */
@media (max-width: 480px) {
    .about__cta {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}


/* ============================================================
   EMPRENDIMIENTOS FIDEZ GROUP
   Compact card grid (mirrors .property-grid) + modal slider.
   ============================================================ */

/* ---- Card grid ---- */

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

.emp-card-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
                0 1px 2px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.emp-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
                0 2px 4px rgba(0, 0, 0, 0.06);
}

.emp-card-item__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.emp-card-item__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emp-card-item__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: #1a1a1a;
}

.emp-card-item__body {
    padding: 16px;
}

.emp-card-item__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emp-card-item__location {
    color: #6b6b6b;
    font-size: 0.875rem;
}

/* ---- Modal slider ---- */

.emp-modal-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}

.emp-modal-slides {
    width: 100%;
    height: 100%;
}

.emp-modal-slide {
    width: 100%;
    height: 100%;
}

.emp-modal-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emp-modal-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
    padding-bottom: 2px;
}

.emp-modal-btn:hover { background: rgba(0, 0, 0, 0.70); }
.emp-modal-btn--prev { left: 12px; }
.emp-modal-btn--next { right: 12px; }

.emp-modal-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.emp-modal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.50);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
    flex-shrink: 0;
}

.emp-modal-dot--active { background: #fff; }

/* ---- Modal body extras ---- */

.emp-modal-brand {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9a9a9a;
    margin-bottom: 4px;
}

.emp-modal-highlights {
    display: flex;
    gap: 24px;
    padding: 14px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin: 12px 0 16px;
}

.emp-modal-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.emp-modal-highlight__value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
}

.emp-modal-highlight__label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
