/* ==============================================
   VARIABLES GLOBALES
   ============================================== */
:root {
    --color-bg-white: #FFFFFF;
    --color-bg-light: #F8F9FA;
    --color-bg-soft: #F0F2F5;
    
    --color-text-dark: #222222;
    --color-text-soft: #555555;
    
    --color-accent: #b62a33;
    --color-primary: #b62a33; /* alias de --color-accent */

    --font-headings: 'Montserrat', sans-serif;
    --font-paragraphs: 'Inter', sans-serif;

    --radius-pill: 50px;
    --radius-card: 16px;
    --shadow-soft: 0 15px 35px rgba(34, 34, 34, 0.08);
    --shadow-header: 0 4px 20px rgba(34, 34, 34, 0.05);

    --container-width: 80%;
    --container-max-width: 1600px;
    --section-padding-vertical: 15vh; 
}

/* ==============================================
   RESET & ESTILOS BASE
   ============================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-paragraphs);
    color: var(--color-text-soft);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
    line-height: 1.15;
}
h1 { font-weight: 900; font-size: clamp(36px, 4vw, 56px); margin-bottom: 24px; }
h2 { font-weight: 700; font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 20px; }
h3 { font-weight: 700; font-size: clamp(20px, 2.5vw, 26px); margin-bottom: 16px; }
p {
    font-family: var(--font-paragraphs);
    font-size: clamp(16px, 1.5vw, 17px);
    font-weight: 400;
    margin-bottom: 20px;
}
span { font-size: inherit; font-weight: inherit; font-family: inherit; margin-bottom: 0; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}
.container-fluid { width: 100%; padding: 0 40px; margin: 0 auto; }
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mt-6 { margin-top: 64px; }
.mb-5 { margin-bottom: 48px; }
.d-inline-block { display: inline-block; }

.section-spacing { padding: var(--section-padding-vertical) 0; }
.section-bg-light { background-color: var(--color-bg-light); }
.section-bg-accent { background-color: var(--color-accent); position: relative; }

/* ==============================================
   COMPONENTES BEM (Botones)
   ============================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 24px; border-radius: var(--radius-pill);
    font-family: var(--font-paragraphs); font-size: 16px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; text-align: center;
    width: fit-content;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary {
    background-color: var(--color-accent); color: var(--color-bg-white);
    border: 2px solid var(--color-accent);
}
.btn--primary:hover { box-shadow: 0 10px 20px rgba(182, 42, 51, 0.2); }
.btn--dark {
    background-color: var(--color-text-dark); color: var(--color-bg-white);
    border: 2px solid var(--color-text-dark);
}
.btn--dark:hover { box-shadow: 0 10px 20px rgba(34, 34, 34, 0.2); }
.btn--outline {
    background-color: transparent; color: var(--color-accent);
    border: 2px solid var(--color-accent);
}
.btn--outline:hover { background-color: var(--color-accent); color: var(--color-bg-white); }

/* ==============================================
   HEADER (Top Bar & Main Nav)
   ============================================== */
.header {
    position: sticky; top: 0; z-index: 1000;
}
.top-bar {
    background-color: var(--color-accent); padding: 8px 0;
}
.top-bar__container {
    display: flex; justify-content: space-between; align-items: center;
}
.top-bar__contact, .top-bar__nav {
    display: flex; align-items: center;
}
.top-bar__link, .top-bar__nav-link, .top-bar__divider {
    color: var(--color-bg-white); font-size: 13px; font-weight: 400; margin: 0;
}
.top-bar__link { display: flex; align-items: center; gap: 8px; }
.top-bar__icon { width: 14px; height: auto; }
.top-bar__divider { margin: 0 12px; opacity: 0.6; }
.top-bar__nav-link { margin-left: 20px; opacity: 0.9; }
.top-bar__nav-link:hover { opacity: 1; text-decoration: underline; }

.main-nav {
    background-color: var(--color-bg-white); box-shadow: var(--shadow-header); padding: 15px 0;
}
.main-nav__checkbox {
    display: none;
}
.main-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}
.main-nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-dark);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, background-color 0.3s ease;
}
.main-nav__container {
    display: flex; justify-content: space-between; align-items: center;
}
.main-nav__logo {
    max-height: 64px;
    width: auto;
    height: auto;
    aspect-ratio: auto;
}
.main-nav__list {
    display: flex; gap: 24px; align-items: center;
}
.main-nav__link {
    font-family: var(--font-paragraphs); font-weight: 500; font-size: 13.2px;
    color: var(--color-text-dark); letter-spacing: 0.05em; text-transform: uppercase;
    display: flex; align-items: center;
}
.main-nav__link:hover { color: var(--color-accent); }

