/* ===================== VARIABLES ===================== */
:root {
    --primary: #183A6D;
    --secondary: #FFD600;
    --secondary-dark: #C7A600;
    --light-bg: #141B2D;
    --accent: #25d366;
    --font-main: 'Segoe UI', Arial, sans-serif;
    --radius: 18px;
    --shadow: 0 4px 24px rgba(24,58,109,0.18);
    --shadow-hover: 0 8px 32px rgba(24,58,109,0.25);
    --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ===================== BASE ===================== */
html {
    font-size: 18px;
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-main);
    background: var(--light-bg);
    color: #f5f5f5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}
.fixed-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('../img/bg-inmobiliaria.jpg') center center/cover no-repeat;
    z-index: 0;
    pointer-events: none;
    opacity: 0.13;
}
a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--secondary-dark);
}

/* ===================== HEADER ===================== */
.main-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary);
    box-shadow: 0 2px 12px rgba(24,58,109,0.10);
    border-bottom: 3px solid var(--secondary);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.7rem 2rem 0.7rem 1rem;
}
.header-logo-title {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.logo-link {
    display: block;
}
.nav-logo {
    height: 60px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(24,58,109,0.10);
    display: block;
    transition: transform .3s;
}
.nav-logo:hover {
    transform: scale(1.07) rotate(-2deg);
}
.header-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}
.brand-main {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(24,58,109,0.10);
}
.brand-main .plus {
    color: var(--secondary);
    font-size: 2.1rem;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(24,58,109,0.10);
}
.brand-sub {
    font-size: 1.05rem;
    color: var(--secondary);
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 0.1rem;
}
.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    margin-left: auto;
}
.nav-button {
    color: var(--primary);
    background: var(--secondary);
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    border: none;
    font-size: 1.05rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(24,58,109,0.07);
    transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}
.nav-button:hover,
.nav-button.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(24,58,109,0.13);
    transform: translateY(-2px) scale(1.04);
}
.nav-button:focus {
    outline: 2px solid var(--secondary-dark);
}

/* ===================== HERO ===================== */
.hero-section {
    height: 100vh; /* Abarca todo el tamaño de la sección */
    background: linear-gradient(120deg, rgba(24,58,109,0.92) 60%, rgba(24,58,109,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Cuadrícula 2x2 */
    grid-template-rows: repeat(2, 1fr); /* Cuadrícula 2x2 */
    gap: 0; /* Sin espacio entre los elementos */
    width: 100%;
    height: 100%; /* Abarca todo el tamaño de la sección */
}

.hero-item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.hero-item:hover .hero-image {
    transform: scale(1.1); /* Zoom en la imagen al pasar el cursor */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}

.hero-item:hover .hero-overlay {
    opacity: 1; /* Muestra el contenido al pasar el cursor */
}

.hero-overlay h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.hero-overlay p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* ===================== FOOTER ===================== */
footer {
    background: var(--primary);
    color: #fff;
    padding: 2.5rem 0 1rem 0;
    font-size: 1.1rem;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 1.5rem;
}
.footer-section {
    flex: 1 1 200px;
    min-width: 200px;
    margin-bottom: 1rem;
}
.footer-section h4 {
    margin-bottom: 0.8rem;
    color: var(--secondary-dark);
    text-align: center;
    font-size: 1.2rem;
}
.footer-section ul {
    list-style: none;
    padding: 0;
    text-align: center;
}
.footer-section ul li {
    margin-bottom: 0.5rem;
}
.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-section ul li a:hover {
    color: var(--secondary);
}
.social-links {
    margin-top: 0.5rem;
    text-align: center;
}
.social-links a {
    display: inline-block;
    margin-right: 10px;
    color: #fff;
    font-size: 1.7em;
    transition: color 0.2s, transform 0.2s;
}
.social-links a:hover {
    color: var(--accent);
    transform: scale(1.15) rotate(-5deg);
}
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    color: #fff;
    font-size: 1rem;
    opacity: 0.8;
}

/* ===================== BOTÓN FLOTANTE WHATSAPP ===================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, box-shadow 0.3s;
}
.whatsapp-float:hover {
    background: #1ebe57;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
@media (max-width: 600px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
        bottom: 16px;
        right: 16px;
    }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    html { font-size: 16px; }
    .hero-section { height: auto; }
    .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hero-overlay h2 { font-size: 1.5rem; }
    .hero-overlay p { font-size: 1rem; }
}