/* Reset base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

/* Paleta Company Inmobiliaria */
:root {
    --color-principal: #1a1a1a;      /* Negro profundo */
    --color-secundario: #f7c948;     /* Amarillo dorado */
    --color-amarillo-suave: #fffbe6; /* Fondo claro */
    --color-blanco: #fff;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--color-amarillo-suave);
    color: var(--color-principal);
    width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Navbar */
.nav {
    background-color: var(--color-principal);
    color: var(--color-secundario);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 70px;
    box-sizing: border-box;
    position: relative;
    border-bottom: 4px solid var(--color-secundario);
}

.nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav .menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav .menu li a {
    color: var(--color-secundario);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.nav .menu li a:hover {
    background-color: var(--color-secundario);
    color: var(--color-principal);
    text-decoration: none;
}

/* Secciones */
section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.hero {
    text-align: center;
    background-color: #eaf2fb;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
}

.hero a.button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
}

/* Catálogo */
.catalogo {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.tarjeta {
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 280px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.tarjeta img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tarjeta-content {
    padding: 15px;
}

.tarjeta h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tarjeta p {
    margin: 4px 0;
    font-size: 0.95rem;
    color: #444;
}

.tarjeta .boton {
    display: inline-block;
    margin-top: 10px;
    background-color: #28a745;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--color-principal);
    color: var(--color-secundario);
    text-align: center;
    padding: 18px;
    margin-top: 40px;
    border-top: 4px solid var(--color-secundario);
    font-weight: 600;
    letter-spacing: 0.5px;
}


.panel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.panel-card {
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    width: 200px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.panel-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #003366;
}

.panel-card p {
    font-size: 1.4rem;
    font-weight: bold;
    color: #222;
}

.tabla {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 30px;
}

.tabla th, .tabla td {
    padding: 12px 8px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 0.95rem;
}

.tabla th {
    background-color: #003366;
    color: white;
}

.tabla td:first-child {
    width: 50px;
}

.tabla td:nth-child(2) {
    text-align: left;
    width: 250px;
}

.tabla td:nth-child(6) {
    font-size: 0.85rem;
    color: #444;
}

/* --- ESTILOS RESPONSIVOS --- */

/* Botón hamburguesa */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav .menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #003366;
        flex-direction: column;
        min-width: 200px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        border-radius: 0 0 8px 8px;
        z-index: 1000;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .nav .menu.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #navMenu.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav .menu li {
        width: 100%;
    }
    
    .nav .menu li a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 20px;
        display: block;
    }
    
    .nav .menu li:last-child a {
        border-bottom: none;
    }
/* Hero section responsivo */
.hero {
    padding: 30px 15px;
}
    
    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    /* Secciones responsivas */
    section {
        padding: 20px 15px;
    }
    
    /* Catálogo responsivo */
    .catalogo {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .tarjeta {
        width: 100%;
        max-width: 380px;
    }
    
    .tarjeta img {
        height: 220px;
    }
    
    /* Panel cards responsivo */
    .panel-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin: 20px 0;
    }
    
    .panel-card {
        width: 100%;
        max-width: none;
    }
    
    /* Formularios responsivos */
    form {
        padding: 20px 15px;
    }
    
    input, select, textarea {
        padding: 15px;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .button, .boton {
        padding: 15px 20px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 15px auto;
        display: block;
        text-align: center;
        min-height: 44px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    /* Estilos para pantallas muy pequeñas */
    .nav .logo {
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .tarjeta {
        width: 100%;
        max-width: 280px;
    }
    
    .tarjeta h3 {
        font-size: 1rem;
    }
    
    .tarjeta p {
        font-size: 0.85rem;
    }
    
    .tabla {
        font-size: 0.75rem;
    }
    
    section {
        padding: 15px 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Estilos para tablets */
    .catalogo {
        justify-content: space-around;
    }
    
    .tarjeta {
        width: 45%;
        min-width: 300px;
    }
    
    .panel-grid {
        justify-content: space-around;
    }
    
    .panel-card {
        width: 220px;
    }
    
    .hero {
        padding: 50px 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* Desktop - mostrar menú normal */
@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }
    
    .nav .menu {
        display: flex;
    }
}

.logo {
    display: flex;
    align-items: center;
    height: 70px;
    padding-left: 24px;
}
.logo-img {
    height: 54px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
@media (max-width: 600px) {
    .logo {
        padding-left: 8px;
    }
    .logo-img {
        height: 36px;
        max-width: 80px;
        padding: 2px 2px;
    }
}

/* Ficha de propiedad detallada estilo FincaRaiz */
.ficha-propiedad {
    max-width: 950px;
    margin: 40px auto 40px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 40px 50px 40px 50px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.ficha-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #e5e8ee;
    padding-bottom: 18px;
    margin-bottom: 30px;
}

.ficha-titulo {
    font-size: 2.2rem;
    font-weight: bold;
    color: #16304a;
    margin-bottom: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ficha-precio {
    font-size: 2rem;
    color: #16304a;
    font-weight: bold;
    margin-left: 30px;
    white-space: nowrap;
}

.ficha-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}
.ficha-galeria img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0001;
    background: #f5f5f5;
}

.ficha-caracteristicas {
    margin: 30px 0 30px 0;
}

.ficha-caracteristicas h2 {
    font-size: 1.4rem;
    color: #16304a;
    margin-bottom: 10px;
    font-weight: bold;
}

.ficha-caracteristicas-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 20px;
}

.ficha-caracteristicas-lista ul {
    list-style: disc inside;
    color: #3a4a5d;
    font-size: 1.1rem;
    min-width: 250px;
    margin: 0;
    padding: 0;
}

.ficha-descripcion h2 {
    font-size: 1.4rem;
    color: #16304a;
    margin-bottom: 10px;
    font-weight: bold;
}

.ficha-descripcion p {
    font-size: 1.15rem;
    color: #22334a;
    margin-bottom: 10px;
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .ficha-propiedad {
        padding: 30px 10px;
    }
    .ficha-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .ficha-precio {
        margin-left: 0;
    }
    .ficha-caracteristicas-lista {
        flex-direction: column;
        gap: 10px;
    }
}

/* Estilos del filtro de búsqueda */
.filtro-busqueda {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 36px 0 40px 0;
    background: #fff;
    padding: 22px 32px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.filtro-busqueda input,
.filtro-busqueda select {
    padding: 14px 18px;
    border: 1.5px solid #bfc9d1;
    border-radius: 8px;
    font-size: 1.08rem;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    background: #f8fafc;
    color: #22334a;
    min-width: 210px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.filtro-busqueda input:focus,
.filtro-busqueda select:focus {
    border: 1.5px solid #007bff;
    box-shadow: 0 0 0 2px #cce4ff;
}
.filtro-busqueda button {
    background: linear-gradient(90deg, #007bff 60%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    letter-spacing: 0.5px;
}
.filtro-busqueda button:hover {
    background: linear-gradient(90deg, #0056b3 60%, #007bff 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 700px) {
    .filtro-busqueda {
        flex-direction: column;
        gap: 14px;
        padding: 16px 8px;
        max-width: 98vw;
    }
    .filtro-busqueda input,
    .filtro-busqueda select {
        min-width: 0;
        width: 100%;
    }
    .filtro-busqueda button {
        width: 100%;
        padding: 14px 0;
    }
}

.estado-propiedad {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px 22px;
    margin: 18px 0 24px 0;
    font-size: 1.15rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    width: fit-content;
}
.estado-label {
    font-weight: 600;
    color: #16304a;
    margin-right: 6px;
}
.estado-valor {
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 6px;
    background: #eaf2fb;
    color: #007bff;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}
.estado-valor.disponible {
    background: #e6fbe6;
    color: #22bb55;
}
.estado-valor.ocupado {
    background: #fff3cd;
    color: #b8860b;
}
.estado-valor.vendido {
    background: #ffe6e6;
    color: #d9534f;
}

.caracteristicas-lista {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    list-style: disc inside;
    margin: 0 0 20px 0;
    padding: 0 0 0 18px;
    color: #24406a;
    font-size: 1.08rem;
}
.caracteristicas-lista li {
    margin-bottom: 10px;
    padding-left: 4px;
    break-inside: avoid;
}
@media (max-width: 700px) {
    .caracteristicas-lista {
        columns: 1;
        padding-left: 10px;
    }
}

/* Botones principales */
.boton,
a.boton,
.ficha-botones a,
a.whatsapp-boton {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 12px auto;
    padding: 14px 0;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    box-shadow: 0 2px 12px rgba(44, 187, 99, 0.10);
    cursor: pointer;
    letter-spacing: 0.5px;
}

.ficha-botones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
}
.ficha-botones .boton {
    width: 90%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Botón Ver más */
.boton.ver-mas,
.ficha-botones .ver-mas {
    background: linear-gradient(90deg, #22bb55 0%, #38d39f 100%);
    color: #fff;
}
.boton.ver-mas:hover,
.ficha-botones .ver-mas:hover {
    background: linear-gradient(90deg, #1a9442 0%, #2bbd7e 100%);
    box-shadow: 0 4px 18px rgba(44, 187, 99, 0.18);
}

/* Botón WhatsApp */
.boton.whatsapp,
.ficha-botones .whatsapp,
a.whatsapp-boton {
    background: linear-gradient(90deg, #25d366 0%, #128c7e 100%);
    color: #fff;
}
.boton.whatsapp:hover,
.ficha-botones .whatsapp:hover,
a.whatsapp-boton:hover {
    background: linear-gradient(90deg, #128c7e 0%, #25d366 100%);
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.18);
    color: #fff;
}

/* Botón de contacto en sección dudas */
a.whatsapp-boton {
    margin-top: 18px;
    font-size: 1.18rem;
    font-weight: 700;
    background: linear-gradient(90deg, #25d366 0%, #128c7e 100%);
    color: #fff !important;
    border-radius: 12px;
    padding: 18px 0;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.12);
    transition: background 0.2s, box-shadow 0.2s;
}
a.whatsapp-boton:hover {
    background: linear-gradient(90deg, #128c7e 0%, #25d366 100%);
    color: #fff !important;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.18);
}

.ficha-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}
.ficha-galeria img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0001;
    background: #f5f5f5;
}

/* Galería tipo cuadrícula ficha propiedad */
.ficha-galeria-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin-bottom: 30px;
    align-items: stretch;
}
.galeria-principal img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0001;
    background: #f5f5f5;
    cursor: pointer;
}
.galeria-miniaturas {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    height: 100%;
}
.galeria-miniaturas img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0001;
    background: #f5f5f5;
    cursor: pointer;
}
@media (max-width: 900px) {
    .ficha-galeria-grid {
        grid-template-columns: 1fr;
    }
    .galeria-principal img {
        height: 220px;
    }
    .galeria-miniaturas {
        grid-template-rows: none;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 10px;
    }
    .galeria-miniaturas img {
        height: 80px;
    }
}

/* Financiación */
.financiacion-section {
    max-width: 600px;
    margin: 60px auto 60px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 40px 30px 40px 30px;
    text-align: center;
}
.financiacion-section h2 {
    font-size: 2rem;
    color: #16304a;
    margin-bottom: 24px;
    font-weight: bold;
}
.financiacion-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}
.financiacion-lista li {
    background: #eaf2fb;
    color: #16304a;
    margin: 12px 0;
    padding: 14px 0;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 500;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    transition: background 0.2s;
}
.financiacion-lista li:hover {
    background: #d6e6f7;
}
.financiacion-consulta p {
    font-size: 1.08rem;
    color: #22334a;
    margin-bottom: 18px;
}

/* Asesorías */
.asesorias-section {
    max-width: 650px;
    margin: 60px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 40px 30px;
    text-align: center;
}
.asesorias-section h2 {
    font-size: 2rem;
    color: #16304a;
    margin-bottom: 24px;
    font-weight: bold;
}
.asesorias-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}
.asesorias-lista li {
    background: #eaf2fb;
    color: #16304a;
    margin: 10px 0;
    padding: 13px 0;
    border-radius: 10px;
    font-size: 1.08rem;
    font-weight: 500;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    transition: background 0.2s;
}
.asesorias-lista li:hover {
    background: #d6e6f7;
}
.asesoria-alerta {
    background: #fff3cd !important;
    color: #b8860b !important;
    font-weight: bold;
    border: 1px solid #ffeeba;
}
.asesorias-consulta p {
    font-size: 1.08rem;
    color: #22334a;
    margin-bottom: 18px;
}