/* Dropdown submenus */
.main-nav__item--dropdown {
    position: relative;
}
.main-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg-white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 0 0 6px 6px;
    min-width: 220px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
    z-index: 100;
    list-style: none;
}
.main-nav__item--dropdown:hover .main-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-nav__dropdown-link {
    display: block;
    padding: 8px 20px;
    font-family: var(--font-paragraphs);
    font-size: 14.4px;
    font-weight: 500;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.main-nav__dropdown-link:hover {
    background: #f5f5f5;
    color: var(--color-primary);
}

/* ==============================================
   HERO
   ============================================== */
.hero {
    background-color: var(--color-bg-white);
    padding-top: 15vh;
    padding-bottom: 15vh;
    min-height: 75vh;
    display: flex;
    align-items: center;
}
.hero__container {
    display: flex; align-items: center; justify-content: flex-start; gap: 40px; width: 100%;
}
.hero__content {
    flex: 1; max-width: 580px;
}
.hero__subtitle {
    font-size: 20px; font-weight: 500; color: var(--color-text-dark); display: block; margin-bottom: 8px;
}
.hero__title {
    color: var(--color-text-dark); margin-bottom: 24px; font-size: clamp(36px, 4vw, 56px); line-height: 1.1;
}
.hero__slogan {
    font-family: var(--font-headings);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 18px;
    line-height: 1.25;
}
.hero__text {
    color: #1a1a1a; margin-bottom: 40px; font-size: 16px; font-weight: 400; line-height: 1.6;
}
.hero__actions {
    display: flex; gap: 16px; flex-wrap: wrap;
}

/* ==============================================
   CONCURSO DIBUJO
   ============================================== */
.contest {
    padding-top: 15vh;
    padding-bottom: 15vh;
}
.contest__container {
    display: flex; align-items: center; gap: 80px;
}
.contest__image-wrapper { flex: 0 0 45%; }
.contest__content { flex: 1; }
.contest__image {
    object-fit: cover; width: 100%; display: block; aspect-ratio: 4 / 3;
}
.contest__title { font-family: var(--font-headings); font-weight: 700; font-size: clamp(34px, 4vw, 42px); color: var(--color-text-dark); margin-bottom: 24px; line-height: 1.2; letter-spacing: -0.5px; }
.contest__text { font-size: 18px; font-weight: 300; line-height: 1.8; color: #555; margin-bottom: 32px; }
.contest__list { margin: 0 0 40px 0; list-style: none; padding: 0; }
.contest__list-item { margin-bottom: 20px; font-size: 18px; font-weight: 300; color: #555; line-height: 1.6; }
.contest__list-item strong { font-weight: 600; color: var(--color-text-dark); }
.contest__btn { padding: 10px 24px; font-weight: 600; font-size: 16px; border-radius: 50px; }

/* ==============================================
   PRESENTACIÓN
   ============================================== */
.presentation {
    background-color: var(--color-accent);
    padding: 15vh 0;
}
.presentation__inner {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.presentation__card {
    flex: 0 0 45%;
    background-color: #ffffff;
    padding: 60px 40px 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.presentation__card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    border-bottom: 32px solid #111;
    border-left: 32px solid transparent;
}
.presentation__image-side {
    flex: 0 0 55%;
    overflow: hidden;
}
.presentation__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.presentation__title {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: clamp(32px, 3.5vw, 48px);
    color: var(--color-text-dark);
    margin-bottom: 22px;
    line-height: 1.1;
}
.presentation__title .text-accent {
    color: var(--color-accent);
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    line-height: inherit;
    display: block;
}
.presentation__subtitle {
    font-family: var(--font-headings);
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-top: 30px;
    margin-bottom: 14px;
    line-height: 1.25;
}
.presentation__text {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}



/* ==============================================
   RESEÑAS (Reviews)
   ============================================== */
.reviews { background-color: #fff; padding-bottom: 0; }
.reviews__title { max-width: 800px; margin: 0 auto 45px auto; font-size: clamp(22px, 2.5vw, 34px); }
.reviews__layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

/* Tarjeta Google Business (izquierda) */
.reviews__google-card {
    flex: 0 0 170px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 18px;
    min-height: 200px;
}
.reviews__google-logo {
    width: 70px;
    margin-bottom: 10px;
}
.reviews__google-name {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
    line-height: 1.3;
}
.reviews__google-stars {
    color: #f5a623;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.reviews__google-count {
    font-size: 12px;
    color: #555;
    margin-bottom: 12px;
}
.reviews__google-write {
    font-size: 12px;
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 600;
}

/* Carrusel de reseñas (derecha) */
.reviews__carousel-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.reviews__arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}
.reviews__arrow:hover { border-color: var(--color-accent); color: var(--color-accent); }
.reviews__carousel-wrapper {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}
.reviews__carousel {
    display: flex;
    gap: 14px;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Tarjeta de reseña individual */
.review-card {
    flex: 0 0 195px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.review-card__header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.review-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    font-family: var(--font-headings);
}
.review-card__meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.review-card__author {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.review-card__g {
    display: inline-block;
    vertical-align: middle;
    margin-left: 3px;
}
.review-card__time {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}
.review-card__stars {
    color: #f5a623;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.review-card__text {
    font-size: 13px;
    color: #555;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-card__more {
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
    align-self: flex-start;
}
.reviews__actions { margin-top: 36px; }



/* ==============================================
   PROPIEDADES (Grid)
   ============================================== */
.properties__container { }
.properties__title {
    margin-bottom: 50px;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    text-transform: none;
    line-height: 1.2;
    text-align: left;
}
.properties__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.property-card {
    background-color: transparent; border-radius: 0;
    box-shadow: none; display: flex; flex-direction: column;
    overflow: visible; transition: transform 0.3s ease;
}
.property-card:hover { transform: translateY(-5px); }
.property-card__image-wrapper {
    width: 100%; aspect-ratio: 4 / 3; overflow: hidden; position: relative;
    border-radius: var(--radius-card);
}
.property-card__slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.property-card__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}
.property-card__slide.active {
    opacity: 1;
    z-index: 2;
}
.property-card__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    font-size: 14px;
}
.property-card:hover .property-card__arrow {
    opacity: 1;
}
.property-card__arrow:hover {
    background-color: var(--color-accent);
}
.property-card__arrow--prev {
    left: 15px;
}
.property-card__arrow--next {
    right: 15px;
}
.property-card__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.property-card:hover .property-card__dots {
    opacity: 1;
}
.property-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.property-card__dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}
.property-card__dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}
.property-card__badge {
    position: absolute; top: 10px; left: 10px; background-color: var(--color-accent);
    color: white; padding: 5px 15px; font-weight: 700; font-size: 12px;
    border-radius: 4px; z-index: 5;
}
.property-card__badge--reservada {
    background-color: #ef6c00;
}
.property-card__badge--vendida {
    background-color: #b62a33;
}
.property-card__content { padding: 20px 0 0 0; display: flex; flex-direction: column; flex: 1; }
.property-card__price {
    font-family: var(--font-headings); font-weight: 800; font-size: 24px;
    color: var(--color-accent); margin-bottom: 10px; display: block;
}
.property-card__title {
    font-family: var(--font-headings); font-weight: 700; font-size: 15px;
    line-height: 1.4; color: var(--color-text-dark); margin-bottom: 12px;
    min-height: 44px; text-transform: uppercase; letter-spacing: 0.3px;
}
.property-card__location { font-size: 14px; color: var(--color-text-soft); margin-bottom: 8px; line-height: 1.4; }
.property-card__features { font-size: 14px; color: var(--color-text-dark); font-weight: 700; margin-bottom: 18px; flex: 1; }
.property-card__phone {
    color: var(--color-text-dark); font-weight: 800; font-size: 15px;
    margin-bottom: 16px; display: block; text-decoration: none;
    transition: color 0.3s ease;
}
.property-card__phone:hover { color: var(--color-accent); }
.property-card__actions { display: flex; flex-direction: column; gap: 12px; }
.property-card__link {
    background-color: var(--color-accent);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 14px 28px;
    border-radius: 50px;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.15);
    border: none;
    width: 100%;
}
.property-card__link:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.25);
}
.property-card__link:active {
    transform: translateY(0);
}

