/* ==================================================================
   Top Team — Tema 2
   Requiere: Bootstrap 4.5, MDB 4.19, Chosen, Owl Carousel, Font Awesome
   ================================================================== */

:root {
    --tt-red: #C1002F;
    --tt-red-dark: #8f0023;
    --tt-red-soft: #fbe9ed;
    --tt-ink: #16181d;
    --tt-ink-2: #23262e;
    --tt-text: #4a4f5a;
    --tt-muted: #8a8f99;
    --tt-line: #e7e8eb;
    --tt-bg: #f6f5f3;
    --tt-white: #ffffff;
    --tt-radius: 14px;
    --tt-shadow: 0 10px 30px rgba(22, 24, 29, .08);
    --tt-shadow-lg: 0 24px 60px rgba(22, 24, 29, .16);
    --tt-serif: "Playfair Display", Georgia, serif;
    --tt-sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base (sobrescribe tipografía de MDB) ---------- */
body {
    font-family: var(--tt-sans);
    color: var(--tt-text);
    background: var(--tt-white);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { color: var(--tt-ink); font-weight: 600; }
a { color: var(--tt-red); transition: color .2s; }
a:hover { color: var(--tt-red-dark); text-decoration: none; }
img { max-width: 100%; }

.tt-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tt-red);
    margin-bottom: 12px;
}
.tt-title {
    font-family: var(--tt-serif);
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.15;
    margin-bottom: 14px;
}
.tt-lead { font-size: 18px; color: var(--tt-muted); max-width: 560px; }
.tt-section { padding: 96px 0; }
.tt-section-head { margin-bottom: 48px; }
.tt-section-head.d-md-flex { align-items: flex-end; justify-content: space-between; }

/* ---------- Botones ---------- */
.tt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 28px;
    border: 2px solid var(--tt-red);
    border-radius: 999px;
    background: var(--tt-red);
    color: var(--tt-white);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.tt-btn:hover { background: var(--tt-red-dark); border-color: var(--tt-red-dark); color: var(--tt-white); transform: translateY(-1px); }
.tt-btn-ghost { background: transparent; color: var(--tt-ink); border-color: var(--tt-line); }
.tt-btn-ghost:hover { background: var(--tt-ink); border-color: var(--tt-ink); color: var(--tt-white); }
.tt-btn-light { background: var(--tt-white); border-color: var(--tt-white); color: var(--tt-red); }
.tt-btn-light:hover { background: transparent; color: var(--tt-white); border-color: var(--tt-white); }
.tt-btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Header ---------- */
.tt-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.tt-header.is-scrolled { border-color: var(--tt-line); box-shadow: 0 4px 20px rgba(22, 24, 29, .05); }
.tt-header .container { display: flex; align-items: center; height: 84px; }
.tt-logo img { height: 52px; width: auto; }
.tt-nav { margin-left: auto; }
.tt-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.tt-nav a {
    display: block;
    padding: 8px 14px;
    color: var(--tt-ink);
    font-weight: 500;
    font-size: 15px;
    border-radius: 999px;
}
.tt-nav a:hover { color: var(--tt-red); }
.tt-nav a.current { background: var(--tt-red-soft); color: var(--tt-red); }
.tt-header-cta { margin-left: 20px; }
.tt-burger {
    display: none;
    margin-left: auto;
    width: 46px; height: 46px;
    border: 1px solid var(--tt-line);
    border-radius: 50%;
    background: var(--tt-white);
    color: var(--tt-ink);
    font-size: 18px;
}

/* Menú móvil */
.tt-drawer {
    position: fixed;
    inset: 0;
    z-index: 1050;
    visibility: hidden;
}
.tt-drawer-backdrop { position: absolute; inset: 0; background: rgba(22, 24, 29, .5); opacity: 0; transition: opacity .3s; }
.tt-drawer-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 86vw);
    background: var(--tt-white);
    padding: 28px;
    transform: translateX(100%);
    transition: transform .3s;
    display: flex;
    flex-direction: column;
}
.tt-drawer.is-open { visibility: visible; }
.tt-drawer.is-open .tt-drawer-backdrop { opacity: 1; }
.tt-drawer.is-open .tt-drawer-panel { transform: none; }
.tt-drawer-close { align-self: flex-end; background: none; border: 0; font-size: 22px; color: var(--tt-ink); }
.tt-drawer ul { list-style: none; padding: 0; margin: 24px 0; }
.tt-drawer li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--tt-line); color: var(--tt-ink); font-size: 18px; font-weight: 500; }
.tt-drawer li a.current { color: var(--tt-red); }
.tt-drawer-contact { margin-top: auto; font-size: 15px; }
.tt-drawer-contact a { display: block; color: var(--tt-text); margin-bottom: 8px; }

