* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "oswald", sans-serif;
}

body {
    background-color: black;
}

header {
    background-color: transparent;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    width: 100%;
    height: 90px;
    background: transparent;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 8%;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;
}

.logo {
    color: #ffb703;
    font-family: "oswald", sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    color: orange;
}

.nav-links li {
    list-style: none;
}

.nav-links img {
    width: 70px;
    height: 35px;
    filter: invert(1);
    transition: transform 0.3s ease;
}

.nav-links img:hover {
    transform: scale(1.15);
}

#hero {
    padding-top: 2rem;
    min-height: 100vh;
    background: linear-gradient(
        rgba(0, 0, 0, 0.418),
        rgba(0, 0, 0, 0.637)
    ),
    url("fondo1.jpeg");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; /* Cambiado a center para mejor estética en hero */
    color: white;
    padding: 0 1rem;
}

#hero h1 {
    max-width: 800px;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-family: "oswald", sans-serif;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    padding: 12px 25px;
    border: none;
    background-color: green;
    color: rgb(34, 34, 33);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.cta-button:hover {
    background-color: lightblue;
}

#propiedades {
    padding: 5rem 2rem;
}

h2 {
    text-align: center;
    color: green;
    margin-bottom: 50px;
    font-size: 50px;
    font-family: "oswald", sans-serif;
}

.propiedades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.propiedades-card {
    background: black;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px green;
    transition: 0.3s;
}

.propiedades-card:hover {
    transform: translateY(-8px);
}

.propiedades-card img {
    width: 100%;
    height: 250px; /* Altura fija para que funcione el object-fit */
    object-fit: cover;
}

.propiedades-card h3 {
    padding: 1rem;
    font-family: "oswald", sans-serif;
    color: orange;
    font-size: 30px;
}

.precio {
    color: orange;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0 1rem;
    font-family: "oswald", sans-serif;
}

.descripcion {
    padding: 1rem;
    color: white;
    font-family: "oswald", sans-serif;
    font-weight: 700;
}

.propiedades-card button {
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 10px;
    border: none;
    background: orange;
    color: black;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.propiedades-card button:hover {
    background: green;
    color: white;
}

#contacto {
    padding: 5rem 2rem;
    background: black;
}

#contacto h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-family: "oswald", sans-serif;
    font-weight: 700;
}

form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: "oswald", sans-serif;
    font-weight: 700;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

form button {
    background: orange;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: "oswald", sans-serif;
    font-weight: 700;
    transition: background 0.3s ease;
}

form button:hover {
    background: green;
}

#ubicacion {
    padding: 4rem 2rem;
    text-align: center;
    font-family: "oswald", sans-serif;
    font-weight: 700;
}

#ubicacion h2 {
    margin-bottom: 1rem;
    font-family: "oswald", sans-serif;
    font-weight: 700;
}

#ubicacion p {
    color: white;
    font-family: "oswald", sans-serif;
    font-weight: 700;
    font-size: 20px;
}

#redes {
    text-align: center;
    padding: 4rem 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.social-icons img {
    width: 75px;
    height: 50px;
    transition: transform 0.3s ease;
    filter: invert(1);
}

.social-icons img:hover {
    transform: translateY(-8px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    width: 125px;
    height: 75px;
}

.btn-acerca {
    display: inline-flex;
    padding: 20px 40px;
    background: orange;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: 0.3s;
    font-family: "oswald", sans-serif;
}

.btn-acerca:hover {
    background: green;
}

.marquesina {
    width: 100%;
    padding: 18px 0;
    background: green;
    color: white;
    font-size: 35px;
    overflow: hidden;
    white-space: nowrap;
}

.marquesina span {
    display: inline-block;
    padding-left: 100%;
    animation: mover 12s linear infinite;
}

@keyframes mover {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

marquee {
    font-family: "oswald", sans-serif;
    color: white;
}

/* =========================================
   MEDIA QUERIES (DISEÑO RESPONSIVO)
========================================= */

/* Para Tablets y Pantallas Medianas */
@media (max-width: 992px) {
    h2 {
        font-size: 40px;
    }
    
    .nav-links {
        gap: 15px;
    }
}

/* Para Dispositivos Móviles */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 15px 5%;
        background-color: rgba(0, 0, 0, 0.9); /* Fondo oscuro en móvil para que se lea el menú */
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }

    #hero {
        padding-top: 120px; /* Compensa el alto del menú en móvil */
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    #propiedades, #contacto, #ubicacion, #redes {
        padding: 3rem 1rem;
    }

    .propiedades-grid {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
    }

    .logo-container img {
        width: 100px;
        height: 60px;
    }

    .social-icons img {
        width: 50px;
        height: 35px;
    }

    .marquesina {
        font-size: 24px; /* Texto más pequeño en móvil */
    }
}