/* ==============================================
   REALTORS
   ============================================== */
.realtors {
    padding-top: 0 !important;
}
.realtors__container { }
.realtors__title, .realtors__intro { max-width: 800px; margin-left: 0; margin-right: auto; text-align: left; }
.realtors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature-item__icon { width: 48px; height: 48px; margin-bottom: 20px; }
.feature-item__title { font-size: 18px; margin-bottom: 12px; }
.feature-item__text { font-size: 15px; margin-bottom: 0; }

/* ==============================================
   SELL / BUY
   ============================================== */
.sell-buy {
    padding-top: 0 !important;
}
.sell-buy__container { }
.split-row { display: flex; align-items: center; gap: 80px; }
.split-row--reverse { flex-direction: row-reverse; }
.split-row__content, .split-row__image-wrapper { flex: 1; }
.split-row__image { border-radius: var(--radius-card); box-shadow: var(--shadow-soft); width: 100%; }
.split-row__line { height: 1px; width: 100%; background-color: #b0b0b0; }
.split-row__title { font-family: var(--font-headings); font-weight: 700; font-size: clamp(24px, 3vw, 36px); color: var(--color-text-dark); margin-bottom: 20px; }
.split-row__text { font-size: 15px; line-height: 1.8; color: var(--color-text-soft); margin-bottom: 12px; }

/* ==============================================
   SERVICES
   ============================================== */
.services { background-color: var(--color-bg-white); padding-top: 0 !important; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.service-item__icon { width: 40px; height: 40px; margin-bottom: 16px; }
.service-item__title { font-size: 18px; min-height: 44px; }
.service-item__text { font-size: 14px; }

/* ==============================================
   MARKETING
   ============================================== */
.marketing {
    position: relative;
    background-image: url('../img/inmobiliaria-en-murcia-joaquin-carceles-17.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.marketing::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.55);
    z-index: -1;
}

.marketing__container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.marketing__title { 
    font-family: var(--font-headings); 
    font-weight: 700; 
    font-size: clamp(32px, 4vw, 46px); 
    color: var(--color-text-dark); 
    line-height: 1.15;
    margin-bottom: 20px; 
}

.marketing__subtitle { 
    font-family: var(--font-headings);
    font-size: clamp(18px, 2.2vw, 22px); 
    font-weight: 400; 
    color: var(--color-text-dark); 
    font-style: italic;
    margin-bottom: 24px; 
    line-height: 1.4;
}

.marketing__text { 
    font-size: 16px; 
    line-height: 1.8; 
    max-width: 600px; 
    margin: 0 0 24px 0; 
    color: var(--color-text-dark);
}

.marketing__tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 40px;
    max-width: 1100px;
    margin: 30px 0 0 0;
    padding: 0;
    list-style: none;
}

.marketing__tag {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    color: var(--color-text-soft);
    line-height: 1.5;
    text-align: left;
}

.marketing__tag::before {
    content: '•';
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--color-accent); /* Rojo corporativo */
    font-size: 18px;
    line-height: 1;
}

/* Ajuste responsivo para móviles */
@media (max-width: 768px) {
    .marketing__tags {
        grid-template-columns: 1fr;
        gap: 12px 0;
    }
}

/* ==============================================
   OBRA SOCIAL
   ============================================== */
.social-work {
    background-color: #ffffff;
    padding: 15vh 0;
}
.social-work__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}
.social-work__content {
    flex: 0 0 58%;
    text-align: left;
}
.social-work__subtitle {
    display: block;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: clamp(20px, 2vw, 24px);
    color: var(--color-accent);
    margin-bottom: 6px;
}
.social-work__title {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: clamp(28px, 3vw, 42px);
    color: var(--color-text-dark);
    margin-bottom: 24px;
    line-height: 1.15;
}
.social-work__text {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}
.social-work__logo-side {
    flex: 0 0 35%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.social-work__logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
}