/* ---------- Hero ---------- */
.tt-hero {
    position: relative;
    padding: 56px 0 170px;
    background: var(--tt-bg);
    overflow: hidden;
}
.tt-hero h1 {
    font-family: var(--tt-serif);
    font-size: clamp(40px, 5.4vw, 72px);
    line-height: 1.05;
    font-weight: 600;
    margin-bottom: 22px;
}
.tt-hero h1 em { font-style: italic; color: var(--tt-red); }
.tt-hero-copy { padding-top: 40px; padding-bottom: 40px; }
.tt-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tt-hero-media {
    position: relative;
    height: 100%;
    min-height: 460px;
    border-radius: 220px 220px var(--tt-radius) var(--tt-radius);
    background-size: cover;
    background-position: center;
    box-shadow: var(--tt-shadow-lg);
}

/* ---------- Buscador ---------- */
.tt-search {
    position: relative;
    z-index: 5;
    margin-top: -120px;
}
.tt-search-card {
    background: var(--tt-white);
    border-radius: 20px;
    box-shadow: var(--tt-shadow-lg);
    padding: 28px 28px 30px;
}
.tt-search-tabs {
    display: inline-flex;
    padding: 5px;
    margin-bottom: 22px;
    background: var(--tt-bg);
    border-radius: 999px;
}
.tt-search-tabs label {
    margin: 0;
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    color: var(--tt-text);
    cursor: pointer;
    transition: background .2s, color .2s;
}
.tt-search-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tt-search-tabs label.active { background: var(--tt-ink); color: var(--tt-white); }
.tt-field-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tt-muted); margin-bottom: 6px; }
.tt-search .form-row > [class*="col-"] { margin-bottom: 16px; }
.tt-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--tt-line);
    border-radius: 12px;
    background: var(--tt-white);
    color: var(--tt-ink);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.tt-input:focus { outline: 0; border-color: var(--tt-red); box-shadow: 0 0 0 4px var(--tt-red-soft); }
.tt-input-unit { position: relative; }
.tt-input-unit::after {
    content: attr(data-unit);
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--tt-muted);
    pointer-events: none;
}
.tt-search-actions { display: flex; gap: 10px; }
.tt-search-actions .tt-btn { flex: 1; }

/* Chosen con el estilo del tema */
.tt-search .chosen-container { font-size: 15px; }
.tt-search .chosen-container-single .chosen-single {
    height: 52px;
    line-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--tt-line);
    border-radius: 12px;
    background: var(--tt-white);
    box-shadow: none;
    color: var(--tt-ink);
}
.tt-search .chosen-container-single .chosen-single span { margin-right: 24px; }
.tt-search .chosen-container-single .chosen-single div { right: 10px; }
.tt-search .chosen-container-single .chosen-single div b { background-position: 0 15px; }
.tt-search .chosen-container-active.chosen-with-drop .chosen-single { border-color: var(--tt-red); border-radius: 12px 12px 0 0; background: var(--tt-white); }
.tt-search .chosen-container-active.chosen-with-drop .chosen-single div b { background-position: -18px 15px; }
.tt-search .chosen-container .chosen-drop { border-color: var(--tt-red); border-radius: 0 0 12px 12px; box-shadow: var(--tt-shadow); }
.tt-search .chosen-container .chosen-results li { padding: 9px 14px; }
.tt-search .chosen-container .chosen-results li.highlighted { background: var(--tt-red); }

