
/* BRUNICARDI PROPIEDADES */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #0b192d;
}

header {
    background-color: #0b192d;
    color: white;
    padding: 30px;
    text-align: center;
}

h1 {
    color: #d9b66f;
    font-size: 42px;
}

button {
    background-color: #d9b66f;
    color: #0b192d;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}


/* MENU DE NAVEGACION */

.menu {
    background-color: #0b192d;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 20px;
    border-bottom: 1px solid #d9b66f;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    transition: color 0.3s;
}

.menu a:hover {
    color: #d9b66f;
}

@media (max-width: 600px) {
    .menu {
        gap: 15px;
        padding: 15px;
    }

    .menu a {
        font-size: 14px;
    }
}


/* PROPIEDADES DESTACADAS */

.propiedades {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

.propiedades h2 {
    font-size: 36px;
    color: #0b192d;
    margin-bottom: 15px;
}

.propiedades h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #d9b66f;
    margin: 15px auto;
}

.propiedades p {
    font-size: 18px;
    color: #666666;
}

.contenedor-propiedades {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto;
}

@media (max-width: 768px) {
    .contenedor-propiedades {
        grid-template-columns: 1fr;
    }
}

/* TARJETAS DE PROPIEDADES */

.tarjeta-propiedad {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    text-align: left;
    transition: transform 0.3s;
}

.tarjeta-propiedad:hover {
    transform: translateY(-5px);
}

.tarjeta-propiedad img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.info-propiedad {
    padding: 20px;
}

.info-propiedad h3 {
    color: #0b192d;
    font-size: 22px;
    margin-bottom: 10px;
}

.info-propiedad p {
    color: #666666;
    font-size: 16px;
}

.info-propiedad h4 {
    color: #0b192d;
    font-size: 24px;
    margin: 15px 0;
}

.info-propiedad button {
    background-color: #d9b66f;
    color: #0b192d;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* SECCIÓN TASACIONES */

.tasaciones {
    background-color: #0b192d;
    color: white;
    text-align: center;
    padding: 70px 20px;
}

.tasaciones h2 {
    color: #d9b66f;
    font-size: 32px;
    margin-bottom: 20px;
}

.tasaciones p {
    font-size: 18px;
    margin-bottom: 15px;
}

.tasaciones button {
    margin-top: 20px;
}
/* SECCIÓN CONTACTO */

.contacto {
    background-color: #f5f5f5;
    text-align: center;
    padding: 70px 20px;
}

.contacto h2 {
    color: #0b192d;
    font-size: 32px;
    margin-bottom: 25px;
}

.contacto p {
    color: #333333;
    font-size: 18px;
    margin-bottom: 15px;
}

.contacto button {
    margin-top: 20px;
}
/* SECCIÓN SOBRE NOSOTROS */

.nosotros {
    background-color: #ffffff;
    text-align: center;
    padding: 70px 20px;
}

.nosotros h2 {
    color: #0b192d;
    font-size: 32px;
    margin-bottom: 25px;
}

.nosotros p {
    color: #444444;
    font-size: 18px;
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto 20px;
}

.nosotros p:last-child {
    color: #b89550;
    font-weight: bold;
    font-size: 22px;
}
/* DISEÑO PARA CELULARES */

@media (max-width: 768px) {

    .menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 15px;
    }

    header {
        padding: 50px 15px;
    }

    h1 {
        font-size: 28px;
    }

    .contenedor-propiedades {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .tarjeta-propiedad {
        width: 100%;
        max-width: 380px;
    }

    .tasaciones,
    .nosotros,
    .contacto {
        padding: 45px 20px;
    }
}
/* PORTADA PRINCIPAL */

.portada {
    background-image:
        linear-gradient(
            90deg,
            rgba(8, 25, 45, 0.85),
            rgba(8, 25, 45, 0.15)
        ),
        url("imagenes/portada.jpg");

    background-size: cover;
    background-position: center;
    min-height: 420px;
}

/* TEXTO DE LA PORTADA */

.portada {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 60px 7%;
}

.portada h1 {
    max-width: 450px;
    font-size: 48px;
    line-height: 1.1;
}


/* TARJETAS DE PROPIEDADES */

.tarjeta-propiedad {
    overflow: hidden;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.tarjeta-propiedad:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

/* FOTOS DE LAS PROPIEDADES */

.tarjeta-propiedad img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tarjeta-propiedad:hover img {
    transform: scale(1.04);
}

/* INFORMACION DE LAS PROPIEDADES */

.info-propiedad {
    padding: 22px;
    text-align: left;
}

.info-propiedad h3 {
    font-size: 21px;
    color: #14283d;
    margin-bottom: 10px;
}

.info-propiedad p {
    color: #777;
    font-size: 15px;
    margin-bottom: 12px;
}

.info-propiedad h4 {
    color: #14283d;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

.info-propiedad button {
    background: #d9ad65;
    color: #14283d;
    border: none;
    padding: 12px 20px;
    border-radius: 7px;
    font-weight: bold;
    cursor: pointer;
}

.info-propiedad button:hover {
    background: #c69a50;
}

/* ETIQUETAS EN VENTA Y EN ALQUILER */

.tarjeta-propiedad {
    position: relative;
}

.etiqueta {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #14283d;
    color: white;
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.etiqueta.alquiler {
    background: #b88a45;
}

/* FRANJA DE SERVICIOS */

.servicios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f5f6f8;
    padding: 22px 5%;
    gap: 15px;
    text-align: center;
}

.servicios div {
    color: #14283d;
    font-size: 15px;
    font-weight: bold;
    padding: 12px;
    border-right: 1px solid #ddd;
}

.servicios div:last-child {
    border-right: none;
}

/* ADAPTACION PARA CELULARES */

@media (max-width: 768px) {
    .servicios {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
        gap: 8px;
    }

    .servicios div {
        font-size: 13px;
        padding: 10px;
        border-right: none;
    }
}

/* LOGO BRUNICARDI PROPIEDADES */

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    margin-right: auto;
    line-height: 1.2;
}

.logo span {
    color: #d4af6a;
    font-size: 30px;
}

.logo strong {
    font-size: 18px;
    letter-spacing: 2px;
}

.logo small {
    color: #d4af6a;
    font-size: 10px;
    letter-spacing: 3px;
}
/* BARRA DE NAVEGACIÓN */

.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
    padding: 12px 5%;
}

.menu .logo {
    margin-right: auto;
    flex-shrink: 0;
}
/* LOGO OFICIAL BRUNICARDI */

.menu .logo img {
    width: 165px;
    height: auto;
    display: block;
    object-fit: contain;
}

.menu .logo {
    margin-right: auto;
    flex-shrink: 0;
}
/* BOTÓN DE WHATSAPP DEL MENÚ */

.boton-whatsapp {
    background-color: transparent;
    color: white;
    border: 1px solid #d4af67;
    border-radius: 25px;
    padding: 10px 18px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.boton-whatsapp:hover {
    background-color: #d4af67;
    color: #14283d;
}

/* PIE DE PAGINA */

.pie-pagina {
    background: #14283d;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.pie-pagina h3 {
    color: #d4a85c;
    font-size: 24px;
    margin-bottom: 15px;
}

.pie-pagina p {
    margin: 10px 0;
    font-size: 14px;
}

.pie-pagina hr {
    border: none;
    border-top: 1px solid #d4a85c;
    margin: 25px auto;
    max-width: 600px;
}
/* LOGO DEL PIE DE PAGINA */

.logo-footer {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    object-fit: contain;
}
/* BUSCADOR DE PROPIEDADES */

.buscador-propiedades {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 35px auto;
    padding: 25px;
    background: #14283d;
    border-radius: 12px;
    max-width: 950px;
}

.buscador-propiedades select {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background: white;
    min-width: 200px;
}

.buscador-propiedades button {
    padding: 14px 25px;
    background: #d4a85f;
    color: #14283d;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.buscador-propiedades button:hover {
    background: #e6bd78;
}

@media (max-width: 768px) {
    .buscador-propiedades {
        flex-direction: column;
        padding: 20px;
    }

    .buscador-propiedades select,
    .buscador-propiedades button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

/* Tarjetas del panel de administración */

.propiedad-admin {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.propiedad-admin h3 {
    color: #243447;
    font-size: 20px;
    margin-bottom: 15px;
}

/* Botones del panel de administración */

.boton-editar,
.boton-eliminar {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 10px;
    margin-top: 10px;
}

.boton-editar {
    background-color: #2563eb;
}

.boton-eliminar {
    background-color: #dc2626;
}

.boton-editar:hover {
    background-color: #1d4ed8;
}

.boton-eliminar:hover {
    background-color: #b91c1c;
}

/* Formulario del panel de administración */

#formulario-propiedad {
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 25px;
    max-width: 700px;
}

#formulario-propiedad label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #243447;
}

#formulario-propiedad input,
#formulario-propiedad select,
#formulario-propiedad textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
}

#formulario-propiedad textarea {
    min-height: 100px;
}

#guardar-propiedad {
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

#guardar-propiedad:hover {
    background-color: #1d4ed8;
}