/* ==============================================
   FUNDS
   ============================================== */
.funds {
    background-color: var(--color-accent);
    padding: 15vh 0;
}
.funds__inner {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.funds__card {
    flex: 0 0 45%;
    background-color: #ffffff;
    padding: 60px 40px 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    text-align: left;
}
.funds__card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    border-bottom: 32px solid #111;
    border-left: 32px solid transparent;
}
.funds__image-side {
    flex: 0 0 55%;
    overflow: hidden;
}
.funds__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.funds__title {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: clamp(26px, 2.5vw, 36px);
    color: var(--color-text-dark);
    margin-bottom: 22px;
    line-height: 1.15;
}
.funds__text {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}
.funds__link {
    color: var(--color-accent);
    font-weight: 700;
    text-decoration: underline;
}
.funds__link:hover {
    color: var(--color-accent-hover, #9c2229);
}


/* ==============================================
   TEAM BANNER
   ============================================== */
.team-banner {
    background-color: var(--color-bg-light);
    width: 100%;
}
.team-banner__inner {
    display: flex;
    align-items: stretch;
    width: 100%;
}
.team-banner__content {
    flex: 0 0 50%;
    background-color: var(--color-bg-light);
    padding: 15vh 6% 15vh 7.5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 1600px) {
    .team-banner__content {
        padding-left: calc((100vw - 1600px) / 2 + 160px);
    }
}
.team-banner__title {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: clamp(24px, 2.5vw, 36px);
    color: var(--color-text-dark);
    margin-bottom: 24px;
    line-height: 1.25;
    text-align: left;
}
.team-banner__text {
    font-family: var(--font-paragraphs);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-text-soft);
    margin-bottom: 20px;
    text-align: left;
}
.team-banner__text--bold {
    font-weight: 700;
    color: var(--color-text-dark);
}
.team-banner__btn {
    align-self: flex-start;
    background-color: var(--color-accent);
    color: #ffffff;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 15px;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    margin-top: 10px;
    display: inline-block;
}
.team-banner__btn:hover {
    background-color: #9c2229;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(182, 42, 51, 0.25);
}
.team-banner__image-side {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}
.team-banner__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
    width: 100%;
    background-color: #000000;
}
.footer__main {
    background-color: #000000;
    color: #ffffff;
    padding: 15vh 0;
}
.footer__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    align-items: flex-start;
}
.footer__logo-img {
    max-width: 260px;
    width: 100%;
    height: auto;
    display: block;
}
.footer__title {
    color: #ffffff;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}
.footer__contact-info {
    font-family: var(--font-paragraphs);
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 8px;
}
.footer__link {
    font-family: var(--font-paragraphs);
    font-size: 14px;
    line-height: 1.6;
    display: block;
    margin-bottom: 8px;
    color: #cccccc;
    transition: color 0.3s ease;
    text-decoration: none;
}
.footer__link:hover {
    color: var(--color-accent);
}
.footer__link--highlight {
    color: var(--color-accent);
    font-weight: 700;
}
.footer__link--highlight:hover {
    color: #9c2229;
}
.footer__list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}
.footer__list li {
    margin-bottom: 12px;
}
.footer__list .footer__link {
    margin-bottom: 0;
}
.footer__socials {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    align-items: center;
}
.footer__social-link {
    color: #ffffff;
    display: inline-block;
    transition: color 0.3s ease;
}
.footer__social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
    transition: transform 0.3s ease;
}
.footer__social-link:hover {
    color: var(--color-accent);
}
.footer__social-link:hover svg {
    transform: scale(1.15);
}
.footer__stamp {
    margin-top: 20px;
}
.footer__stamp img {
    max-width: 110px;
    height: auto;
    display: block;
}
.footer__bottom {
    background-color: #000000;
    padding: 24px 0;
    border-top: 1px solid #111111;
}
.footer__bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-paragraphs);
    font-size: 13px;
    color: #777777;
}
.footer__copy {
    margin: 0;
}
.footer__terms {
    margin: 0;
}
.footer__terms .footer__link {
    color: #777777;
    margin-bottom: 0;
    display: inline;
}
.footer__terms .footer__link:hover {
    color: var(--color-accent);
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1200px) {
    .hero {
        background-image: url('../img/inmobiliaria-en-murcia-joaquin-carceles-entrada-web-1.jpg') !important;
        background-position: center !important;
    }
}