/* ---------- Tipos de propiedad ---------- */
.tt-types { padding-top: 88px; }
.tt-type {
    position: relative;
    display: block;
    height: 100%;
    padding: 30px 26px;
    border: 1px solid var(--tt-line);
    border-radius: var(--tt-radius);
    background: var(--tt-white);
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.tt-type:hover { border-color: transparent; box-shadow: var(--tt-shadow); transform: translateY(-4px); }
.tt-type-icon {
    width: 58px; height: 58px;
    display: grid; place-items: center;
    border-radius: 16px;
    background: var(--tt-red-soft);
    color: var(--tt-red);
    font-size: 24px;
    margin-bottom: 22px;
    transition: background .25s, color .25s;
}
.tt-type:hover .tt-type-icon { background: var(--tt-red); color: var(--tt-white); }
.tt-type h3 { font-size: 22px; margin-bottom: 18px; }
.tt-type-links { display: flex; gap: 8px; }
.tt-type-links a {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    border-radius: 999px;
    background: var(--tt-bg);
    color: var(--tt-ink);
    font-size: 14px;
    font-weight: 600;
}
.tt-type-links a:hover { background: var(--tt-ink); color: var(--tt-white); }

/* ---------- Tarjeta de propiedad ---------- */
.tt-listings { background: var(--tt-bg); }
.tt-card {
    background: var(--tt-white);
    border-radius: var(--tt-radius);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(22, 24, 29, .04);
    transition: box-shadow .25s, transform .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.tt-card:hover { box-shadow: var(--tt-shadow-lg); transform: translateY(-4px); }
.tt-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tt-line); }
.tt-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tt-card:hover .tt-card-media img { transform: scale(1.05); }
.tt-card-badge {
    position: absolute;
    top: 16px; left: 16px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--tt-white);
    color: var(--tt-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.tt-card-badge.is-rent { background: var(--tt-ink); color: var(--tt-white); }
.tt-card-code {
    position: absolute;
    top: 16px; right: 16px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(22, 24, 29, .55);
    color: var(--tt-white);
    font-size: 12px;
}
.tt-card-body { padding: 22px 24px 8px; flex: 1; }
.tt-card-price { font-family: var(--tt-serif); font-variant-numeric: lining-nums; font-size: 26px; font-weight: 700; color: var(--tt-red); margin-bottom: 6px; }
.tt-card-price small { font-family: var(--tt-sans); font-size: 13px; font-weight: 600; color: var(--tt-muted); }
.tt-card-title { font-family: var(--tt-sans); font-size: 18px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.tt-card-title a { color: var(--tt-ink); }
.tt-card-title a:hover { color: var(--tt-red); }
.tt-card-address { font-size: 14px; color: var(--tt-muted); margin: 0; }
.tt-card-address i { color: var(--tt-red); margin-right: 6px; }
.tt-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 18px 24px 0;
    padding: 16px 0 20px;
    border-top: 1px solid var(--tt-line);
}
.tt-card-features { display: flex; gap: 16px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--tt-ink); font-weight: 500; }
.tt-card-features i { color: var(--tt-muted); margin-right: 5px; }
.tt-card-more {
    width: 40px; height: 40px;
    flex: 0 0 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--tt-red-soft);
    color: var(--tt-red);
}
.tt-card:hover .tt-card-more { background: var(--tt-red); color: var(--tt-white); }

