* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #faf9f6;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.prop-labels-bottom {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
    align-items: flex-start;
}

.etiqueta-casa {
    padding: 4px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    border-radius: 8px;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.etiqueta-destacado {
    background-color: #d4af37;
    color: #1a1a1a;
}

.etiqueta-nuevo {
    background-color: #2c3e50;
}

.etiqueta-urge {
    background-color: #b33939;
}

.etiqueta-reservado {
    background-color: #d35400;
}

.etiqueta-vendido {
    background-color: #218c53;
}

.prop-price {
    background: var(--primary-blue);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.main-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 20px;
}

.hero-wrapper {
    position: relative;
    width: 100%;
    height: 520px;
    z-index: 20;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.3);
    border-radius: var(--card-radius);
    background: #f0f0f0;
}

.hero-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--card-radius);
    z-index: 5;
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--card-radius);
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* BOTÓN SOBRE NOSOTROS (ESCRITORIO) */
.btn-about-hero {
    position: absolute;
    bottom: 40px;
    left: 50px;
    background-color: #b02a3a;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.3px;
}

.btn-about-hero strong {
    font-weight: 700;
    margin-right: 5px;
}

.btn-about-hero:hover {
    background-color: #8f212f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.profile-pic-container {
    position: absolute;
    width: 300px;
    height: 300px;
    z-index: 50;
    bottom: -90px;
    right: -85px;
    pointer-events: none;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
}

.top-bar {
    display: flex;
    justify-content: flex-end;
}

.lang-switcher {
    background: rgba(160, 160, 160, 0.3);
    padding: 5px;
    border-radius: 50px;
    display: flex;
    gap: 6px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-right: -10px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}

.lang-btn:hover,
.lang-btn.active {
    background: white;
    color: #333;
    border-color: white;
}

.center-text {
    text-align: center;
    color: white;
    margin: auto;
    max-width: 800px;
}

h1.info-text {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 600;
    margin: 0;
}

.info-subtitle {
    font-size: 1rem;
    font-weight: 400;
    margin-top: 5px;
}

.agent-info {
    text-align: right;
    color: white;
    padding-right: 155px;
    padding-bottom: 0px;
}

.agent-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    line-height: 1.1;
}

.agent-id {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.95;
    margin-top: 0;
}

.agent-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.agent-whatsapp:hover {
    opacity: 0.8;
}

.properties-section {
    width: 100%;
    margin-top: 70px;
    position: relative;
    z-index: 10;
}

.properties-header {
    text-align: center;
    margin-bottom: 35px;
}

.properties-title {
    font-size: 1.8rem;
    color: #444;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.properties-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 25px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 30px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.properties-grid::-webkit-scrollbar {
    display: none;
}

.prop-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    flex: 0 0 310px; 
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.prop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
/* Contenedor relativo para flechas del carrusel */
.carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Botones de navegación (Flechas laterales) */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid #eee;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-size: 1.2rem;
    color: var(--primary-blue);
    cursor: pointer;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.carousel-nav:hover {
    background: #f8f9fa;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.05);
}

.carousel-nav.prev {
    left: -22px;
}

.carousel-nav.next {
    right: -22px;
}

@media (max-width: 768px) {
    .carousel-nav { display: none; }
}

.prop-img-container {
    position: relative;
    width: 100%;
    height: 220px;
    background: #eee;
}

