/*
Theme Name: Zafira Base
Theme URI: https://zafira.minimalstudio.pe/
Author: Minimal Studio
Description: Tema base minimalista y propio para Zafira Inmobiliaria. Sin dependencias externas.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: zafira-base
*/

/* =========================================================
 * BASE
 * ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #222;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
 * CONTENIDO PRINCIPAL
 * ========================================================= */

/*
 * En páginas internas mantenemos una altura mínima
 * para evitar que el footer quede demasiado arriba
 * cuando hay poco contenido.
 */

main {
    min-height: 60vh;
}


/*
 * HOME
 *
 * Las secciones del inicio de Zafira se insertan
 * fuera del <main id="content">.
 *
 * Ese <main> queda vacío y el min-height del tema
 * generaba un espacio blanco antes del footer,
 * especialmente visible en móvil.
 *
 * Lo ocultamos únicamente en la portada.
 */

body.home main#content {
    display: none !important;
}