/* --- General Body and Background Styling --- */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; 
    scroll-behavior: smooth; /* Smooth scrolling between sections */
}

/* Add top padding to body to account for fixed navbar */
body {
    padding-top: 70px;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
        overflow-x: hidden;
    }
    
    html {
        overflow-x: hidden;
    }
}

/* --- Section Base Styles --- */
.section {
    min-height: 80vh;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    scroll-margin-top: 70px;
}

@media (max-width: 768px) {
    .section {
        scroll-margin-top: 60px;
    }
}

/* --- Hero Section (Index) --- */
.hero-section {
    background-image: url('../images/fondo_index_2.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.content-panel {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 35%;
    background-color: rgba(244, 241, 235, 0.60);
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 
                0 10px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5%;
}

.content-inner {
    width: 100%;
    max-width: 480px;
}

.logo {
    width: 150px;
    margin-bottom: 10px;
}

.headline {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.description {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 10px;
}

.cta-button {
    display: inline-block;
    background-color: #b5b5b5;
    color: #000000;
    /* border: 1px solid #000000; */
    border-radius: 10px;
    padding: 14px 35px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #575757;
    transform: translateY(-2px);
}


/* --- Propiedades Section --- */
.propiedades-section {
    background-image: url('../images/fondo_propiedades_2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.propiedades-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


/* --- Properties Section (Servicios Inmobiliarios) --- */
.properties-section {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../images/fondo_servicios_inmobiliarios.png');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 1;
}

.properties-container {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    padding: 40px;
    border-radius: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-box {
    background-color:  rgb(0, 0, 0, 0.2);
    color: rgb(255, 255, 255);
    padding: 10px 25px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-align: left;
    width: auto;
    min-width: 250px;
    box-sizing: border-box;
    font-weight: bold;

    white-space: nowrap;
    font-size: 2em;
}

.section-title {
    position: absolute;
    top: 30vh;
    left: 10%;
    transform: translateY(-50%);
    font-size: 5em; 
    color: #ddd;
    text-align: left;
    z-index: 2;
    max-width: 300px;
    line-height: 1.2;
}

/* --- Data Protection Section --- */
.data-protection-section {
    background-image: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url('../images/fondo_proteccion_de_datos.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    justify-content: left;
    align-items: center;
    padding-left: 50px;
}

.data-protection-container {
    max-width: 700px;
}

.data-protection-container h1 {
    font-size: 4em;
    margin-bottom: 10px;
}

.data-protection-container p {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.button {
    background-color: #f0e68c;
    color: black;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: #f4f4f4;
    padding: 50px 20px 20px 20px;
}

.testimonials-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-direction: column;
}

.testimonials-logo {
    max-width: 150px;
    margin-right: 20px;
}

.testimonials-title {
    font-size: 2em;
    color: #333;
    text-align: center;
}

.testimonials-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.testimonial-container {
    background-color: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.quote {
    font-size: 1.2em;
    color: #000;
    margin-bottom: 10px;
    quotes: """ """ "'" "'";
}

.quote:before {
    content: open-quote;
    font-size: 2em;
    color: #000;
    margin-right: 5px;
    vertical-align: -0.2em;
}

.quote:after {
    content: close-quote;
    font-size: 2em;
    color: #000;
    margin-left: 5px;
    vertical-align: -0.2em;
}

.author {
    text-align: right;
    font-style: italic;
    color: #000;
}

/* --- Contact Section --- */
.contact-section {
    background-color: #3f3f3f;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    max-width: 600px;
    width: 100%;
    padding: 40px;
}

.contact-title {
    font-size: 4em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-textarea {
    height: 120px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.form-button {
    background-color: #bcbcbc;
    color: #000;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #7a7a7a;
}

/* --- Intermediate Circles Section --- */
.intermediate-circles-section {
    background-image: url('../images/fondo_intermedio.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 70px 0;
}

.intermediate-circles-section-2 {
    background-image: url('../images/fondo_intermedio_2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 70px 0;
}

.intermediate-circles-section-3 {
    background-image: url('../images/fondo_intermedio_3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 70px 0;
}

.circles-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.circles-row {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
}

.circles-row:last-child {
    margin-bottom: 0;
}

.circle-feature {
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background-color: rgba(166, 166, 166, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circle-feature.title-circle {
    background-color: rgba(185, 171, 140, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.intermediate-circles-section-3 .circle-feature.title-circle {
    background-color: rgba(47, 54, 73, 0.9);
}

.circle-feature.empty-circle {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    visibility: hidden;
}

.circle-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.circle-text {
    color: #fff;
    /* font-weight: bold; */
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.circle-text.title-text {
    font-size: 1.4rem;
    /* font-weight: 900; */
    letter-spacing: 1px;
}

/* --- Message Bars --- */
.message-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.success-bar {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-bar {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-text {
    flex: 1;
    margin: 0;
}

.message-close {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.message-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}