html {
  scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
}

.contact-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(500px, 1fr) 1.4fr;
    align-items: center;
    width: 100%;
    max-width: 1500px;
    padding: 0 3rem;     
    gap: 3rem;
    box-sizing: border-box;
    margin-top: 0rem;
}

.contact-container {
    padding: 0;
}

.contact-ribbon {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3b8bc0;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.contact-subtitle::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #3b8bc0;
    margin: 1rem 0 0.5rem 0;
    border-radius: 3px;
}

.values-features-grid {
    gap: 1.5rem;
    margin: 0;
    width: 100%;
    max-width: 850px;
}

.values-card {
    border-radius: 16px;
    padding: 1rem 0rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1.25rem;
    height: auto;
    min-height: 0;
}

.values-card-icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f2ff;
    border-radius: 50%;
}

.values-card-icon i {
    color: #0c6197;
    font-size: 1.75rem;
    line-height: 1;
}

.values-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1; 
    min-width: 0;
}

.values-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    letter-spacing: -0.01em;
}

.values-card p {
    font-size: 0.95rem;
    font-weight: 400;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* ===== CONTACT FORM ===== */
.contact-service {
    padding: 3rem 0 3rem;
    display: flex;
    justify-content: center;
}

.page-content {
    width: 100%;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Contenedor del formulario */
.form-container {
    padding: 2rem 3rem 2rem 3rem;
    background: transparent;
    border: none;
}

.form-container h3 {
    color: #0c6197; /* Usando el azul principal de tu marca */
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form-group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem 1.5rem;
    margin: 0; /* Limpiamos los márgenes rígidos laterales */
}

/* Ocupar el ancho completo en pantallas pequeñas o para textareas */
.contact-form-group-full {
    grid-column: 1 / -1;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    color: #1a1a1a;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: #0c6197;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(12, 97, 151, 0.1);
}

.contact-form-group p {
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

/* ===== RADIO GROUP ===== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    user-select: none;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.radio-option:hover {
    background: #eef4fb;
    border-color: #d4e4f5;
    color: #0c6197;
}

.radio-option:has(input:checked) {
    background: #e8f2ff;
    border-color: #0c6197;
    color: #0c6197;
    font-weight: 600;
}

.radio-option input[type="radio"] {
    accent-color: #0c6197;
    width: 1rem;
    height: 1rem;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option span {
    line-height: 1.3;
}

.form-status {
    padding: 0.75rem;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(46, 204, 113, 0.9);
    color: white;
}

.form-status.error {
    display: block;
    background: rgba(231, 76, 60, 0.9);
    color: white;
}

.form-button-wrapper {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

#submitBtn {
    border: none;
    cursor: pointer;
    background: #0c6197;
    color: #ffffff;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#submitBtn:hover {
    background: #094e7b;
}

/* ===== CONTACT LOWER BANNER ===== */
.property-to-publish-contact-banner {
    position: relative;
    min-height: 55vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.property-to-publish-contact-banner img.u-cover-property-to-publish-contact-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.798) saturate(1.5) contrast(1);
    z-index: 0;
}

.property-to-publish-contact-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.885) 20%,
        transparent 50%,
        rgba(0, 0, 0, 0.609) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.img-property-to-publish-contact-banner-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
    margin-left: 3rem;
    width: 1340px;
    /* margin-bottom removed */
}

.img-property-to-publish-contact-banner-ribbon {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3b8bc0;
    margin-bottom: 1rem;
}

.img-property-to-publish-contact-banner-title {
    font-size: 2.8rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: #ffffff;
    width: 55%;
    text-transform: uppercase;
}

.img-property-to-publish-contact-banner-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #3b8bc0;
    margin: 1rem 0 0.5rem 0;
    border-radius: 3px;
}

.haz-que-llegue-text {
    margin-top: 1rem;
}

.img-property-to-publish-contact-banner-subtext {
    margin-top: 1rem;
    font-size: 1.15rem;
    font-weight: 500;
    width: 40%;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1.6;
}