/* Owl Carousel */
.tt-carousel .owl-stage { display: flex; }
.tt-carousel .owl-item { display: flex; padding: 6px 0 14px; }
.tt-carousel .owl-item > div { width: 100%; }
.tt-carousel-nav { display: flex; gap: 10px; }
.tt-carousel-nav button {
    width: 52px; height: 52px;
    border: 1px solid var(--tt-line);
    border-radius: 50%;
    background: var(--tt-white);
    color: var(--tt-ink);
    transition: background .2s, color .2s;
}
.tt-carousel-nav button:hover { background: var(--tt-ink); color: var(--tt-white); }
.tt-carousel .owl-dots { text-align: center; margin-top: 24px; }
.tt-carousel .owl-dot span { display: block; width: 8px; height: 8px; margin: 0 4px; border-radius: 4px; background: #cfd1d6; transition: width .2s, background .2s; }
.tt-carousel .owl-dot.active span { width: 26px; background: var(--tt-red); }

/* ---------- Nosotros ---------- */
.tt-about-media { position: relative; border-radius: var(--tt-radius); overflow: hidden; aspect-ratio: 5 / 4; background-size: cover; background-position: center; }
.tt-about-stamp {
    position: absolute;
    right: 24px; bottom: 24px;
    padding: 20px 24px;
    background: var(--tt-red);
    color: var(--tt-white);
    border-radius: var(--tt-radius);
    max-width: 240px;
}
.tt-about-stamp strong { display: block; font-family: var(--tt-serif); font-size: 24px; line-height: 1.2; }
.tt-allies { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 32px; }
.tt-allies li {
    padding: 7px 14px;
    border: 1px solid var(--tt-line);
    border-radius: 999px;
    font-size: 14px;
    color: var(--tt-ink);
}
.tt-allies li i { color: var(--tt-red); margin-right: 6px; }

/* ---------- CTA ---------- */
.tt-cta {
    position: relative;
    padding: 64px 56px;
    border-radius: 24px;
    background: linear-gradient(115deg, rgba(143, 0, 35, .96), rgba(193, 0, 47, .82)), var(--tt-cta-bg) center / cover;
    color: var(--tt-white);
    overflow: hidden;
}
.tt-cta h2 { font-family: var(--tt-serif); color: var(--tt-white); font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 10px; }
.tt-cta p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 17px; }
.tt-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- Footer ---------- */
.tt-footer { margin-top: 96px; background: var(--tt-ink); color: rgba(255, 255, 255, .66); padding: 72px 0 0; font-size: 15px; }
.tt-footer h4 { color: var(--tt-white); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.tt-footer a { color: rgba(255, 255, 255, .8); }
.tt-footer a:hover { color: var(--tt-white); }
.tt-footer-logo { display: inline-block; padding: 12px 16px; background: var(--tt-white); border-radius: 12px; margin-bottom: 22px; }
.tt-footer-logo img { height: 52px; }
.tt-footer ul { list-style: none; padding: 0; margin: 0; }
.tt-footer ul li { margin-bottom: 10px; }
.tt-footer-contact i { width: 22px; color: var(--tt-red); }
.tt-social { display: flex; gap: 10px; margin-top: 20px; }
.tt-social a {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--tt-ink-2);
    color: var(--tt-white);
}
.tt-social a:hover { background: var(--tt-red); }
.tt-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 56px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
}

/* ---------- Botón WhatsApp flotante ---------- */
.tt-whatsapp {
    position: fixed;
    right: 24px; bottom: 24px;
    z-index: 1040;
    width: 60px; height: 60px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
    transition: transform .2s;
}
.tt-whatsapp:hover { color: #fff; transform: scale(1.08); }

/* ==================================================================
   Páginas internas
   ================================================================== */

/* ---------- Encabezado de página ---------- */
.tt-pagehead { position: relative; padding: 64px 0 72px; background: var(--tt-bg); overflow: hidden; }
.tt-pagehead::after {
    content: "";
    position: absolute;
    right: -120px; top: -120px;
    width: 420px; height: 420px;
    border-radius: 50%;
    border: 70px solid var(--tt-red-soft);
    pointer-events: none;
}
.tt-pagehead .container { position: relative; z-index: 1; }
.tt-pagehead h1 { font-family: var(--tt-serif); font-size: clamp(36px, 4.6vw, 58px); line-height: 1.08; margin-bottom: 14px; }
.tt-pagehead h1 em { font-style: italic; color: var(--tt-red); }
.tt-pagehead.has-search { padding-bottom: 150px; }
.tt-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--tt-muted); }
.tt-breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #c4c6cc; }
.tt-breadcrumb a { color: var(--tt-text); }
.tt-breadcrumb a:hover { color: var(--tt-red); }

/* Buscador dentro de páginas internas */
.tt-search.is-inner { margin-top: -110px; }

/* ---------- Barra de resultados ---------- */
.tt-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.tt-toolbar-count { margin: 0; color: var(--tt-muted); }
.tt-toolbar-count strong { color: var(--tt-ink); }
.tt-view-switch { display: inline-flex; padding: 4px; background: var(--tt-bg); border-radius: 999px; }
.tt-view-switch button {
    width: 42px; height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--tt-muted);
}
.tt-view-switch button.active { background: var(--tt-white); color: var(--tt-ink); box-shadow: 0 2px 6px rgba(22, 24, 29, .08); }