.prop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prop-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.prop-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.prop-location {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prop-title {
    font-size: 1.05rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.prop-features {
    display: flex;
    gap: 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
    justify-content: space-around;
}

.prop-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.prop-features i {
    color: var(--primary-blue);
}

.prop-btn {
    margin-top: auto;
    text-align: center;
    display: block;
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    color: var(--primary-blue);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #eef2f7;
}

.prop-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.staging-banner-card {
    background-color: #ffffff;
    border-radius: var(--card-radius);
    width: 100%;
    position: relative;
    z-index: 15;
    margin-top: 40px;
    padding: 55px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible;
}

.staging-banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
    pointer-events: none;
    border-radius: var(--card-radius);
}

.badge-3d-floating {
    position: absolute;
    top: -50px;
    left: -40px;
    width: 280px;
    height: auto;
    object-fit: contain;
    z-index: 20;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
    animation: floatBadge 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0px) rotate(-2deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.staging-banner-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.staging-banner-icon {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(74, 144, 226, 0.2));
}

.staging-banner-title {
    font-size: 1.8rem;
    color: #444;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.staging-banner-desc {
    font-size: 1rem;
    color: #666;
    max-width: 650px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.staging-banner-btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
    border: none;
}

.staging-banner-btn:hover {
    background-color: #357abd;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(74, 144, 226, 0.4);
}

.valuation-card,
.reviews-card,
.zones-card,
.faq-card,
.form-card {
    background-color: #ffffff;
    border-radius: var(--card-radius);
    width: 100%;
    position: relative;
    z-index: 15;
    margin-top: 50px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.valuation-header,
.reviews-header {
    text-align: center;
    margin-bottom: 30px;
}

.valuation-title,
.form-title {
    font-size: 1.8rem;
    color: #444;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.valuation-subtitle {
    font-size: 0.95rem;
    color: #777;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 35px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 25%;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.step h3 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
    font-weight: 600;
}

.inline-fields {
    display: flex;
    gap: 20px;
}

.inline-fields>div {
    flex: 1;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    background: var(--input-bg);
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: border-color 0.2s, background-color 0.2s;
    user-select: none;
}

.checkbox-label:hover {
    border-color: var(--primary-blue);
    background-color: #f0f7ff;
}

.checkbox-label input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    accent-color: var(--primary-blue);
}

.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn-val {
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-next-val,
.btn-submit-val {
    background-color: var(--primary-blue);
    color: white;
    margin-left: auto;
}

.btn-next-val:hover,
.btn-submit-val:hover {
    background-color: #357abd;
}

.btn-prev-val {
    background-color: #eeeeee;
    color: #666;
}

.btn-prev-val:hover {
    background-color: #e0e0e0;
}

.result-box {
    text-align: center;
    padding: 30px 20px;
    background: #f8fbfd;
    border: 1px solid #d0e1f9;
    border-radius: 20px;
}

.price-range {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 20px 0;
}

.result-note {
    font-size: 0.88rem;
    color: #777;
    line-height: 1.5;
    max-width: 650px;
    margin: 0 auto;
}

/* --- DISEÑO DE RESEÑAS GOOGLE --- */
.reviews-slider-container {
    width: calc(100% + 20px);
    margin: 30px -10px;
    padding: 15px 10px;
    overflow: hidden;
    position: relative;
}

.reviews-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.8s ease-in-out;
}

.review-item {
    flex: 0 0 calc((100% - 40px) / 3);
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.review-top-user {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 15px;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.review-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4a90e2;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.review-author-stack {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.review-author-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.review-author-link:hover {
    color: var(--primary-blue);
}

.review-date-text {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

.review-g-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.review-stars-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.stars-gold {
    color: #fbbc05;
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.review-verified {
    color: #4285F4;
    font-size: 0.85rem;
}

.review-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    font-style: normal;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.review-read-more {
    font-size: 0.85rem;
    color: #777;
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
}

.review-read-more:hover {
    color: var(--primary-blue);
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-review-google {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    color: #444;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-review-google:hover {
    background-color: #f8f9fa;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.form-card {
    background-color: #f8f6f4;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Alinea texto y logo al centro horizontalmente */
  gap: 1.25rem;
  margin-bottom: 30px;
}

.form-title {
  font-size: 1.15rem; /* Tamaño proporcional para que quepa en una sola línea */
  color: #444;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 0;
  white-space: nowrap; /* Evita que salte a dos líneas */
}

.logo-api {
  height: 36px; /* Altura equilibrada respecto a la tipografía */
  width: auto;
  object-fit: contain;
  flex-shrink: 0; /* Evita que el logo se aplaste */
  margin-top: 0;
}

/* En móviles donde la frase larga físicamente no cabe */
@media (max-width: 768px) {
  .form-title {
    white-space: normal;
    font-size: 1.05rem;
    line-height: 1.35;
  }
  .logo-api {
    height: 30px;
  }
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.full-width {
    grid-column: span 2;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #777;
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid #ddd;
    padding: 18px 20px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: #444;
    outline: none;
    transition: border 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-blue);
    background-color: white;
}

textarea {
    resize: vertical;
    min-height: 130px;
}

.btn-submit {
    grid-column: span 2;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    justify-self: center;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #357abd;
}

/* SECCIÓN ZONAS Y BARRIOS LOCALES */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.zone-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 22px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.zone-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    border-color: var(--primary-blue);
}

.zone-icon {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.zone-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.zone-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* SECCIÓN PREGUNTAS FRECUENTES (FAQ ACORDEÓN) */
.faq-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item[open] {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.08);
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-icon-arrow {
    font-size: 0.85rem;
    color: #999;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon-arrow {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

.faq-answer {
    padding: 0 24px 22px 24px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.65;
    border-top: 1px solid #f2f2f2;
    padding-top: 15px;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 480px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #f0f0f0;
}

.chat-header {
    background: #075E54;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.close-chat {
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #fcfbf9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-msg {
    background: #e9e9e9;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-msg {
    background: var(--primary-blue);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 12px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: white;
}

.chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    -webkit-appearance: none;
    appearance: none;
}

.send-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.send-btn:hover {
    background: #357abd;
}

.send-btn:disabled {
    background: #ccc;
    cursor: default;
}

.typing {
    font-size: 0.7rem;
    color: #888;
    margin-left: 15px;
    display: none;
    padding-bottom: 5px;
}

.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-btn {
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-chat-btn:hover {
    transform: scale(1.1);
    background-color: #20ba59;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
}

.chat-bubble {
    background: #ffffff;
    color: #333333;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    border: 1px solid #e8e8e8;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    align-items: center;
    gap: 8px;
    transform-origin: right center;
    visibility: hidden;
    opacity: 0;
    display: none;
}

.chat-bubble.show {
    display: flex;
    visibility: visible;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.chat-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    margin-top: -6px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #ffffff;
    animation: shootArrow 1.5s infinite ease-in-out;
}

.close-bubble {
    background: transparent;
    border: none;
    color: #999999;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
}

.close-bubble:hover {
    color: #333333;
}

@keyframes popIn {
    0% {
        transform: scale(0.5) translateX(20px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateX(0);
        opacity: 1;
    }
}

@keyframes shootArrow {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

.footer {
    margin-top: 60px;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.idealista-link {
    color: var(--primary-blue);
    text-decoration: none;
    margin-bottom: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
    display: block;
}

.footer-line {
    border-top: 1px solid #eee;
    padding-top: 30px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #aaa;
}

.logo-idealista {
    height: 35px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.logo-idealista:hover {
    filter: grayscale(0);
    opacity: 1;
}

.socials a {
    color: #888;
    font-size: 1.3rem;
    margin-left: 20px;
    text-decoration: none;
}

.socials a:hover {
    color: var(--primary-blue);
}

/* --- SECCIÓN SEO (DISEÑO MOSAICO) --- */
.seo-content-card {
    background-color: #f8fbfd;
    border-radius: var(--card-radius);
    width: 100%;
    position: relative;
    z-index: 15;
    margin-top: 50px;
    padding: 50px;
    box-shadow: inset 0 0 0 1px #d0e1f9;
    text-align: left;
}

.seo-content-title {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
    text-align: center;
}

.seo-content-intro {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 35px;
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

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

.seo-grid-item {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seo-icon {
    font-size: 2rem;
    color: var(--primary-blue);
}

.seo-item-title {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.seo-item-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    body {
        padding: 12px 10px;
    }

    .main-container {
        padding-right: 0;
        width: 100%;
    }

    /* HERO MÓVIL REESTRUCTURADO Y BALANCEADO */
    .hero-wrapper {
        height: auto;
        min-height: 520px;
        border-radius: 38px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
        position: relative;
        background: #f0f0f0;
    }

    .hero-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.35);
        border-radius: 38px;
        z-index: 5;
        pointer-events: none;
    }

    .hero-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        border-radius: 38px;
    }

    .hero-content {
        position: relative;
        width: 100%;
        height: 100%;
        padding: 25px 15px 0 15px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        z-index: 10;
    }

    /* 1. Selector de Idiomas (Arriba) */
    .top-bar {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .lang-switcher {
        margin-right: 0;
        background: rgba(30, 30, 30, 0.7);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        padding: 5px 8px;
        gap: 6px;
        border-radius: 50px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    }

    .lang-btn {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
        border-color: rgba(255, 255, 255, 0.4);
    }

    /* 2. Texto principal (Debajo del idioma) */
    .center-text {
        order: 2;
        margin: 0 auto 25px auto;
        padding: 0 5px;
        width: 100%;
    }

    h1.info-text {
        font-size: 1.15rem;
        line-height: 1.45;
        font-weight: 700;
        letter-spacing: -0.2px;
    }

    /* 3. Botón Sobre Nosotros (Centro) */
    .btn-about-hero {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        order: 3;
        margin: 0 auto 25px auto;
        font-size: 0.9rem;
        padding: 12px 25px;
        width: auto;
        max-width: 90%;
        text-align: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    /* 4. Información del Agente (Abajo del botón) */
    .agent-info {
        order: 4;
        padding-right: 0;
        text-align: center;
        color: white;
        margin: auto auto 15px auto;
        width: 100%;
    }

    .agent-name {
        font-size: 1.65rem;
        font-weight: 700;
        letter-spacing: -0.3px;
        margin-bottom: 3px;
    }

    .agent-id {
        font-size: 1.05rem;
        font-weight: 400;
        opacity: 0.95;
        margin-bottom: 6px;
    }

    .agent-whatsapp {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 1.2rem;
        font-weight: 600;
        margin-top: 4px;
    }

    /* 5. Foto de Cristina (Tocando el borde inferior) */
    .profile-pic-container {
        position: relative;
        width: 230px;
        height: 230px;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        margin: 0 auto -10px auto;
        pointer-events: auto;
        order: 5;
    }

    .profile-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
    }

    .properties-section {
        margin-top: 40px;
        padding: 0;
    }

    .properties-title {
        font-size: 1.5rem;
    }

    .staging-banner-card {
        padding: 40px 20px;
        border-radius: 24px;
    }

    .staging-banner-title {
        font-size: 1.5rem;
    }

    .staging-banner-btn {
        padding: 16px 20px;
        width: 100%;
        max-width: 300px;
        font-size: 0.95rem;
    }

    .valuation-card,
    .reviews-card,
    .zones-card,
    .faq-card,
    .form-card {
        padding: 30px 18px;
        margin-top: 35px;
        border-radius: 24px;
    }

    .valuation-title,
    .form-title {
        font-size: 1.45rem;
    }

    .checkbox-group,
    .contact-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .inline-fields {
        flex-direction: column;
        gap: 0;
    }

    .full-width,
    .btn-submit {
        grid-column: span 1;
    }

    .btn-val {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .price-range {
        font-size: 1.7rem;
    }

    /* Ajustes Mosaico Móvil */
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .seo-content-card {
        padding: 30px 18px;
        margin-top: 35px;
        border-radius: 24px;
    }

    .seo-content-title {
        font-size: 1.45rem;
    }

    .seo-content-intro {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .seo-grid-item {
        padding: 20px;
    }

    /* Ajustes Reseñas Móvil */
    .review-item {
        flex: 0 0 100%;
    }

    .chat-window {
        bottom: 85px;
        right: 15px;
        left: 15px;
        width: auto;
        height: 75vh;
    }

    .ai-chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat-bubble {
        font-size: 0.82rem;
        padding: 8px 12px;
    }

    .footer-line {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .logo-idealista {
        order: -1;
        margin-bottom: 10px;
    }

    /* Insignia 3D (Arriba Izquierda) */
    .badge-3d-floating {
        width: 105px;
        top: -25px;
        left: 10px;
        transform: rotate(-3deg);
        animation: none;
    }

    .staging-banner-card {
        padding: 40px 20px 35px 20px;
    }
}

/* ==========================================================================
   CARRUSEL INMOBILIARIO REFINADO CASA ATELIER (PROPORCIÓN ARQUITECTÓNICA)
   ========================================================================== */

.carousel-section {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto 40px auto;
  position: relative;
  padding: 0 10px;
  box-sizing: border-box;
}

.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 5px 20px 5px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Tarjeta estructurada: foto apaisada + bloque de datos inferior */
.carousel-card {
  flex: 0 0 300px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  text-decoration: none !important;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .carousel-card {
    flex: 0 0 315px;
  }
}

.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -6px rgba(0, 0, 0, 0.14);
}

/* Contenedor de la foto con ratio panorámico real */
.carousel-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.carousel-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-card:hover .carousel-bg {
  transform: scale(1.04);
}

.carousel-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 3;
}

/* ETIQUETAS ASIGNADAS DESDE EL PANEL DE ADMIN */
.carousel-admin-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.tag-destacado { background-color: #d4af37; color: #1a1a1a; }
.tag-nuevo     { background-color: #2c3e50; }
.tag-urge      { background-color: #b33939; }
.tag-reservado { background-color: #d35400; }
.tag-vendido   { background-color: #218c53; }

/* Propiedad vendida: sutil desaturado */
.carousel-card.is-sold .carousel-bg {
  filter: grayscale(0.3);
}

/* Contenido inferior legible */
.carousel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
}

.carousel-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.carousel-title {
  font-size: 0.88rem;
  font-weight: 400;
  color: #666;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-meta {
  display: flex;
  gap: 10px;
  font-size: 0.82rem;
  color: #777;
  align-items: center;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.carousel-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Botones laterales flotantes */
.carousel-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: #f8fafc;
  transform: translateY(-50%) scale(1.06);
}

.carousel-nav-btn.prev-btn { left: -12px; }
.carousel-nav-btn.next-btn { right: -12px; }

@media (max-width: 768px) {
  .carousel-nav-btn { display: none; }
}

/* --- DISEÑO FICHA UBICACIÓN CORREGIDO --- */
.location-card {
    background: #ffffff;
    border-radius: var(--card-radius, 30px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    padding: 40px;
    width: 100%;
    max-width: 920px;
    margin: 40px auto;
    box-sizing: border-box;
    border: 1px solid #f0f0f0;
}

.location-header {
    margin-bottom: 25px;
}

.location-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.location-address {
    color: #666;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.parking-box {
    background: #fcfbf9;
    border-left: 4px solid var(--primary-blue, #4a90e2);
    padding: 18px 25px;
    border-radius: 0 15px 15px 0;
    margin-bottom: 30px;
}

.parking-box h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.parking-box p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.location-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.btn-gps, .btn-wsp-loc {
    padding: 14px 28px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-gps {
    background-color: var(--primary-blue, #4a90e2) !important;
    color: #ffffff !important;
}

.btn-wsp-loc {
    background-color: #25D366 !important;
    color: #ffffff !important;
}

.btn-gps:hover, .btn-wsp-loc:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.map-container {
    width: 100%;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

@media (max-width: 768px) {
    .location-card {
        padding: 25px 20px;
        border-radius: 38px;
    }
    .location-title {
        font-size: 1.5rem;
    }
    .location-actions {
        flex-direction: column;
    }
    .btn-gps, .btn-wsp-loc {
        width: 100%;
        justify-content: center;
    }
    .map-container {
        height: 280px;
    }
}