/* Tamaño de las fotos del panel */
.imagen-admin {
    display: block;
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin: 15px 0;
}
/* Ventana de detalles de propiedades */
#detalle-propiedad:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

#detalle-propiedad[hidden] {
    display: none;
}

#contenido-detalle {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
}
/* Galería de fotografías de cada propiedad */
.galeria-detalle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.galeria-detalle img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}
/* Botón de WhatsApp en la ficha de propiedad */
#contenido-detalle .boton-propiedad {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}

#contenido-detalle .boton-propiedad:hover {
    background-color: #1da851;
}
/* Título y precio de la ficha de propiedad */
#contenido-detalle h2 {
    color: #243447;
    font-size: 28px;
    margin-bottom: 10px;
}

#contenido-detalle h3 {
    color: #b88635;
    font-size: 26px;
    margin-bottom: 15px;
}

#contenido-detalle p {
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}
/* Botón de consulta de propiedades */
.tarjeta-propiedad .boton-propiedad {
    display: inline-block;
    background-color: #c9a05a;
    color: #243447;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
}

.tarjeta-propiedad .boton-propiedad:hover {
    background-color: #b58b45;
}
/* Espaciado de las propiedades */
.tarjeta-propiedad .info-propiedad {
    padding: 20px;
}
/* Ajustes de portada para celulares */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
        overflow-wrap: break-word;
    }
}
/* Menú adaptable a celulares */
@media (max-width: 768px) {
    nav.menu {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 20px 12px;
    }

    nav.menu .logo img {
        max-width: 180px;
        height: auto;
    }

    nav.menu > a:not(.logo):not(.boton-whatsapp) {
        display: inline-block;
        text-align: center;
        margin: 0;
    }

    nav.menu .boton-whatsapp {
        margin: 8px 0 0;
    }
}
/* Centrar el logo en celulares */
@media (max-width: 768px) {
    nav.menu .logo {
        display: flex;
        justify-content: center;
        width: auto;
        margin: 0;
    }
}
/* Mejorar el título principal en celulares */
@media (max-width: 768px) {
    .portada h1 {
        font-size: 28px;
        line-height: 1.2;
        overflow-wrap: break-word;
        max-width: 100%;
    }
}
/* Botón del menú para celulares */
#boton-menu {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}
/* Menú desplegable para celulares */
@media (max-width: 768px) {

    #boton-menu {
        display: block;
        margin: 10px auto;
    }

    #enlaces-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    #enlaces-menu.abierto {
        display: flex;
    }
}
/* Corrección del menú desplegable */
@media (max-width: 768px) {
    #enlaces-menu:not(.abierto) {
        display: none !important;
    }

    #enlaces-menu.abierto {
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    nav.menu {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
}