/* Cuadrícula de tarjetas y vista de lista */
.tt-grid > [class*="col-"] { margin-bottom: 30px; }
.tt-card-features { flex-wrap: wrap; row-gap: 6px; }
.tt-card-media .tt-card-type {
    position: absolute;
    left: 16px; bottom: 16px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--tt-red);
    color: var(--tt-white);
    font-size: 12px;
    font-weight: 600;
}
@media (min-width: 768px) {
    .tt-grid.is-list > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
    .tt-grid.is-list .tt-card { flex-direction: row; }
    .tt-grid.is-list .tt-card-media { flex: 0 0 340px; aspect-ratio: auto; min-height: 240px; }
    .tt-grid.is-list .tt-card-content { flex: 1; display: flex; flex-direction: column; }
}
.tt-card-content { display: flex; flex-direction: column; flex: 1; }

/* Tarjeta grande (desarrollos): una por fila, foto a ~2/3 del ancho */
.tt-card.is-large .tt-card-media { aspect-ratio: 4 / 3; }
.tt-card.is-large .tt-card-body { padding: 26px 28px 8px; }
.tt-card.is-large .tt-card-footer { margin: 18px 28px 0; }
.tt-card.is-large .tt-card-title { font-family: var(--tt-serif); font-size: 26px; }
@media (min-width: 992px) {
    .tt-card.is-large { flex-direction: row; }
    .tt-card.is-large .tt-card-media { flex: 0 0 64%; aspect-ratio: auto; height: 520px; }
    .tt-card.is-large .tt-card-content { justify-content: center; }
    .tt-card.is-large .tt-card-body { flex: 0 0 auto; padding: 40px 40px 8px; }
    .tt-card.is-large .tt-card-footer { margin: 22px 40px 0; padding-bottom: 40px; }
    .tt-card.is-large .tt-card-price { font-size: 34px; }
    .tt-card.is-large .tt-card-title { font-size: 30px; line-height: 1.2; margin-bottom: 12px; }
    .tt-dev-col:nth-of-type(even) .tt-card.is-large { flex-direction: row-reverse; }
}

/* ---------- Paginación (vista pagination::bootstrap-4 de Laravel) ---------- */
.tt-pagination .pagination { justify-content: center; gap: 6px; margin: 16px 0 0; }
.tt-pagination .page-item .page-link {
    min-width: 46px; height: 46px;
    display: grid; place-items: center;
    padding: 0 12px;
    border: 1px solid var(--tt-line);
    border-radius: 999px !important;
    background: var(--tt-white);
    color: var(--tt-ink);
    font-weight: 600;
    box-shadow: none;
}
.tt-pagination .page-item .page-link:hover { background: var(--tt-bg); color: var(--tt-red); }
.tt-pagination .page-item.active .page-link { background: var(--tt-red); border-color: var(--tt-red); color: var(--tt-white); }
.tt-pagination .page-item.disabled .page-link { color: #c4c6cc; }

/* ---------- Estado vacío ---------- */
.tt-empty { padding: 64px 24px; text-align: center; border: 1px dashed var(--tt-line); border-radius: var(--tt-radius); }
.tt-empty i { font-size: 34px; color: var(--tt-red); margin-bottom: 16px; }

/* ---------- Nosotros ---------- */
.tt-intro-logo { display: inline-block; padding: 18px 24px; background: var(--tt-white); border-radius: var(--tt-radius); box-shadow: var(--tt-shadow); margin-bottom: 26px; }
.tt-intro-logo img { height: 74px; }
.tt-pillar {
    height: 100%;
    padding: 40px 36px;
    border-radius: 20px;
    background: var(--tt-white);
    border: 1px solid var(--tt-line);
}
.tt-pillar.is-dark { background: var(--tt-ink); border-color: var(--tt-ink); color: rgba(255, 255, 255, .74); }
.tt-pillar.is-dark h3 { color: var(--tt-white); }
.tt-pillar-num { font-family: var(--tt-serif); font-size: 15px; font-style: italic; color: var(--tt-red); margin-bottom: 18px; display: block; }
.tt-pillar h3 { font-family: var(--tt-serif); font-size: 30px; margin-bottom: 16px; }
.tt-pillar p { margin: 0; font-size: 17px; }
.tt-step { display: flex; gap: 18px; margin-bottom: 26px; }
.tt-step-icon {
    flex: 0 0 52px;
    height: 52px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--tt-red-soft);
    color: var(--tt-red);
    font-size: 20px;
}
.tt-step h4 { font-size: 18px; margin-bottom: 4px; }
.tt-step p { margin: 0; color: var(--tt-muted); }
.tt-ally {
    height: 100%;
    padding: 26px 22px;
    border-radius: var(--tt-radius);
    background: var(--tt-white);
    text-align: center;
    transition: box-shadow .25s, transform .25s;
}
.tt-ally:hover { box-shadow: var(--tt-shadow); transform: translateY(-3px); }
.tt-ally i { font-size: 26px; color: var(--tt-red); margin-bottom: 14px; }
.tt-ally h4 { font-size: 16px; margin: 0; }