/* ── Hero Home: capa blanca translúcida responsiva (solo index.html) ── */
@media (max-width: 979px) {
    .hero {
        position: relative;
    }
    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-color: rgba(255, 255, 255, 0.80);
        z-index: 1;
    }
    .hero__container {
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 992px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    .container {
        width: 100%;
        padding: 0 20px;
    }
    .hero {
        padding-top: 80px;
        padding-bottom: 80px;
        min-height: auto;
    }
    .split-row, .split-row--reverse, .contest__container {
        flex-direction: column; gap: 40px;
    }
    .hero__container {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start !important;
    }
    .hero__content {
        padding-bottom: 0;
        text-align: left !important;
        max-width: 100%;
    }
    .hero__text br {
        display: none;
    }
    .hero__image-wrapper { justify-content: center; margin-top: 40px; }
    .hero__actions { justify-content: flex-start !important; }
    
    .top-bar__container { flex-direction: column; gap: 8px; text-align: center; }
    .main-nav {
        position: relative;
        z-index: 1000;
    }
    .main-nav__container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 0 20px;
    }
    .main-nav__toggle {
        display: flex;
        position: relative;
    }
    .main-nav__toggle::after {
        content: '';
        position: absolute;
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
        z-index: 1;
    }
    .main-nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg-white);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        border-top: 1px solid #f0f0f0;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }
    .main-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px 20px;
    }
    .main-nav__item {
        width: 100%;
        border-bottom: 1px solid #f9f9f9;
    }
    .main-nav__item:last-child {
        border-bottom: none;
    }
    .main-nav__link {
        font-size: 15.6px;
        padding: 14px 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        font-weight: 600;
    }
    .main-nav__dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: auto;
        padding: 0 0 10px 20px;
        display: none;
        border-radius: 0;
    }
    .main-nav__item--dropdown:hover .main-nav__dropdown {
        display: block;
    }
    .main-nav__checkbox:checked ~ .main-nav__menu {
        max-height: 80vh !important;
        overflow-y: auto !important;
        opacity: 1;
        visibility: visible;
    }
    .main-nav__checkbox:checked ~ .main-nav__toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--color-primary);
    }
    .main-nav__checkbox:checked ~ .main-nav__toggle span:nth-child(2) {
        opacity: 0;
    }
    .main-nav__checkbox:checked ~ .main-nav__toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--color-primary);
    }

    /* Concurso Dibujo responsive */
    .contest { padding: 4vh 0; }

    /* Presentación responsive */
    .presentation { padding: 2vh 0; }
    .presentation__inner { flex-direction: column; }
    .presentation__card { flex: none; width: 100%; padding: 40px 25px; }
    .presentation__card::after { border-bottom-width: 20px; border-left-width: 20px; }
    .presentation__image-side { flex: none; width: 100%; max-height: 280px; }
    .presentation__image { object-position: center top; }
    
    /* Funds responsive */
    .funds { padding: 2vh 0; }
    .funds__inner { flex-direction: column; }
    .funds__card { flex: none; width: 100%; padding: 40px 25px; }
    .funds__card::after { border-bottom-width: 20px; border-left-width: 20px; }
    .funds__image-side { flex: none; width: 100%; max-height: 380px; }
    .funds__image { object-position: center center; }
    
    /* Obra Social responsive */
    .social-work { padding: 4vh 0; }
    .social-work__inner { flex-direction: column; text-align: center; gap: 40px; }
    .social-work__content { flex: none; width: 100%; text-align: center; }
    .social-work__text { text-align: center; }
    .social-work__logo-side { flex: none; width: 100%; }
    .social-work__logo { max-width: 220px; margin: 0 auto; }
    
    /* Team Banner responsive */
    .team-banner__inner { flex-direction: column; }
    .team-banner__content { flex: none; width: 100%; padding: 6vh 20px; text-align: center; }
    .team-banner__title { text-align: center; }
    .team-banner__text { text-align: center; }
    .team-banner__btn { align-self: center; }
    .team-banner__image-side { flex: none; width: 100%; height: 400px; }
    
    .properties__grid, .realtors__grid, .services__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer__logo-img { margin: 0 auto; }
    .footer__socials { justify-content: center; }
    .footer__stamp img { margin: 0 auto; }
    .footer__bottom-container { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 768px) {
    /* Evitar auto-zoom en iOS y mejorar ergonomía táctil */
    input, select, textarea {
        font-size: 16px !important;
    }
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    select,
    textarea,
    .btn {
        min-height: 48px !important;
    }

    .properties__grid, .realtors__grid, .services__grid { grid-template-columns: 1fr; }

    .contenedor-grid { 
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
    }

    /* Carrusel de reseñas móvil */
    .reviews__layout {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .reviews__google-card {
        flex: none;
        width: 100%;
        min-height: auto;
    }
    .reviews__carousel-container {
        width: 100%;
        overflow-x: hidden !important;
    }
    .reviews__carousel-wrapper {
        overflow-x: hidden !important;
    }
    .reviews__carousel {
        overflow-x: hidden !important;
    }
    .review-card {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}


/* ==============================================
   WHATSAPP FLOATING BUTTON
   ============================================== */

@keyframes wsp-bounce {
    0%, 100% { transform: translateY(0); }
    30%       { transform: translateY(-10px); }
    50%       { transform: translateY(-5px); }
    70%       { transform: translateY(-8px); }
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    text-decoration: none;
    animation: wsp-bounce 2.8s ease-in-out infinite;
}
.whatsapp-float:hover {
    animation-play-state: paused;
}

/* Bocadillo de diálogo */
.whatsapp-float__tooltip {
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 9px 16px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font-body, 'Inter', sans-serif);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
    position: relative;
}
/* Cola del bocadillo apuntando a la derecha */
.whatsapp-float__tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right: none;
    border-left-color: #ffffff;
}
.whatsapp-float:hover .whatsapp-float__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Icono circular verde WhatsApp */
.whatsapp-float__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.whatsapp-float:hover .whatsapp-float__icon {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

/* ==============================================
   RENTAL MULTI-STEP FORM
   ============================================== */
.rental-steps-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}
.rental-step-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.35s, color 0.35s, box-shadow 0.35s;
    font-family: var(--font-headings, 'Montserrat', sans-serif);
}
.rental-step-dot.active {
    background: #b62a33;
    color: #fff;
    box-shadow: 0 3px 10px rgba(182, 42, 51, 0.35);
}
.rental-step-dot.completed {
    background: #b62a33;
    color: #fff;
    opacity: 0.55;
}
.rental-step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    transition: background 0.35s;
    margin: 0 6px;
}
.rental-step-line.completed {
    background: #b62a33;
    opacity: 0.55;
}
.rental-step-panel {
    animation: rentalStepIn 0.32s ease both;
}
@keyframes rentalStepIn {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}
.rental-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    gap: 12px;
}
.rental-step-nav--end {
    justify-content: flex-end;
}
.rental-form__back {
    background: #b62a33;
    color: #fff;
    border: none;
    padding: 13px 26px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: var(--font-headings, 'Montserrat', sans-serif);
    letter-spacing: 0.3px;
}
.rental-form__back:hover {
    background: #8e1f27;
    transform: translateY(-1px);
}
.rental-form__select {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    color: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.rental-form__select:focus {
    border-bottom-color: #b62a33;
}
.rental-form__textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    color: inherit;
    outline: none;
    resize: vertical;
    padding: 10px 0;
    min-height: 100px;
    transition: border-color 0.2s;
}
.rental-form__textarea:focus {
    border-bottom-color: #b62a33;
}
.rental-field-error {
    border-bottom-color: #e63946 !important;
}

/* ==============================================
   GLOBAL OVERRIDE: REMOVE BORDER-RADIUS FROM ALL IMAGES
   ============================================== */
img,
[class*="__image"],
[class*="__img"],
.easy-block__image,
.easy-block__image-wrapper,
.detail-block__image,
.detail-block__image-wrapper,
.blog-card__image,
.blog-card__image-wrapper,
.page-hero__image,
.page-hero__image-wrapper,
.contact-section__image,
.contact-section__image-wrapper,
.zone-card__image,
.content-row__image,
.content-row__image-wrapper,
.highlight-banner__image,
.highlight-banner__image-wrapper,
.cta-banner__image,
.cta-banner__image-wrapper,
.obra-highlight__image,
.obra-highlight__image-wrapper,
.article-card__image,
.initiative-block__image,
.initiative-block__image-wrapper,
.photo-gallery__image,
.awards-section__image,
.team-card__image,
.join-section__image,
.join-section__image-wrapper,
.winner-block__image,
.winner-block__image-wrapper,
.split-row__image,
.property-card__image-wrapper,
.property-card__slide {
    border-radius: 0 !important;
}

