/* =========================================================
   JV PROPIEDADES - ESTILOS GENERALES
   ========================================================= */


/* =========================================================
   VARIABLES Y ESTILOS GENERALES
   ========================================================= */

:root {
    --rojo: #b30000;
    --rojo-oscuro: #8f0000;
    --negro: #1b1b1b;
    --gris: #666;
    --gris-suave: #f7f7f5;
    --blanco: #fff;
    --borde: #e9e9e9;
    --sombra: 0 12px 35px rgba(0,0,0,.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--negro);
    background: var(--blanco);
    line-height: 1.6;
}

img {
    display: block;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 24px 6%;

    color: white;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .5px;
}

.logo span {
    color: var(--rojo);
}

.logo img,
.header .logo img {
    width: 180px;
    height: auto;
    display: block;
}


/* =========================================================
   MENÚ
   ========================================================= */

.menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.menu a {
    font-size: 14px;
    font-weight: 500;
    color: white;
    transition: .3s;
}

.menu a:hover {
    color: #ddd;
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav a {
    font-size: 14px;
}


/* BOTÓN WHATSAPP DEL HEADER */

.btn-whatsapp {
    background: var(--rojo);
    color: white;

    padding: 11px 21px;

    border-radius: 4px;

    font-size: 14px;
    font-weight: 600;

    transition: .3s;
}

.btn-whatsapp:hover {
    background: var(--rojo-oscuro);
    transform: translateY(-2px);
}


/* MENÚ HAMBURGUESA */

.menu-toggle {
    display: none;

    background: transparent;
    border: none;

    color: white;

    font-size: 28px;

    cursor: pointer;

    padding: 5px;
}




/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 720px;
    position: relative;
    overflow: hidden;
}

/* IMÁGENES ROTATIVAS */

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* CAPA OSCURA + CONTENIDO */

.hero-overlay {
    min-height: 720px;

    display: flex;
    align-items: center;

    padding: 130px 6% 100px;

    position: relative;
    z-index: 2;

    background: linear-gradient(
        90deg,
        rgba(0,0,0,.48),
        rgba(0,0,0,.15)
    );
}

.hero-content {
    max-width: 760px;
    color: white;
}

.hero-label {
    display: block;

    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 700;

    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1.05;

    font-weight: 400;

    margin-bottom: 25px;
}

.hero h1 strong {
    display: block;
    font-weight: 700;
}

.hero-content > p {
    font-size: 19px;
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* =========================================================
   BOTONES GENERALES
   ========================================================= */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 27px;

    border-radius: 4px;

    font-size: 14px;
    font-weight: 600;

    transition: .3s;
}

.btn-primary {
    background: var(--rojo);
    color: white;
}

.btn-primary:hover {
    background: var(--rojo-oscuro);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,.8);
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--negro);
}

.btn-outline {
    display: inline-block;

    padding: 13px 26px;

    border: 1px solid var(--negro);

    font-size: 14px;
    font-weight: 600;

    transition: .3s;
}

.btn-outline:hover {
    background: var(--negro);
    color: white;
}


/* =========================================================
   BUSCADOR DEL INDEX
   ========================================================= */

.buscador {
    position: relative;
    z-index: 10;

    margin-top: -65px;

    padding: 0 6%;
}

.buscador-contenido {
    background: white;

    padding: 27px 30px;

    box-shadow: var(--sombra);

    display: grid;

    grid-template-columns: 1.35fr 1fr 1fr 1fr auto;

    gap: 13px;

    align-items: end;
}

.buscador-contenido span {
    color: var(--rojo);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.buscador h2 {
    font-size: 20px;
    margin-top: 2px;
}

.buscador select {
    height: 49px;

    padding: 0 14px;

    border: 1px solid var(--borde);

    background: white;

    color: #555;

    font-size: 14px;

    outline: none;
}

.buscador select:focus {
    border-color: var(--rojo);
}

.btn-buscar {
    height: 49px;

    padding: 0 29px;

    border: none;
    border-radius: 4px;

    background: var(--rojo);
    color: white;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: .3s;
}

.btn-buscar:hover {
    background: var(--rojo-oscuro);
}


/* =========================================================
   SECCIONES GENERALES
   ========================================================= */

.seccion {
    padding: 110px 6%;
}

.titulo-seccion {
    max-width: 700px;

    margin: 0 auto 55px;

    text-align: center;
}

.titulo-seccion > span {
    color: var(--rojo);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
}

.titulo-seccion h2 {
    font-size: 42px;
    line-height: 1.15;

    margin: 9px 0 13px;
}

.titulo-seccion p {
    color: var(--gris);
    font-size: 16px;
}


/* =========================================================
   PROPIEDADES DESTACADAS DEL INDEX
   ========================================================= */

.propiedades {
    background: white;
}

.propiedades-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;
}