/* ---------- Asesores ---------- */
.tt-agent-search { position: relative; max-width: 560px; margin-top: 28px; }
.tt-agent-search i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--tt-muted); }
.tt-agent-search .tt-input { height: 60px; padding-left: 52px; padding-right: 130px; border-radius: 999px; box-shadow: var(--tt-shadow); border-color: transparent; }
.tt-agent-search .tt-btn { position: absolute; right: 6px; top: 6px; height: 48px; }
.tt-agent {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--tt-radius);
    background: var(--tt-white);
    border: 1px solid var(--tt-line);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.tt-agent:hover { border-color: transparent; box-shadow: var(--tt-shadow-lg); transform: translateY(-4px); }
.tt-agent-photo { display: block; aspect-ratio: 1 / 1; background: var(--tt-bg); overflow: hidden; }
.tt-agent-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.tt-agent:hover .tt-agent-photo img { transform: scale(1.04); }
.tt-agent-body { padding: 20px 20px 8px; flex: 1; }
.tt-agent-role { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tt-red); }
.tt-agent-name { font-size: 18px; line-height: 1.3; margin: 6px 0 0; }
.tt-agent-name a { color: var(--tt-ink); }
.tt-agent-name a:hover { color: var(--tt-red); }
.tt-agent-actions { display: flex; gap: 8px; padding: 14px 20px 20px; }
.tt-agent-actions a {
    flex: 1;
    height: 42px;
    display: grid; place-items: center;
    border-radius: 999px;
    background: var(--tt-bg);
    color: var(--tt-ink);
    font-size: 15px;
}
.tt-agent-actions a:hover { background: var(--tt-red); color: var(--tt-white); }
.tt-agent-actions a.is-wa:hover { background: #25d366; }

/* ---------- Desarrollos ---------- */
.tt-dev-perks { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 24px 0 0; }
.tt-dev-perks li { display: flex; align-items: center; gap: 10px; color: var(--tt-ink); font-weight: 500; }
.tt-dev-perks i { color: var(--tt-red); }

/* ---------- Contacto ---------- */
.tt-contact-card {
    display: flex;
    gap: 18px;
    padding: 22px;
    margin-bottom: 16px;
    border: 1px solid var(--tt-line);
    border-radius: var(--tt-radius);
    background: var(--tt-white);
    transition: border-color .2s, box-shadow .2s;
}
a.tt-contact-card:hover { border-color: transparent; box-shadow: var(--tt-shadow); }
.tt-contact-card .tt-step-icon { flex-basis: 48px; height: 48px; }
.tt-contact-card small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tt-muted); }
.tt-contact-card strong { display: block; color: var(--tt-ink); font-weight: 600; font-size: 17px; line-height: 1.4; }
.tt-contact-card.is-wa .tt-step-icon { background: #e4f9ec; color: #1faa52; }
.tt-form-card { padding: 40px; border-radius: 20px; background: var(--tt-white); box-shadow: var(--tt-shadow-lg); }
.tt-form-card h2 { font-family: var(--tt-serif); font-size: 32px; margin-bottom: 6px; }
.tt-form-card .form-row > [class*="col-"] { margin-bottom: 18px; }
textarea.tt-input { height: auto; min-height: 150px; padding: 14px 16px; resize: vertical; }
.tt-input:disabled { background: var(--tt-bg); color: var(--tt-muted); }
.tt-form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.tt-form-note { font-size: 13px; color: var(--tt-muted); margin: 0; }
#contact-message:not(:empty) { margin-bottom: 18px; padding: 14px 18px; border-radius: 12px; background: var(--tt-red-soft); color: var(--tt-red-dark); }
.tt-map { position: relative; height: 420px; border-radius: 20px; overflow: hidden; background: var(--tt-bg); }
.tt-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35); }
.tt-map-label {
    position: absolute;
    left: 24px; top: 24px;
    max-width: 300px;
    padding: 20px 22px;
    border-radius: var(--tt-radius);
    background: var(--tt-white);
    box-shadow: var(--tt-shadow);
}
.tt-map-label h3 { font-family: var(--tt-serif); font-size: 22px; margin-bottom: 6px; }
.tt-map-label p { margin: 0 0 10px; font-size: 15px; }

