/*
 * Theme Name: Hello Child
 * Theme URI: https://inmoproptech.com/
 * Description: Tema hijo para Hello Elementor.
 * Author: InmoProptech
 * Author URI: https://inmoproptech.com/
 * Template: hello-elementor
 * Version: 1.0.1
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: hello-elementor-child
 */


/* ======================================================
    RESET DE BOX-SIZING PARA PREVENIR DESBORDAMIENTO HORIZONTAL
    ====================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}


/* ========================================= */
/* === Unificación de Estilos de fuentes GLOBALES === */
/* ========================================= */

/* La fuente 'Mulish' ahora se carga desde functions.php */

body, p, span, a, button, input, select, textarea {
    font-family: 'Mulish', sans-serif !important;
    font-weight: 400; /* Peso normal para el texto general y de formularios */
}

h1, h2, h3, h4, h5, h6, strong, b, .font-bold {
    font-family: 'Mulish', sans-serif !important;
    font-weight: 700; /* Peso de negrita para títulos y elementos importantes */
}
/* ========================================= */
/* === Estilos globales del cuerpo === */
/* ========================================= */
body {
    background-color: #f7f7f7 !important;
}

/* ========================================= */
/* === Estilos del encabezado personalizado === */
/* ========================================= */
#custom-property-header {
    margin-bottom: 80px !important;
}

/* ========================================= */
/* === Estilos del menú móvil === */
/* ========================================= */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    transition: left 0.3s ease-in-out;
    z-index: 999;
    padding-top: 60px;
    list-style: none;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.mobile-menu li a:hover {
    background-color: #f0f0f0;
    color: #0367FD;
    border-bottom: 1px solid #0367FD;
}

/* ========================================= */
/* === Estilos de los botones del carrusel === */
/* ========================================= */
.carrusel-btn.prev-btn {
    left: 10px !important;
}

.carrusel-btn.next-btn {
    right: 10px !important;
}

/* ========================================= */
/* === Estilos para el bloque de planos === */
/* ========================================= */
.property-plans-block {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.property-plans-block h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 15px;
}

.property-plans-block h3 {
    font-size: 16px;
    font-weight: 500;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.plans-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.plan-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.plan-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.plan-description {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.4;
}

/* ======================================================
   ESTILOS PARA TARJETA DE PROPIEDAD (Resultados de Búsqueda)
   ====================================================== */

/* Contenedor principal para la lista de propiedades */
.properties-list-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Tarjeta individual de propiedad */
.ipt-property-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Ajustes para vista de escritorio */
@media (min-width: 992px) {
    .ipt-property-card {
        flex-direction: row;
        height: 350px;
    }
}

/* Contenedor de la imagen */
.ipt-property-image-wrapper {
    width: calc(100% - 30px); /* Ajuste para compensar los márgenes */
    height: 250px;
    margin: 15px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

@media (min-width: 992px) {
    .ipt-property-image-wrapper {
        width: 400px;
        height: calc(100% - 30px);
        flex-shrink: 0;
    }
}

.ipt-property-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenedor de los detalles */
.ipt-property-details {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Título de la propiedad */
.ipt-property-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}
.ipt-property-title a {
    color: #0367FD !important;
    text-decoration: none !important;
}
.ipt-property-title a:hover {
    text-decoration: none !important;
}

/* Precio principal */
.ipt-property-main-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 15px 0;
}

/* Fila de características principales (área, ciudad, etc.) */
.ipt-card-metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.ipt-metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ipt-metric-item img.ipt-feature-icon {
    width: 20px;
    height: 20px;
    filter: invert(29%) sepia(97%) saturate(3431%) hue-rotate(210deg) brightness(100%) contrast(102%);
}

.ipt-metric-text .ipt-metric-label {
    font-size: 12px;
    color: #718096;
    display: block;
}

.ipt-metric-text .ipt-metric-value {
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
}

/* Descripción corta */
.ipt-card-description {
    flex: 1;
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    margin: 15px 0;
    overflow-y: auto;
    min-height: 80px;
}

/* Pie de la tarjeta con el botón */
.ipt-details-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
}

.ipt-btn-details {
    padding: 6px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.ipt-btn-details:hover {
    background-color: #0056b3;
}


/* Ajuste final para el margen inferior del botón 'Ver Detalles' */
.ipt-property-card .ipt-btn-details {
    margin-bottom: 15px !important;
}

/* ======================================================
   FIN DE ESTILOS PARA TARJETA DE PROPIEDAD
   ====================================================== */


/* ======================================================
   ESTILOS CONSOLIDADOS PARA DISPOSITIVOS MÓVILES (768px o menos)
   ====================================================== */
@media (max-width: 768px) {
    /* Evita el desbordamiento horizontal en todo el sitio */
    body, html {
        overflow-x: hidden;
    }
    /* Reduce los márgenes laterales de los contenedores principales */
    .property-container,
    .filtered-properties-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    /* Solución para los márgenes de la imagen en la tarjeta de propiedad */
    body .properties-list-container .ipt-property-card .ipt-property-image-wrapper {
        width: calc(100% - 30px) !important;
        margin: 15px !important;
    }
} /* <-- Aquí termina el bloque para 768px */


/* ======================================================
   SOLUCIONES GENERALES (Aplican a todos los tamaños de pantalla)
   ====================================================== */
/*
 * Centra el contenedor en la página de archivo de propiedades
 */
.post-type-archive-propiedad .site-main {
    display: flex;
    justify-content: center;
}

/* --- Ajuste de tamaño y peso para los subtítulos de la Ficha Técnica --- */
.single-propiedad-page .property-section h2 {
    font-size: 1em !important; /* <-- Puedes ajustar este valor */
    font-weight: 700 !important; /* <-- Peso añadido (700 es negrita) */
}