/* ---------- Laptops pequeñas (<= 1200px) ---------- */
@media (max-width: 1200px) {
    .contact-section {
        grid-template-columns: minmax(340px, 1fr) 1.3fr;
        gap: 2rem;
        padding: 0 2rem;
    }
 
    .img-property-to-publish-contact-banner-text {
        width: auto;
        margin-left: 2.5rem;
        margin-right: 2rem;
    }
 
    .img-property-to-publish-contact-banner-title {
        font-size: 2.3rem;
        width: 70%;
    }
 
    .img-property-to-publish-contact-banner-subtext {
        width: 60%;
        font-size: 1.05rem;
    }
}
 
@media (max-width: 991px) {
    .property-to-publish-contact-banner {
        margin-top: 0;
        min-height: 50vh;
    }
 
    .img-property-to-publish-contact-banner-text {
        margin-left: 2rem;
        margin-right: 2rem;
    }
 
    .img-property-to-publish-contact-banner-title {
        font-size: 2rem;
        width: 85%;
    }
 
    .img-property-to-publish-contact-banner-subtext {
        width: 85%;
    }
 
    .contact-section {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 0.5rem;
        padding: 2rem 2rem 0;
    }
 
    .values-features-grid {
        max-width: 100%;
    }
 
    .contact-service {
        padding: 2rem 0 2.5rem;
    }
 
    .form-container {
        padding: 1.75rem;
    }
}
 
/* ---------- Móvil (<= 768px) ---------- */
@media (max-width: 768px) {
    .property-to-publish-contact-banner {
        min-height: 45vh;
    }
 
    /* El degradado lateral no funciona en vertical: lo pasamos a vertical */
    .property-to-publish-contact-banner::after {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.55) 55%,
            rgba(0, 0, 0, 0.85) 100%
        );
    }
 
    .img-property-to-publish-contact-banner-text {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }
 
    .img-property-to-publish-contact-banner-title {
        font-size: 1.75rem;
        width: 100%;
    }
 
    .haz-que-llegue-text {
        font-size: 1.15rem;
    }
 
    .img-property-to-publish-contact-banner-subtext {
        width: 100%;
        font-size: 1rem;
    }
 
    .contact-section {
        padding: 2rem 1.25rem 0;
    }
 
    .values-card {
        padding: 0.85rem 0;
        gap: 1rem;
    }
 
    .page-content {
        border-radius: 18px;
    }
 
    .form-container {
        padding: 1.5rem 1.25rem;
    }
 
    /* Formulario a una sola columna */
    .contact-form-group-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
 
    .contact-form-group-full {
        grid-column: 1;
    }
 
    #submitBtn {
        max-width: 100%;
    }
}
 
/* ---------- Móvil chico (<= 480px) ---------- */
@media (max-width: 480px) {
    .img-property-to-publish-contact-banner-ribbon {
        font-size: 0.8rem;
    }
 
    .img-property-to-publish-contact-banner-title {
        font-size: 1.45rem;
    }
 
    .haz-que-llegue-text {
        font-size: 1rem;
    }
 
    .img-property-to-publish-contact-banner-subtext {
        font-size: 0.95rem;
        line-height: 1.5;
    }
 
    .contact-subtitle {
        font-size: 1.5rem;
    }
 
    .values-card-icon {
        width: 3rem;
        height: 3rem;
    }
 
    .values-card-icon i {
        font-size: 1.4rem;
    }
 
    .values-card h2 {
        font-size: 1rem;
    }
 
    /* Evita que el correo largo rompa el layout */
    .values-card p {
        font-size: 0.9rem;
        overflow-wrap: anywhere;
    }
 
    .form-container {
        padding: 1.25rem 1rem;
    }
 
    .contact-form-group input,
    .contact-form-group textarea {
        font-size: 0.95rem;
        padding: 0.8rem 0.9rem;
    }
 
    .radio-option {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
 
    #submitBtn {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
}