/* ---------- Detalle de propiedad ---------- */
.tt-detail-head { padding: 40px 0 28px; }
.tt-detail-head h1 { font-family: var(--tt-serif); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; margin-bottom: 12px; }
.tt-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tt-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--tt-bg);
    color: var(--tt-ink);
    font-size: 13px;
    font-weight: 600;
}
.tt-tag.is-red { background: var(--tt-red); color: var(--tt-white); }
.tt-detail-address { margin: 0; color: var(--tt-muted); }
.tt-detail-address i { color: var(--tt-red); margin-right: 6px; }
.tt-detail-price { text-align: right; }
.tt-detail-price strong { display: block; font-family: var(--tt-serif); font-variant-numeric: lining-nums; font-size: clamp(30px, 3.4vw, 42px); color: var(--tt-red); line-height: 1.1; }
.tt-detail-price span { font-size: 14px; color: var(--tt-muted); }
.tt-detail-tools { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.tt-icon-btn {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 1px solid var(--tt-line);
    border-radius: 50%;
    background: var(--tt-white);
    color: var(--tt-ink);
}
.tt-icon-btn:hover { background: var(--tt-ink); border-color: var(--tt-ink); color: var(--tt-white); }

/* Galería (Magnific Popup) */
.tt-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 230px 230px;
    gap: 10px;
    border-radius: 20px;
    overflow: hidden;
}
.tt-gallery a { position: relative; display: block; overflow: hidden; background: var(--tt-line); }
.tt-gallery a:first-child { grid-row: span 2; }
.tt-gallery a:nth-child(n+6) { display: none; }
.tt-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; }
.tt-gallery a:hover img { transform: scale(1.04); opacity: .92; }
.tt-gallery-all {
    position: absolute;
    right: 18px; bottom: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--tt-white);
    color: var(--tt-ink);
    font-weight: 700;
    font-size: 14px;
    box-shadow: var(--tt-shadow);
}
.tt-gallery-all:hover { background: var(--tt-ink); color: var(--tt-white); }
.mfp-bg { background: var(--tt-ink); opacity: .94; }
.mfp-counter { font-family: var(--tt-sans); }

/* Contenido */
.tt-detail-body { padding: 48px 0 24px; }
.tt-detail-block { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--tt-line); }
.tt-detail-block:last-child { border-bottom: 0; margin-bottom: 0; }
.tt-detail-block > h2 { font-family: var(--tt-serif); font-size: 28px; margin-bottom: 22px; }
.tt-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.tt-features li { padding: 18px; border-radius: var(--tt-radius); background: var(--tt-bg); }
.tt-features i { display: block; font-size: 20px; color: var(--tt-red); margin-bottom: 12px; }
.tt-features strong { display: block; font-size: 22px; color: var(--tt-ink); line-height: 1.2; }
.tt-features span { font-size: 13px; color: var(--tt-muted); }
.tt-prose { font-size: 16px; line-height: 1.75; }
.tt-prose h3 { font-family: var(--tt-sans); font-size: 17px; font-weight: 700; margin: 26px 0 10px; }
.tt-prose ul { padding-left: 0; list-style: none; }
.tt-prose ul li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.tt-prose ul li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 1px; font-size: 13px; color: var(--tt-red); }
.tt-prose.is-collapsed { max-height: 340px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.tt-more-toggle { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--tt-red); font-weight: 700; }
.tt-detail-map { height: 380px; border-radius: 20px; overflow: hidden; background: var(--tt-bg); }
.tt-detail-map iframe { width: 100%; height: 100%; border: 0; }