/* Botón de Instagram */
.boton-instagram {
    display: inline-block;
    background: linear-gradient(45deg, #833ab4, #e1306c, #f77737);
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin: 8px;
    transition: 0.3s;
}

.boton-instagram:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}
/* Instagram en celulares */
@media (max-width: 768px) {
    .boton-instagram {
        display: block;
        width: fit-content;
        max-width: 90%;
        margin: 10px auto;
        text-align: center;
        box-sizing: border-box;
    }
}

/* Visor de fotografías ampliadas */
#visor-fotos {
    width: 95%;
    max-width: 1100px;
    max-height: 95vh;
    padding: 10px;
    border: none;
    border-radius: 12px;
    background: #111827;
    color: white;
    overflow: hidden;
}

#visor-fotos::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

#visor-imagen {
    display: block;
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

#visor-fotos button {
    position: absolute;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 22px;
    cursor: pointer;
}

#visor-cerrar {
    top: 15px;
    right: 15px;
}

#visor-anterior {
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}

#visor-siguiente {
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
}

/* Galería de fotografías en celulares */
@media (max-width: 768px) {

    #visor-fotos {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        padding: 55px 10px 45px;
        border-radius: 0;
    }

    #visor-imagen {
        width: 100%;
        height: calc(100dvh - 100px);
        max-height: none;
        object-fit: contain;
    }

    #visor-anterior,
    #visor-siguiente {
        font-size: 24px;
        padding: 12px 9px;
    }

    #visor-cerrar {
        top: 12px;
        right: 12px;
    }
}