.propiedad {
    background: white;

    border: 1px solid var(--borde);

    border-radius: 6px;

    overflow: hidden;

    box-shadow: 0 7px 25px rgba(0,0,0,.05);

    transition: .3s;
}

.propiedad:hover {
    transform: translateY(-6px);

    box-shadow: var(--sombra);
}

.propiedad-imagen {
    width: 100%;
    height: 245px;

    overflow: hidden;

    background: #eee;
}

.propiedad-imagen img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s;
}

.propiedad:hover .propiedad-imagen img {
    transform: scale(1.04);
}

.propiedad-contenido {
    padding: 25px;
}

.propiedad-contenido small {
    color: var(--rojo);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.propiedad h3 {
    font-size: 23px;
    line-height: 1.2;

    margin: 7px 0 8px;
}

.ubicacion {
    color: var(--gris);

    font-size: 14px;

    margin-bottom: 14px;
}

.propiedad-contenido > p:not(.ubicacion) {
    color: var(--gris);

    font-size: 14px;

    min-height: 48px;
}

.propiedad-footer {
    border-top: 1px solid var(--borde);

    margin-top: 22px;
    padding-top: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.propiedad-footer strong {
    font-size: 18px;
}

.propiedad-footer a {
    color: var(--rojo);

    font-size: 13px;
    font-weight: 700;
}

.centrado {
    text-align: center;
    margin-top: 45px;
}


/* =========================================================
   LOCALIDADES DEL INDEX
   IMPORTANTE:
   Esto es solamente para las TARJETAS del index.
   El detalle de cada localidad está en localidades.css
   ========================================================= */

.localidades {
    padding: 110px 5%;

    background: #f8f8f8;
}

.localidades .titulo-seccion {
    text-align: center;

    margin-bottom: 50px;
}

.localidades .titulo-seccion span {
    display: block;

    margin-bottom: 12px;

    color: #c00000;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.localidades .titulo-seccion h2 {
    margin: 0 0 15px;

    font-size: 42px;

    color: #111;
}

.localidades .titulo-seccion p {
    margin: 0 auto;

    max-width: 650px;

    color: #666;

    font-size: 16px;
}

.localidades-grid {
    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/* TARJETAS */

.localidad-card {
    position: relative;

    height: 430px;

    overflow: hidden;

    display: block;

    text-decoration: none;

    border-radius: 4px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.localidad-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.localidad-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.05) 65%
    );
}

.localidad-overlay {
    position: absolute;

    z-index: 2;

    left: 30px;
    right: 30px;
    bottom: 28px;

    color: white;
}

.localidad-overlay h3 {
    margin: 0 0 8px;

    font-size: 28px;
    font-weight: 600;
}

.localidad-overlay span {
    font-size: 14px;

    color: white;

    opacity: 0.9;
}

.localidad-card:hover img {
    transform: scale(1.06);
}


/* =========================================================
   NOSOTROS
   ========================================================= */

.nosotros {
    max-width: 1250px;

    margin: 0 auto;

    padding: 110px 5%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;

    background: #ffffff;

    color: var(--negro);
}

.nosotros-imagen {
    height: 520px;

    overflow: hidden;

    border-radius: 3px;

    box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.nosotros-imagen img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.nosotros-contenido {
    max-width: 650px;

    padding-right: 30px;
}

.nosotros-contenido > span,
.nosotros-contenido span {
    display: block;

    margin-bottom: 15px;

    color: #c00000;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.nosotros-contenido h2,
.nosotros h2 {
    margin: 0 0 25px;

    color: #111111;

    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
}

.nosotros-contenido p,
.nosotros p {
    margin: 0 0 18px;

    color: #666666;

    font-size: 16px;
    line-height: 1.8;
}

.nosotros-contenido .btn-primary {
    display: inline-block;

    margin-top: 15px;
}


/* =========================================================
   CONTACTO
   ========================================================= */

.contacto {
    padding: 100px 6%;

    text-align: center;
}

.contacto > span {
    color: var(--rojo);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
}

.contacto h2 {
    font-size: 50px;

    margin: 10px 0;
}

.contacto p {
    color: var(--gris);

    margin-bottom: 30px;
}


/* =========================================================
   FOOTER GENERAL
   ========================================================= */

.footer {
    background: #111111;

    color: white;

    padding: 35px 5% 0;
}

.footer-contenido {
    max-width: 1250px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;

    gap: 50px;

    padding-bottom: 25px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
}

.footer-logo span {
    color: #c00000;
}

.footer-marca p {
    max-width: 280px;

    margin: 15px 0 0;

    color: #999;

    font-size: 14px;
    line-height: 1.6;
}

.footer h4 {
    margin: 0 0 18px;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 2px;
}

.footer-enlaces {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.footer-enlaces a,
.footer-dato {
    color: #aaa;

    text-decoration: none;

    font-size: 14px;

    transition: .2s;
}

.footer-enlaces a:hover,
.footer-dato:hover {
    color: white;
}

.footer-contacto {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-contacto p {
    margin: 0;

    color: #aaa;

    font-size: 14px;
}

.footer-redes p {
    color: #888;

    font-size: 13px;

    margin-top: 10px;

    text-align: center;
}

.redes-iconos {
    display: flex;

    gap: 12px;

    justify-content: center;
    align-items: center;
}

.redes-iconos a {
    width: 42px;
    height: 42px;

    border: 1px solid #444;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: white;

    text-decoration: none;

    font-size: 20px;
    font-weight: 600;

    transition: .3s;
}

.redes-iconos a:hover {
    background: #c00000;

    border-color: #c00000;
}

.footer-bottom {
    max-width: 1250px;

    margin: 0 auto;

    padding: 18px 0;

    border-top: 1px solid #292929;

    text-align: center;
}

.footer-bottom p {
    margin: 0;

    color: #777;

    font-size: 12px;
}


/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */

.whatsapp-flotante {
    position: fixed;

    right: 22px;
    bottom: 22px;

    width: 54px;
    height: 54px;

    background: #25D366;

    color: white;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 25px;

    box-shadow: 0 7px 20px rgba(0,0,0,.2);

    z-index: 100;
}


/* =========================================================
   PÁGINA GENERAL DE PROPIEDADES
   ========================================================= */

.pagina-propiedades {
    background: #f7f7f7;

    min-height: 100vh;

    padding-bottom: 60px;
}


/* HERO PROPIEDADES */

.propiedades-hero {
    background: #111111;

    color: white;

    text-align: center;

    padding: 150px 20px 70px;
}

.propiedades-hero .etiqueta {
    color: #c00000;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 15px;
}

.propiedades-hero h1 {
    font-size: 42px;

    margin: 0 0 15px;
}

.propiedades-hero p:last-child {
    color: #bbb;

    font-size: 16px;

    margin: 0;
}


/* FILTROS */

.filtros-propiedades {
    max-width: 1100px;

    margin: -30px auto 60px;

    background: white;

    padding: 25px;

    border-radius: 8px;

    box-shadow: 0 10px 30px rgba(0,0,0,.08);

    display: grid;

    grid-template-columns: 1fr 1fr 1fr auto;

    gap: 15px;
}

.filtros-propiedades select {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid #ddd;

    border-radius: 5px;

    background: white;

    font-size: 14px;

    color: #444;
}

.filtros-propiedades button {
    border: none;

    background: #c00000;

    color: white;

    padding: 13px 28px;

    border-radius: 5px;

    font-weight: 600;

    cursor: pointer;

    transition: .3s;
}

.filtros-propiedades button:hover {
    background: #a00000;
}


/* LISTADO */

.listado-propiedades {
    max-width: 1250px;

    margin: 0 auto;

    padding: 0 5%;
}

.titulo-listado {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 30px;
}

.titulo-listado h2 {
    margin: 0;

    font-size: 28px;

    color: #111;
}

.titulo-listado span {
    color: #888;

    font-size: 14px;
}


/* GRILLA */

.grid-propiedades {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/* TARJETAS */

.tarjeta-propiedad {
    background: white;

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0,0,0,.07);

    transition: .3s;
}

.tarjeta-propiedad:hover {
    transform: translateY(-4px);

    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.tarjeta-propiedad img {
    width: 100%;
    height: 230px;

    object-fit: cover;
}

.tarjeta-contenido {
    padding: 20px;
}

.tarjeta-tipo {
    color: #c00000;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.tarjeta-contenido h3 {
    margin: 8px 0;

    font-size: 20px;

    color: #111;
}

.tarjeta-localidad {
    color: #777;

    font-size: 14px;

    margin-bottom: 15px;
}

.tarjeta-precio {
    font-size: 21px;
    font-weight: 700;

    color: #111;

    margin-bottom: 15px;
}

.btn-ver-propiedad {
    display: inline-block;

    background: #c00000;

    color: white;

    text-decoration: none;

    padding: 11px 20px;

    border-radius: 5px;

    font-size: 14px;
    font-weight: 600;

    transition: .3s;
}

.btn-ver-propiedad:hover {
    background: #a00000;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .menu {
        gap: 18px;
    }

    .buscador-contenido {
        grid-template-columns: repeat(2, 1fr);
    }

    .buscador-contenido > div {
        grid-column: 1 / -1;
    }

    .propiedades-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-propiedades {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-contenido {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 800px) {

    /* HEADER */

    .header {
        padding: 16px 20px;
    }

    .logo img,
    .header .logo img {
        width: 135px;
    }

    .btn-whatsapp {
        display: none;
    }

    .menu-toggle {
        display: flex;

        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;

        border-radius: 50%;

        background: #c00000;

        color: white;

        font-size: 22px;

        cursor: pointer;
    }


    /* MENÚ */

    .menu {
        display: none;

        position: absolute;

        top: 70px;
        right: 20px;
        left: auto;

        width: 230px;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        background: rgba(17,17,17,.98);

        padding: 5px 0;

        border-radius: 8px;

        box-shadow: 0 15px 35px rgba(0,0,0,.25);

        overflow: hidden;
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        padding: 10px 20px;

        color: white;

        text-align: left;

        font-size: 14px;

        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .menu a:last-child {
        border-bottom: none;
    }

    .menu a:hover {
        background: #c00000;
    }

    .nav {
        display: none;
    }

/* HERO */

.hero,
.hero-overlay {
    min-height: 650px;
}

.hero-overlay {
    padding: 110px 20px 80px;

    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 36px;
    line-height: 1.08;
}

.hero h1 .titulo-linea1,
.hero h1 .titulo-linea2,
.hero h1 strong {
    display: block;
}

.hero h1 strong {
    font-size: 40px;
    margin-top: 6px;
}
.hero-content > p {
    font-size: 16px;
}
    /* BUSCADOR */

    .buscador {
        margin-top: -35px;

        padding: 0 18px;
    }

    .buscador-contenido {
        grid-template-columns: 1fr;

        padding: 23px;
    }

    .buscador-contenido > div {
        grid-column: auto;
    }


    /* SECCIONES */

    .seccion {
        padding: 75px 20px;
    }

    .titulo-seccion h2 {
        font-size: 32px;
    }


    /* PROPIEDADES INDEX */

    .propiedades-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .propiedad-imagen {
        height: 240px;
    }


    /* LOCALIDADES DEL INDEX */

    .localidades {
        padding: 75px 20px;
    }

    .localidades .titulo-seccion h2 {
        font-size: 32px;
    }

    .localidades-grid {
        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .localidad-card {
        height: 180px;
    }

    .localidad-overlay {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }

    .localidad-overlay h3 {
        font-size: 20px;
    }

    .localidad-overlay span {
        font-size: 12px;
    }


    /* NOSOTROS */

    .nosotros {
        grid-template-columns: 1fr;

        gap: 40px;

        padding: 75px 20px;
    }

    .nosotros-imagen {
        height: 380px;
    }

    .nosotros-contenido {
        padding-right: 0;
    }

    .nosotros-contenido h2,
    .nosotros h2 {
        font-size: 34px;
    }


    /* CONTACTO */

    .contacto {
        padding: 75px 20px;
    }

    .contacto h2 {
        font-size: 40px;
    }


    /* FOOTER */

    .footer {
        padding: 45px 25px 0;
    }

    .footer-contenido {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .footer-bottom {
        text-align: center;
    }


    /* PÁGINA PROPIEDADES */

    .propiedades-hero {
        padding: 120px 20px 60px;
    }

    .propiedades-hero h1 {
        font-size: 32px;
    }

    .filtros-propiedades {
        margin: -25px 20px 45px;

        grid-template-columns: 1fr;
    }

    .grid-propiedades {
        grid-template-columns: 1fr;
    }

    .titulo-listado {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }
}


/* =========================================================
   CELULARES PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {

    .hero h1 {
        font-size: 36px;
    }

    .contacto h2 {
        font-size: 34px;
    }

    .localidad-card {
        height: 165px;
    }
}


/* =========================================
   ANIMACIÓN PROPIEDADES DESTACADAS
========================================= */

.propiedades .propiedad {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.propiedades .propiedad.animar {
    opacity: 1;
    transform: translateY(0);
}



/* =========================================
   WHATSAPP FLOTANTE
========================================= */

.whatsapp-flotante {
    position: fixed;

    right: 22px;
    bottom: 22px;

    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;
    color: #ffffff;

    border-radius: 50%;

    font-size: 30px;

    text-decoration: none;

    box-shadow: 0 5px 20px rgba(0,0,0,.25);

    z-index: 9999;

    transition: transform .25s ease;
}

.whatsapp-flotante:hover {
    transform: scale(1.08);
}