/* Barra lateral del asesor */
.tt-sidebar { position: sticky; top: 108px; }
.tt-agent-box { padding: 28px; border-radius: 20px; background: var(--tt-white); box-shadow: var(--tt-shadow-lg); }
.tt-agent-mini { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.tt-agent-mini img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--tt-bg); }
.tt-agent-mini small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tt-red); }
.tt-agent-mini h3 { font-size: 18px; margin: 2px 0; }
.tt-agent-mini h3 a { color: var(--tt-ink); }
.tt-agent-mini a.phone { color: var(--tt-muted); font-size: 14px; }
.tt-btn-wa { width: 100%; background: #25d366; border-color: #25d366; }
.tt-btn-wa:hover { background: #1faa52; border-color: #1faa52; }
.tt-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; color: var(--tt-muted); font-size: 13px; }
.tt-divider::before, .tt-divider::after { content: ""; flex: 1; height: 1px; background: var(--tt-line); }
.tt-agent-box .tt-input { margin-bottom: 12px; height: 48px; }
.tt-agent-box textarea.tt-input { min-height: 110px; }
.tt-agent-box .g-recaptcha { margin-bottom: 12px; transform-origin: 0 0; }
.tt-agent-box .tt-btn { width: 100%; }

/* Barra fija de contacto en móvil */
.tt-detail-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .tt-nav a { padding: 8px 10px; font-size: 14px; }
    .tt-header-cta { display: none; }
}
@media (max-width: 991.98px) {
    .tt-nav { display: none; }
    .tt-burger { display: block; }
    .tt-hero { padding-bottom: 150px; }
    .tt-hero-copy { padding-top: 8px; padding-bottom: 32px; }
    .tt-hero-media { min-height: 340px; border-radius: 170px 170px var(--tt-radius) var(--tt-radius); }
    .tt-section { padding: 72px 0; }
    .tt-cta { padding: 44px 32px; }
    .tt-cta-actions { justify-content: flex-start; margin-top: 24px; }
    .tt-about-media { margin-bottom: 36px; }
    .tt-detail-price { text-align: left; margin-top: 18px; }
    .tt-detail-tools { justify-content: flex-start; }
    .tt-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 140px; }
    .tt-gallery a:first-child { grid-row: auto; grid-column: span 2; }
    .tt-gallery a:nth-child(n+4) { display: none; }
    .tt-sidebar { position: static; margin-top: 8px; }
    .has-detail-bar .tt-whatsapp { display: none; }
    .has-detail-bar .tt-footer { padding-bottom: 76px; }
    .tt-detail-bar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 1040;
        display: flex;
        gap: 10px;
        padding: 12px 16px;
        background: var(--tt-white);
        box-shadow: 0 -6px 24px rgba(22, 24, 29, .1);
    }
    .tt-detail-bar .tt-btn { flex: 1; height: 48px; padding: 0 12px; }
}
@media (max-width: 575.98px) {
    .tt-header .container { height: 72px; }
    .tt-logo img { height: 42px; }
    .tt-hero { padding-top: 32px; }
    .tt-hero-media { min-height: 280px; }
    .tt-search-card { padding: 20px 16px 22px; border-radius: 16px; }
    .tt-search-tabs { display: flex; width: 100%; }
    .tt-search-tabs label { flex: 1; text-align: center; padding: 9px 8px; }
    .tt-cta { padding: 36px 22px; border-radius: 18px; }
    .tt-whatsapp { right: 16px; bottom: 16px; width: 54px; height: 54px; font-size: 26px; }
    .tt-pagehead { padding: 40px 0 52px; }
    .tt-pagehead::after { width: 260px; height: 260px; border-width: 44px; right: -110px; top: -90px; }
    .tt-pillar { padding: 30px 24px; }
    .tt-detail-head { padding-top: 28px; }
    .tt-gallery { grid-template-rows: 240px 110px; border-radius: 16px; gap: 6px; }
    .tt-gallery-all { right: 12px; bottom: 12px; height: 40px; padding: 0 14px; }
    .tt-agent-box { padding: 22px 16px; border-radius: 16px; }
    .tt-form-card { padding: 26px 18px; border-radius: 16px; }
    .tt-map { height: 460px; }
    .tt-map-label { left: 12px; right: 12px; top: 12px; max-width: none; }
    .tt-agent-search .tt-input { padding-right: 20px; }
    .tt-agent-search .tt-btn { display: none; }
}
